Date: Sun, 20 Jul 2014 02:09:27 +0000 (UTC) From: Danilo Egea Gondolfo <danilo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r362294 - head/net-mgmt/nefu Message-ID: <201407200209.s6K29RXJ025575@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danilo Date: Sun Jul 20 02:09:27 2014 New Revision: 362294 URL: http://svnweb.freebsd.org/changeset/ports/362294 QAT: https://qat.redports.org/buildarchive/r362294/ Log: - Add stage support - Use options helpers Approved by: portmgr (blanket) Added: head/net-mgmt/nefu/pkg-plist (contents, props changed) Modified: head/net-mgmt/nefu/Makefile Modified: head/net-mgmt/nefu/Makefile ============================================================================== --- head/net-mgmt/nefu/Makefile Sun Jul 20 01:30:40 2014 (r362293) +++ head/net-mgmt/nefu/Makefile Sun Jul 20 02:09:27 2014 (r362294) @@ -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> Added: head/net-mgmt/nefu/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/nefu/pkg-plist Sun Jul 20 02:09:27 2014 (r362294) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407200209.s6K29RXJ025575>