svn commit: r345856 - head/net/pxe

Emanuel Haupt ehaupt at FreeBSD.org
Mon Feb 24 14:52:34 UTC 2014


Author: ehaupt
Date: Mon Feb 24 14:52:34 2014
New Revision: 345856
URL: http://svnweb.freebsd.org/changeset/ports/345856
QAT: https://qat.redports.org/buildarchive/r345856/

Log:
  Support staging

Deleted:
  head/net/pxe/pkg-plist
Modified:
  head/net/pxe/Makefile

Modified: head/net/pxe/Makefile
==============================================================================
--- head/net/pxe/Makefile	Mon Feb 24 14:40:42 2014	(r345855)
+++ head/net/pxe/Makefile	Mon Feb 24 14:52:34 2014	(r345856)
@@ -18,25 +18,22 @@ CONFIGURE_ARGS+=	--with-config=${PREFIX}
 			--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>


More information about the svn-ports-all mailing list