30b55df38e
MASTER_SITES= site1 \ site2 style continuation lines to be simple repeated MASTER_SITES+= site1 MASTER_SITES+= site2 lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint accordingly.
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2017/01/19 18:52:21 agc Exp $
|
|
|
|
DISTNAME= traceroute-nanog_6.4.2.orig
|
|
PKGNAME= ${DISTNAME:S/.orig//:S/_/-/}
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://unix.hensa.ac.uk/sites/archive.ubuntu.com/ubuntu/pool/universe/t/traceroute-nanog/
|
|
MASTER_SITES+= http://www.ftp.uni-erlangen.de/pub/pc/TheOpenCD/old-images/ubuntu/pool/universe/t/traceroute-nanog/
|
|
MASTER_SITES+= http://traceroute-nanog.sourcearchive.com/downloads/6.4.2-1/
|
|
|
|
# for the man page:
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
PATCHFILES= traceroute-nanog_6.4.2-1.diff.gz
|
|
|
|
COMMENT= Traceroute implementation with extend features
|
|
MAINTAINER= schwarz@NetBSD.org
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
|
|
NO_CONFIGURE= YES
|
|
USE_FEATURES+= snprintf
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
CPPFLAGS+= -DBYTESWAP_IP_LEN
|
|
.endif
|
|
|
|
CPPFLAGS.FreeBSD+= -DSTRING
|
|
CPPFLAGS.Linux+= -DSTRING
|
|
CPPFLAGS.SunOS+= -DSOLARIS
|
|
|
|
LIBS.Linux+= -lresolv
|
|
LIBS.SunOS+= -lresolv -lsocket -lnsl
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
CPPFLAGS+= -DBIND_8_COMPAT -DRA_SERVICE=\"nicname\"
|
|
. if !empty(OS_VERSION:M10.*) # MacOS X 10.6.X aka Snow Leopard
|
|
LIBS+= -lresolv
|
|
. endif
|
|
.endif
|
|
|
|
.if !empty(LOWER_OPSYS:Mirix5*)
|
|
CPPFLAGS+= -Dsocklen_t=int
|
|
.endif
|
|
|
|
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CC} ${CPPFLAGS} ${CFLAGS} traceroute.c -o traceroute-nanog ${LDFLAGS} -lm ${LIBS}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/traceroute-nanog ${DESTDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/${PKGNAME}/debian/traceroute-nanog.genuine.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/traceroute-nanog.8
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|