blob: 42a4a0707f52780c3d6662dc5431564a3488f314 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer : freaj <freaj@riseup.net>
# Maintainer (Manjaro): artoo <artoo@manjaro.org>
_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
}
|