From 896520ecb98b8c40777b8dc510a051d2b3908328 Mon Sep 17 00:00:00 2001 From: freaj Date: Sun, 29 Mar 2015 19:44:12 +0200 Subject: polkit-consolekit: add new package to [pcr] --- pcr/polkit-consolekit/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++ pcr/polkit-consolekit/polkit.install | 18 +++++++++++++++ pcr/polkit-consolekit/polkit.pam | 7 ++++++ 3 files changed, 69 insertions(+) create mode 100644 pcr/polkit-consolekit/PKGBUILD create mode 100644 pcr/polkit-consolekit/polkit.install create mode 100644 pcr/polkit-consolekit/polkit.pam (limited to 'pcr') 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 +# Maintainer (Manjaro): artoo +# Contributor (Manjaro): kozec +# Contributor (Manjaro): Lukas Jirkovsky +# Contributor (Manjaro): Jan de Groot + +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 -- cgit v1.2.3