diff options
author | nectar <nectar@FreeBSD.org> | 1998-07-05 06:07:35 +0800 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 1998-07-05 06:07:35 +0800 |
commit | 3996845d4c93f7dd8ca9c980cafdc63d8d0c4bb4 (patch) | |
tree | 234ef40fe588fa6043563f699bef52e201b61ab6 | |
parent | e9132efaf7d9cc82e6beaa2758fb79df194eb816 (diff) | |
download | freebsd-ports-gnome-3996845d4c93f7dd8ca9c980cafdc63d8d0c4bb4.tar.gz freebsd-ports-gnome-3996845d4c93f7dd8ca9c980cafdc63d8d0c4bb4.tar.zst freebsd-ports-gnome-3996845d4c93f7dd8ca9c980cafdc63d8d0c4bb4.zip |
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
-rw-r--r-- | www/grail/Makefile | 31 | ||||
-rw-r--r-- | www/grail/files/patch-aa | 11 |
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 |