[arch-commits] Commit in partimage/trunk (PKGBUILD partimage.install)
Lukas Fleischer
lfleischer at archlinux.org
Sun Sep 27 12:46:50 UTC 2015
Date: Sunday, September 27, 2015 @ 14:46:50
Author: lfleischer
Revision: 141691
upgpkg: partimage 0.6.9-7
Fix user/group management.
Modified:
partimage/trunk/PKGBUILD
partimage/trunk/partimage.install
-------------------+
PKGBUILD | 7 ++++---
partimage.install | 18 ------------------
2 files changed, 4 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-27 12:36:51 UTC (rev 141690)
+++ PKGBUILD 2015-09-27 12:46:50 UTC (rev 141691)
@@ -1,5 +1,4 @@
-# $Id$
-# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
# Contributor: Roman Kyrylych <roman at archlinux.org>
# Contributor: Sven Kauber <celeon at gmail.com>
# Contributor: tardo <tardo at nagi-fanboi.net>
@@ -7,7 +6,7 @@
pkgname=partimage
pkgver=0.6.9
-pkgrel=6
+pkgrel=7
pkgdesc='Partition Image saves partitions in many formats to an image file.'
arch=('i686' 'x86_64')
url='http://www.partimage.org/'
@@ -41,7 +40,9 @@
install -Dm0644 partimaged.pam "${pkgdir}/etc/pam.d/partimaged"
install -Dm0755 "${srcdir}/partimaged-gencrt" "${pkgdir}/usr/bin/partimaged-gencrt"
+
chmod 644 "${pkgdir}/etc/partimaged/partimagedusers"
+ chown 110:110 "${pkgdir}/etc/partimaged/partimagedusers"
install -Dm0644 ../partimaged.service "${pkgdir}/usr/lib/systemd/system/partimaged.service"
}
Modified: partimage.install
===================================================================
--- partimage.install 2015-09-27 12:36:51 UTC (rev 141690)
+++ partimage.install 2015-09-27 12:46:50 UTC (rev 141691)
@@ -2,21 +2,3 @@
groupadd -g 110 partimag &> /dev/null
useradd -u 110 -g partimag -c "Partimage user" -d /dev/null -s /bin/false partimag &> /dev/null
}
-
-post_install() {
- chown partimag:partimag /etc/partimaged/partimagedusers
-}
-
-post_upgrade() {
- if [ "$(getent group partimag | cut -d ':' -f 3)" != '110' ]; then
- post_remove
- pre_install
- echo ">> partimage UID/GID has been changed"
- echo ">> if you have some directories owned by partimage - please chown them again"
- fi
-}
-
-post_remove() {
- userdel partimag > /dev/null
- groupdel partimag > /dev/null
-}
More information about the arch-commits
mailing list