svn commit: r343768 - in head/security/ipguard: . files

Renato Botelho garga at FreeBSD.org
Tue Feb 11 16:48:59 UTC 2014


Author: garga
Date: Tue Feb 11 16:48:58 2014
New Revision: 343768
URL: http://svnweb.freebsd.org/changeset/ports/343768
QAT: https://qat.redports.org/buildarchive/r343768/

Log:
  - Support STAGE
  - Modernize LIB_DEPENDS
  - Add LICENSE
  - Respect CC
  
  Approved by:	portmgr (blanket infrastructure)

Added:
  head/security/ipguard/files/patch-Makefile   (contents, props changed)
Modified:
  head/security/ipguard/Makefile

Modified: head/security/ipguard/Makefile
==============================================================================
--- head/security/ipguard/Makefile	Tue Feb 11 16:44:11 2014	(r343767)
+++ head/security/ipguard/Makefile	Tue Feb 11 16:48:58 2014	(r343768)
@@ -10,18 +10,17 @@ MASTER_SITES=	http://ipguard.deep.perm.r
 MAINTAINER=	sead at deep.perm.ru
 COMMENT=	Tool designed to protect LAN IP address space by ARP spoofing
 
-LIB_DEPENDS=	net:${PORTSDIR}/net/libnet
+LICENSE=	BSD2CLAUSE
+
+LIB_DEPENDS=	libnet.so:${PORTSDIR}/net/libnet
 
 USE_RC_SUBR=	${PORTNAME}
-MAN8=		${PORTNAME}.8
 PORTDOCS=	COPYRIGHT NEWS README README.tcpdump README.log ethers.sample rfc826.txt
-PLIST_FILES=	sbin/ipguard
+PLIST_FILES=	sbin/ipguard \
+		man/man8/${PORTNAME}.8.gz
 
-NO_STAGE=	yes
 post-install:
-.if !defined(NOPORTDOCS)
-	@${INSTALL} -d ${DOCSDIR}
-	@cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Added: head/security/ipguard/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/ipguard/files/patch-Makefile	Tue Feb 11 16:48:58 2014	(r343768)
@@ -0,0 +1,35 @@
+--- Makefile.orig	2014-02-11 16:45:41.000000000 -0200
++++ Makefile	2014-02-11 16:46:25.000000000 -0200
+@@ -10,7 +10,7 @@
+ ETHERS?=/etc/ethers
+ 
+ ## FreeBSD
+-LOCALBASE=/usr/local
++LOCALBASE?=/usr/local
+ LIBNET_CONFIG=libnet11-config
+ 
+ ## OpenBSD (tested by irix)
+@@ -26,7 +26,7 @@
+ DEFINES=`${LIBNET_CONFIG} --defines`
+ 
+ STATIC=
+-CC=gcc
++CC?=gcc
+ 
+ CFLAGS+=-g -Wall -DETHERS='"$(ETHERS)"'
+ 
+@@ -58,10 +58,10 @@
+ 	@rm -f $(NAME)
+ 
+ install: all
+-	mkdir -p -m 755 $(PREFIX)/sbin
+-	install -s -m 755 $(NAME) $(PREFIX)/sbin/$(NAME)
+-	mkdir -p -m 755 $(PREFIX)/man/man8
+-	install -m 644 doc/$(NAME).8 $(PREFIX)/man/man8/$(NAME).8
++	mkdir -p -m 755 ${DESTDIR}$(PREFIX)/sbin
++	install -s -m 755 $(NAME) ${DESTDIR}$(PREFIX)/sbin/$(NAME)
++	mkdir -p -m 755 ${DESTDIR}$(PREFIX)/man/man8
++	install -m 644 doc/$(NAME).8 ${DESTDIR}$(PREFIX)/man/man8/$(NAME).8
+ 
+ uninstall: deinstall
+ 


More information about the svn-ports-all mailing list