wok-stable annotate PolicyKit0/receipt @ rev 3491
pam_mount: Fix path (avoid files in /usr)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jun 18 03:22:47 2009 +0200 (2009-06-18) |
parents | |
children | f06c8507c4c3 |
rev | line source |
---|---|
rcx@3351 | 1 # SliTaz package receipt. |
rcx@3351 | 2 |
rcx@3351 | 3 PACKAGE="PolicyKit0" |
rcx@3351 | 4 SOURCE="POLICY_KIT" |
rcx@3351 | 5 VERSION="0_9" |
rcx@3351 | 6 CATEGORY="system-tools" |
rcx@3351 | 7 SHORT_DESC="An application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes." |
rcx@3351 | 8 MAINTAINER="rcx@zoominternet.net" |
rcx@3351 | 9 DEPENDS="glibc-base glib dbus dbus-glib expat" |
rcx@3351 | 10 BUILD_DEPENDS="slitaz-toolchain m4 autoconf automake libtool glib-dev intltool \ |
rcx@3351 | 11 dbus-dev dbus-glib-dev expat-dev gettext pam-dev pam" |
rcx@3351 | 12 TARBALL="${SOURCE}_${VERSION}.tar.bz2" |
rcx@3351 | 13 WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit/" |
rcx@3351 | 14 WGET_URL="http://cgit.freedesktop.org/PolicyKit/snapshot/$TARBALL" |
rcx@3351 | 15 |
rcx@3351 | 16 # Rules to configure and make the package. |
rcx@3351 | 17 compile_rules() |
rcx@3351 | 18 { |
rcx@3351 | 19 mv ${SOURCE}_${VERSION} $SOURCE-$VERSION |
rcx@3351 | 20 cd $src |
rcx@3351 | 21 |
rcx@3351 | 22 # autogen.sh forces some unnecessary options; remove them |
rcx@3351 | 23 sed -i 's/gtkdocize /echo /' $src/autogen.sh || exit 1 |
rcx@3351 | 24 sed -i 's/--enable-gtk-doc//' $src/autogen.sh || exit 1 |
rcx@3351 | 25 sed -i 's/--enable-maintainer-mode//' $src/autogen.sh || exit 1 |
rcx@3351 | 26 sed -i 's/ doc / /' $src/Makefile.am || exit 1 |
rcx@3351 | 27 sed -i 's|doc/Makefile||' $src/configure.in || exit 1 |
rcx@3351 | 28 sed -i 's|doc/version.xml||' $src/configure.in || exit 1 |
rcx@3351 | 29 sed -i 's|doc/man/Makefile||' $src/configure.in || exit 1 |
rcx@3351 | 30 sed -i 's|GTK_DOC_CHECK(\[1.3\])||' $src/configure.in || exit 1 |
rcx@3351 | 31 rm -r -f $src/docs |
rcx@3351 | 32 |
rcx@3351 | 33 ./autogen.sh --prefix=/usr \ |
rcx@3351 | 34 --enable-gtk-doc=no \ |
rcx@3351 | 35 $CONFIGURE_ARGS && |
rcx@3351 | 36 make && |
rcx@3351 | 37 make DESTDIR=$src/_pkg install |
rcx@3351 | 38 } |
rcx@3351 | 39 |
rcx@3351 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3351 | 41 genpkg_rules() |
rcx@3351 | 42 { |
rcx@3351 | 43 mkdir -p $fs/usr/lib |
rcx@3351 | 44 cp -a $_pkg/usr/bin $fs/usr |
rcx@3351 | 45 cp -a $_pkg/usr/etc $fs/usr |
rcx@3351 | 46 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
rcx@3351 | 47 cp -a $_pkg/usr/libexec $fs/usr |
rcx@3351 | 48 cp -a $_pkg/usr/var $fs/usr |
rcx@3351 | 49 |
rcx@3351 | 50 mkdir -p $fs/usr/share |
rcx@3351 | 51 cp -a $_pkg/usr/share/dbus-1 $fs/usr/share |
rcx@3351 | 52 cp -a $_pkg/usr/share/PolicyKit $fs/usr/share |
rcx@3351 | 53 } |