Skip to content

Commit

Permalink
DESTDIR support
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonn committed Jan 27, 2010
1 parent d5e4c98 commit ea179b3
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 29 deletions.
16 changes: 8 additions & 8 deletions security/chkrootkit/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2008/06/02 12:23:04 obache Exp $
# $NetBSD: Makefile,v 1.15 2010/01/27 22:14:55 joerg Exp $
#

DISTNAME= chkrootkit-0.47
Expand All @@ -11,6 +11,7 @@ HOMEPAGE= http://www.chkrootkit.org/
COMMENT= Locally checks for signs of a rootkit

PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir

USE_TOOLS+= gmake
NO_CONFIGURE= yes
Expand Down Expand Up @@ -49,14 +50,13 @@ MAKE_ENV+= STATIC="-static"
MAKE_ENV+= STATIC="-static"
.endif

INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= bin share/doc/chkrootkit

do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGRAMS} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/chkrootkit ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/chkrootkit
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.chklastlog ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.chkwtmp ${DOCDIR}
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGRAMS} ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/chkrootkit ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.chklastlog ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.chkwtmp ${DESTDIR}${DOCDIR}

.include "../../mk/bsd.pkg.mk"
8 changes: 5 additions & 3 deletions security/ddos-scan/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2007/06/30 18:49:38 joerg Exp $
# $NetBSD: Makefile,v 1.13 2010/01/27 22:13:41 joerg Exp $
#

DISTNAME= ddos_scan
Expand All @@ -11,14 +11,16 @@ MAINTAINER= [email protected]
HOMEPAGE= http://staff.washington.edu/dittrich/
COMMENT= Scan for a limited set of distributed denial of service (ddos) agents

PKG_DESTDIR_SUPPORT= user-destdir

BUILD_TARGET= default dds

INSTALLATION_DIRS= sbin share/doc

BUILD_ENV+= OPSYS=${OSYS:Q}

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dds ${PREFIX}/sbin/dds
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dds
${INSTALL_PROGRAM} ${WRKSRC}/dds ${DESTDIR}${PREFIX}/sbin/dds
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/dds

.include "../../mk/bsd.pkg.mk"
9 changes: 7 additions & 2 deletions security/dsniff-nox11/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# $NetBSD: Makefile,v 1.5 2008/10/01 08:43:09 apb Exp $
# $NetBSD: Makefile,v 1.6 2010/01/27 22:12:22 joerg Exp $

PKG_DESTDIR_SUPPORT= user-destdir

.include "../../security/dsniff/Makefile.common"

Expand All @@ -8,12 +10,15 @@ COMMENT= Password sniffer

CONFIGURE_ARGS+= --without-x

INSTALLATION_DIRS+= ${PKGMANDIR}/man8
INSTALL_MAKE_FLAGS+= install_prefix=${DESTDIR}

post-configure:
( cd ${WRKSRC} \
&& grep '#define.*HAVE_SYS_QUEUE_H' config.h >/dev/null \
&& mv missing/sys/queue.h missing/sys/queue.h.fake )

post-install:
${RM} ${PREFIX}/${PKGMANDIR}/man8/webspy.8
${RM} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/webspy.8

.include "../../mk/bsd.pkg.mk"
8 changes: 5 additions & 3 deletions security/dsniff/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# $NetBSD: Makefile,v 1.31 2009/05/09 16:33:04 adrianp Exp $
# $NetBSD: Makefile,v 1.32 2010/01/27 22:10:07 joerg Exp $

PKG_DESTDIR_SUPPORT= user-destdir

.include "Makefile.common"

Expand All @@ -12,8 +14,8 @@ BUILD_TARGET= libmissing.a webspy
INSTALLATION_DIRS+= sbin ${PKGMANDIR}/man8

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/webspy ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/webspy.8 ${PREFIX}/${PKGMANDIR}/man8
${INSTALL_PROGRAM} ${WRKSRC}/webspy ${DESTDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/webspy.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8

BUILDLINK_DEPMETHOD.libXt?= build

Expand Down
6 changes: 5 additions & 1 deletion security/fwbuilder/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2010/01/18 09:59:24 wiz Exp $
# $NetBSD: Makefile,v 1.19 2010/01/27 22:13:13 joerg Exp $

DISTNAME= fwbuilder-2.0.12
PKGREVISION= 2
Expand All @@ -9,6 +9,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.fwbuilder.org/
COMMENT= Firewall Builder GUI

PKG_DESTDIR_SUPPORT= user-destdir

CONFLICTS= fwbuilder21-[0-9]*

USE_LIBTOOL= yes
Expand All @@ -21,6 +23,8 @@ QMAKE= ${QTDIR}/bin/qmake
CONFIGURE_ENV+= QMAKE=${QMAKE:Q}
MAKE_ENV+= QMAKE=${QMAKE:Q}

INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR}

