From 3996845d4c93f7dd8ca9c980cafdc63d8d0c4bb4 Mon Sep 17 00:00:00 2001 From: nectar Date: Sat, 4 Jul 1998 22:07:35 +0000 Subject: 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 --- www/grail/Makefile | 31 +++++++++++++------------------ www/grail/files/patch-aa | 11 +++++++++++ 2 files changed, 24 insertions(+), 18 deletions(-) create mode 100644 www/grail/files/patch-aa (limited to 'www') 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 -- cgit v1.1