Date: Mon, 9 Jun 2014 10:46:32 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r357134 - in head/net-mgmt/sendip: . files Message-ID: <201406091046.s59AkW2p037591@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Mon Jun 9 10:46:32 2014 New Revision: 357134 URL: http://svnweb.freebsd.org/changeset/ports/357134 QAT: https://qat.redports.org/buildarchive/r357134/ Log: Fix building Respect CFLAGS / LDFLAGS Add staging support PR: 190806 Submitted by: coco@executive-computing.de Modified: head/net-mgmt/sendip/Makefile head/net-mgmt/sendip/files/patch-Makefile head/net-mgmt/sendip/pkg-plist Modified: head/net-mgmt/sendip/Makefile ============================================================================== --- head/net-mgmt/sendip/Makefile Mon Jun 9 10:39:40 2014 (r357133) +++ head/net-mgmt/sendip/Makefile Mon Jun 9 10:46:32 2014 (r357134) @@ -3,23 +3,26 @@ PORTNAME= sendip PORTVERSION= 2.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt ipv6 MASTER_SITES= http://www.earth.li/projectpurple/files/ MAINTAINER= joseph@randomnetworks.com COMMENT= SendIP is a commandline tool to allow sending arbitrary IP packets -USES= gmake perl5 -USE_LDCONFIG= yes +LICENSE= GPLv2 -MAN1= sendip.1 +BUILD_DEPENDS= help2man:${PORTSDIR}/misc/help2man -NO_STAGE= yes -.include <bsd.port.pre.mk> +USES= gmake perl5 + +USE_LDCONFIG= yes -.if ${OSVERSION} >= 900000 -BROKEN= does not compile on FreeBSD 9.X -.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 <bsd.port.post.mk> +.include <bsd.port.mk> Modified: head/net-mgmt/sendip/files/patch-Makefile ============================================================================== --- head/net-mgmt/sendip/files/patch-Makefile Mon Jun 9 10:39:40 2014 (r357133) +++ head/net-mgmt/sendip/files/patch-Makefile Mon Jun 9 10:46:32 2014 (r357134) @@ -7,21 +7,24 @@ -MANDIR ?= $(PREFIX)/share/man/man1 -LIBDIR ?= $(PREFIX)/lib/sendip +#PREFIX ?= /usr/local -+BINDIR=${PREFIX}/bin -+MANDIR=${PREFIX}/man/man1 -+LIBDIR=${PREFIX}/lib/sendip ++BINDIR=${DESTDIR}${PREFIX}/bin ++MANDIR=${DESTDIR}${PREFIX}/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 \ +-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 -Wno-empty-body -Wno-constant-conversion \ ++ -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= -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 Modified: head/net-mgmt/sendip/pkg-plist ============================================================================== --- head/net-mgmt/sendip/pkg-plist Mon Jun 9 10:39:40 2014 (r357133) +++ head/net-mgmt/sendip/pkg-plist Mon Jun 9 10:46:32 2014 (r357134) @@ -1,11 +1,12 @@ bin/sendip +lib/sendip/bgp.so +lib/sendip/icmp.so lib/sendip/ipv4.so lib/sendip/ipv6.so -lib/sendip/icmp.so -lib/sendip/tcp.so -lib/sendip/udp.so +lib/sendip/ntp.so lib/sendip/rip.so lib/sendip/ripng.so -lib/sendip/bgp.so -lib/sendip/ntp.so -@dirrm lib/sendip +lib/sendip/tcp.so +lib/sendip/udp.so +man/man1/sendip.1.gz +@dirrmtry lib/sendip
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406091046.s59AkW2p037591>