1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support staging

This commit is contained in:
Emanuel Haupt 2014-02-24 14:52:34 +00:00
parent 271ed02c80
commit de4790f57a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345856
2 changed files with 12 additions and 23 deletions

View File

@ -18,25 +18,22 @@ CONFIGURE_ARGS+= --with-config=${PREFIX}/etc/pxe.conf \
--with-log=/var/log/pxe.log \
--with-setuid=nobody
DOCS= Changes INSTALL LICENCE README THANKS
PORTDOCS= Changes INSTALL LICENCE README THANKS
PLIST_FILES= sbin/pxe etc/pxe.conf.sample
NO_STAGE= yes
.include <bsd.port.pre.mk>
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} -e 's|/tmp/pxe.pid|/var/run/pxe.pid|' ${WRKSRC}/autoconf.h.in
${REINPLACE_CMD} -e 's|/tmp/pxe.pid|/var/run/pxe.pid|' \
${WRKSRC}/autoconf.h.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pxe ${PREFIX}/sbin/
${INSTALL_DATA} ${WRKSRC}/pxe.conf ${PREFIX}/etc/pxe.conf.sample
.if !defined(NOPORTDOCS)
@${INSTALL} -d -m 0755 ${DOCSDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
${INSTALL_PROGRAM} ${WRKSRC}/pxe ${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/pxe.conf \
${STAGEDIR}${PREFIX}/etc/pxe.conf.sample
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,8 +0,0 @@
sbin/pxe
etc/pxe.conf.sample
%%PORTDOCS%%share/doc/pxe/Changes
%%PORTDOCS%%share/doc/pxe/INSTALL
%%PORTDOCS%%share/doc/pxe/LICENCE
%%PORTDOCS%%share/doc/pxe/README
%%PORTDOCS%%share/doc/pxe/THANKS
%%PORTDOCS%%@dirrm share/doc/pxe