summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pielmeier <billie@gentoo.org>2013-02-21 19:10:07 +0000
committerDaniel Pielmeier <billie@gentoo.org>2013-02-21 19:10:07 +0000
commitc909d4e82d0c9bb318566b6d8a31cbd9a2d73c9e (patch)
treec67fcee229394512b779ed097dbab99149068569 /net-print
parentAdd ~arm-linux and ~x86-linux keywords. (diff)
downloadgentoo-2-c909d4e82d0c9bb318566b6d8a31cbd9a2d73c9e.tar.gz
gentoo-2-c909d4e82d0c9bb318566b6d8a31cbd9a2d73c9e.tar.bz2
gentoo-2-c909d4e82d0c9bb318566b6d8a31cbd9a2d73c9e.zip
Ensure correct permissions for /var/tmp/hp when upgrading from versions affected by bug #452586.
(Portage version: 2.1.11.50/cvs/Linux i686, signed Manifest commit with key 215AD14D)
Diffstat (limited to 'net-print')
-rw-r--r--net-print/hplip/ChangeLog9
-rw-r--r--net-print/hplip/hplip-3.13.2-r1.ebuild (renamed from net-print/hplip/hplip-3.13.2.ebuild)10
2 files changed, 17 insertions, 2 deletions
diff --git a/net-print/hplip/ChangeLog b/net-print/hplip/ChangeLog
index 00f328405277..89af9d08e8b1 100644
--- a/net-print/hplip/ChangeLog
+++ b/net-print/hplip/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-print/hplip
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.262 2013/02/21 18:43:12 billie Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/ChangeLog,v 1.263 2013/02/21 19:10:07 billie Exp $
+
+*hplip-3.13.2-r1 (21 Feb 2013)
+
+ 21 Feb 2013; Daniel Pielmeier <billie@gentoo.org> -hplip-3.13.2.ebuild,
+ +hplip-3.13.2-r1.ebuild:
+ Ensure correct permissions for /var/tmp/hp when upgrading from versions
+ affected by bug #452586.
21 Feb 2013; Daniel Pielmeier <billie@gentoo.org> -hplip-3.12.11.ebuild:
Remove vulnerable version. See bug #452586.
diff --git a/net-print/hplip/hplip-3.13.2.ebuild b/net-print/hplip/hplip-3.13.2-r1.ebuild
index 7e3a6d640c0f..d8f4cc4719f4 100644
--- a/net-print/hplip/hplip-3.13.2.ebuild
+++ b/net-print/hplip/hplip-3.13.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.13.2.ebuild,v 1.1 2013/02/14 19:15:19 billie Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/hplip/hplip-3.13.2-r1.ebuild,v 1.1 2013/02/21 19:10:07 billie Exp $
EAPI=5
@@ -247,6 +247,14 @@ src_install() {
fi
}
+pkg_preinst() {
+ # remove temporary directory so it is recreated with correct permissions
+ # this ensures correct permissions when upgrading from the vulnerable
+ # versions affected by bug #452586
+ # remove this after some time
+ rm -rf "${ROOT%/}/var/log/hp"
+}
+
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
elog "For more information on setting up your printer please take"