freebsd-ports/security/ipguard/files/patch-Makefile
Tijl Coosemans 654ccc6aac Install net/libnet headers and libraries back in the location where other
ports expect it.  The files were put in a different location to avoid a
conflict with net/libnet10 but this port has been removed a while ago now.

PR:		208122
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-03-20 10:53:08 +00:00

37 lines
954 B
Text

--- 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
uninstall: deinstall