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 b85309c commit f1207bb
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 22 deletions.
4 changes: 3 additions & 1 deletion security/mcrypt/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2008/12/15 20:59:28 smb Exp $
# $NetBSD: Makefile,v 1.22 2010/01/27 21:38:37 joerg Exp $

DISTNAME= mcrypt-2.6.8
CATEGORIES= security devel
Expand All @@ -8,6 +8,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://mcrypt.sourceforge.net/
COMMENT= Replacement to crypt(1), supports many crypto algorithms

PKG_DESTDIR_SUPPORT= user-destdir

USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
Expand Down
8 changes: 5 additions & 3 deletions security/nfsbug/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2007/02/22 19:27:08 wiz Exp $
# $NetBSD: Makefile,v 1.19 2010/01/27 21:37:03 joerg Exp $

DISTNAME= nfsshell-1.0
PKGREVISION= 1
Expand All @@ -10,6 +10,8 @@ DISTFILES= nfsBugFerret.tgz \
MAINTAINER= [email protected]
COMMENT= NFS security verification suite

PKG_DESTDIR_SUPPORT= user-destdir

EXTRACT_ONLY= nfsBugFerret.tgz
WRKSRC= ${WRKDIR}/nfsbug

Expand All @@ -20,7 +22,7 @@ post-extract:
${CP} ${DISTDIR}/nfsShell.c ${WRKSRC}/nfsshell.c

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nfsbug ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/nfsshell ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/nfsbug ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/nfsshell ${DESTDIR}${PREFIX}/bin

.include "../../mk/bsd.pkg.mk"
18 changes: 10 additions & 8 deletions security/p0f/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.24 2009/07/17 18:00:23 adrianp Exp $
# $NetBSD: Makefile,v 1.25 2010/01/27 21:35:44 joerg Exp $
#

DISTNAME= p0f-2.0.8
Expand All @@ -10,6 +10,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://lcamtuf.coredump.cx/p0f.shtml
COMMENT= Passive OS fingerprinting tool

PKG_DESTDIR_SUPPORT= user-destdir

WRKSRC= ${WRKDIR}/p0f

PKG_SYSCONFSUBDIR= p0f
Expand All @@ -30,13 +32,13 @@ post-patch:
${LN} -s NetBSD ${WRKSRC}/mk/DragonFly

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/p0f ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/p0f/p0f.README
${INSTALL_DATA} ${WRKSRC}/p0frep ${PREFIX}/share/doc/p0f/p0frep
${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/share/examples/p0f
${INSTALL_DATA} ${WRKSRC}/p0fa.fp ${PREFIX}/share/examples/p0f
${INSTALL_DATA} ${WRKSRC}/p0fr.fp ${PREFIX}/share/examples/p0f
${INSTALL_MAN} ${WRKSRC}/p0f.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_PROGRAM} ${WRKSRC}/p0f ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/README ${DESTDIR}${PREFIX}/share/doc/p0f/p0f.README
${INSTALL_DATA} ${WRKSRC}/p0frep ${DESTDIR}${PREFIX}/share/doc/p0f/p0frep
${INSTALL_DATA} ${WRKSRC}/p0f.fp ${DESTDIR}${PREFIX}/share/examples/p0f
${INSTALL_DATA} ${WRKSRC}/p0fa.fp ${DESTDIR}${PREFIX}/share/examples/p0f
${INSTALL_DATA} ${WRKSRC}/p0fr.fp ${DESTDIR}${PREFIX}/share/examples/p0f
${INSTALL_MAN} ${WRKSRC}/p0f.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
9 changes: 6 additions & 3 deletions security/rc5des/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2008/05/26 02:13:23 joerg Exp $
# $NetBSD: Makefile,v 1.20 2010/01/27 21:32:58 joerg Exp $
#

DISTNAME= rc5-mlg-004
Expand All @@ -11,6 +11,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.distributed.net/rc5/
COMMENT= Binaries for taking part in the rc5des challenge

PKG_DESTDIR_SUPPORT= user-destdir

EMUL_PLATFORMS= netbsd-alpha netbsd-arm netbsd-i386
EMUL_MODULES.netbsd= base

Expand Down Expand Up @@ -42,8 +44,9 @@ do-build:
#do-build:
# cd ${WRKSRC}; ${RM} -f master.ini.orig master.ini.in rc5.sh.orig

INSTALLATION_DIRS+= RC5

do-install:
${INSTALL_DATA_DIR} ${PREFIX}/RC5
cd ${WRKSRC} && pax -rw . ${PREFIX}/RC5
cd ${WRKSRC} && pax -rw . ${DESTDIR}${PREFIX}/RC5

.include "../../mk/bsd.pkg.mk"
14 changes: 7 additions & 7 deletions security/rid/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2009/06/30 00:07:22 joerg Exp $
# $NetBSD: Makefile,v 1.13 2010/01/27 21:34:09 joerg Exp $
#

DISTNAME= rid-1.11
Expand All @@ -11,27 +11,27 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.theorygroup.com/Software/RID/
COMMENT= Remote Intrusion Detection to track down compromised hosts

PKG_DESTDIR_SUPPORT= user-destdir

MAKE_JOBS_SAFE= no

GNU_CONFIGURE= YES

CONF_FILES= ${PREFIX}/share/examples/rid/rid.conf ${PKG_SYSCONFDIR}/rid.conf

INSTALLATION_DIRS= sbin
INSTALLATION_DIRS= sbin share/doc/rid share/examples/rid

post-configure:
@echo "#undef DEFAULT_YYIN" >> ${WRKSRC}/netconfig.h
@echo "#define DEFAULT_YYIN \"${PKG_SYSCONFDIR}/rid.conf\"" >> \
${WRKSRC}/netconfig.h

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rid ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rid
${INSTALL_PROGRAM} ${WRKSRC}/rid ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/BUGS ${WRKSRC}/CHANGES \
${WRKSRC}/COPYRIGHT ${WRKSRC}/CREDITS ${WRKSRC}/README \
${PREFIX}/share/doc/rid
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rid
${INSTALL_DATA} ${WRKSRC}/rid.conf ${PREFIX}/share/examples/rid
${DESTDIR}${PREFIX}/share/doc/rid
${INSTALL_DATA} ${WRKSRC}/rid.conf ${DESTDIR}${PREFIX}/share/examples/rid

.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

0 comments on commit f1207bb

Please sign in to comment.