$OpenBSD: patch-Imakefile,v 1.1 2003/06/18 02:48:00 avsm Exp $
--- Imakefile.orig	Wed Sep 30 03:38:28 1998
+++ Imakefile	Wed Jun 18 03:41:50 2003
@@ -115,10 +115,10 @@ NR_WEEKDAYS  = 5
 START_HOUR   = 8
 END_HOUR     = 18
 N_NOTESLOTS  = 6
-START_YEAR   = 90
+START_YEAR   = 98
 NR_YEARS     = 5
 UPDATE_RATE  = minute
-MAILPROG     = /usr/ucb/mail
+MAILPROG     = /usr/bin/mail
 HOUR_24      = 0
 MON_FIRST    = 0
 APPT_CHECK_LIMIT = n_slots
@@ -130,10 +130,10 @@ APPT_CHECK_LIMIT = n_slots
 #NO_HOLIDAYS  = -DNO_HOLIDAYS 
 #NO_SUN_MOON  = -DNO_SUN_MOON 
 #NEED_CUSERID = -DNEED_CUSERID
-#NEED_DYSIZE  = -DNEED_DYSIZE
+NEED_DYSIZE  = -DNEED_DYSIZE
 #SVR4	      = -DSVR4
-NEEDS_EXTRA_PROTOS = -DNEEDS_EXTRA_PROTOS
-NEEDS_GETTIMEOFDAY_PROTO = -DNEEDS_GETTIMEOFDAY_PROTO
+#NEEDS_EXTRA_PROTOS = -DNEEDS_EXTRA_PROTOS
+#NEEDS_GETTIMEOFDAY_PROTO = -DNEEDS_GETTIMEOFDAY_PROTO
 #HAS_STRFTIME = -DHAS_STRFTIME
 LOCATION= -DLONG_DEGREES=121. -DLONG_MINUTES=08. -DLONG_SECONDS=56. \
 	-DLAT_DEGREES=44. -DLAT_MINUTES=15. -DLAT_SECONDS=15.
@@ -255,17 +255,14 @@ InstallProgram(month2ct,$(BINDIR))
 InstallProgram(cal2ct,$(BINDIR))
 #
 #	special man page rules for duplicate man pages
-install.man::
-	$(RM) $(MANDIR)/month2ct.$(MANSUFFIX)
-	ln -s $(MANDIR)/mt2ct.$(MANSUFFIX) $(MANDIR)/month2ct.$(MANSUFFIX)
-	$(RM) $(MANDIR)/cal2ct.$(MANSUFFIX)
-	ln -s $(MANDIR)/mt2ct.$(MANSUFFIX) $(MANDIR)/cal2ct.$(MANSUFFIX)
+InstallManPageAliases(mt2ct,$(MANDIR),month2ct cal2ct)
+
 #
 #	special rules for date file installation
 install::
-	$(MKDIRHIER) $(DATELIB_DIR)
+	$(MKDIRHIER) $(DESTDIR)$(DATELIB_DIR)
 	for i in $(DATEFILES); do \
-		($(INSTALL) -c $(INSTDATFLAGS) $$i $(DATELIB_DIR)); \
+		($(INSTALL) -c $(INSTDATFLAGS) $$i $(DESTDIR)$(DATELIB_DIR)); \
 	done
 #
 #	special rules for files that compile differently for different programs
