summaryrefslogtreecommitdiff
path: root/pcr/polkit-consolekit
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-03-05 12:56:28 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-03-05 12:56:28 -0500
commitfe2eaf92080bcf336dc1fbaefa53e5b6a2c9572b (patch)
tree99b2bfdf1d3230854a6a2863475b28f37d92938f /pcr/polkit-consolekit
parent9a81b27cf8dc6a0488b5c07b75b3a9e1ab2db614 (diff)
downloadabslibre-fe2eaf92080bcf336dc1fbaefa53e5b6a2c9572b.tar.gz
abslibre-fe2eaf92080bcf336dc1fbaefa53e5b6a2c9572b.tar.bz2
abslibre-fe2eaf92080bcf336dc1fbaefa53e5b6a2c9572b.zip
polkit-consolekit-0.113+29+g3272a98-4: updating version
Diffstat (limited to 'pcr/polkit-consolekit')
-rw-r--r--pcr/polkit-consolekit/PKGBUILD35
-rw-r--r--pcr/polkit-consolekit/polkit.install14
2 files changed, 34 insertions, 15 deletions
diff --git a/pcr/polkit-consolekit/PKGBUILD b/pcr/polkit-consolekit/PKGBUILD
index 38f51bd2f..ff4fcfc1e 100644
--- a/pcr/polkit-consolekit/PKGBUILD
+++ b/pcr/polkit-consolekit/PKGBUILD
@@ -7,23 +7,35 @@
_pkgname=polkit
pkgname=polkit-consolekit
-pkgver=0.113
-pkgrel=6
+pkgver=0.113+29+g3272a98
+pkgrel=4
pkgdesc="PolyciKit with ConsoleKit support for non-systemd systems"
arch=('i686' 'x86_64' 'armv7h')
license=('LGPL')
url="http://www.freedesktop.org/wiki/Software/polkit"
-depends=('glib2' 'pam' 'expat' 'js185')
-makedepends=('intltool' 'gtk-doc' 'gobject-introspection')
+depends=('glib2' 'pam' 'expat' 'js' 'udev')
+makedepends=('intltool' 'gtk-doc' 'gobject-introspection' 'git' 'autoconf-archive')
provides=("polkit=$pkgver")
conflicts=('polkit')
options=('!libtool')
install=polkit.install
-source=("http://www.freedesktop.org/software/polkit/releases/$_pkgname-$pkgver.tar.gz")
-sha256sums=('e1c095093c654951f78f8618d427faf91cf62abdefed98de40ff65eca6413c81')
+_commit=3272a988655c3236b55bad70e9a3af20857f384b
+#source=("http://www.freedesktop.org/software/polkit/releases/$_pkgname-$pkgver.tar.gz")
+source=("git+https://anongit.freedesktop.org/git/polkit#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $_pkgname
+ NOCONFIGURE=1 ./autogen.sh
+}
build() {
- cd "$srcdir"/$_pkgname-$pkgver
+ cd $_pkgname #-$pkgver
./configure \
--prefix=/usr \
@@ -34,19 +46,20 @@ build() {
--enable-libsystemd-login=no \
--disable-static \
--enable-gtk-doc \
- --with-os-type=gentoo
+ --with-os-type=redhat
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
- cd $_pkgname-$pkgver
+ cd $_pkgname #-$pkgver
make -k check || :
}
package() {
- cd "$srcdir"/$_pkgname-$pkgver
+ cd $_pkgname #-$pkgver
make DESTDIR="$pkgdir" install
chown root:102 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
- chmod 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
+ chmod 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d
}
diff --git a/pcr/polkit-consolekit/polkit.install b/pcr/polkit-consolekit/polkit.install
index e917e0095..422db623c 100644
--- a/pcr/polkit-consolekit/polkit.install
+++ b/pcr/polkit-consolekit/polkit.install
@@ -1,9 +1,15 @@
post_install() {
- getent group polkitd >/dev/null || groupadd -g 102 polkitd
- getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd
- passwd -l polkitd &>/dev/null
+ getent group polkitd || groupadd -g 102 polkitd
+ getent passwd polkitd || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -G proc -d '/' -s /usr/bin/nologin polkitd
+ passwd -l polkitd &>/dev/null
}
post_upgrade() {
- post_install
+ post_install
+
+ if (( $(vercmp $2 0.113-6) < 0 )); then
+ usermod -aG proc -s /usr/bin/nologin polkitd
+ chown root:102 /{etc,usr/share}/polkit-1/rules.d
+ chmod 750 /{etc,usr/share}/polkit-1/rules.d
+ fi
}