pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Add DESTDIR support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3fcf743d2c90
branches:  trunk
changeset: 532823:3fcf743d2c90
user:      agc <agc%pkgsrc.org@localhost>
date:      Fri Aug 31 21:48:37 2007 +0000

description:
Add DESTDIR support

diffstat:

 misc/qterm/Makefile               |   4 +++-
 misc/qterm/distinfo               |   4 ++--
 misc/qterm/patches/patch-aa       |  21 ++++++++++++---------
 misc/utftools/Makefile            |   5 +++--
 misc/utftools/distinfo            |   4 ++--
 misc/utftools/patches/patch-ae    |  16 +++++++++-------
 sysutils/crashme/Makefile         |   9 ++++++---
 sysutils/crashme/PLIST            |   4 ++--
 sysutils/crashme/distinfo         |   4 ++--
 sysutils/crashme/patches/patch-aa |  12 ++++++------
 10 files changed, 47 insertions(+), 36 deletions(-)

diffs (209 lines):

diff -r 23aff2a2facb -r 3fcf743d2c90 misc/qterm/Makefile
--- a/misc/qterm/Makefile       Fri Aug 31 20:35:50 2007 +0000
+++ b/misc/qterm/Makefile       Fri Aug 31 21:48:37 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2005/12/29 06:21:55 jlam Exp $
+# $NetBSD: Makefile,v 1.11 2007/08/31 21:50:50 agc Exp $
 #
 
 DISTNAME=      qterm-ac-1.0
@@ -15,6 +15,8 @@
 
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR:Q}
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 EGDIR=         ${PREFIX}/share/examples/qterm
 CONF_FILES=    ${EGDIR}/qtermtab ${PKG_SYSCONFDIR}/qtermtab
 
diff -r 23aff2a2facb -r 3fcf743d2c90 misc/qterm/distinfo
--- a/misc/qterm/distinfo       Fri Aug 31 20:35:50 2007 +0000
+++ b/misc/qterm/distinfo       Fri Aug 31 21:48:37 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.5 2005/11/10 18:13:53 joerg Exp $
+$NetBSD: distinfo,v 1.6 2007/08/31 21:50:50 agc Exp $
 
 SHA1 (qterm-ac-1.0.tar.gz) = 2603f57265f62b144418ff4a283fc3454f9dcb4c
 RMD160 (qterm-ac-1.0.tar.gz) = 6234e96caff468ba5dd13babb6a0b2e33dcbd3d4
 Size (qterm-ac-1.0.tar.gz) = 42415 bytes
-SHA1 (patch-aa) = f0bb49766ecd146788b4782da36c94423efe8fbb
+SHA1 (patch-aa) = f4909ffb2d7729b264e796f6083a71f284d1884e
 SHA1 (patch-ab) = 49c741feed2bab08084fba6c9880a4e29e2db62c
diff -r 23aff2a2facb -r 3fcf743d2c90 misc/qterm/patches/patch-aa
--- a/misc/qterm/patches/patch-aa       Fri Aug 31 20:35:50 2007 +0000
+++ b/misc/qterm/patches/patch-aa       Fri Aug 31 21:48:37 2007 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.1 2002/12/22 22:26:54 jmmv Exp $
+$NetBSD: patch-aa,v 1.2 2007/08/31 21:50:50 agc Exp $
 
---- Makefile.in.orig   Fri Apr 11 15:13:32 1997
-+++ Makefile.in
-@@ -22,7 +22,8 @@ prefix=@prefix@
+--- Makefile.in.orig   1997-04-11 14:13:32.000000000 +0100
++++ Makefile.in        2007-08-31 12:44:39.000000000 +0100
+@@ -22,7 +22,8 @@
  exec_prefix=@exec_prefix@
  BINDIR=$(exec_prefix)/bin
  LIBDIR=$(exec_prefix)/lib
@@ -12,15 +12,18 @@
  INCDIR=$(prefix)/include
  MANDIR=$(prefix)/man
  
-@@ -53,9 +54,9 @@ qterm.1: qterm.1.in
+@@ -53,10 +54,10 @@
        $(SED) 's;qterm_etcdir;$(ETCDIR);g' < qterm.1.in > qterm.1
  
  install: qterm qtermtab qterm.1
 -      ./mkinstalldirs $(BINDIR) $(ETCDIR) $(MANDIR)/man1
-+      ./mkinstalldirs $(BINDIR) $(EGDIR) $(MANDIR)/man1
-       $(INSTALL) -m 755 qterm $(BINDIR)
+-      $(INSTALL) -m 755 qterm $(BINDIR)
 -      $(INSTALL) -m 644 qtermtab $(TABFILE)
