diff --git a/net-mgmt/sendip/Makefile b/net-mgmt/sendip/Makefile index 03e4088e07b7..0220dc551949 100644 --- a/net-mgmt/sendip/Makefile +++ b/net-mgmt/sendip/Makefile @@ -1,36 +1,36 @@ PORTNAME= sendip PORTVERSION= 2.5 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= net-mgmt MASTER_SITES= http://www.earth.li/projectpurple/files/ MAINTAINER= coco@executive-computing.de COMMENT= Command-line tool for sending arbitrary IP packets WWW= https://www.earth.li/projectpurple/progs/sendip.html LICENSE= GPLv2 BUILD_DEPENDS= help2man:misc/help2man USES= gmake perl5 compiler USE_LDCONFIG= yes .include .if ${COMPILER_TYPE} == clang CFLAGS+= -Wno-empty-body -Wno-constant-conversion .endif .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) CFLAGS+= -Wno-error=deprecated-non-prototype -Wno-error=strict-prototypes .endif post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sendip .for slib in ipv4.so ipv6.so icmp.so tcp.so udp.so rip.so ripng.so ntp.so \ bgp.so @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sendip/${slib} .endfor .include diff --git a/net-mgmt/sendip/files/patch-Makefile b/net-mgmt/sendip/files/patch-Makefile index 5b4df1871deb..0fd965d5f879 100644 --- a/net-mgmt/sendip/files/patch-Makefile +++ b/net-mgmt/sendip/files/patch-Makefile @@ -1,45 +1,45 @@ --- Makefile.orig 2002-10-12 19:28:00.000000000 +0200 +++ Makefile 2014-07-27 16:43:13.000000000 +0200 @@ -1,23 +1,23 @@ #configureable stuff -PREFIX ?= /usr/local -BINDIR ?= $(PREFIX)/bin -MANDIR ?= $(PREFIX)/share/man/man1 -LIBDIR ?= $(PREFIX)/lib/sendip +#PREFIX ?= /usr/local +BINDIR=${DESTDIR}${PREFIX}/bin -+MANDIR=${DESTDIR}${PREFIX}/man/man1 ++MANDIR=${DESTDIR}${PREFIX}/share/man/man1 +LIBDIR=${DESTDIR}${PREFIX}/lib/sendip #For most systems, this works -INSTALL ?= install +INSTALL?=install #For Solaris, you may need #INSTALL=/usr/ucb/install -CFLAGS= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ - -Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \ - -DSENDIP_LIBS=\"$(LIBDIR)\" +CFLAGS+= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ + -Wstrict-prototypes -Wnested-externs -Winline -Werror -Wcast-align \ + -DSENDIP_LIBS=\"${LIBDIR}\" #-Wcast-align causes problems on solaris, but not serious ones -LDFLAGS= -g -rdynamic -lm +LDFLAGS+= -rdynamic -lm #LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl LDFLAGS_LINUX= -g -rdynamic -ldl -lm LIBCFLAGS= -shared -CC= gcc +#CC= gcc PROGS= sendip BASEPROTOS= ipv4.so ipv6.so @@ -39,7 +39,7 @@ $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $+ ; \ fi" -sendip.1: ./help2man $(PROGS) $(PROTOS) VERSION +sendip.1: help2man $(PROGS) $(PROTOS) VERSION ./help2man -n "Send arbitrary IP packets" -N >sendip.1 sendip.spec: sendip.spec.in VERSION diff --git a/net-mgmt/sendip/pkg-plist b/net-mgmt/sendip/pkg-plist index ef18244cbeaf..afbed24a808c 100644 --- a/net-mgmt/sendip/pkg-plist +++ b/net-mgmt/sendip/pkg-plist @@ -1,11 +1,11 @@ bin/sendip lib/sendip/bgp.so lib/sendip/icmp.so lib/sendip/ipv4.so lib/sendip/ipv6.so lib/sendip/ntp.so lib/sendip/rip.so lib/sendip/ripng.so lib/sendip/tcp.so lib/sendip/udp.so -man/man1/sendip.1.gz +share/man/man1/sendip.1.gz