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 59abfdb commit afb7c31
Show file tree
Hide file tree
Showing 21 changed files with 128 additions and 91 deletions.
20 changes: 11 additions & 9 deletions net/tnftpd/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2008/10/09 04:14:28 lukem Exp $
# $NetBSD: Makefile,v 1.19 2010/01/27 17:30:14 joerg Exp $
#

DISTNAME= tnftpd-20081009
Expand All @@ -8,6 +8,8 @@ MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/tnftp/
MAINTAINER= [email protected]
COMMENT= The NetBSD FTP Daemon

PKG_DESTDIR_SUPPORT= user-destdir

CONFLICTS= wu-ftpd-[0-9]*
CONFLICTS+= kth-krb4-[0-9]*
CONFLICTS+= lukemftpd-[0-9]*
Expand All @@ -27,15 +29,15 @@ OPSYSVARS+= MAKE_ENV
MAKE_ENV.SunOS+= CPPFLAGS=""

EXAMPLEDIR= ${PREFIX}/share/examples/tnftpd
INSTALLATION_DIRS= libexec ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
INSTALLATION_DIRS= libexec ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 \
${EXAMPLEDIR}

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/tnftpd ${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/src/ftpd.conf.man ${PREFIX}/${PKGMANDIR}/man5/ftpd.conf.5
${INSTALL_MAN} ${WRKSRC}/src/ftpusers.man ${PREFIX}/${PKGMANDIR}/man5/ftpusers.5
${INSTALL_MAN} ${WRKSRC}/src/tnftpd.man ${PREFIX}/${PKGMANDIR}/man8/tnftpd.8
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/examples/ftpd.conf ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/examples/ftpusers ${EXAMPLEDIR}
${INSTALL_PROGRAM} ${WRKSRC}/src/tnftpd ${DESTDIR}${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/src/ftpd.conf.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/ftpd.conf.5
${INSTALL_MAN} ${WRKSRC}/src/ftpusers.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/ftpusers.5
${INSTALL_MAN} ${WRKSRC}/src/tnftpd.man ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/tnftpd.8
${INSTALL_DATA} ${WRKSRC}/examples/ftpd.conf ${DESTDIR}${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/examples/ftpusers ${DESTDIR}${EXAMPLEDIR}

.include "../../mk/bsd.pkg.mk"
6 changes: 5 additions & 1 deletion net/torrentutils/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2007/06/22 17:46:19 tron Exp $
# $NetBSD: Makefile,v 1.15 2010/01/27 17:31:58 joerg Exp $

DISTNAME= torrentutils-0.3.0
PKGREVISION= 4
Expand All @@ -9,6 +9,8 @@ MAINTAINER= [email protected]
# HOMEPAGE= http://oskarsapps.mine.nu/torrentutils.html
COMMENT= Manage BitTorrent files and interact with trackers

PKG_DESTDIR_SUPPORT= user-destdir

DEPENDS+= p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5

Expand All @@ -17,4 +19,6 @@ REPLACE_BASH+= defrag.in
REPLACE_PERL= torrenttool.in
MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}

INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1

.include "../../mk/bsd.pkg.mk"
4 changes: 2 additions & 2 deletions net/torrentutils/distinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.4 2006/12/01 20:30:17 rillig Exp $
$NetBSD: distinfo,v 1.5 2010/01/27 17:31:58 joerg Exp $

SHA1 (torrentutils-0.3.0.tar.gz) = d9487551e5de128c31abe7fc404ec3a51d6a83a0
RMD160 (torrentutils-0.3.0.tar.gz) = bc6dde481113a0a37a1a60fd520c6c28debea34e
Size (torrentutils-0.3.0.tar.gz) = 21697 bytes
SHA1 (patch-aa) = 634e8f4e3a14f239731924a5aa5078f8cd78b8a6
SHA1 (patch-aa) = 830df7e0879310b5aaf419ed65fb951e4ce3dff4
SHA1 (patch-ab) = 543d424cb131cdcbe17fb5091c3b7e826294de3c
10 changes: 5 additions & 5 deletions net/torrentutils/patches/patch-aa
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: patch-aa,v 1.2 2004/08/29 19:46:45 wiz Exp $
$NetBSD: patch-aa,v 1.3 2010/01/27 17:31:58 joerg Exp $

--- Makefile.orig 2003-10-12 14:13:16.000000000 +0200
+++ Makefile
Expand Down Expand Up @@ -35,10 +35,10 @@ $NetBSD: patch-aa,v 1.2 2004/08/29 19:46:45 wiz Exp $
- else \
- echo "$(MCEXTFSDIR) does not exist. Not installing MC extfs support."; \
- fi
+ ${BSD_INSTALL_SCRIPT} torrenttool $(BINDIR)/torrenttool
+ ${BSD_INSTALL_SCRIPT} defrag $(BINDIR)
+ ${BSD_INSTALL_MAN} torrenttool.1 $(MANDIR)/man1
+ ${BSD_INSTALL_MAN} defrag.1 $(MANDIR)/man1
+ ${BSD_INSTALL_SCRIPT} torrenttool ${DESTDIR}$(BINDIR)/torrenttool
+ ${BSD_INSTALL_SCRIPT} defrag ${DESTDIR}$(BINDIR)
+ ${BSD_INSTALL_MAN} torrenttool.1 ${DESTDIR}$(MANDIR)/man1
+ ${BSD_INSTALL_MAN} defrag.1 ${DESTDIR}$(MANDIR)/man1

clean:
rm -f torrenttool torrentmcfs defrag torrentutils.spec
11 changes: 6 additions & 5 deletions net/totd/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.28 2008/02/28 11:58:48 rillig Exp $
# $NetBSD: Makefile,v 1.29 2010/01/27 17:32:12 joerg Exp $
#

DISTNAME= totd-1.5.1
Expand All @@ -16,14 +16,15 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.totd
PKG_OPTIONS_REQUIRED_GROUPS= inet6 # require inet6 capability
PKG_OPTIONS_GROUP.inet6= inet6

AUTO_MKDIRS= yes
BUILDLINK_TRANSFORM+= rm:-Werror

INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 share/examples/totd

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/totd ${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/totd.8 ${PREFIX}/${PKGMANDIR}/man8/
${INSTALL_PROGRAM} ${WRKSRC}/totd ${DESTDIR}${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/totd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
${INSTALL_DATA} ${FILESDIR}/totd.conf.sample \
${PREFIX}/share/examples/totd/totd.conf.sample
${DESTDIR}${PREFIX}/share/examples/totd/totd.conf.sample

.include "../../mk/bsd.options.mk"
.include "../../mk/bsd.pkg.mk"
8 changes: 4 additions & 4 deletions net/trafshow/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.30 2007/10/18 09:32:43 obache Exp $
# $NetBSD: Makefile,v 1.31 2010/01/27 17:32:54 joerg Exp $

DISTNAME= trafshow-5.2.3
CATEGORIES= net
Expand Down Expand Up @@ -26,10 +26,10 @@ CFLAGS.Darwin+= -DBIND_8_COMPAT
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/trafshow

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/trafshow.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${WRKSRC}/.trafshow \
${PREFIX}/share/examples/trafshow/trafshow
${DESTDIR}${PREFIX}/share/examples/trafshow/trafshow

BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.8.1
.include "../../net/libpcap/buildlink3.mk"
Expand Down
11 changes: 7 additions & 4 deletions print/mgv/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.22 2009/06/30 00:07:22 joerg Exp $
# $NetBSD: Makefile,v 1.23 2010/01/27 17:29:01 joerg Exp $

DISTNAME= mgv-3.1.5
PKGREVISION= 4
Expand All @@ -9,6 +9,8 @@ MAINTAINER= [email protected]
HOMEPAGE= http://web.archive.org/web/20020201231345/http://www.trends.net/~mu/mgv.html
COMMENT= Motif/LessTif user interface for Ghostscript

PKG_DESTDIR_SUPPORT= user-destdir

MAKE_JOBS_SAFE= no

GNU_CONFIGURE= yes
Expand All @@ -18,10 +20,11 @@ USE_TOOLS+= gs:run
CONFIGURE_ARGS+= --with-motif-includes=${MOTIFBASE}/include
CONFIGURE_ARGS+= --with-motif-libs=${MOTIFBASE}/lib

INSTALLATION_DIRS+= share/doc/html

post-install:
${INSTALL_DATA} ${WRKSRC}/doc/*.gif ${PREFIX}/share/mgv/3.1.5/help
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html
${LN} -fs ${PREFIX}/share/mgv/3.1.5/help ${PREFIX}/share/doc/html/mgv
${INSTALL_DATA} ${WRKSRC}/doc/*.gif ${DESTDIR}${PREFIX}/share/mgv/3.1.5/help
${LN} -fs ${DESTDIR}${PREFIX}/share/mgv/3.1.5/help ${DESTDIR}${PREFIX}/share/doc/html/mgv

.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/motif.buildlink3.mk"
Expand Down
8 changes: 5 additions & 3 deletions security/flawfinder/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2009/02/09 22:56:26 joerg Exp $
# $NetBSD: Makefile,v 1.18 2010/01/27 17:21:29 joerg Exp $

DISTNAME= flawfinder-1.27
PKGREVISION= 1
Expand All @@ -9,13 +9,15 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.dwheeler.com/flawfinder/
COMMENT= Python program to find flaws in C/C++ programs

PKG_DESTDIR_SUPPORT= user-destdir

NO_BUILD= yes
PYTHON_PATCH_SCRIPTS= flawfinder
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1

do-install:
${INSTALL_SCRIPT} ${WRKSRC}/flawfinder ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/flawfinder.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_SCRIPT} ${WRKSRC}/flawfinder ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/flawfinder.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
8 changes: 5 additions & 3 deletions security/fragroute/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2009/08/16 15:35:44 wiz Exp $
# $NetBSD: Makefile,v 1.19 2010/01/27 17:24:23 joerg Exp $

DISTNAME= fragroute-1.2
PKGREVISION= 11
Expand All @@ -9,6 +9,7 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.monkey.org/~dugsong/fragroute/
COMMENT= Tool for intercepting, modifying and rewriting egress traffic

PKG_DESTDIR_SUPPORT= user-destdir

GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-libdnet=${BUILDLINK_PREFIX.libdnet}
Expand All @@ -19,10 +20,11 @@ SCRIPTS= README.snort base-1 frag-1 frag-2 frag-3 frag-4 frag-5 \
frag-6 frag-7-unix frag-7-win32 ins-2 ins-3 tcbc-2 tcp-3 tcp-5 \
tcp-7 tcp-9

INSTALLATION_DIRS+= share/fragroute

pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/fragroute
.for FILE in ${SCRIPTS}
${INSTALL_DATA} ${WRKSRC}/scripts/${FILE} ${PREFIX}/share/fragroute
${INSTALL_DATA} ${WRKSRC}/scripts/${FILE} ${DESTDIR}${PREFIX}/share/fragroute
.endfor

.include "../../net/libpcap/buildlink3.mk"
Expand Down
14 changes: 8 additions & 6 deletions security/hackbot/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2007/12/02 12:21:18 wiz Exp $
# $NetBSD: Makefile,v 1.8 2010/01/27 17:17:27 joerg Exp $

DISTNAME= hackbot-2.15
CATEGORIES= security net
Expand All @@ -9,21 +9,23 @@ MAINTAINER= [email protected]
HOMEPAGE= http://ws.obit.nl/hackbot/
COMMENT= Vulnerability scanner written in Perl

PKG_DESTDIR_SUPPORT= user-destdir

WRKSRC= ${WRKDIR}/hackbot
MANCOMPRESSED= YES
USE_TOOLS+= perl:run
REPLACE_PERL= hackbot.pl

INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/hackbot

do-build:
${SED} "s,/usr/local/etc,${PREFIX}/share/hackbot,g" ${WRKSRC}/hackbot.pl > ${WRKSRC}/hackbot.pl.done
${MV} ${WRKSRC}/hackbot.pl.done ${WRKSRC}/hackbot.pl

do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/hackbot
${INSTALL_SCRIPT} ${WRKSRC}/hackbot.pl ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/cgi.db ${WRKSRC}/fingerprint.db ${PREFIX}/share/hackbot
${INSTALL_MAN} ${WRKSRC}/hackbot.1.gz ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_SCRIPT} ${WRKSRC}/hackbot.pl ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/cgi.db ${WRKSRC}/fingerprint.db \
${DESTDIR}${PREFIX}/share/hackbot
${INSTALL_MAN} ${WRKSRC}/hackbot.1.gz ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../mk/bsd.pkg.mk"
7 changes: 4 additions & 3 deletions security/hashcash/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2007/03/19 16:40:28 tv Exp $
# $NetBSD: Makefile,v 1.12 2010/01/27 17:13:24 joerg Exp $
#

DISTNAME= hashcash-1.22
Expand All @@ -10,14 +10,15 @@ MAINTAINER= [email protected]
HOMEPAGE= http://www.hashcash.org/
COMMENT= Hash collision based postage stamp

PKG_DESTDIR_SUPPORT= user-destdir

.include "../../mk/bsd.prefs.mk"

CFLAGS+= -Dunix
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hashcash ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/hashcash.1 ${PREFIX}/${PKGMANDIR}/man1/
${INSTALL_PROGRAM} ${WRKSRC}/hashcash ${DESTDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/hashcash.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/

.include "../../mk/bsd.pkg.mk"
7 changes: 5 additions & 2 deletions security/keepassx/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2010/01/18 09:59:25 wiz Exp $
# $NetBSD: Makefile,v 1.5 2010/01/27 17:28:34 joerg Exp $
#

DISTNAME= KeePassX-0.2.2
Expand All @@ -11,13 +11,16 @@ MAINTAINER= [email protected]
HOMEPAGE= http://keepassx.sourceforge.net/
COMMENT= Password manager or safe

PKG_DESTDIR_SUPPORT= user-destdir

WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES= c c++
USE_LIBTOOL= YES

QMAKE= ${QTDIR}/bin/qmake
CONFIGURE_ARGS+= QMAKE=${QMAKE:Q} PREFIX=${PREFIX:Q}
MAKE_ENV+= QTDIR=${QTDIR} PREFIX=${PREFIX}
INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR}

BUILDLINK_DEPMETHOD.qt3-tools= build

Expand All @@ -29,7 +32,7 @@ pre-install:
${CP} ${WRKSRC}/bin/keepass ${WRKSRC}/src

post-install:
${CHMOD} ${SHAREMODE} ${PREFIX}/share/keepass/icons/*.png
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/share/keepass/icons/*.png

.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../x11/qt4-tools/buildlink3.mk"
Expand Down
12 changes: 7 additions & 5 deletions security/libidea/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2009/05/19 08:59:31 wiz Exp $
# $NetBSD: Makefile,v 1.17 2010/01/27 17:12:39 joerg Exp $
#

DISTNAME= libidea-0.8.2b
Expand All @@ -10,6 +10,8 @@ HOMEPAGE= http://www.media-crypt.com/pages/fidea.html
COMMENT= IDEA block cipher library
LICENSE= idea-license

PKG_DESTDIR_SUPPORT= user-destdir

RESTRICTED= IDEA is a patented algorithm that requires proper licensing
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}
Expand All @@ -24,9 +26,9 @@ CRYPTO= YES
INSTALLATION_DIRS= bin include lib

do-install:
cd ${WRKSRC} && \
${INSTALL_DATA} libidea.a ${PREFIX}/lib && \
${INSTALL_DATA} idea.h ${PREFIX}/include && \
${INSTALL_PROGRAM} ideatest idea_spd ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/libidea.a ${DESTDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/idea.h ${DESTDIR}${PREFIX}/include
${INSTALL_PROGRAM} ${WRKSRC}/ideatest ${WRKSRC}/idea_spd \
${DESTDIR}${PREFIX}/bin

.include "../../mk/bsd.pkg.mk"
13 changes: 7 additions & 6 deletions security/libtcpa/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2010/01/17 12:02:41 wiz Exp $
# $NetBSD: Makefile,v 1.11 2010/01/27 17:11:31 joerg Exp $
#

DISTNAME= tpm-1.1b
Expand All @@ -13,6 +13,7 @@ HOMEPAGE= http://www.research.ibm.com/gsal/tcpa/
COMMENT= TCPA libraries and test programs from IBM

PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir

WRKSRC= ${WRKDIR}/TPM

Expand All @@ -22,16 +23,16 @@ BUILD_DIRS= libtcpa examples
INSTALLATION_DIRS= bin lib ${PKGMANDIR}/man3 share/doc/${PKGBASE}

do-install:
${INSTALL_DATA} ${WRKSRC}/libtcpa/libtcpa.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libtcpa/libtcpa.a ${DESTDIR}${PREFIX}/lib
for f in tcpa_demo takeown createkey loadkey evictkey signfile \
verifyfile sealfile unsealfile; do \
${INSTALL_PROGRAM} ${WRKSRC}/examples/$${f} ${PREFIX}/bin; \
${INSTALL_PROGRAM} ${WRKSRC}/examples/$${f} ${DESTDIR}${PREFIX}/bin; \
done
for f in ${WRKDIR}/tcpa_man/*.3; do \
${INSTALL_MAN} $${f} ${PREFIX}/${PKGMANDIR}/man3; \
${INSTALL_MAN} $${f} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3; \
done
${INSTALL_DATA} ${WRKSRC}/libtcpa/License ${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/libtcpa/License ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}

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

0 comments on commit afb7c31

Please sign in to comment.