dca4ca3df8
* replace hard coded user and mode for hping-suid option with SPECIAL_PERMS. * replace remaining of hard coded "man" with ${PKGMANDIR}. * add DESTDIR support. * merge patch-a{e,g}, both for same file. * patch to replace __sun__ with __sun for portability, pkglint(1) said. * also regen other patches with mkpatches(1).
34 lines
987 B
Makefile
34 lines
987 B
Makefile
# $NetBSD: Makefile,v 1.10 2009/02/11 08:06:17 obache Exp $
|
|
#
|
|
|
|
DISTNAME= hping2.0.0-rc3
|
|
PKGNAME= hping-2.0.0.3
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.hping.org/
|
|
|
|
MAINTAINER= atatat@NetBSD.org
|
|
HOMEPAGE= http://www.hping.org/
|
|
COMMENT= Command-line oriented TCP/IP packet assembler/analyzer
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/hping2-rc3
|
|
HAS_CONFIGURE= YES
|
|
MANPATH= ${PREFIX}/${PKGMANDIR}
|
|
CONFIGURE_ENV+= MANPATH=${MANPATH:Q}
|
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
|
|
|
|
CONFIGURE_ENV+= PCAPINCDIR=${BUILDLINK_PREFIX.libpcap}/include
|
|
CONFIGURE_ENV+= PCAPLIBDIR=${BUILDLINK_PREFIX.libpcap}/lib
|
|
|
|
.include "options.mk"
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${DESTDIR}${PREFIX}/sbin
|
|
${LN} -s hping2 ${DESTDIR}${PREFIX}/sbin/hping
|
|
${INSTALL_MAN} ${WRKSRC}/docs/hping2.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
${LN} -s hping2.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/hping.8
|
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|