From 3d9ee3d1faab8fea2cdf06bc766106fe1479ed3c Mon Sep 17 00:00:00 2001 From: freaj Date: Wed, 25 Mar 2015 19:14:34 +0100 Subject: consolekit-0.9.2-4: add new package to [pcr] --- pcr/consolekit/PKGBUILD | 71 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 pcr/consolekit/PKGBUILD (limited to 'pcr/consolekit/PKGBUILD') diff --git a/pcr/consolekit/PKGBUILD b/pcr/consolekit/PKGBUILD new file mode 100644 index 000000000..42a4a0707 --- /dev/null +++ b/pcr/consolekit/PKGBUILD @@ -0,0 +1,71 @@ +# Maintainer : freaj +# Maintainer (Manjaro): artoo + +_pkgname=ConsoleKit2 + +pkgname=consolekit +pkgver=0.9.2 +pkgrel=4 +pkgdesc="A framework for defining and tracking users, login sessions, and seats" +arch=('i686' 'x86_64') +url="https://github.com/ConsoleKit2/ConsoleKit2" +license=('GPL') +provides=('logind') +depends=('dbus' 'dbus-glib' 'libx11' 'polkit' 'udev' 'zlib') +optdepends=('consolekit-openrc: consolekit openrc initscript') +makedepends=('xmlto' 'docbook-xsl') +options=(libtool) +source=("$url/releases/download/$pkgver/$_pkgname-$pkgver.tar.bz2" + 'consolekit.tmpfiles.conf' + '75-consolekit.rules' + 'consolekit.logrotate' + '01-org.freedesktop.ModemManager1.rules' + '01-org.freedesktop.NetworkManager.settings.modify.system.rules') +sha256sums=('102aa07e0960e56740e235bba06a546c8e0e88f47546ef252ecda917935af41f' + '778552dc12b3c235bde200e476d4262da0c135f3f6f8b3e975a87881d1f154d1' + 'c5159d9fe8fdd52ad0d6a84af7ba00bac09edaae965896ab0d099a4df1c5ea6b' + '79735ddd37b8ce6216c78542c2a4e32692dce757c86ecd5771ea8a895a1e8e4d' + 'b8c47eb6de2ffbcd533514ecbc660842e072d8ba2bbe601608038ef6bc18dd17' + '3d0b6f30de1c91a95429af4fed99e41c8e8db55b45b2f3a17974c5be36c16475') + +build(){ + cd "$srcdir/$_pkgname-$pkgver" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --sbindir=/usr/bin \ + --libexecdir=/usr/lib/ConsoleKit \ + --localstatedir=/var \ + --enable-polkit \ + --enable-pam-module \ + --enable-udev-acl \ + --enable-docbook-docs \ + --with-dbus-services=/usr/share/dbus-1/services \ + --with-logrotate-dir=/etc/logrotate.d \ + --with-xinitrc-dir=/etc/X11/xinit/xinitrc.d \ + --with-pam-module-dir=/usr/lib/security \ + --without-systemdsystemunitdir + + make +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + make DESTDIR="$pkgdir" install + + #install -D -m644 data/consolekit.logrotate "$pkgdir"/etc/logrotate.d/consolekit + install -D -m644 "$srcdir"/consolekit.logrotate "$pkgdir"/etc/logrotate.d/consolekit + install -D -m644 data/90-consolekit "$pkgdir"/etc/X11/xinit/xinitrc.d/90-consolekit.sh + chmod +x "$pkgdir"/etc/X11/xinit/xinitrc.d/90-consolekit.sh + + install -D -m644 "$srcdir"/consolekit.tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/consolekit.conf + + rm -rf "${pkgdir}"/var/run + + install -d -m700 $pkgdir/etc/polkit-1/rules.d/ + install -D -m644 ${srcdir}/75-consolekit.rules $pkgdir/etc/polkit-1/rules.d/25-consolekit.rules + install -D -m644 ${srcdir}/01-org.freedesktop.ModemManager1.rules $pkgdir/etc/polkit-1/rules.d/ + install -D -m644 ${srcdir}/01-org.freedesktop.NetworkManager.settings.modify.system.rules $pkgdir/etc/polkit-1/rules.d/ + + chown 102 $pkgdir/etc/polkit-1/rules.d +} -- cgit v1.2.3-54-g00ecf