1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Support staging

This commit is contained in:
Emanuel Haupt 2014-02-24 13:59:22 +00:00
parent 70af09ded0
commit f75a65cdd0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345847

View File

@ -17,20 +17,20 @@ PLIST_FILES= sbin/pathneck \
PORTDOCS= COPYING ChangeLog README
MAKEFILE= Makefile.bsd
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's,^CC .=,CC ?=,' \
-e 's,^CFLAGS .=,CFLAGS +=,' \
${WRKSRC}/Makefile.bsd
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pathneck ${PREFIX}/sbin/pathneck
${INSTALL_PROGRAM} ${WRKSRC}/get-choke ${PREFIX}/sbin/get-choke
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/pathneck ${STAGEDIR}${PREFIX}/sbin/pathneck
${INSTALL_PROGRAM} ${WRKSRC}/get-choke \
${STAGEDIR}${PREFIX}/sbin/get-choke
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>