summaryrefslogtreecommitdiff
path: root/pcr/polkit-consolekit
diff options
context:
space:
mode:
authorfreaj <freaj@riseup.net>2015-03-29 19:44:12 +0200
committerfreaj <freaj@riseup.net>2015-03-29 19:44:12 +0200
commit896520ecb98b8c40777b8dc510a051d2b3908328 (patch)
tree26dad3de7812ca5fe9f4b547abdfba0d27aa9ad0 /pcr/polkit-consolekit
parent7f22879038d0b08be8110ba6a7c0f8437ef0679c (diff)
downloadabslibre-896520ecb98b8c40777b8dc510a051d2b3908328.tar.gz
abslibre-896520ecb98b8c40777b8dc510a051d2b3908328.tar.bz2
abslibre-896520ecb98b8c40777b8dc510a051d2b3908328.zip
polkit-consolekit: add new package to [pcr]
Diffstat (limited to 'pcr/polkit-consolekit')
-rw-r--r--pcr/polkit-consolekit/PKGBUILD44
-rw-r--r--pcr/polkit-consolekit/polkit.install18
-rw-r--r--pcr/polkit-consolekit/polkit.pam7
3 files changed, 69 insertions, 0 deletions
diff --git a/pcr/polkit-consolekit/PKGBUILD b/pcr/polkit-consolekit/PKGBUILD
new file mode 100644
index 000000000..47f184bf1
--- /dev/null
+++ b/pcr/polkit-consolekit/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer : freaj <freaj@riseup.net>
+# 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>
+
+pkgname=polkit-consolekit
+pkgver=0.112
+pkgrel=3
+pkgdesc="PolyciKit with ConsoleKit support for non-systemd systems"
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://www.freedesktop.org/wiki/Software/polkit"
+depends=('glib2' 'pam' 'expat' 'js17')
+makedepends=('intltool' 'gtk-doc' 'gobject-introspection' 'python2')
+provides=("polkit=$pkgver")
+conflicts=('polkit')
+options=('!libtool')
+install=polkit.install
+source=(http://www.freedesktop.org/software/polkit/releases/polkit-$pkgver.tar.gz
+ polkit.pam)
+sha256sums=('d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6'
+ 'a35af3210bff1a8f2c04add47ed131a17df9eafbbc6f1671f97021be3ab1ff34')
+
+build() {
+ cd "$srcdir/polkit-$pkgver"
+
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
+ --with-systemdsystemunitdir=/usr/lib/systemd/system \
+ --enable-libsystemd-login=no \
+ --disable-static --enable-gtk-doc
+ make
+}
+
+package() {
+ cd "$srcdir/polkit-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ chown 102 "$pkgdir/etc/polkit-1/rules.d"
+ chown 102 "$pkgdir/usr/share/polkit-1/rules.d"
+
+ install -m644 "$srcdir/polkit.pam" "$pkgdir/etc/pam.d/polkit-1"
+}
diff --git a/pcr/polkit-consolekit/polkit.install b/pcr/polkit-consolekit/polkit.install
new file mode 100644
index 000000000..fbb98919e
--- /dev/null
+++ b/pcr/polkit-consolekit/polkit.install
@@ -0,0 +1,18 @@
+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
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ if getent passwd polkitd >/dev/null; then
+ userdel polkitd
+ fi
+ if getent group polkitd >/dev/null; then
+ groupdel polkitd
+ fi
+}
diff --git a/pcr/polkit-consolekit/polkit.pam b/pcr/polkit-consolekit/polkit.pam
new file mode 100644
index 000000000..04f53e0db
--- /dev/null
+++ b/pcr/polkit-consolekit/polkit.pam
@@ -0,0 +1,7 @@
+auth requisite pam_nologin.so
+auth required pam_env.so
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_limits.so
+session required pam_unix.so
+password required pam_unix.so