summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-03-21 14:02:53 -0300
committerDavid P <megver83@openmailbox.org>2017-03-21 14:02:53 -0300
commit5b1614ed4bc39f0441a8f7c19171eafa0b21f16b (patch)
tree09adcb39136123e2e30ff9244f82d8798bf835c5 /pcr
parenta6c682fa1d1ccf341247639ac83458994264ca64 (diff)
parentd504129dd82d1e6b153e498e544a6bd9f30d5ab2 (diff)
downloadabslibre-5b1614ed4bc39f0441a8f7c19171eafa0b21f16b.tar.gz
abslibre-5b1614ed4bc39f0441a8f7c19171eafa0b21f16b.tar.bz2
abslibre-5b1614ed4bc39f0441a8f7c19171eafa0b21f16b.zip
Merge branch 'master' of git://git.parabola.nu/abslibre/abslibre
Diffstat (limited to 'pcr')
-rw-r--r--pcr/polkit-consolekit/PKGBUILD65
-rw-r--r--pcr/polkit-consolekit/polkit.install15
2 files changed, 80 insertions, 0 deletions
diff --git a/pcr/polkit-consolekit/PKGBUILD b/pcr/polkit-consolekit/PKGBUILD
new file mode 100644
index 000000000..ff4fcfc1e
--- /dev/null
+++ b/pcr/polkit-consolekit/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer (Manjaro): artoo <artoo@manjaro.org>
+# Contributor (Manjaro): kozec <kozec at kozec.com>
+# Contributor (Manjaro): Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Contributor (Manjaro): Jan de Groot <jgc@archlinux.org>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_pkgname=polkit
+
+pkgname=polkit-consolekit
+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' 'js' 'udev')
+makedepends=('intltool' 'gtk-doc' 'gobject-introspection' 'git' 'autoconf-archive')
+provides=("polkit=$pkgver")
+conflicts=('polkit')
+options=('!libtool')
+install=polkit.install
+_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 $_pkgname #-$pkgver
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib/polkit-1 \
+ --enable-libsystemd-login=no \
+ --disable-static \
+ --enable-gtk-doc \
+ --with-os-type=redhat
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+check() {
+ cd $_pkgname #-$pkgver
+ make -k check || :
+}
+
+package() {
+ 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
+}
diff --git a/pcr/polkit-consolekit/polkit.install b/pcr/polkit-consolekit/polkit.install
new file mode 100644
index 000000000..422db623c
--- /dev/null
+++ b/pcr/polkit-consolekit/polkit.install
@@ -0,0 +1,15 @@
+post_install() {
+ 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
+
+ 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
+}