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
This commit is contained in:
Jacques Vidrine 1998-07-04 22:07:35 +00:00
parent 391b7c2db5
commit c1cfdd11d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11732
2 changed files with 24 additions and 18 deletions

View file

@ -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 {} \;

11
www/grail/files/patch-aa Normal file
View file

@ -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