eb3c2b436e
pkglint -Wall -F --only aligned --only indent -r No manual corrections.
36 lines
1 KiB
Makefile
36 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.16 2019/11/03 11:45:37 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= hping2.0.0-rc3
|
|
PKGNAME= hping-2.0.0.3
|
|
PKGREVISION= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.hping.org/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.hping.org/
|
|
COMMENT= Command-line oriented TCP/IP packet assembler/analyzer
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
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
|
|
|
|
CFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int16_t=uint16_t -Du_int32_t=uint32_t
|
|
|
|
.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"
|