-+      $(INSTALL) -m 644 qtermtab $(EGDIR)
-       $(INSTALL) -m 644 qterm.1 $(MANDIR)/man1
+-      $(INSTALL) -m 644 qterm.1 $(MANDIR)/man1
++      ./mkinstalldirs ${DESTDIR}$(BINDIR) ${DESTDIR}$(EGDIR) ${DESTDIR}$(MANDIR)/man1
++      $(BSD_INSTALL_PROGRAM) qterm ${DESTDIR}$(BINDIR)
++      $(BSD_INSTALL_MAN) qtermtab ${DESTDIR}$(EGDIR)
++      $(BSD_INSTALL_MAN) qterm.1 ${DESTDIR}$(MANDIR)/man1
  
  clean:
+       rm -f *.o core log *~ \#* qterm $(OBJS)
diff -r 23aff2a2facb -r 3fcf743d2c90 misc/utftools/Makefile
--- a/misc/utftools/Makefile    Fri Aug 31 20:35:50 2007 +0000
+++ b/misc/utftools/Makefile    Fri Aug 31 21:48:37 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2005/04/11 21:46:40 tv Exp $
+# $NetBSD: Makefile,v 1.7 2007/08/31 21:49:32 agc Exp $
 #
 
 DISTNAME=      utftools-1.6
@@ -7,10 +7,11 @@
 MASTER_SITES=  ftp://ftp.cs.yorku.ca/pub/wily/misc/
 
 MAINTAINER=    agc%NetBSD.org@localhost
-#HOMEPAGE=
+#HOMEPAGE=     none
 COMMENT=       UTF-aware wc, fmt, expand, and unexpand
 
 GNU_CONFIGURE= yes
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 .include "../../misc/libutf/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 23aff2a2facb -r 3fcf743d2c90 misc/utftools/distinfo
--- a/misc/utftools/distinfo    Fri Aug 31 20:35:50 2007 +0000
+++ b/misc/utftools/distinfo    Fri Aug 31 21:48:37 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 11:02:58 agc Exp $
+$NetBSD: distinfo,v 1.3 2007/08/31 21:49:32 agc Exp $
 
 SHA1 (utftools-1.6.tar.gz) = 92406e9cc5f47fa0baa2d558b56175bc836431f1
 RMD160 (utftools-1.6.tar.gz) = 7dfeda42ab72257dd92085e911b466175f3d0ff9
@@ -7,4 +7,4 @@
 SHA1 (patch-ab) = 0010909f1f83b8968275fb26c00e4c9bd4a534c4
 SHA1 (patch-ac) = 4de3e61f6d11a0729a01f5efcffe9fcfe871e0ad
 SHA1 (patch-ad) = d5dadfa15d266aa1b5104f2f87dc39f481672639
-SHA1 (patch-ae) = e80fa5cb1ea5b1116bba8b0fe7f9ec93a55da7b6
+SHA1 (patch-ae) = 99e0701ae4788be9e1b1b5a36cc4a678401be453
diff -r 23aff2a2facb -r 3fcf743d2c90 misc/utftools/patches/patch-ae
--- a/misc/utftools/patches/patch-ae    Fri Aug 31 20:35:50 2007 +0000
+++ b/misc/utftools/patches/patch-ae    Fri Aug 31 21:48:37 2007 +0000
@@ -1,15 +1,17 @@
-$NetBSD: patch-ae,v 1.1.1.1 2003/05/09 07:38:16 agc Exp $
+$NetBSD: patch-ae,v 1.2 2007/08/31 21:49:33 agc Exp $
 
---- Makefile.in        2003/05/09 07:26:50     1.1
-+++ Makefile.in        2003/05/09 07:27:08
-@@ -39,8 +39,8 @@
+--- Makefile.in.orig   1997-02-25 18:47:26.000000000 +0000
++++ Makefile.in        2007-08-31 12:23:48.000000000 +0100
+@@ -38,9 +38,9 @@
+ all                           :       $(BINS)
  
  install                       :       all
-       $(srcdir)/mkinstalldirs $(BINDIR) $(MANDIR)/man1
+-      $(srcdir)/mkinstalldirs $(BINDIR) $(MANDIR)/man1
 -      for bin in $(BINS) ; do $(INSTALL) $$bin $(BINDIR)/$$bin ; done
 -      for man in $(MANS) ; do $(INSTALL_DATA) $(srcdir)/$$man $(MANDIR)/man1/$$man ; done
