svn commit: r406241 - head/sysutils/bsdadminscripts
Pawel Pekala
pawel at FreeBSD.org
Sat Jan 16 17:00:59 UTC 2016
Author: pawel
Date: Sat Jan 16 17:00:58 2016
New Revision: 406241
URL: https://svnweb.freebsd.org/changeset/ports/406241
Log:
- Don't use deprecated @dirrm in plist generation
- Add NO_ARCH
- Use options helpers
Modified:
head/sysutils/bsdadminscripts/Makefile
Modified: head/sysutils/bsdadminscripts/Makefile
==============================================================================
--- head/sysutils/bsdadminscripts/Makefile Sat Jan 16 16:48:50 2016 (r406240)
+++ head/sysutils/bsdadminscripts/Makefile Sat Jan 16 17:00:58 2016 (r406241)
@@ -13,6 +13,7 @@ COMMENT= Collection of administration sc
LICENSE= BSD2CLAUSE
NO_BUILD= yes
+NO_ARCH= yes
TMP?= /tmp
VAR?= /var
@@ -24,11 +25,7 @@ OPTIONS_DEFINE= DOCS
SUB_FILES= distviper pkg_libchk pkg_upgrade uma
SUB_LIST= TMP=${TMP} PREFIX=${PREFIX} VAR=${VAR} PORTS=${PORTSDIR}
-.include <bsd.port.options.mk>
-
-.if ! ${PORT_OPTIONS:MDOCS}
-EVALDOCS= -nodoc
-.endif
+DOCS_VARS_OFF= EVALDOCS=-nodoc
do-install:
cd ${WRKSRC}/src && ${SH} install.sh \
@@ -56,13 +53,11 @@ post-install:
${MV} ${STAGEDIR}${PREFIX}/etc/*.sample ${STAGEDIR}${ETCDIR}
${RM} -rf ${STAGEDIR}${PREFIX}/etc/*.sample
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
plist:
cd ${WRKSRC}/src && ${SH} plist.sh > ${PLIST}
- ${ECHO} "@dirrm ${DATADIR_REL}" >> ${PLIST}
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list