aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/portupgrade-devel
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-05-31 23:18:00 +0800
committerknu <knu@FreeBSD.org>2001-05-31 23:18:00 +0800
commitc1f879e5c8da8ffd858692e22fd8c03419a34806 (patch)
tree4a9dc239c933bf7bffb7e21aab47db0b0e689343 /sysutils/portupgrade-devel
parent6b7bc8ab80a21eeb2bd003bce387c575f5f4278a (diff)
downloadfreebsd-ports-gnome-c1f879e5c8da8ffd858692e22fd8c03419a34806.tar.gz
freebsd-ports-gnome-c1f879e5c8da8ffd858692e22fd8c03419a34806.tar.zst
freebsd-ports-gnome-c1f879e5c8da8ffd858692e22fd8c03419a34806.zip
Apply a hotfix against a critical bug that +CONTENTS are lost when you
do upgrade as root and TMPDIR and /var/db/pkg are on different filesystems.
Diffstat (limited to 'sysutils/portupgrade-devel')
-rw-r--r--sysutils/portupgrade-devel/Makefile1
-rw-r--r--sysutils/portupgrade-devel/files/patch-portupgrade12
2 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/portupgrade-devel/Makefile b/sysutils/portupgrade-devel/Makefile
index da235bdf8925..d305c4827ced 100644
--- a/sysutils/portupgrade-devel/Makefile
+++ b/sysutils/portupgrade-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 1.34
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/
diff --git a/sysutils/portupgrade-devel/files/patch-portupgrade b/sysutils/portupgrade-devel/files/patch-portupgrade
new file mode 100644
index 000000000000..5daef36b97fd
--- /dev/null
+++ b/sysutils/portupgrade-devel/files/patch-portupgrade
@@ -0,0 +1,12 @@
+--- portupgrade.orig Thu May 31 14:18:06 2001
++++ portupgrade Fri Jun 1 00:10:54 2001
+@@ -571,8 +571,7 @@
+ File.chmod 0644, w.path
+
+ if File.writable? file
+- File.delete file
+- File.rename w.path, file
++ system '/bin/mv', '-f', w.path, file
+ else
+ sudo '/bin/mv', '-f', w.path, file
+ end