2012-12-16 21:59:35 +01:00
|
|
|
# Created by: Kirill Ponomarew <krion@FreeBSD.org>
|
2003-10-17 21:00:49 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nefu
|
2009-11-16 20:02:31 +01:00
|
|
|
PORTVERSION= 1.5
|
2010-07-27 10:07:15 +02:00
|
|
|
PORTREVISION= 1
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2003-10-17 21:00:49 +02:00
|
|
|
MASTER_SITES= http://rsug.itd.umich.edu/software/nefu/files/
|
2006-02-20 23:24:33 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2003-10-17 21:00:49 +02:00
|
|
|
|
2014-02-14 16:10:57 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-10-17 21:00:49 +02:00
|
|
|
COMMENT= A network monitoring daemon
|
|
|
|
|
2009-04-07 13:49:00 +02:00
|
|
|
USE_RC_SUBR= nefu
|
2006-02-24 17:26:48 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-11-16 20:02:31 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" \
|
2006-02-20 23:24:33 +01:00
|
|
|
YACC=${YACC} \
|
|
|
|
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
|
|
|
|
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2009-04-07 13:49:00 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} \
|
|
|
|
--without-sasl \
|
|
|
|
--without-zlib \
|
2006-02-20 23:24:33 +01:00
|
|
|
--without-shelltests
|
|
|
|
|
2010-07-27 10:07:15 +02:00
|
|
|
USERS= nefu
|
|
|
|
GROUPS= nefu
|
2009-04-07 13:49:00 +02:00
|
|
|
|
2003-10-17 21:00:49 +02:00
|
|
|
USE_OPENSSL= yes
|
2012-12-16 21:59:35 +01:00
|
|
|
OPTIONS_DEFINE= LDAP HTML
|
|
|
|
HTML_DESC= HTML support
|
2003-10-17 21:00:49 +02:00
|
|
|
|
|
|
|
MAN1= nefu.1
|
|
|
|
MAN4= nefu.conf.4
|
2009-04-07 13:49:00 +02:00
|
|
|
DBDIR= /var/db/nefu
|
2004-02-06 14:12:53 +01:00
|
|
|
PLIST_FILES= bin/nefu
|
2003-10-17 21:00:49 +02:00
|
|
|
|
2013-09-21 00:24:43 +02:00
|
|
|
NO_STAGE= yes
|
2012-12-16 21:59:35 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-02-20 23:24:33 +01:00
|
|
|
|
2012-12-16 21:59:35 +01:00
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
2006-02-20 23:24:33 +01:00
|
|
|
USE_OPENLDAP= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}/lib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ldap
|
|
|
|
.endif
|
|
|
|
|
2012-12-16 21:59:35 +01:00
|
|
|
.if ${PORT_OPTIONS:MHTML}
|
2009-04-07 13:49:00 +02:00
|
|
|
CONFIGURE_ARGS+=--with-html=${WWWDIR}
|
|
|
|
PLIST_FILES+= "@unexec rm -rf "%D/%%WWWDIR%%" 2> /dev/null || true"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-html
|
|
|
|
.endif
|
|
|
|
|
2006-02-20 23:24:33 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lsasl2||' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|-lssl|-lssl -lcrypto|' \
|
|
|
|
${WRKSRC}/configure
|
2009-04-07 13:49:00 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|== x_|= x_|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|== x_|= x_|' \
|
|
|
|
${WRKSRC}/libsnet/configure
|
2006-02-20 23:24:33 +01:00
|
|
|
|
2003-10-17 21:00:49 +02:00
|
|
|
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
|
|
|
|
|
2009-04-07 13:49:00 +02:00
|
|
|
post-install:
|
2012-12-16 21:59:35 +01:00
|
|
|
.if ${PORT_OPTIONS:MHTML}
|
2009-04-07 13:49:00 +02:00
|
|
|
${MKDIR} ${WWWDIR}
|
2010-07-27 10:07:15 +02:00
|
|
|
${CHOWN} -R ${USERS}:${GROUPS} ${WWWDIR}
|
2009-04-07 13:49:00 +02:00
|
|
|
.endif
|
|
|
|
${MKDIR} ${DBDIR}
|
2010-07-27 10:07:15 +02:00
|
|
|
${CHOWN} -R ${USERS}:${GROUPS} ${DBDIR}
|
2009-04-07 13:49:00 +02:00
|
|
|
|
2012-12-16 21:59:35 +01:00
|
|
|
.include <bsd.port.mk>
|