summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>1998-07-04 22:07:35 +0000
committernectar <nectar@FreeBSD.org>1998-07-04 22:07:35 +0000
commit3996845d4c93f7dd8ca9c980cafdc63d8d0c4bb4 (patch)
tree234ef40fe588fa6043563f699bef52e201b61ab6 /www
parente9132efaf7d9cc82e6beaa2758fb79df194eb816 (diff)
downloadFreeBSD-ports-3996845d4c93f7dd8ca9c980cafdc63d8d0c4bb4.zip
FreeBSD-ports-3996845d4c93f7dd8ca9c980cafdc63d8d0c4bb4.tar.gz
Port cleanup.
- Correct location of sendmail in MailDialog.py. (sorry, forgot who pointed this out) - suggested by asami: use DISTNAME and DISTFILES to control WRKSRC; combine do-install and post-install; use --exclude in tar command to avoid installing unneeded files
Diffstat (limited to 'www')
-rw-r--r--www/grail/Makefile31
-rw-r--r--www/grail/files/patch-aa11
2 files changed, 24 insertions, 18 deletions
diff --git a/www/grail/Makefile b/www/grail/Makefile
index 6d10784..db49232 100644
--- a/www/grail/Makefile
+++ b/www/grail/Makefile
@@ -3,44 +3,39 @@
# Date created: 6/11/1998
# Whom: n@nectar.com
#
-# $Id: Makefile,v 1.1.1.1 1998/06/16 15:32:45 dburr Exp $
+# $Id: Makefile,v 1.5 1998/06/27 16:19:09 nectar Exp $
#
-DISTNAME= grail_04
-PKGNAME= grail-0.4
+DISTNAME= grail-0.4
CATEGORIES= www
MASTER_SITES= http://monty.cnri.reston.va.us/grail-0.4/source/
-EXTRACT_SUFX= .tgz
+DISTFILES= grail_04.tgz
-MAINTAINER= n@nectar.com
+MAINTAINER= nectar@freebsd.org
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
RUN_DEPENDS= python:${PORTSDIR}/lang/python
LIB_DEPENDS= tk80\\.1:${PORTSDIR}/x11/tk80
-WRKSRC= ${WRKDIR}/${PKGNAME}
-
CHOWN?=chown
CHMOD?=chmod
FIND?=find
PYTHON?=python
GREP?=grep
+SED?=sed
do-build:
${PYTHON} -c 'from compileall import compile_dir; compile_dir("${WRKSRC}")'
do-install:
- ${MKDIR} ${PREFIX}/lib/grail && \
- ${CHOWN} ${BINOWN}.${BINGRP} ${PREFIX}/lib/grail && \
- ${CHMOD} 0555 ${PREFIX}/lib/grail
- (cd ${WRKSRC} && tar cf - .) | (cd ${PREFIX}/lib/grail && tar xf -)
- (${ECHO} "#!/bin/sh"; \
- ${ECHO} 'exec python ${PREFIX}/lib/grail/grail.py $${1+"$$@"}') \
- >/tmp/grail.$$$$ && \
- ${INSTALL_SCRIPT} \
- /tmp/grail.$$$$ ${PREFIX}/bin/grail
-
-post-install:
+ ${MKDIR} ${PREFIX}/lib/grail
+ (cd ${WRKSRC} && tar --exclude '.cvsignore' \
+ --exclude '*.orig' -cf - .) | \
+ (cd ${PREFIX}/lib/grail && tar xf -)
+ (sed 's|%%PREFIX%%|${PREFIX}|g' <${FILESDIR}/grail \
+ >${WRKDIR}/grail.$$$$ && \
+ ${INSTALL_SCRIPT} ${WRKDIR}/grail.$$$$ ${PREFIX}/bin/grail && \
+ ${RM} ${WRKDIR}/grail.$$$$)
${CHOWN} -R ${BINOWN}.${BINGRP} ${PREFIX}/lib/grail
${FIND} ${PREFIX}/lib/grail -type f -exec ${CHMOD} 0444 {} \;
${FIND} ${PREFIX}/lib/grail -type d -exec ${CHMOD} 0555 {} \;
diff --git a/www/grail/files/patch-aa b/www/grail/files/patch-aa
new file mode 100644
index 0000000..9e58e05
--- /dev/null
+++ b/www/grail/files/patch-aa
@@ -0,0 +1,11 @@
+--- ancillary/MailDialog.py- Wed Jun 17 11:40:55 1998
++++ ancillary/MailDialog.py Wed Jun 17 11:41:12 1998
+@@ -50,7 +50,7 @@
+ X-URL: %(url)s
+ """
+ else:
+- SENDMAIL = "/usr/lib/sendmail -t" # XXX
++ SENDMAIL = "/usr/sbin/sendmail -t" # XXX
+ TEMPLATE ="""\
+ To: %(to)s
+ Subject: %(subject)s
OpenPOWER on IntegriCloud