Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pam.git;a=commitdiff;h=7e16c89bd2ee83f982197dd4b21550d5c2c1d12b

commit 7e16c89bd2ee83f982197dd4b21550d5c2c1d12b
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Thu Feb 11 22:58:15 2010 +0000

polkit-0.96-1-i686
*new package

diff --git a/source/apps/polkit/FrugalBuild b/source/apps/polkit/FrugalBuild
new file mode 100644
index 0000000..88a27fd
--- /dev/null
+++ b/source/apps/polkit/FrugalBuild
@@ -0,0 +1,23 @@
+# Compiling Time: 0.14 SBU
+# Maintainer: bouleetbil <bouleet...@frogdev.info>
+
+pkgname=polkit
+pkgver=0.96
+pkgrel=1
+pkgdesc="Policy framework for controlling privileges for system-wide services"
+url="http://hal.freedesktop.org/docs/PolicyKit";
+depends=('pam' 'dbus-glib' 'expat' 'eggdbus')
+makedepends=('intltool' 'gobject-introspection')
+groups=('apps')
+archs=('i686' 'x86_64' 'ppc')
+up2date="Flasttar http://hal.freedesktop.org/releases/";
+source=(http://hal.freedesktop.org/releases/$pkgname-$pkgver.tar.gz)
+sha1sums=('0815b2ee2ffc2ebf2b6fc73491018a898fc73930')
+replaces=('policykit')
+
+build() {
+       Fbuild --with-authdb=default --with-authfw=pam 
--with-os-type=FrugalWare \
+       --disable-selinux --disable-man-pages
+}
+
+# optimization OK
diff --git a/source/apps/polkit/polkit.install 
b/source/apps/polkit/polkit.install
new file mode 100644
index 0000000..f39fdea
--- /dev/null
+++ b/source/apps/polkit/polkit.install
@@ -0,0 +1,28 @@
+post_install() {
+        if ! grep -q 'polkituser' /etc/group; then
+               echo "added polkituser"
+               #create group
+               /usr/sbin/groupadd -g 67 polkituser 2>/dev/null
+               #create user
+               /usr/sbin/useradd -s /bin/false -c "polkituser" -u 67 -g 
polkituser polkituser 2>/dev/null
+        fi
+       #create directory
+       mkdir -p /var/run/polkit-1 2>/dev/null
+       mkdir -p /var/lib/polkit-1 2>/dev/null
+}
+
+post_upgrade()
+{
+        post_install
+
+}
+
+pre_remove()
+{
+       rm -Rf /var/run/polkit-1 2>/dev/null
+       rm -Rf /var/lib/polkit-1 2>/dev/null
+}
+
+op=$1
+shift
+$op $*
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to