diff options
author | kei <kei@pkgsrc.org> | 2000-12-21 06:20:53 +0000 |
---|---|---|
committer | kei <kei@pkgsrc.org> | 2000-12-21 06:20:53 +0000 |
commit | ed47bb818376f66c44479df3164f9dc2cfca3750 (patch) | |
tree | a32720f7c36e3da17417fb94f0947192bb6c47cd /time/pcal | |
parent | 818b913aa787ddcd84f27f6818d18ac41fcbdc63 (diff) | |
download | pkgsrc-ed47bb818376f66c44479df3164f9dc2cfca3750.tar.gz |
initial import of "pcal" package.
"Pcal" Version 4.7
This is a new release of "Pcal", the PostScript calendar program. The major
new features are the "-H" flag for generating output in HTML table form,
expansion of "%y" in the "include" filename into the last two digits of
every applicable year in "year all" mode, and the addition of build-time
support for A4 size paper.
Diffstat (limited to 'time/pcal')
-rw-r--r-- | time/pcal/Makefile | 48 | ||||
-rw-r--r-- | time/pcal/files/md5 | 3 | ||||
-rw-r--r-- | time/pcal/files/patch-sum | 7 | ||||
-rw-r--r-- | time/pcal/patches/patch-aa | 39 | ||||
-rw-r--r-- | time/pcal/patches/patch-ab | 15 | ||||
-rw-r--r-- | time/pcal/patches/patch-ac | 22 | ||||
-rw-r--r-- | time/pcal/patches/patch-ad | 21 | ||||
-rw-r--r-- | time/pcal/patches/patch-ae | 21 | ||||
-rw-r--r-- | time/pcal/pkg/COMMENT | 1 | ||||
-rw-r--r-- | time/pcal/pkg/DESCR | 7 | ||||
-rw-r--r-- | time/pcal/pkg/PLIST | 7 |
11 files changed, 191 insertions, 0 deletions
diff --git a/time/pcal/Makefile b/time/pcal/Makefile new file mode 100644 index 00000000000..fe597f1ed81 --- /dev/null +++ b/time/pcal/Makefile @@ -0,0 +1,48 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $ +# + +DISTNAME= pcal_4_7_tar_Z +PKGNAME= pcal-4.7 +CATEGORIES= time +MASTER_SITES= http://www.geocities.com/SunsetStrip/Palms/5555/PS/ +EXTRACT_SUFX= .txt + +MAINTAINER= kei@netbsd.org +HOMEPAGE= http://www.geocities.com/SunsetStrip/Palms/5555/PS/index.html + +UUDECODE?= uudecode -p +EXTRACT_CMD= ${CAT} ${DOWNLOADED_DISTFILE} | ${UUDECODE} | ${PAX} -rz + +WRKSRC= ${WRKDIR}/pcal.4.7 + +HTDOCS= ${PREFIX}/share/httpd/htdocs +WWWSERVER!= hostname + +.include "../../mk/bsd.prefs.mk" # for PAPERSIZE +.include <bsd.sys.mk> # for CC and HOST_CC +MAKE_ENV+= PAPERSIZE="${PAPERSIZE}" +MAKE_ENV+= CC="${CC}" HOST_CC="${HOST_CC}" + +ALL_TARGET= pcal + +pre-install: + ${MV} ${WRKSRC}/pcal.cgi ${WRKSRC}/pcal.cgi.tmp + ${SED} -e 's|@@PREFIX@@|${PREFIX}|' \ + < ${WRKSRC}/pcal.cgi.tmp > ${WRKSRC}/pcal.cgi + ${MV} ${WRKSRC}/pcal.html ${WRKSRC}/pcal.html.tmp + ${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \ + < ${WRKSRC}/pcal.html.tmp > ${WRKSRC}/pcal.html + ${MV} ${WRKSRC}/pcalw.html ${WRKSRC}/pcalw.html.tmp + ${SED} -e 's|@@WWWSERVER@@|${WWWSERVER}|' \ + < ${WRKSRC}/pcalw.html.tmp > ${WRKSRC}/pcalw.html + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pcal ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/pcal.cgi ${PREFIX}/libexec/cgi-bin + ${INSTALL_MAN} ${WRKSRC}/pcal.man ${PREFIX}/man/man1/pcal.1 + ${INSTALL_DATA} ${WRKSRC}/ReadMe ${PREFIX}/share/doc/ReadMe.pcal + ${INSTALL_DATA_DIR} ${HTDOCS} + ${INSTALL_DATA} ${WRKSRC}/pcal.html ${HTDOCS} + ${INSTALL_DATA} ${WRKSRC}/pcalw.html ${HTDOCS} + +.include "../../mk/bsd.pkg.mk" diff --git a/time/pcal/files/md5 b/time/pcal/files/md5 new file mode 100644 index 00000000000..c2a04e6bbb9 --- /dev/null +++ b/time/pcal/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $ + +MD5 (pcal_4_7_tar_Z.txt) = cef12878d3f6862d0cd1ad4358dcce38 diff --git a/time/pcal/files/patch-sum b/time/pcal/files/patch-sum new file mode 100644 index 00000000000..7deb760e20b --- /dev/null +++ b/time/pcal/files/patch-sum @@ -0,0 +1,7 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $ + +MD5 (patch-aa) = 1d1eab09c55c996aa5618f6ea9b22987 +MD5 (patch-ab) = 729c844afcccb0da675af9354b4a702a +MD5 (patch-ac) = 64a6b256e82e1cc74cc4442443335ed9 +MD5 (patch-ad) = 1581839b837b1f2fa018f0e29afc31d3 +MD5 (patch-ae) = 0be66c3f240a6a87afca04f9b64a05ac diff --git a/time/pcal/patches/patch-aa b/time/pcal/patches/patch-aa new file mode 100644 index 00000000000..6fae85049f8 --- /dev/null +++ b/time/pcal/patches/patch-aa @@ -0,0 +1,39 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $ + +--- Makefile.orig Thu Feb 10 01:06:23 2000 ++++ Makefile Thu Dec 21 09:40:35 2000 +@@ -21,8 +21,8 @@ + + # Set the configuration variables below to taste. + +-PCALINIT_CC = /bin/cc # native compiler +-CC = /bin/cc # cross-compiler (if target != host) ++PCALINIT_CC = ${CC} # native compiler ++CC = ${HOST_CC} # cross-compiler (if target != host) + + # Set COMPRESS to your preferred compression utility (compress, gzip, etc.), + # Z to the file suffix that it generates (.Z, .gz, etc.), and UUC to the file +@@ -58,9 +58,9 @@ + # PACK = pack + + # directories for installing executable and man page(s) +-BINDIR = /usr/local/bin +-MANDIR = /usr/man/man1 +-CATDIR = /usr/man/cat1 ++BINDIR = ${PREFIX}/bin ++MANDIR = ${PREFIX}/man/man1 ++CATDIR = ${PREFIX}/cat1 + + OBJECTS = pcal.o exprpars.o moonphas.o pcalutil.o readfile.o writefil.o + +@@ -112,6 +112,10 @@ + $(D_TEXT) $(D_LINK) $(D_ALINK) $(D_VLINK) \ + $(D_HOLIDAY_PRE) $(D_HOLIDAY_POST) $(D_BLANK_STYLE) \ + $(D_SEARCH_PCAL_DIR) ++ ++.if defined(PAPERSIZE) && $(PAPERSIZE) == A4 # default Letter (OK?) ++COPTS += -DA4PAPER ++.endif + + $(PCAL): $(OBJECTS) + $(CC) $(LDFLAGS) -o $(PCAL) $(OBJECTS) -lm diff --git a/time/pcal/patches/patch-ab b/time/pcal/patches/patch-ab new file mode 100644 index 00000000000..ec0dc73641c --- /dev/null +++ b/time/pcal/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $ + +--- pcal.cgi.orig Wed Dec 20 15:43:36 2000 ++++ pcal.cgi Wed Dec 20 15:45:35 2000 +@@ -27,8 +27,8 @@ + # common calendar file on your system (note that the user can't use his/her + # own calendar file since most servers will execute pcal.cgi as 'nobody') + +-pcal=/yourpath/pcal +-file=/yourpath/calendar ++pcal=@@PREFIX@@/bin/pcal ++file=@@PREFIX@@/share/misc/calendar + + # set DEBUG=1 to echo debugging output as HTML text + DEBUG=0 diff --git a/time/pcal/patches/patch-ac b/time/pcal/patches/patch-ac new file mode 100644 index 00000000000..b8648f8bf92 --- /dev/null +++ b/time/pcal/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $ + +--- pcal.html.orig Thu Feb 10 01:06:23 2000 ++++ pcal.html Wed Dec 20 17:38:53 2000 +@@ -12,7 +12,7 @@ + + --> + <HEAD> +-<TITLE>pcal v4.6</TITLE> ++<TITLE>pcal v4.7</TITLE> + </HEAD> + + <BODY> +@@ -21,7 +21,7 @@ + + <!-- start of form --> + +-<FORM ACTION="http://yourpath/cgi-bin/pcal.cgi" METHOD=GET> ++<FORM ACTION="http://@@WWWSERVER@@/cgi-bin/pcal.cgi" METHOD=GET> + + <!-- menu for starting month --> + diff --git a/time/pcal/patches/patch-ad b/time/pcal/patches/patch-ad new file mode 100644 index 00000000000..c461d4f3a3e --- /dev/null +++ b/time/pcal/patches/patch-ad @@ -0,0 +1,21 @@ +$NetBSD: patch-ad,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $ + +--- pcalw.html.orig Thu Feb 10 01:06:23 2000 ++++ pcalw.html Wed Dec 20 17:38:56 2000 +@@ -12,14 +12,14 @@ + + --> + <HEAD> +-<TITLE>pcal v4.6 (single-year mode)</TITLE> ++<TITLE>pcal v4.7 (single-year mode)</TITLE> + </HEAD> + <BODY> + <H2 ALIGN=CENTER>Generate single-page PostScript calendar for entire year</H2> + + <!-- start of form --> + +-<FORM ACTION="http://yourpath/pcal.cgi" METHOD=GET> ++<FORM ACTION="http://@@WWWSERVER@@/cgi-bin/pcal.cgi" METHOD=GET> + + <INPUT TYPE=HIDDEN NAME=wflag VALUE="-w"> <!-- silently set -w flag --> + diff --git a/time/pcal/patches/patch-ae b/time/pcal/patches/patch-ae new file mode 100644 index 00000000000..27976f864ce --- /dev/null +++ b/time/pcal/patches/patch-ae @@ -0,0 +1,21 @@ +$NetBSD: patch-ae,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $ + +--- pcal.man.orig Thu Dec 21 10:10:45 2000 ++++ pcal.man Thu Dec 21 10:11:15 2000 +@@ -443,14 +443,14 @@ + `&#NNN;' (NNN = any three decimal digits) are also supported. These will + be propagated intact (be sure to escape the `#' in `&#NNN;') if the output + is specified as HTML (see the +-.B -\H ++.B \-H + flag); otherwise they will be converted to their ASCII equivalents. This + allows a common date file to be used regardless of whether the desired + output format is HTML, PostScript, or + Un*x + .I "calendar(1)" + (see the +-.B -\c ++.B \-c + flag) input. + .PP + Lines in the diff --git a/time/pcal/pkg/COMMENT b/time/pcal/pkg/COMMENT new file mode 100644 index 00000000000..05899ae556e --- /dev/null +++ b/time/pcal/pkg/COMMENT @@ -0,0 +1 @@ +PostScript calendar program diff --git a/time/pcal/pkg/DESCR b/time/pcal/pkg/DESCR new file mode 100644 index 00000000000..cd36985243b --- /dev/null +++ b/time/pcal/pkg/DESCR @@ -0,0 +1,7 @@ +"Pcal" Version 4.7 + +This is a new release of "Pcal", the PostScript calendar program. The major +new features are the "-H" flag for generating output in HTML table form, +expansion of "%y" in the "include" filename into the last two digits of +every applicable year in "year all" mode, and the addition of build-time +support for A4 size paper. diff --git a/time/pcal/pkg/PLIST b/time/pcal/pkg/PLIST new file mode 100644 index 00000000000..bff7bbb68f4 --- /dev/null +++ b/time/pcal/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/12/21 06:20:53 kei Exp $ +bin/pcal +libexec/cgi-bin/pcal.cgi +man/man1/pcal.1 +share/doc/ReadMe.pcal +share/httpd/htdocs/pcal.html +share/httpd/htdocs/pcalw.html |