mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Support STAGE
- Modernize LIB_DEPENDS - Add LICENSE - Respect CC Approved by: portmgr (blanket infrastructure)
This commit is contained in:
parent
4f1604c79c
commit
edccd619fb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343768
@ -10,18 +10,17 @@ MASTER_SITES= http://ipguard.deep.perm.ru/files/ http://deep.perm.ru/files/ipgua
|
||||
MAINTAINER= sead@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>
|
||||
|
35
security/ipguard/files/patch-Makefile
Normal file
35
security/ipguard/files/patch-Makefile
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user