mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- support STAGE
This commit is contained in:
parent
8ba3edb0ee
commit
1288c1a14f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337733
@ -14,12 +14,11 @@ USES= perl5
|
||||
USE_PERL5= run
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= PREFIX=${PREFIX}
|
||||
SUB_LIST= PREFIX=${STAGEDIR}${PREFIX}
|
||||
|
||||
PLIST_FILES= bin/mirmon bin/probe
|
||||
MAN1= mirmon.1
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ! ${PORT_OPTIONS:MDOCS}
|
||||
@ -33,18 +32,17 @@ post-patch:
|
||||
-e "s,/usr/bin/rsync,${LOCALBASE}/bin/rsync," ${WRKSRC}/probe
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/mirmon ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/probe ${PREFIX}/bin
|
||||
@${MKDIR} ${DATADIR}
|
||||
${CP} -R ${WRKSRC}/countries.list ${WRKSRC}/icons ${DATADIR}
|
||||
@${FIND} ${DATADIR} ! -type d | \
|
||||
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
||||
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
|
||||
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
||||
${INSTALL_MAN} ${WRKSRC}/mirmon.1 ${MANPREFIX}/man/man1
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/mirmon ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/probe ${STAGEDIR}${PREFIX}/bin
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${CP} -R ${WRKSRC}/countries.list ${WRKSRC}/icons ${STAGEDIR}${DATADIR}
|
||||
@${FIND} ${STAGEDIR}${DATADIR} ! -type d | \
|
||||
${SED} 's,^${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
|
||||
@${FIND} ${STAGEDIR}${DATADIR} -type d | ${SORT} -r | \
|
||||
${SED} 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
|
||||
.if ! ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${CP} ${WRKSRC}/mirmon.html ${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${CP} ${WRKSRC}/mirmon.html ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
|
@ -10,22 +10,20 @@ MAINTAINER= jadawin@FreeBSD.org
|
||||
COMMENT= Yet another uptimes.net client
|
||||
|
||||
ALL_TARGET= bsd
|
||||
CFLAGS+= -DCONFFILE=\\\"${PREFIX}/etc/yaunc.conf\\\"
|
||||
CFLAGS+= -DCONFFILE=\\\"${STAGEDIR}${PREFIX}/etc/yaunc.conf\\\"
|
||||
|
||||
PLIST_FILES= bin/yaunc \
|
||||
etc/yaunc.conf.sample
|
||||
etc/yaunc.conf.sample \
|
||||
man/man1/yaunc.1.gz
|
||||
|
||||
USE_RC_SUBR= yaunc
|
||||
|
||||
MAN1= yaunc.1
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/yaunc.1
|
||||
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${STAGEDIR}${PREFIX}|g" ${WRKSRC}/yaunc.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/yaunc ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/yaunc.1 ${MANPREFIX}/man/man1
|
||||
${INSTALL_DATA} -m 600 ${WRKSRC}/yaunc.conf ${PREFIX}/etc/yaunc.conf.sample
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/yaunc ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/yaunc.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
||||
${INSTALL_DATA} -m 600 ${WRKSRC}/yaunc.conf ${STAGEDIR}${PREFIX}/etc/yaunc.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -16,15 +16,15 @@ CPPFLAGS+= -I${LOCALBASE}/include
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
PORTDOCS= README
|
||||
PLIST_FILES= bin/disco bin/disco.fp
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.if ! ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for i in README
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
|
@ -12,7 +12,4 @@ COMMENT= Perl module to manipulate IPv4/IPv6 netblocks in CIDR notation
|
||||
USES= perl5
|
||||
USE_PERL5= configure
|
||||
|
||||
MAN3= Net::CIDR.3
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,4 @@
|
||||
%%PERL5_MAN3%%/Net::CIDR.3.gz
|
||||
%%SITE_PERL%%/Net/CIDR.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/CIDR/.packlist
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/CIDR
|
||||
|
@ -17,7 +17,6 @@ OPTIONS_DEFAULTS= APACHE
|
||||
|
||||
BUILD_DEPENDS+= xmlrpc-c-config:${PORTSDIR}/net/xmlrpc-c
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MAPACHE}
|
||||
@ -37,19 +36,15 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= WWWDIR=${WWWDIR} \
|
||||
PORTNAME=${PORTNAME}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's/import_request_variables("gp","r_")/extract(\$_REQUEST, EXTR_PREFIX_ALL|EXTR_REFS, "r")/' ${WRKSRC}/*.php
|
||||
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
||||
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
||||
@${FIND} ${WRKSRC} -name "*.php~" -delete
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${WWWDIR}
|
||||
${RM} ${WRKSRC}/functions.php~
|
||||
${RM} ${WRKSRC}/index.php~
|
||||
${CP} -r ${WRKSRC}/* ${WWWDIR}
|
||||
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
||||
${MKDIR} ${STAGEDIR}${WWWDIR}
|
||||
${CP} -r ${WRKSRC}/* ${STAGEDIR}${WWWDIR}
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
Loading…
Reference in New Issue
Block a user