pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/apg Use custom install rules to get user-dest...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/77bb6edc48f4
branches:  trunk
changeset: 520950:77bb6edc48f4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Nov 03 09:07:30 2006 +0000

description:
Use custom install rules to get user-destdir ready and most likely
also fix unprivileged builds in general.

diffstat:

 security/apg/Makefile         |   6 ++++--
 security/apg/distinfo         |   4 ++--
 security/apg/patches/patch-aa |  37 ++++++++++++++++++++++++++++++++++---
 3 files changed, 40 insertions(+), 7 deletions(-)

diffs (95 lines):

diff -r 01592e17ee1b -r 77bb6edc48f4 security/apg/Makefile
--- a/security/apg/Makefile     Fri Nov 03 08:40:36 2006 +0000
+++ b/security/apg/Makefile     Fri Nov 03 09:07:30 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/10/09 12:52:36 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2006/11/03 09:07:30 joerg Exp $
 #
 
 DISTNAME=      apg-2.2.3
@@ -9,7 +9,7 @@
 HOMEPAGE=      http://www.adel.nursat.kz/apg/
 COMMENT=       Tool set for random password generation
 
-PKG_DESTDIR_SUPPORT=   destdir
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 MAKE_ENV+=     FLAGS=${CFLAGS:M*:Q} INSTALL_PREFIX=${DESTDIR:Q}${PREFIX:Q}
 
@@ -21,6 +21,8 @@
 CS_LIBS.SunOS+=        -lnsl -lsocket
 MAKE_ENV+=     CS_LIBS=${CS_LIBS:Q}
 
+INSTALLATION_DIRS+=    bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
+
 post-install:
        ${INSTALL_SCRIPT} ${WRKSRC}/perl/apgcli.pl ${DESTDIR}${PREFIX}/bin/apgcli
 
diff -r 01592e17ee1b -r 77bb6edc48f4 security/apg/distinfo
--- a/security/apg/distinfo     Fri Nov 03 08:40:36 2006 +0000
+++ b/security/apg/distinfo     Fri Nov 03 09:07:30 2006 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.5 2005/05/27 10:32:01 zuntum Exp $
+$NetBSD: distinfo,v 1.6 2006/11/03 09:07:30 joerg Exp $
 
 SHA1 (apg-2.2.3.tar.gz) = 7bdbc931ef8477717186dc3ab3a2d3c25012b4ca
 RMD160 (apg-2.2.3.tar.gz) = ccc1d8a90fcac90717a9ee16fcc85de53d5ef90d
 Size (apg-2.2.3.tar.gz) = 108186 bytes
-SHA1 (patch-aa) = d66d56ff653e66185a1af83d7b5330c1759e7573
+SHA1 (patch-aa) = 51679c0a3a6440ddcca12b4c5d6ebaa7c18a5935
diff -r 01592e17ee1b -r 77bb6edc48f4 security/apg/patches/patch-aa
--- a/security/apg/patches/patch-aa     Fri Nov 03 08:40:36 2006 +0000
+++ b/security/apg/patches/patch-aa     Fri Nov 03 09:07:30 2006 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.2 2003/06/10 06:38:48 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2006/11/03 09:07:30 joerg Exp $
 
---- Makefile.orig      2002-09-13 10:10:49.000000000 +0200
+--- Makefile.orig      2003-08-07 15:40:30.000000000 +0000
 +++ Makefile
 @@ -1,12 +1,10 @@
  ##################################################################
@@ -15,7 +15,7 @@
  
  ##################################################################
  # Libraries
-@@ -37,7 +35,6 @@ USE_SHA = APG_DONOTUSE_SHA
+@@ -39,7 +37,6 @@ USE_SHA = APG_DONOTUSE_SHA
  ##################################################################
  # Directories
  # Install dirs
@@ -23,3 +23,34 @@
  APG_BIN_DIR = /bin
  APG_MAN_DIR = /man/man1
  APGD_BIN_DIR = /sbin
+@@ -110,24 +107,12 @@ strip:
+       strip ${BFM_PROGNAME}
+ 
+ install:
+-      if test -x ./apg; then \
+-./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
+-./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
+-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \
+-./install-sh -c -m 0444 ./doc/man/apg.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
+-fi
+-      if test -x ./apgd; then \
+-./mkinstalldirs ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
+-./mkinstalldirs ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
+-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
+-./install-sh -c -m 0444 ./doc/man/apgd.8 ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
+-fi
+-      if test -x ./apgbfm; then \
+-./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
+-./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
+-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \
+-./install-sh -c -m 0444 ./doc/man/apgbfm.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
+-fi
++      ${BSD_INSTALL_PROGRAM} apg ${DESTDIR}${PREFIX}/bin
++      ${BSD_INSTALL_MAN} doc/man/apg.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
++      ${BSD_INSTALL_PROGRAM} apgd ${DESTDIR}${PREFIX}/sbin
++      ${BSD_INSTALL_MAN} doc/man/apgd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
++      ${BSD_INSTALL_PROGRAM} apgbfm ${DESTDIR}${PREFIX}/bin
++      ${BSD_INSTALL_MAN} doc/man/apgbfm.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ 
+ install-cygwin:
+       if test -x ./apg.exe; then \



Home | Main Index | Thread Index | Old Index