40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.54 2009/03/22 16:21:44 smb Exp $
|
|
|
|
DISTNAME= mtr-0.75
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/
|
|
PKGREVISION= 1
|
|
|
|
MAINTAINER= sommerfeld@NetBSD.org
|
|
HOMEPAGE= http://www.bitwizard.nl/mtr/
|
|
COMMENT= Traceroute and ping in a single graphical network diagnostic tool
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_TOOLS+= gmake
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin share/doc/mtr
|
|
|
|
.include "options.mk"
|
|
|
|
# mtr uses libtermcap by default, but needs wattr_{on,off} from (n)curses,
|
|
# so we rewrite -ltermcap to -lncurses (which will be auto-mangled into
|
|
# -lcurses on the appropriate platforms).
|
|
BUILDLINK_TRANSFORM+= l:termcap:ncurses
|
|
|
|
SPECIAL_PERMS= sbin/mtr ${SETUID_ROOT_PERMS}
|
|
|
|
# Remove hard-coded compiler option that GCC 3.x doesn't support.
|
|
.include "../../mk/compiler.mk"
|
|
.if !empty(CC_VERSION:Mgcc-3.*)
|
|
BUILDLINK_TRANSFORM+= rm:-Wno-pointer-sign
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mtr ${DESTDIR}${PREFIX}/sbin
|
|
${INSTALL_DATA} ${WRKSRC}/mtr.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
${INSTALL_DATA} ${WRKSRC}/SECURITY ${DESTDIR}${PREFIX}/share/doc/mtr
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|