use SUB_FILES for pkg-message

This commit is contained in:
Edwin Groothuis 2006-04-01 13:07:13 +00:00
parent d2d0202a45
commit 3f89b718df
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158550
6 changed files with 12 additions and 14 deletions

View file

@ -17,6 +17,8 @@ COMMENT= CVS to Perforce Converter
USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
NO_BUILD= yes
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
PERFORCE_PORT?= 1666

View file

@ -1,6 +1,4 @@
************************************************************************
Go to /usr/local/cvs2p4, and follow the instructions described in the
Go to %%PREFIX%%/cvs2p4, and follow the instructions described in the
README file.
(Replace /usr/local above with ${PREFIX} as appropriate)
************************************************************************

View file

@ -17,13 +17,14 @@ COMMENT= Web/Perforce Browser
RUN_DEPENDS= p4:${.CURDIR}/../perforce
USE_PERL5= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
PATCH_WRKSRC= ${WRKSRC}/${PORTNAME}
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
FQDN!= hostname
P4DB_HOME= ${LOCALBASE}/perforce/${PORTNAME}
P4DB_HOME= ${PREFIX}/perforce/${PORTNAME}
# These variables are all configurable.
PERFORCE_USER?= p4admin

View file

@ -1,10 +1,10 @@
************************************************************************
To launch your p4db site, edit /usr/local/perforce/p4db/P4DB.conf and
configure the web server to make /usr/local/perforce/p4db/www
To launch your p4db site, edit %%LOCALBASE%%/perforce/p4db/P4DB.conf and
configure the web server to make %%LOCALBASE%%/perforce/p4db/www
viewable. For example:
Alias /p4db/ "/usr/local/perforce/p4db/www/"
<Directory "/usr/local/perforce/p4db/www">
Alias /p4db/ "%%LOCALBASE%%/perforce/p4db/www/"
<Directory "%%LOCALBASE%%/perforce/p4db/www">
AddHandler cgi-script .cgi
DirectoryIndex index.cgi
Options ExecCGI
@ -13,5 +13,4 @@ viewable. For example:
Allow from all
</Directory>
(Replace /usr/local with your ${PREFIX} as appropriate)
************************************************************************

View file

@ -19,11 +19,9 @@ USE_PHP= yes
USE_PHPIZE= yes
CONFIGURE_ARGS= --enable-xdebug --with-php-config=${PREFIX}/bin/php-config
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
post-build:
@${SED} "s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
< ${.CURDIR}/pkg-message > ${PKGMESSAGE}
SUB_LIST= PHP_EXT_DIR=${PHP_EXT_DIR}
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}