* set LICENSE=2-clause-bsd

* remove addition CFLAGS=-I${LOCALBASE}/include to CONFIGURE_ENV.
  ${LOCALBASE} should not used in package's Makefile,
  and should not reset CFLAGS here, moreover, default CFLAGS is sufficient.
* add user-destdir support.
This commit is contained in:
obache 2009-12-09 09:02:08 +00:00
parent dda4da2a93
commit da9e9ead52

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2007/02/22 19:26:52 wiz Exp $
# $NetBSD: Makefile,v 1.20 2009/12/09 09:02:08 obache Exp $
DISTNAME= firewalk-5.0
PKGREVISION= 2
@ -9,18 +9,20 @@ EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.packetfactory.net/Projects/firewalk/
COMMENT= Determines the filter rules on a packet forwarding device
LICENSE= 2-clause-bsd
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/Firewalk
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include
MAKE_ENV+= FIREWALK_LOC=${PREFIX:Q}
INSTALLATION_DIRS+= ${PKGMANDIR}/man8
.include "../../devel/libnet11/buildlink3.mk"
.include "../../net/libdnet/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
post-install:
${INSTALL_MAN} ${WRKSRC}/man/firewalk.8 ${PREFIX}/${PKGMANDIR}/man8
${INSTALL_MAN} ${WRKSRC}/man/firewalk.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
.include "../../mk/bsd.pkg.mk"