summaryrefslogtreecommitdiff
path: root/www/grail
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>1998-07-04 22:07:35 +0000
committerJacques Vidrine <nectar@FreeBSD.org>1998-07-04 22:07:35 +0000
commitc1cfdd11d72e1d36d472954444e78178a2dddc73 (patch)
treefcfff5057e78ae0a0d7a1a6286e461d7a70d7e99 /www/grail
parentTurn on mico. (diff)
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
Notes
Notes: svn path=/head/; revision=11732
Diffstat (limited to 'www/grail')
-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 6d107840c62b..db49232210aa 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 000000000000..9e58e0595300
--- /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