2013-01-11 01:04:22 +01:00
|
|
|
# $NetBSD: Makefile,v 1.6 2013/01/11 00:04:22 joerg Exp $
|
2010-03-14 19:19:22 +01:00
|
|
|
|
2012-05-06 00:44:19 +02:00
|
|
|
DISTNAME= traceroute-nanog_6.4.2.orig
|
|
|
|
PKGNAME= ${DISTNAME:S/.orig//:S/_/-/}
|
2010-03-14 19:19:22 +01:00
|
|
|
CATEGORIES= net
|
2012-05-06 00:44:19 +02:00
|
|
|
MASTER_SITES= ftp://unix.hensa.ac.uk/sites/archive.ubuntu.com/ubuntu/pool/universe/t/traceroute-nanog/ \
|
|
|
|
http://www.ftp.uni-erlangen.de/pub/pc/TheOpenCD/old-images/ubuntu/pool/universe/t/traceroute-nanog/ \
|
|
|
|
http://traceroute-nanog.sourcearchive.com/downloads/6.4.2-1/
|
2010-03-14 19:19:22 +01:00
|
|
|
|
|
|
|
# for the man page:
|
2012-05-06 00:44:19 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
2011-01-22 15:48:00 +01:00
|
|
|
PATCHFILES= traceroute-nanog_6.4.2-1.diff.gz
|
2010-03-14 19:19:22 +01:00
|
|
|
|
|
|
|
COMMENT= Traceroute implementation with extend features
|
|
|
|
MAINTAINER= schwarz@NetBSD.org
|
|
|
|
|
2012-05-06 00:44:19 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
|
2010-03-14 19:19:22 +01:00
|
|
|
NO_CONFIGURE= YES
|
|
|
|
USE_FEATURES+= snprintf
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
.if ${OS_VERSION} >= 5.0
|
|
|
|
.if ${OS_VERSION} != 5.4
|
|
|
|
CPPFLAGS+= -DSOLARIS
|
2010-03-20 01:04:21 +01:00
|
|
|
LIBS+= -lresolv -lsocket -lnsl
|
2010-03-14 19:19:22 +01:00
|
|
|
.endif
|
|
|
|
.if ${LOWER_ARCH} == "i386"
|
|
|
|
CPPFLAGS+= -DBYTESWAP_IP_LEN
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.elif ${OPSYS} == "Linux"
|
2010-03-20 01:04:21 +01:00
|
|
|
LIBS+= -lresolv
|
2010-03-14 19:19:22 +01:00
|
|
|
CPPFLAGS+= -DSTRING
|
|
|
|
.elif ${OPSYS} == "FreeBSD"
|
|
|
|
CPPFLAGS+= -DSTRING
|
|
|
|
.elif ${OPSYS} == "Darwin"
|
|
|
|
CPPFLAGS+= -DBIND_8_COMPAT -DRA_SERVICE=\"nicname\"
|
2010-03-20 01:04:21 +01:00
|
|
|
.if !empty(OS_VERSION:M10.*) # MacOS X 10.6.X aka Snow Leopard
|
|
|
|
LIBS+= -lresolv
|
|
|
|
.endif
|
2010-03-14 19:19:22 +01:00
|
|
|
.elif !empty(LOWER_OPSYS:Mirix5*)
|
|
|
|
CPPFLAGS+= -Dsocklen_t=int
|
|
|
|
.endif
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8
|
|
|
|
|
|
|
|
do-build:
|
2010-03-20 01:04:21 +01:00
|
|
|
cd ${WRKSRC} && ${CC} ${CPPFLAGS} ${CFLAGS} traceroute.c -o traceroute-nanog ${LDFLAGS} -lm ${LIBS}
|
2010-03-14 19:19:22 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/traceroute-nanog ${DESTDIR}${PREFIX}/sbin
|
2012-05-06 00:44:19 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PKGNAME}/debian/traceroute-nanog.genuine.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/traceroute-nanog.8
|
2010-03-14 19:19:22 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|