summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-06-01 03:08:43 +0000
committerknu <knu@FreeBSD.org>2001-06-01 03:08:43 +0000
commitac7b786a01cc628acee1c66bf71ca0b1c425605b (patch)
treecde2b4a8534ee2e00a0d4a35af38afa62d3ae384 /misc
parent94f9e1760817cee4f0a160fdc7424d4a45e27a22 (diff)
downloadFreeBSD-ports-ac7b786a01cc628acee1c66bf71ca0b1c425605b.zip
FreeBSD-ports-ac7b786a01cc628acee1c66bf71ca0b1c425605b.tar.gz
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')
-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 c294a74..06c2074 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 e6ec411..b28621c 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} \
OpenPOWER on IntegriCloud