Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2014 12:15:51 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r345975 - head/security/radiusniff
Message-ID:  <201402251215.s1PCFpes092030@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Tue Feb 25 12:15:50 2014
New Revision: 345975
URL: http://svnweb.freebsd.org/changeset/ports/345975
QAT: https://qat.redports.org/buildarchive/r345975/

Log:
  Support staging

Modified:
  head/security/radiusniff/Makefile
  head/security/radiusniff/pkg-plist

Modified: head/security/radiusniff/Makefile
==============================================================================
--- head/security/radiusniff/Makefile	Tue Feb 25 11:58:50 2014	(r345974)
+++ head/security/radiusniff/Makefile	Tue Feb 25 12:15:50 2014	(r345975)
@@ -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>

Modified: head/security/radiusniff/pkg-plist
==============================================================================
--- head/security/radiusniff/pkg-plist	Tue Feb 25 11:58:50 2014	(r345974)
+++ head/security/radiusniff/pkg-plist	Tue Feb 25 12:15:50 2014	(r345975)
@@ -1,4 +1,4 @@
 bin/radiusniff
-share/radiusniff/clients
-share/radiusniff/dictionary
-@dirrm share/radiusniff/
+%%DATADIR%%/clients
+%%DATADIR%%/dictionary
+@dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402251215.s1PCFpes092030>