ports/90678: [MAINTAINER] mail/mailgraph: USE_RC_SUBR changes
Rong-En Fan
rafan at infor.org
Tue Dec 20 08:20:02 UTC 2005
>Number: 90678
>Category: ports
>Synopsis: [MAINTAINER] mail/mailgraph: USE_RC_SUBR changes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 20 08:20:00 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Rong-En Fan
>Release: FreeBSD 5.4
>Organization:
NTU CSIE
>Environment:
System: FreeBSD svm.csie.ntu.edu.tw 5.4-RELEASE
>Description:
I just found out there is a new way to install rc script
by using USE_RC_SUBR=filename. So change to the new way
and it simplfy the Makefile.
Added file(s):
- files/mailgraph.sh.in
Removed file(s):
- files/mailgraph.sh.tmpl
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
Apply this diff and
*rename* files/mailgraph.sh.tmpl to files/mailgraph.sh.in.
--- mailgraph-1.12_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/mail/mailgraph/Makefile /home/rafan/tmp/ports/mailgraph/Makefile
--- /usr/ports/mail/mailgraph/Makefile Sat Oct 22 04:41:02 2005
+++ /home/rafan/tmp/ports/mailgraph/Makefile Tue Dec 20 16:09:08 2005
@@ -7,6 +7,7 @@
PORTNAME= mailgraph
PORTVERSION= 1.12
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://people.ee.ethz.ch/~dws/software/mailgraph/pub/ \
http://people.ee.ethz.ch/~dws/software/mailgraph/pub/old/
@@ -24,10 +25,8 @@
MAILGRAPH_GROUP?= ${WWWGRP}
USE_REINPLACE= yes
-USE_RC_SUBR= yes
-RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} DATADIR=${DATADIR} \
- MAILGRAPH_USER=${MAILGRAPH_USER} MAILGRAPH_GROUP=${MAILGRAPH_GROUP}
-STARTUP_FILE= ${PREFIX}/etc/rc.d/mailgraph.sh
+USE_RC_SUBR= ${PORTNAME}.sh
+SUB_LIST+= MAILGRAPH_USER=${MAILGRAPH_USER} MAILGRAPH_GROUP=${MAILGRAPH_GROUP}
MSG_FILE= ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKSRC}/pkg-message
@@ -51,9 +50,6 @@
@${CHOWN} -R ${MAILGRAPH_USER}:${MAILGRAPH_GROUP} ${DATADIR}
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${PREFIX}/sbin
@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${PREFIX}/www/cgi-bin
- @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/mailgraph.sh.tmpl > ${STARTUP_FILE}
- @${CHMOD} 755 ${STARTUP_FILE}
post-install:
@${ECHO}
diff -ruN --exclude=CVS /usr/ports/mail/mailgraph/pkg-plist /home/rafan/tmp/ports/mailgraph/pkg-plist
--- /usr/ports/mail/mailgraph/pkg-plist Wed Jun 9 14:16:05 2004
+++ /home/rafan/tmp/ports/mailgraph/pkg-plist Tue Dec 20 16:07:03 2005
@@ -1,4 +1,3 @@
-etc/rc.d/mailgraph.sh
www/cgi-bin/mailgraph.cgi
sbin/mailgraph.pl
@unexec rmdir %D/www/cgi-bin 2>/dev/null || true
--- mailgraph-1.12_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list