aboutsummaryrefslogtreecommitdiffstats
path: root/net/ndisc6
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2013-10-23 04:57:18 +0800
committertijl <tijl@FreeBSD.org>2013-10-23 04:57:18 +0800
commit25cd1faa16cc5336c9f354a74129def4380fb18c (patch)
treed823b218ca15ae63461b9f527990eaaa4aabeab4 /net/ndisc6
parent576780aa5abf220c97b434bfd6cdff592a0965f5 (diff)
downloadfreebsd-ports-gnome-25cd1faa16cc5336c9f354a74129def4380fb18c.tar.gz
freebsd-ports-gnome-25cd1faa16cc5336c9f354a74129def4380fb18c.tar.zst
freebsd-ports-gnome-25cd1faa16cc5336c9f354a74129def4380fb18c.zip
- Fix FreeBSD 10 build. It uses an extension that clang does not support.
- Support staging. PR: ports/182752 Submitted by: Mikhail Tsatsenko <m.tsatsenko@gmail.com> (maintainer)
Diffstat (limited to 'net/ndisc6')
-rw-r--r--net/ndisc6/Makefile23
-rw-r--r--net/ndisc6/pkg-plist15
2 files changed, 26 insertions, 12 deletions
diff --git a/net/ndisc6/Makefile b/net/ndisc6/Makefile
index 4bf424e57ca7..17aa5abbe27c 100644
--- a/net/ndisc6/Makefile
+++ b/net/ndisc6/Makefile
@@ -14,10 +14,15 @@ COMMENT= IPv6 network diagnostic tools
LICENSE= GPLv2
USE_BZIP2= yes
+USE_GCC= any
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-suid-install
-NO_STAGE= yes
+LDFLAGS+= -L${LOCALBASE}/lib
+CFLAGS+= -I${LOCALBASE}/include
+
+OPTIONS_DEFINE= DOCS NLS
+
.include <bsd.port.options.mk>
.if ${OSVERSION} >= 803000
@@ -26,27 +31,21 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-rdnssd-rdnssd.h
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
+LDFLAGS+= -lintl
+PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
-MAN1= addr2name.1 dnssort.1 tcpspray.1
-MAN8= ndisc6.8 rdisc6.8 rdnssd.8 rltraceroute6.8
-MLINKS= rltraceroute6.8 tcptraceroute6.8 \
- rltraceroute6.8 tracert6.8 \
- addr2name.1 name2addr.1 \
- tcpspray.1 tcpspray6.1
-
USE_RC_SUBR= rdnssd
PORTDOCS= AUTHORS NEWS README
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
- ${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/net/ndisc6/pkg-plist b/net/ndisc6/pkg-plist
index d3a0647d1c45..7348a8f5e06e 100644
--- a/net/ndisc6/pkg-plist
+++ b/net/ndisc6/pkg-plist
@@ -10,4 +10,19 @@ sbin/rdnssd
sbin/tcptraceroute6
sbin/rltraceroute6
sbin/tracert6
+%%PORTDOCS%%man/man1/addr2name.1.gz
+%%PORTDOCS%%man/man1/dnssort.1.gz
+%%PORTDOCS%%man/man1/name2addr.1.gz
+%%PORTDOCS%%man/man1/tcpspray.1.gz
+%%PORTDOCS%%man/man1/tcpspray6.1.gz
+%%PORTDOCS%%man/man8/ndisc6.8.gz
+%%PORTDOCS%%man/man8/rdisc6.8.gz
+%%PORTDOCS%%man/man8/rdnssd.8.gz
+%%PORTDOCS%%man/man8/rltraceroute6.8.gz
+%%PORTDOCS%%man/man8/tcptraceroute6.8.gz
+%%PORTDOCS%%man/man8/tracert6.8.gz
+%%NLS%%share/locale/cs/LC_MESSAGES/ndisc6.mo
+%%NLS%%share/locale/de/LC_MESSAGES/ndisc6.mo
+%%NLS%%share/locale/en/LC_MESSAGES/ndisc6.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/ndisc6.mo
@dirrm etc/rdnssd