diff options
author | danilo <danilo@FreeBSD.org> | 2014-07-20 10:09:27 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2014-07-20 10:09:27 +0800 |
commit | ff4161ba1d1f72df46b2e4a2fd6afe33a8537165 (patch) | |
tree | d985b5fdbe182244e315680672c5ac37980c6540 | |
parent | 900af44616a10644cba2d31b57a870a66f1c41e2 (diff) | |
download | freebsd-ports-gnome-ff4161ba1d1f72df46b2e4a2fd6afe33a8537165.tar.gz freebsd-ports-gnome-ff4161ba1d1f72df46b2e4a2fd6afe33a8537165.tar.zst freebsd-ports-gnome-ff4161ba1d1f72df46b2e4a2fd6afe33a8537165.zip |
- Add stage support
- Use options helpers
Approved by: portmgr (blanket)
-rw-r--r-- | net-mgmt/nefu/Makefile | 37 | ||||
-rw-r--r-- | net-mgmt/nefu/pkg-plist | 9 |
2 files changed, 19 insertions, 27 deletions
diff --git a/net-mgmt/nefu/Makefile b/net-mgmt/nefu/Makefile index 22a43cdc7724..da4ba1476557 100644 --- a/net-mgmt/nefu/Makefile +++ b/net-mgmt/nefu/Makefile @@ -30,28 +30,16 @@ GROUPS= nefu USE_OPENSSL= yes OPTIONS_DEFINE= LDAP HTML HTML_DESC= HTML support +OPTIONS_SUB= yes -MAN1= nefu.1 -MAN4= nefu.conf.4 DBDIR= /var/db/nefu -PLIST_FILES= bin/nefu -NO_STAGE= yes -.include <bsd.port.options.mk> +LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}/lib +LDAP_CONFIGURE_OFF= --without-ldap +LDAP_USE= OPENLDAP=yes -.if ${PORT_OPTIONS:MLDAP} -USE_OPENLDAP= yes -CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}/lib -.else -CONFIGURE_ARGS+= --without-ldap -.endif - -.if ${PORT_OPTIONS:MHTML} -CONFIGURE_ARGS+=--with-html=${WWWDIR} -PLIST_FILES+= "@unexec rm -rf "%D/%%WWWDIR%%" 2> /dev/null || true" -.else -CONFIGURE_ARGS+=--without-html -.endif +HTML_CONFIGURE_ON= --with-html=${WWWDIR} +HTML_CONFIGURE_OFF= --without-html post-patch: @${REINPLACE_CMD} -e 's|-lsasl2||' \ @@ -64,16 +52,11 @@ post-patch: ${WRKSRC}/libsnet/configure do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/nefu.1 ${PREFIX}/man/man1 - ${INSTALL_MAN} ${WRKSRC}/nefu.conf.4 ${PREFIX}/man/man4 + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/nefu.1 ${STAGEDIR}${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/nefu.conf.4 ${STAGEDIR}${PREFIX}/man/man4 post-install: -.if ${PORT_OPTIONS:MHTML} - ${MKDIR} ${WWWDIR} - ${CHOWN} -R ${USERS}:${GROUPS} ${WWWDIR} -.endif - ${MKDIR} ${DBDIR} - ${CHOWN} -R ${USERS}:${GROUPS} ${DBDIR} + @${MKDIR} ${STAGEDIR}${WWWDIR} ${STAGEDIR}${DBDIR} .include <bsd.port.mk> diff --git a/net-mgmt/nefu/pkg-plist b/net-mgmt/nefu/pkg-plist new file mode 100644 index 000000000000..c17bff96cdce --- /dev/null +++ b/net-mgmt/nefu/pkg-plist @@ -0,0 +1,9 @@ +bin/nefu +man/man1/nefu.1.gz +man/man4/nefu.conf.4.gz +@owner nefu +@group nefu +@dirrmtry %%WWWDIR%% +@dirrmtry /var/db/nefu +@group +@owner |