-+      for bin in $(BINS) ; do $(INSTALL) $$bin $(BINDIR)/utf8-$$bin ; done
-+      for man in $(MANS) ; do $(INSTALL_DATA) $(srcdir)/$$man $(MANDIR)/man1/utf8-$$man ; done
++      $(srcdir)/mkinstalldirs ${DESTDIR}$(BINDIR) ${DESTDIR}$(MANDIR)/man1
++      for bin in $(BINS) ; do $(INSTALL) $$bin ${DESTDIR}$(BINDIR)/utf8-$$bin ; done
++      for man in $(MANS) ; do $(INSTALL_DATA) $(srcdir)/$$man ${DESTDIR}$(MANDIR)/man1/utf8-$$man ; done
  
  uninstall             :
        -for bin in $(BINS) ; do rm $(BINDIR)/$$bin ; done
diff -r 23aff2a2facb -r 3fcf743d2c90 sysutils/crashme/Makefile
--- a/sysutils/crashme/Makefile Fri Aug 31 20:35:50 2007 +0000
+++ b/sysutils/crashme/Makefile Fri Aug 31 21:48:37 2007 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.18 2007/02/22 19:27:11 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2007/08/31 21:48:37 agc Exp $
 #
 
-DISTNAME=      crashme-2.4
+DISTNAME=              crashme-2.4
 CATEGORIES=            sysutils
-MASTER_SITES=  http://ochimizu-www.jaist.ac.jp:8000/linux/vger/crashme/
+MASTER_SITES=          http://ochimizu-www.jaist.ac.jp:8000/linux/vger/crashme/
 EXTRACT_SUFX=          -shar
 
 MAINTAINER=            agc%NetBSD.org@localhost
@@ -11,6 +11,9 @@
 COMMENT=               Try to crash machine with random arguments to random system calls
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+INSTALLATION_DIRS=     sbin ${PKGMANDIR}/man1
 
 EXTRACT_OPTS=          -f shar
 MAKE_FILE=             makefile
diff -r 23aff2a2facb -r 3fcf743d2c90 sysutils/crashme/PLIST
--- a/sysutils/crashme/PLIST    Fri Aug 31 20:35:50 2007 +0000
+++ b/sysutils/crashme/PLIST    Fri Aug 31 21:48:37 2007 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:53:01 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2007/08/31 21:48:37 agc Exp $
 sbin/crashme
 sbin/pddet
-man/man1/crashme.1
+${PKGMANDIR}/man1/crashme.1
diff -r 23aff2a2facb -r 3fcf743d2c90 sysutils/crashme/distinfo
--- a/sysutils/crashme/distinfo Fri Aug 31 20:35:50 2007 +0000
+++ b/sysutils/crashme/distinfo Fri Aug 31 21:48:37 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.5 2005/02/24 13:40:51 agc Exp $
+$NetBSD: distinfo,v 1.6 2007/08/31 21:48:37 agc Exp $
 
 SHA1 (crashme-2.4-shar) = 0648322959634f21e61a5d5e1b308e3c89dc2841
 RMD160 (crashme-2.4-shar) = 0a4252a7b03bddad60cd522565142279d18f91b8
 Size (crashme-2.4-shar) = 57010 bytes
-SHA1 (patch-aa) = 01f981d1ac274bf00ba8d5f9ddcad8aeeaf3dffb
+SHA1 (patch-aa) = 7622912fe3e231af05fe9073e3cd7bd1e82d3951
 SHA1 (patch-ab) = 2dc1213fe4621b947a9ce8d589925a9bd83653e0
diff -r 23aff2a2facb -r 3fcf743d2c90 sysutils/crashme/patches/patch-aa
--- a/sysutils/crashme/patches/patch-aa Fri Aug 31 20:35:50 2007 +0000
+++ b/sysutils/crashme/patches/patch-aa Fri Aug 31 21:48:37 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.5 2004/02/08 12:58:55 grant Exp $
+$NetBSD: patch-aa,v 1.6 2007/08/31 21:48:37 agc Exp $
 
---- makefile.orig      2004-02-08 23:56:35.000000000 +1100
-+++ makefile
+--- makefile.orig      2007-08-31 12:15:01.000000000 +0100
++++ makefile   2007-08-31 12:16:47.000000000 +0100
 @@ -1,12 +1,17 @@
  all: crashme pddet
  
@@ -21,6 +21,6 @@
  
 +
 +install: crashme pddet
-+      ${INSTALL} -c -m 0755 crashme ${PREFIX}/sbin/crashme
-+      ${INSTALL} -c -m 0755 pddet ${PREFIX}/sbin/pddet
-+      ${INSTALL} -c -m 0444 crashme.1 ${PREFIX}/man/man1
++      ${BSD_INSTALL_PROGRAM} crashme ${DESTDIR}${PREFIX}/sbin/crashme
++      ${BSD_INSTALL_PROGRAM} pddet ${DESTDIR}${PREFIX}/sbin/pddet
++      ${BSD_INSTALL_MAN} crashme.1 ${DESTDIR}${PREFIX}/man/man1



Home | Main Index | Thread Index | Old Index