View | Details | Raw Unified | Return to bug 190806
Collapse All | Expand All

(-)Makefile (-10 / +13 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	sendip
4
PORTNAME=	sendip
5
PORTVERSION=	2.5
5
PORTVERSION=	2.5
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	net-mgmt ipv6
7
CATEGORIES=	net-mgmt ipv6
8
MASTER_SITES=	http://www.earth.li/projectpurple/files/
8
MASTER_SITES=	http://www.earth.li/projectpurple/files/
9
9
Lines 10-25 Link Here
10
MAINTAINER=	joseph@randomnetworks.com
10
MAINTAINER=	joseph@randomnetworks.com
11
COMMENT=	SendIP is a commandline tool to allow sending arbitrary IP packets
11
COMMENT=	SendIP is a commandline tool to allow sending arbitrary IP packets
12
12
13
LICENSE=	GPLv2
14
15
BUILD_DEPENDS=	help2man:${PORTSDIR}/misc/help2man
16
13
USES=		gmake perl5
17
USES=		gmake perl5
18
14
USE_LDCONFIG=	yes
19
USE_LDCONFIG=	yes
15
20
16
MAN1=		sendip.1
21
post-install:
22
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sendip
23
.for slib in ipv4.so ipv6.so icmp.so tcp.so udp.so rip.so ripng.so ntp.so \
24
bgp.so
25
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sendip/${slib}
26
.endfor
17
27
18
NO_STAGE=	yes
28
.include <bsd.port.mk>
19
.include <bsd.port.pre.mk>
20
21
.if ${OSVERSION} >= 900000
22
BROKEN=		does not compile on FreeBSD 9.X
23
.endif
24
25
.include <bsd.port.post.mk>
(-)files/patch-Makefile (-8 / +11 lines)
Lines 1-5 Link Here
1
--- Makefile.orig	Tue Jan 28 13:03:48 2003
1
--- Makefile.orig	2002-10-12 19:28:00.000000000 +0200
2
+++ Makefile	Tue Jan 28 13:04:35 2003
2
+++ Makefile	2014-06-08 21:23:13.000000000 +0200
3
@@ -1,23 +1,23 @@
3
@@ -1,23 +1,23 @@
4
 #configureable stuff
4
 #configureable stuff
5
-PREFIX ?= /usr/local
5
-PREFIX ?= /usr/local
Lines 7-15 Link Here
7
-MANDIR ?= $(PREFIX)/share/man/man1
7
-MANDIR ?= $(PREFIX)/share/man/man1
8
-LIBDIR ?= $(PREFIX)/lib/sendip
8
-LIBDIR ?= $(PREFIX)/lib/sendip
9
+#PREFIX ?= /usr/local
9
+#PREFIX ?= /usr/local
10
+BINDIR=${PREFIX}/bin
10
+BINDIR=${DESTDIR}${PREFIX}/bin
11
+MANDIR=${PREFIX}/man/man1
11
+MANDIR=${DESTDIR}${PREFIX}/man/man1
12
+LIBDIR=${PREFIX}/lib/sendip
12
+LIBDIR=${DESTDIR}${PREFIX}/lib/sendip
13
 #For most systems, this works
13
 #For most systems, this works
14
-INSTALL ?= install
14
-INSTALL ?= install
15
+INSTALL?=install
15
+INSTALL?=install
Lines 16-27 Link Here
16
 #For Solaris, you may need
16
 #For Solaris, you may need
17
 #INSTALL=/usr/ucb/install
17
 #INSTALL=/usr/ucb/install
18
 
18
 
19
 CFLAGS=	-fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \
19
-CFLAGS=	-fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \
20
 			-Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \
20
-			-Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \
21
-			-DSENDIP_LIBS=\"$(LIBDIR)\"
21
-			-DSENDIP_LIBS=\"$(LIBDIR)\"
22
+CFLAGS+=	-fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \
23
+			-Wstrict-prototypes -Wnested-externs -Winline -Werror -Wcast-align \
22
+			-DSENDIP_LIBS=\"${LIBDIR}\"
24
+			-DSENDIP_LIBS=\"${LIBDIR}\"
23
 #-Wcast-align causes problems on solaris, but not serious ones
25
 #-Wcast-align causes problems on solaris, but not serious ones
24
 LDFLAGS=	-g -rdynamic -lm
26
-LDFLAGS=	-g -rdynamic -lm
27
+LDFLAGS+=	-rdynamic -lm
25
 #LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm
28
 #LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm
26
 LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl
29
 LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl
27
 LDFLAGS_LINUX= -g  -rdynamic -ldl -lm
30
 LDFLAGS_LINUX= -g  -rdynamic -ldl -lm
(-)pkg-plist (-6 / +7 lines)
Lines 1-11 Link Here
1
bin/sendip
1
bin/sendip
2
lib/sendip/bgp.so
3
lib/sendip/icmp.so
2
lib/sendip/ipv4.so
4
lib/sendip/ipv4.so
3
lib/sendip/ipv6.so
5
lib/sendip/ipv6.so
4
lib/sendip/icmp.so
6
lib/sendip/ntp.so
7
lib/sendip/rip.so
8
lib/sendip/ripng.so
5
lib/sendip/tcp.so
9
lib/sendip/tcp.so
6
lib/sendip/udp.so
10
lib/sendip/udp.so
7
lib/sendip/rip.so
11
man/man1/sendip.1.gz
8
lib/sendip/ripng.so
12
@dirrmtry lib/sendip
9
lib/sendip/bgp.so
10
lib/sendip/ntp.so
11
@dirrm lib/sendip

Return to bug 190806