Use SUB_FILES

This commit is contained in:
Edwin Groothuis
2006-04-01 11:57:25 +00:00
parent eda0ab97e8
commit d8ca7f2259
4 changed files with 8 additions and 14 deletions

View File

@@ -21,15 +21,7 @@ PLIST_FILES= bin/postgresql-relay \
USE_REINPLACE= yes
USE_RC_SUBR= yes
USE_PERL5_BUILD=yes
post-extract:
${CP} ${FILESDIR}/postgresql-relay.sh ${WRKDIR}
post-patch:
${REINPLACE_CMD} \
-e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g' \
${WRKDIR}/postgresql-relay.sh
SUB_FILES= postgresql-relay.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/postgresql-relay ${PREFIX}/bin

View File

@@ -1,6 +1,6 @@
#!/bin/sh
#
# $FreeBSD$
# $FreeBSD: /tmp/pcvs/ports/databases/postgresql-relay/files/Attic/postgresql-relay.sh.in,v 1.1 2006-04-01 11:57:25 edwin Exp $
#
# PROVIDE: postgresql-relay

View File

@@ -20,6 +20,8 @@ USE_GMAKE= yes
USE_GETOPT_LONG=yes
MAKE_ENV= _LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" GMAKE=${GMAKE}
SCRIPTS_ENV= PKG_PREFIX=${PREFIX} NONEXISTENT=${NONEXISTENT} PASSWD=/etc/passwd
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS= UVSCAN "Use UVSCAN" on
@@ -51,6 +53,6 @@ do-install:
post-install:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${SED} -e 's,PREFIX,${PREFIX},g' ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@@ -1,11 +1,11 @@
**********************************************************************
By default, P3Scan is configured to work with McAfee UVSCAN.
Please copy PREFIX/etc/p3scan.conf.sample to p3scan.conf and modify
PREFIX/etc/p3scan.conf and/or PREFIX/etc/rc.d/p3scan.sh to
Please copy %%PREFIX%%/etc/p3scan.conf.sample to p3scan.conf and modify
%%PREFIX%%/etc/p3scan.conf and/or %%PREFIX%%/etc/rc.d/p3scan.sh to
fit your environment.
Don't forget to copy PREFIX/etc/p3scan.mail.sample to p3scan.mail
Don't forget to copy %%PREFIX%%/etc/p3scan.mail.sample to p3scan.mail
and edit your own template for virus notifications.
By the way, you need to enable IPFIREWALL and IPFIREWALL_FORWARD options