wok-4.x view PolicyKit/receipt @ rev 4022
Fix: PolicyKit FSH --localstatedir=/var and genpkg_rules
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Sep 04 12:12:41 2009 +0200 (2009-09-04) |
parents | af9d0eb512b0 |
children | a9798561d07c |
line source
1 # SliTaz package receipt.
3 PACKAGE="PolicyKit"
4 VERSION="0.92"
5 CATEGORY="system-tools"
6 SHORT_DESC="An application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes."
7 MAINTAINER="rcx@zoominternet.net"
8 DEPENDS="glibc-base glib libgio dbus dbus-glib eggdbus expat pam"
9 BUILD_DEPENDS="slitaz-toolchain m4 autoconf automake libtool glib-dev intltool \
10 libxslt-dev expat-dev pam-dev pam gettext eggdbus eggdbus-dev dbus-dev dbus-glib-dev"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit/"
13 WGET_URL="http://cgit.freedesktop.org/$PACKAGE/snapshot/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
20 # autogen.sh forces some unnecessary options; remove them
21 sed -i 's/gtkdocize /echo /' $src/autogen.sh || exit 1
22 sed -i 's/--enable-gtk-doc//' $src/autogen.sh || exit 1
23 sed -i 's/--enable-maintainer-mode//' $src/autogen.sh || exit 1
24 sed -i 's/ docs / /' $src/Makefile.am || exit 1
25 sed -i 's|docs/version.xml||' $src/configure.ac || exit 1
26 sed -i 's|docs/extensiondir.xml||' $src/configure.ac || exit 1
27 sed -i 's|docs/Makefile||' $src/configure.ac || exit 1
28 sed -i 's|docs/polkit/Makefile||' $src/configure.ac || exit 1
29 sed -i 's|docs/man/Makefile||' $src/configure.ac || exit 1
30 sed -i 's|GTK_DOC_CHECK(\[1.3\])||' $src/configure.ac || exit 1
31 rm -r -f $src/docs
33 ./autogen.sh --prefix=/usr \
34 --sysconfdir=/etc \
35 --localstatedir=/var \
36 --libexecdir=/usr/lib/PolicyKit \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$src/_pkg install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/lib/PolicyKit $fs/usr/lib
48 cp -a $_pkg/etc $fs
49 cp -a $_pkg/var $fs
51 mkdir -p $fs/usr/share
52 cp -a $_pkg/usr/share/dbus-1 $fs/usr/share
53 cp -a $_pkg/usr/share/polkit-1 $fs/usr/share
55 mkdir -p $fs/usr/lib/polkit-1/extensions
56 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
57 cp -a $_pkg/usr/lib/polkit-1/extensions/*.so* $fs/usr/lib/polkit-1/extensions
58 }