summaryrefslogtreecommitdiffstats
path: root/net-mgmt/nefu/Makefile
blob: b2adac15664d8f80c7e9cbb167567ff63aef4dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Created by: Kirill Ponomarew <krion@FreeBSD.org>
# $FreeBSD$

PORTNAME=	nefu
PORTVERSION=	1.5
PORTREVISION=	2
CATEGORIES=	net-mgmt
MASTER_SITES=	http://rsug.itd.umich.edu/software/nefu/files/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Network monitoring daemon

USES=		tar:tgz ssl
USE_RC_SUBR=	nefu
GNU_CONFIGURE=	yes
MAKE_JOBS_UNSAFE=	yes
CONFIGURE_ENV=	YACC=${YACC} \
		OPENSSL_CFLAGS="-I${OPENSSLINC}" \
		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--with-ssl=${OPENSSLBASE} \
		--without-sasl \
		--without-zlib \
		--without-shelltests

USERS=		nefu
GROUPS=		nefu

OPTIONS_DEFINE=	LDAP HTML
HTML_DESC=	HTML support
OPTIONS_SUB=	yes

DBDIR=		/var/db/nefu

LDAP_CONFIGURE_ON=	--with-ldap=${LOCALBASE}/lib
LDAP_CONFIGURE_OFF=	--without-ldap
LDAP_USE=		OPENLDAP=yes

HTML_CONFIGURE_ON=	--with-html=${WWWDIR}
HTML_CONFIGURE_OFF=	--without-html

post-patch:
	@${REINPLACE_CMD} -e 's|-lsasl2||' \
		${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e 's|-lssl|-lssl -lcrypto|' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|== x_|= x_|' \
		${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|== x_|= x_|' \
		${WRKSRC}/libsnet/configure

do-install:
	${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
	@${MKDIR} ${STAGEDIR}${WWWDIR} ${STAGEDIR}${DBDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud