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
|
2014-07-24 20:34:16 +02:00
|
|
|
PORTREVISION= 2
|
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
|
2014-07-10 14:13:11 +02:00
|
|
|
COMMENT= Network monitoring daemon
|
2003-10-17 21:00:49 +02:00
|
|
|
|
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
|
2014-06-11 16:49:59 +02:00
|
|
|
CONFIGURE_ENV= YACC=${YACC} \
|
2006-02-20 23:24:33 +01:00
|
|
|
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
|
|
|
|
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-06-11 16:49:59 +02:00
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
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
|
2014-07-20 04:09:27 +02:00
|
|
|
OPTIONS_SUB= yes
|
2003-10-17 21:00:49 +02:00
|
|
|
|
2009-04-07 13:49:00 +02:00
|
|
|
DBDIR= /var/db/nefu
|
2003-10-17 21:00:49 +02:00
|
|
|
|
2014-07-20 04:09:27 +02:00
|
|
|
LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}/lib
|
|
|
|
LDAP_CONFIGURE_OFF= --without-ldap
|
|
|
|
LDAP_USE= OPENLDAP=yes
|
2006-02-20 23:24:33 +01:00
|
|
|
|
2014-07-20 04:09:27 +02:00
|
|
|
HTML_CONFIGURE_ON= --with-html=${WWWDIR}
|
|
|
|
HTML_CONFIGURE_OFF= --without-html
|
2009-04-07 13:49:00 +02:00
|
|
|
|
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:
|
2014-07-20 04:09:27 +02:00
|
|
|
${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
|
2003-10-17 21:00:49 +02:00
|
|
|
|
2009-04-07 13:49:00 +02:00
|
|
|
post-install:
|
2014-07-20 04:09:27 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR} ${STAGEDIR}${DBDIR}
|
2009-04-07 13:49:00 +02:00
|
|
|
|
2012-12-16 21:59:35 +01:00
|
|
|
.include <bsd.port.mk>
|