summaryrefslogtreecommitdiff
path: root/misc/pkg_tarup
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-06-01 03:08:43 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-06-01 03:08:43 +0000
commit26ed7e223cbbda4034541f0430a0526b42f74819 (patch)
tree8d866fee22f496786236741b8ae25927db43efa9 /misc/pkg_tarup
parentUpdate the checksum for xc/mga-1_2_0beta.tgz. There are no changes in (diff)
A package file can often be bigger than /tmp's capacity, so create
tarballs in TMPDIR if defined or /var/tmp when PKGREPOSITORY is not defined. Suggested by: Jimmy Olgeni <olgeni@uli.it>
Diffstat (limited to 'misc/pkg_tarup')
-rw-r--r--misc/pkg_tarup/Makefile1
-rw-r--r--misc/pkg_tarup/files/patch-aa19
2 files changed, 14 insertions, 6 deletions
diff --git a/misc/pkg_tarup/Makefile b/misc/pkg_tarup/Makefile
index c294a74bc408..06c2074df742 100644
--- a/misc/pkg_tarup/Makefile
+++ b/misc/pkg_tarup/Makefile
@@ -7,6 +7,7 @@
PORTNAME= pkg_tarup
PORTVERSION= 1.2
+PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/pkgsrc/pkgtools/pkg_tarup/files/
DISTNAME= ${PORTNAME}\?rev=${PORTVERSION}\&content-type=text%2fplain
diff --git a/misc/pkg_tarup/files/patch-aa b/misc/pkg_tarup/files/patch-aa
index e6ec4113b353..b28621c2af2b 100644
--- a/misc/pkg_tarup/files/patch-aa
+++ b/misc/pkg_tarup/files/patch-aa
@@ -1,8 +1,15 @@
---- pkg_tarup.orig Wed May 17 01:02:05 2000
-+++ pkg_tarup Thu Sep 21 15:00:35 2000
-@@ -11,17 +11,20 @@
+--- pkg_tarup.orig Fri Jun 1 11:12:44 2001
++++ pkg_tarup Fri Jun 1 11:21:06 2001
+@@ -7,21 +7,26 @@
+ #
+
+ PKG_DBDIR=${PKG_DBDIR:-/var/db/pkg}
+-PKGREPOSITORY=${PKGREPOSITORY:-/tmp}
PKG_SUFX=${PKG_SUFX:-tgz}
++# A package file can be very big beyond /tmp's capacity
++PKGREPOSITORY=${PKGREPOSITORY:-${TMPDIR:-/var/tmp}}
++
PKG="$1"
-rPKG="`pkg_info -e \"$PKG\"`"
@@ -26,7 +33,7 @@
check_and_add() {
opt="$1"
-@@ -40,10 +43,10 @@
+@@ -40,10 +45,10 @@
check_and_add -c ${PKG_DBDIR}/${PKG}/+COMMENT
check_and_add -d ${PKG_DBDIR}/${PKG}/+DESC
@@ -40,7 +47,7 @@
check_and_add -i ${PKG_DBDIR}/${PKG}/+INSTALL
check_and_add -k ${PKG_DBDIR}/${PKG}/+DEINSTALL
check_and_add -r ${PKG_DBDIR}/${PKG}/+REQUIRE
-@@ -54,7 +57,7 @@
+@@ -54,7 +59,7 @@
sed -n \
-e '/^@comment MD5:/d' \
-e '/^@cwd \.$/,$d' \
@@ -49,7 +56,7 @@
<${PKG_DBDIR}/${PKG}/+CONTENTS >$PLIST
# Duplicate first @cwd (work around pkg_create "feature" ...)
-@@ -80,10 +83,8 @@
+@@ -80,10 +85,8 @@
${PKG_ARGS} \
-v \
-f ${PLIST} \