.include "../../security/libfwbuilder/buildlink3.mk"
.include "../../x11/qt3-tools/buildlink3.mk"

Expand Down
6 changes: 5 additions & 1 deletion security/fwbuilder21/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2010/01/18 09:59:24 wiz Exp $
# $NetBSD: Makefile,v 1.10 2010/01/27 22:13:02 joerg Exp $

DISTNAME= fwbuilder-2.1.19
PKGNAME= fwbuilder21-2.1.19
Expand All @@ -10,6 +10,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.fwbuilder.org/
COMMENT= Firewall Builder GUI

PKG_DESTDIR_SUPPORT= user-destdir

CONFLICTS= fwbuilder-[0-9]*

USE_TOOLS+= gmake
Expand All @@ -21,6 +23,8 @@ CONFIGURE_ENV+= QMAKE=${QMAKE:Q}
MAKE_ENV+= QMAKE=${QMAKE:Q}
QMAKE= ${QTDIR}/bin/qmake

INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR}

.include "../../security/libfwbuilder21/buildlink3.mk"
.include "../../x11/qt3-tools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
8 changes: 5 additions & 3 deletions security/honeyd-arpd/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.22 2009/08/16 15:35:44 wiz Exp $
# $NetBSD: Makefile,v 1.23 2010/01/27 22:06:18 joerg Exp $
#

DISTNAME= arpd-0.2
Expand All @@ -11,6 +11,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://niels.xtdnet.nl/honeyd/
COMMENT= ARP daemon for honeyd

PKG_DESTDIR_SUPPORT= user-destdir

RCD_SCRIPTS= honeydarpd
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/arpd
Expand All @@ -20,8 +22,8 @@ CONFIGURE_ARGS+= --with-libevent=${BUILDLINK_PREFIX.libevent}
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arpd ${PREFIX}/sbin/honeyd-arpd
${INSTALL_MAN} ${WRKSRC}/arpd.8 ${PREFIX}/${PKGMANDIR}/man8/honeyd-arpd.8
${INSTALL_PROGRAM} ${WRKSRC}/arpd ${DESTDIR}${PREFIX}/sbin/honeyd-arpd
${INSTALL_MAN} ${WRKSRC}/arpd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/honeyd-arpd.8

.include "../../devel/libevent/buildlink3.mk"
.include "../../net/libdnet/buildlink3.mk"
Expand Down
10 changes: 5 additions & 5 deletions security/honeyd/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.27 2009/08/16 15:35:44 wiz Exp $
# $NetBSD: Makefile,v 1.28 2010/01/27 22:08:59 joerg Exp $
#

DISTNAME= honeyd-1.5b
Expand All @@ -10,6 +10,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.honeyd.org/
COMMENT= Small daemon that creates virtual hosts on a network

PKG_DESTDIR_SUPPORT= user-destdir

DEPENDS+= honeyd-arpd>=0.2:../../security/honeyd-arpd

GNU_CONFIGURE= YES
Expand Down Expand Up @@ -40,11 +42,9 @@ CONF_FILES+= ${EGDIR:Q}/${f:Q} ${PKG_SYSCONFDIR:Q}/${f:Q}
.include "../../net/libpcap/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"

pre-install:
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/examples/honeyd
INSTALLATION_DIRS+= share/examples/honeyd ${DOCDIR}

post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC:Q}/README ${DOCDIR:Q}
${INSTALL_DATA} ${WRKSRC:Q}/README ${DESTDIR}${DOCDIR}

.include "../../mk/bsd.pkg.mk"
9 changes: 6 additions & 3 deletions security/ike-scan/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2010/01/17 12:02:40 wiz Exp $
# $NetBSD: Makefile,v 1.14 2010/01/27 22:05:28 joerg Exp $

DISTNAME= ike-scan-1.9
PKGREVISION= 2
Expand All @@ -9,6 +9,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.nta-monitor.com/tools/ike-scan/
COMMENT= Fingerprinting IKE implementation

PKG_DESTDIR_SUPPORT= user-destdir

GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-openssl

Expand All @@ -18,9 +20,10 @@ SUBST_FILES.man= ike-scan.1
SUBST_SED.man= -e "s|/usr/local|${PREFIX}|g"
SUBST_MESSAGE.man= Fixing man pages.

INSTALLATION_DIRS+= share/doc/ike-scan

post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ike-scan
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ike-scan/README
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/ike-scan/README

.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

0 comments on commit ea179b3

Please sign in to comment.