mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
use SUB_FILES for pkg-message
This commit is contained in:
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
|
@ -17,6 +17,8 @@ COMMENT= CVS to Perforce Converter
|
||||||
USE_REINPLACE= yes
|
USE_REINPLACE= yes
|
||||||
REINPLACE_ARGS= -i ""
|
REINPLACE_ARGS= -i ""
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
|
SUB_FILES= pkg-message
|
||||||
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||||
|
|
||||||
PERFORCE_PORT?= 1666
|
PERFORCE_PORT?= 1666
|
||||||
|
|
||||||
|
|
|
@ -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.
|
README file.
|
||||||
|
|
||||||
(Replace /usr/local above with ${PREFIX} as appropriate)
|
|
||||||
************************************************************************
|
************************************************************************
|
|
@ -17,13 +17,14 @@ COMMENT= Web/Perforce Browser
|
||||||
RUN_DEPENDS= p4:${.CURDIR}/../perforce
|
RUN_DEPENDS= p4:${.CURDIR}/../perforce
|
||||||
|
|
||||||
USE_PERL5= yes
|
USE_PERL5= yes
|
||||||
|
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
NO_WRKSUBDIR= yes
|
NO_WRKSUBDIR= yes
|
||||||
PATCH_WRKSRC= ${WRKSRC}/${PORTNAME}
|
PATCH_WRKSRC= ${WRKSRC}/${PORTNAME}
|
||||||
|
SUB_FILES= pkg-message
|
||||||
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||||
|
|
||||||
FQDN!= hostname
|
FQDN!= hostname
|
||||||
P4DB_HOME= ${LOCALBASE}/perforce/${PORTNAME}
|
P4DB_HOME= ${PREFIX}/perforce/${PORTNAME}
|
||||||
|
|
||||||
# These variables are all configurable.
|
# These variables are all configurable.
|
||||||
PERFORCE_USER?= p4admin
|
PERFORCE_USER?= p4admin
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
************************************************************************
|
************************************************************************
|
||||||
To launch your p4db site, edit /usr/local/perforce/p4db/P4DB.conf and
|
To launch your p4db site, edit %%LOCALBASE%%/perforce/p4db/P4DB.conf and
|
||||||
configure the web server to make /usr/local/perforce/p4db/www
|
configure the web server to make %%LOCALBASE%%/perforce/p4db/www
|
||||||
viewable. For example:
|
viewable. For example:
|
||||||
|
|
||||||
Alias /p4db/ "/usr/local/perforce/p4db/www/"
|
Alias /p4db/ "%%LOCALBASE%%/perforce/p4db/www/"
|
||||||
<Directory "/usr/local/perforce/p4db/www">
|
<Directory "%%LOCALBASE%%/perforce/p4db/www">
|
||||||
AddHandler cgi-script .cgi
|
AddHandler cgi-script .cgi
|
||||||
DirectoryIndex index.cgi
|
DirectoryIndex index.cgi
|
||||||
Options ExecCGI
|
Options ExecCGI
|
||||||
|
@ -13,5 +13,4 @@ viewable. For example:
|
||||||
Allow from all
|
Allow from all
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
(Replace /usr/local with your ${PREFIX} as appropriate)
|
|
||||||
************************************************************************
|
************************************************************************
|
|
@ -19,11 +19,9 @@ USE_PHP= yes
|
||||||
USE_PHPIZE= yes
|
USE_PHPIZE= yes
|
||||||
CONFIGURE_ARGS= --enable-xdebug --with-php-config=${PREFIX}/bin/php-config
|
CONFIGURE_ARGS= --enable-xdebug --with-php-config=${PREFIX}/bin/php-config
|
||||||
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
||||||
|
SUB_FILES= pkg-message
|
||||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||||
|
SUB_LIST= PHP_EXT_DIR=${PHP_EXT_DIR}
|
||||||
post-build:
|
|
||||||
@${SED} "s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
|
|
||||||
< ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
|
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
|
||||||
|
|
Loading…
Add table
Reference in a new issue