o Remove unneeded patch, not used as we use do-build target to override it
o Better DESCR o Install the clients and dictionary files from the package and pass the correct paths to them; add @comment $OpenBSD$ to PLIST
This commit is contained in:
parent
f45f6a3aa6
commit
6d4e1f7cf9
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.5 2001/05/06 03:46:16 lebel Exp $
|
||||
# $OpenBSD: Makefile,v 1.6 2001/07/28 20:13:08 pvalchev Exp $
|
||||
# Original from: FreeLSD <freelsd@freelsd.net>
|
||||
|
||||
COMMENT= "radius sniffer"
|
||||
@ -19,9 +19,15 @@ MASTER_SITES= http://adm.freelsd.net/ADM/
|
||||
WRKSRC= ${WRKDIR}/radiusniff-0.2
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} ; ${CC} -DOPENBSD -DDICTIONARY_FILENAME='"dictionary"' -I/usr/local/include -L/usr/local/lib -o radiusniff radiusniff.c md5.c -lpcap -lresolv
|
||||
cd ${WRKSRC} && ${CC} -DOPENBSD \
|
||||
-DDICTIONARY_FILENAME=\"${PREFIX}/share/radiusniff/dictionary\" \
|
||||
-DCLIENTS_FILENAME=\"${PREFIX}/share/radiusniff/clients\" \
|
||||
-I${LOCALBASE}/include -L${LOCALBASE}/lib -o radiusniff \
|
||||
radiusniff.c md5.c -lpcap -lresolv
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/radiusniff ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/radiusniff ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/radiusniff/
|
||||
${INSTALL_DATA} ${WRKSRC}/{dictionary,clients} ${PREFIX}/share/radiusniff
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,18 +0,0 @@
|
||||
--- Makefile.orig Mon Mar 20 20:49:43 2000
|
||||
+++ Makefile Mon Mar 20 20:50:48 2000
|
||||
@@ -15,9 +15,13 @@ LIBSDIR = -L/usr/local/lib
|
||||
#AUTOCONF = -DSUNOS -DNOT_HAVE_SNPRINTF
|
||||
#LIBS = -lpcap -lresolv -lsocket -lns
|
||||
|
||||
+# for OpenBSD
|
||||
+AUTOCONF = -DOPENBSD
|
||||
+LIBS = -lpcap -lresolv
|
||||
+
|
||||
# for Linux
|
||||
-AUTOCONF = -DLINUX
|
||||
-LIBS = -lpcap
|
||||
+#AUTOCONF = -DLINUX
|
||||
+#LIBS = -lpcap
|
||||
|
||||
|
||||
SOURCE = radiusniff.c md5.c
|
@ -1 +1 @@
|
||||
ADM's radius sniffer.
|
||||
ADM's radius traffic sniffer.
|
||||
|
@ -1 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2001/07/28 20:13:08 pvalchev Exp $
|
||||
bin/radiusniff
|
||||
share/radiusniff/clients
|
||||
share/radiusniff/dictionary
|
||||
@dirrm share/radiusniff
|
||||
|
Loading…
Reference in New Issue
Block a user