diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2014-02-25 12:15:50 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2014-02-25 12:15:50 +0000 |
commit | c09cdebefc3ad6a96322dceee363feb1f24ed849 (patch) | |
tree | 62ec67039cc67380bc03c5eb422e90c687385d42 /security/radiusniff | |
parent | ea7984d005d28983c4c54a4e712c413aad29f802 (diff) | |
download | ports-c09cdebefc3ad6a96322dceee363feb1f24ed849.tar.gz ports-c09cdebefc3ad6a96322dceee363feb1f24ed849.zip |
Notes
Diffstat (limited to 'security/radiusniff')
-rw-r--r-- | security/radiusniff/Makefile | 16 | ||||
-rw-r--r-- | security/radiusniff/pkg-plist | 6 |
2 files changed, 12 insertions, 10 deletions
diff --git a/security/radiusniff/Makefile b/security/radiusniff/Makefile index 99f50a76732f..77c9d36e29b4 100644 --- a/security/radiusniff/Makefile +++ b/security/radiusniff/Makefile @@ -12,15 +12,17 @@ COMMENT= Sniffer for RADIUS traffic WRKSRC= ${WRKDIR}/radiusniff-0.2 -NO_STAGE= yes +CFLAGS+= -DOPENBSD -DCLIENTS_FILENAME=\"${DATADIR}/clients\" \ + -DDICTIONARY_FILENAME=\"${DATADIR}/dictionary\" + do-build: - cd ${WRKSRC} && \ - ${CC} ${CFLAGS} -DOPENBSD -DCLIENTS_FILENAME=\"${PREFIX}/share/radiusniff/clients\" -DDICTIONARY_FILENAME=\"${PREFIX}/share/radiusniff/dictionary\" -o radiusniff radiusniff.c md5.c -lpcap + ${CC} ${CFLAGS} -o ${WRKSRC}/radiusniff ${WRKSRC}/radiusniff.c \ + ${WRKSRC}/md5.c -lpcap do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/radiusniff ${PREFIX}/bin - ${MKDIR} ${PREFIX}/share/radiusniff/ - ${INSTALL_DATA} ${WRKSRC}/dictionary ${PREFIX}/share/radiusniff/ - ${INSTALL_DATA} ${WRKSRC}/clients ${PREFIX}/share/radiusniff/ + ${INSTALL_PROGRAM} ${WRKSRC}/radiusniff ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/dictionary ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/clients ${STAGEDIR}${DATADIR} .include <bsd.port.mk> diff --git a/security/radiusniff/pkg-plist b/security/radiusniff/pkg-plist index 9e0c92101c3d..1fe63530ecd7 100644 --- a/security/radiusniff/pkg-plist +++ b/security/radiusniff/pkg-plist @@ -1,4 +1,4 @@ bin/radiusniff -share/radiusniff/clients -share/radiusniff/dictionary -@dirrm share/radiusniff/ +%%DATADIR%%/clients +%%DATADIR%%/dictionary +@dirrm %%DATADIR%% |