View | Details | Raw Unified | Return to bug 191426 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-5 / +11 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	sendip
4
PORTNAME=	sendip
5
PORTVERSION=	2.5
5
PORTVERSION=	2.5
6
PORTREVISION=	2
6
PORTREVISION=	3
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 14-28 Link Here
14
14
15
BUILD_DEPENDS=	help2man:${PORTSDIR}/misc/help2man
15
BUILD_DEPENDS=	help2man:${PORTSDIR}/misc/help2man
16
16
17
USES=		gmake perl5
17
USES=		gmake perl5 compiler
18
18
19
USE_LDCONFIG=	yes
19
USE_LDCONFIG=	yes
20
20
21
.include <bsd.port.pre.mk>
22
23
.if ${COMPILER_TYPE} == clang
24
CFLAGS+=	-Wno-empty-body -Wno-constant-conversion
25
.endif
26
21
post-install:
27
post-install:
22
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sendip
28
	@${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 \
29
.for slib in ipv4.so ipv6.so icmp.so tcp.so udp.so rip.so ripng.so ntp.so \
24
bgp.so
30
bgp.so
25
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sendip/${slib}
31
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/sendip/${slib}
26
.endfor
32
.endfor
27
33
28
.include <bsd.port.mk>
34
.include <bsd.port.post.mk>
(-)files/patch-Makefile (-8 / +6 lines)
Lines 1-5 Link Here
1
--- Makefile.orig	Tue Jan 28 13:03:48 2003
1
--- Makefile.orig	2014-07-05 20:02:54.000000000 +0200
2
+++ Makefile	Tue Jan 28 13:04:35 2003
2
+++ Makefile	2014-07-05 20:06:02.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 17-30 Link Here
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
+CFLAGS+=	-fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \
21
-			-DSENDIP_LIBS=\"$(LIBDIR)\"
21
 			-Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \
22
+CFLAGS+=	-fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wno-empty-body -Wno-constant-conversion \
22
 			-DSENDIP_LIBS=\"$(LIBDIR)\"
23
+			-Wstrict-prototypes -Wnested-externs -Winline -Werror -Wcast-align \
24
+			-DSENDIP_LIBS=\"${LIBDIR}\"
25
 #-Wcast-align causes problems on solaris, but not serious ones
23
 #-Wcast-align causes problems on solaris, but not serious ones
26
-LDFLAGS=	-g -rdynamic -lm
24
-LDFLAGS=	-g -rdynamic -lm
27
+LDFLAGS+=	-rdynamic -lm
25
+LDFLAGS=	-rdynamic -lm
28
 #LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm
26
 #LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm
29
 LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl
27
 LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl
30
 LDFLAGS_LINUX= -g  -rdynamic -ldl -lm
28
 LDFLAGS_LINUX= -g  -rdynamic -ldl -lm
(-)files/patch-ripng.h (+11 lines)
Line 0 Link Here
1
--- ripng.h.orig	2014-07-05 20:09:27.000000000 +0200
2
+++ ripng.h	2014-07-05 20:09:51.000000000 +0200
3
@@ -15,7 +15,7 @@
4
 	struct in6_addr prefix;
5
 	u_int16_t tag;
6
 	u_int8_t len;
7
-	u_int8_t metric;
8
+	u_int16_t metric;
9
 } ripng_entry;
10
 
11
 /* Defines for which parts have been modified

Return to bug 191426