Convert to user-destdir.

This commit is contained in:
wiz 2009-08-29 11:33:14 +00:00
parent 8064da26f4
commit 8333903069
3 changed files with 30 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.25 2007/06/08 13:55:41 obache Exp $
# $NetBSD: Makefile,v 1.26 2009/08/29 11:33:14 wiz Exp $
DISTNAME= lrzsz-0.12.20
CATEGORIES= comms
@ -8,6 +8,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.ohse.de/uwe/software/lrzsz.html
COMMENT= Receive/Send files via X/Y/ZMODEM protocol. (unrestrictive)
PKG_DESTDIR_SUPPORT= user-destdir
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_PKGLOCALEDIR= yes

View file

@ -1,7 +1,8 @@
$NetBSD: distinfo,v 1.3 2005/02/23 16:05:30 agc Exp $
$NetBSD: distinfo,v 1.4 2009/08/29 11:33:14 wiz Exp $
SHA1 (lrzsz-0.12.20.tar.gz) = 451e6a1813dfb71a412c973acd1b88b9ee3f28c4
RMD160 (lrzsz-0.12.20.tar.gz) = 1b1776143afaff8bc7447ce998f9d3a958d51f25
Size (lrzsz-0.12.20.tar.gz) = 280938 bytes
SHA1 (patch-aa) = aaf33281da19658906eee6a922397968a200f186
SHA1 (patch-ab) = 273f343a3e4ca8190ae4ab52483600f7bcf8e404
SHA1 (patch-ac) = a224a77a6d9581c601a50ebe9153e6ad25c8601b

View file

@ -0,0 +1,25 @@
$NetBSD: patch-ac,v 1.1 2009/08/29 11:33:14 wiz Exp $
--- po/Makefile.in.in.orig 1998-04-26 13:22:40.000000000 +0000
+++ po/Makefile.in.in
@@ -110,16 +110,16 @@ install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
if test -r $(MKINSTALLDIRS); then \
- $(MKINSTALLDIRS) $(datadir); \
+ $(MKINSTALLDIRS) ${DESTDIR}/$(datadir); \
else \
- $(top_srcdir)/mkinstalldirs $(datadir); \
+ $(top_srcdir)/mkinstalldirs ${DESTDIR}/$(datadir); \
fi
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
case "$$cat" in \
- *.gmo) destdir=$(gnulocaledir);; \
- *) destdir=$(localedir);; \
+ *.gmo) destdir=${DESTDIR}$(gnulocaledir);; \
+ *) destdir=${DESTDIR}$(localedir);; \
esac; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
dir=$$destdir/$$lang/LC_MESSAGES; \