diff --git a/security/ipguard/Makefile b/security/ipguard/Makefile index 3dbf281fdbf5..0902be9f8423 100644 --- a/security/ipguard/Makefile +++ b/security/ipguard/Makefile @@ -1,27 +1,27 @@ PORTNAME= ipguard PORTVERSION= 1.04 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= security net MASTER_SITES= http://ipguard.deep.perm.ru/files/ http://deep.perm.ru/files/ipguard/ MAINTAINER= sead@deep.perm.ru COMMENT= Tool designed to protect LAN IP address space by ARP spoofing WWW= http://ipguard.deep.perm.ru/ LICENSE= BSD2CLAUSE LIB_DEPENDS= libnet.so:net/libnet USE_RC_SUBR= ${PORTNAME} CFLAGS+= -fcommon PORTDOCS= COPYRIGHT NEWS README README.tcpdump README.log ethers.sample rfc826.txt PLIST_FILES= sbin/ipguard \ - man/man8/${PORTNAME}.8.gz + share/man/man8/${PORTNAME}.8.gz OPTIONS_DEFINE= DOCS post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/security/ipguard/files/patch-Makefile b/security/ipguard/files/patch-Makefile index 5d7e75a6aa77..fcad81e4cadc 100644 --- a/security/ipguard/files/patch-Makefile +++ b/security/ipguard/files/patch-Makefile @@ -1,37 +1,37 @@ --- Makefile.orig 2010-07-12 03:46:36 UTC +++ Makefile @@ -10,8 +10,8 @@ PREFIX?=/usr/local ETHERS?=/etc/ethers ## FreeBSD -LOCALBASE=/usr/local -LIBNET_CONFIG=libnet11-config +LOCALBASE?=/usr/local +LIBNET_CONFIG=libnet-config ## OpenBSD (tested by irix) # LOCALBASE=/usr/local @@ -26,7 +26,7 @@ LIBS=`${LIBNET_CONFIG} --libs` -lpcap -L DEFINES=`${LIBNET_CONFIG} --defines` STATIC= -CC=gcc +CC?=gcc CFLAGS+=-g -Wall -DETHERS='"$(ETHERS)"' @@ -58,10 +58,10 @@ cleanall: clean @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 ++ mkdir -p -m 755 ${DESTDIR}$(PREFIX)/share/man/man8 ++ install -m 644 doc/$(NAME).8 ${DESTDIR}$(PREFIX)/share/man/man8/$(NAME).8 uninstall: deinstall