Wed Jan 27 21:32:58 2010 UTC ()
DESTDIR support


(joerg)
diff -r1.19 -r1.20 pkgsrc/security/rc5des/Makefile

cvs diff -r1.19 -r1.20 pkgsrc/security/rc5des/Makefile (expand / switch to unified diff)

--- pkgsrc/security/rc5des/Makefile 2008/05/26 02:13:23 1.19
+++ pkgsrc/security/rc5des/Makefile 2010/01/27 21:32:58 1.20
@@ -1,26 +1,28 @@ @@ -1,26 +1,28 @@
1# $NetBSD: Makefile,v 1.19 2008/05/26 02:13:23 joerg Exp $ 1# $NetBSD: Makefile,v 1.20 2010/01/27 21:32:58 joerg Exp $
2# 2#
3 3
4DISTNAME= rc5-mlg-004 4DISTNAME= rc5-mlg-004
5PKGNAME= rc5des-0.4 5PKGNAME= rc5des-0.4
6PKGREVISION= 1 6PKGREVISION= 1
7CATEGORIES= security 7CATEGORIES= security
8MASTER_SITES= http://www.flame.org/netbsd-rc5/ 8MASTER_SITES= http://www.flame.org/netbsd-rc5/
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.distributed.net/rc5/ 11HOMEPAGE= http://www.distributed.net/rc5/
12COMMENT= Binaries for taking part in the rc5des challenge 12COMMENT= Binaries for taking part in the rc5des challenge
13 13
 14PKG_DESTDIR_SUPPORT= user-destdir
 15
14EMUL_PLATFORMS= netbsd-alpha netbsd-arm netbsd-i386 16EMUL_PLATFORMS= netbsd-alpha netbsd-arm netbsd-i386
15EMUL_MODULES.netbsd= base 17EMUL_MODULES.netbsd= base
16 18
17USE_TOOLS+= pax 19USE_TOOLS+= pax
18 20
19.include "../../mk/bsd.prefs.mk" 21.include "../../mk/bsd.prefs.mk"
20 22
21.if ${EMUL_PLATFORM} == "netbsd-i386" 23.if ${EMUL_PLATFORM} == "netbsd-i386"
22EMUL_REQD= netbsd>=1.2 24EMUL_REQD= netbsd>=1.2
23.else 25.else
24EMUL_REQD= netbsd>=1.3 26EMUL_REQD= netbsd>=1.3
25.endif 27.endif
26 28
@@ -32,18 +34,19 @@ WRKSRC= ${WRKDIR}/RC5 @@ -32,18 +34,19 @@ WRKSRC= ${WRKDIR}/RC5
32#post-patch: 34#post-patch:
33# @(hostname=`/bin/hostname`; \ 35# @(hostname=`/bin/hostname`; \
34# fqdn=`/usr/sbin/host $$hostname | ${AWK} '{ print $$1; exit }'`; \ 36# fqdn=`/usr/sbin/host $$hostname | ${AWK} '{ print $$1; exit }'`; \
35# ${MV} ${WRKSRC}/master.ini ${WRKSRC}/master.ini.in; \ 37# ${MV} ${WRKSRC}/master.ini ${WRKSRC}/master.ini.in; \
36# ${SED} -e 's|your\.site|'$$fqdn'|g' ${WRKSRC}/master.ini.in > ${WRKSRC}/master.ini) 38# ${SED} -e 's|your\.site|'$$fqdn'|g' ${WRKSRC}/master.ini.in > ${WRKSRC}/master.ini)
37 39
38do-build: 40do-build:
39 cd ${WRKSRC}; ${RM} -f master.ini.orig rc5.sh.orig 41 cd ${WRKSRC}; ${RM} -f master.ini.orig rc5.sh.orig
40 42
41# agc - commented out until the above is tested. 43# agc - commented out until the above is tested.
42#do-build: 44#do-build:
43# cd ${WRKSRC}; ${RM} -f master.ini.orig master.ini.in rc5.sh.orig 45# cd ${WRKSRC}; ${RM} -f master.ini.orig master.ini.in rc5.sh.orig
44 46
 47INSTALLATION_DIRS+= RC5
 48
45do-install: 49do-install:
46 ${INSTALL_DATA_DIR} ${PREFIX}/RC5 50 cd ${WRKSRC} && pax -rw . ${DESTDIR}${PREFIX}/RC5
47 cd ${WRKSRC} && pax -rw . ${PREFIX}/RC5 
48 51
49.include "../../mk/bsd.pkg.mk" 52.include "../../mk/bsd.pkg.mk"