From 525be9bb371ca62c3222587d6d09695dc79ed69f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 29 Nov 2009 00:08:14 +0100 Subject: [PATCH] Added polkit-0.95 build template. --HG-- extra : convert_revision : 8a37a17372dc133f11c8faf9260fed71ba0f0f28 --- srcpkgs/polkit-devel | 1 + srcpkgs/polkit/depends | 2 ++ srcpkgs/polkit/polkit-devel.template | 19 ++++++++++++++ srcpkgs/polkit/template | 38 ++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 120000 srcpkgs/polkit-devel create mode 100644 srcpkgs/polkit/depends create mode 100644 srcpkgs/polkit/polkit-devel.template create mode 100644 srcpkgs/polkit/template diff --git a/srcpkgs/polkit-devel b/srcpkgs/polkit-devel new file mode 120000 index 0000000000..3b45280441 --- /dev/null +++ b/srcpkgs/polkit-devel @@ -0,0 +1 @@ +polkit \ No newline at end of file diff --git a/srcpkgs/polkit/depends b/srcpkgs/polkit/depends new file mode 100644 index 0000000000..7357c000f4 --- /dev/null +++ b/srcpkgs/polkit/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.95" +api_depends="${abi_depends}" diff --git a/srcpkgs/polkit/polkit-devel.template b/srcpkgs/polkit/polkit-devel.template new file mode 100644 index 0000000000..f0bf19ca16 --- /dev/null +++ b/srcpkgs/polkit/polkit-devel.template @@ -0,0 +1,19 @@ +# Template file for 'polkit-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run polkit +Add_dependency run eggdbus-devel + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/girepository* ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/gir* ${DESTDIR}/usr/share +} diff --git a/srcpkgs/polkit/template b/srcpkgs/polkit/template new file mode 100644 index 0000000000..92115ad3ab --- /dev/null +++ b/srcpkgs/polkit/template @@ -0,0 +1,38 @@ +# Template file for 'polkit' +pkgname=polkit +version=0.95 +distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz" +build_style=gnu_configure +configure_args="--disable-static --localstatedir=/var" +short_desc="Authorization Toolkit" +maintainer="Juan RP " +checksum=b484248ed8fa7419170cf98d7cba51d68290783c3c7cac7c5dab7605dfe3c79c +long_desc=" + PolicyKit is an application-level toolkit for defining and handling the + policy that allows unprivileged processes to speak to privileged processes. + + It is a framework for centralizing the decision making process with respect + to granting access to privileged operations (like calling the HAL Mount() + method) for unprivileged (desktop) applications." + +subpackages="$pkgname-devel" +Add_dependency full eggdbus +Add_dependency full pam +Add_dependency build intltool +Add_dependency build libxslt +Add_dependency build gobject-introspection + +post_install() +{ + mkdir -p ${DESTDIR}/etc/pam.d + cat >> ${DESTDIR}/etc/pam.d/polkit-1 <<_EOF +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 +_EOF + chmod 644 ${DESTDIR}/etc/pam.d/polkit-1 +}