summaryrefslogtreecommitdiffstats
path: root/polkit/Pkgfile
blob: 53d453168c7972c20cd0444e9f95337b72944405 (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
# Description: Systeme d'abstraction de materiel
# URL: http://hal.freedesktop.org/docs/polkit
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: expat, linux-pam, pambase, js, gobject-introspection, intltool
# Run on: expat,linux-pam,pambase

name=polkit
version=0.106
release=1
source=(http://www.freedesktop.org/software/polkit/releases/polkit-$version.tar.gz)

build() {
	cd $name-$version
	unset MAKEFLAGS
	PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/polkit-1 \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-examples \
		--enable-libsystemd-login=yes \
		--with-polkitd-user=polkitd \
		--with-os-type=NuTyX
	make
	make DESTDIR=$PKG install
	mkdir -p $PKG/var/{lib,run}/polkit-1

	chmod 4755 $PKG/usr/lib/polkit-1/polkit-agent-helper-1 $PKG/usr/bin/pkexec
	chown -R polkitd:polkitd $PKG/etc/polkit-1/rules.d $PKG/usr/share/polkit-1/rules.d
	chmod -R 700 $PKG/etc/polkit-1/rules.d $PKG/usr/share/polkit-1/rules.d

	sed "s|unix-group:wheel|unix-group:admin|" -i $PKG/etc/polkit-1/rules.d/50-default.rules
}