wok-next rev 3351

Add: PolicyKit, version series 0_x
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jun 11 11:19:20 2009 +0000 (2009-06-11)
parents bedf285c387c
children cf754f3f4bab
files PolicyKit0-dev/receipt PolicyKit0/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/PolicyKit0-dev/receipt	Thu Jun 11 11:19:20 2009 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="PolicyKit0-dev"
     1.7 +VERSION="0_9"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="PolicyKit devel files."
    1.10 +MAINTAINER="rcx@zoominternet.net"
    1.11 +DEPENDS=""
    1.12 +BUILD_DEPENDS=""
    1.13 +WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit/"
    1.14 +WANTED="PolicyKit0"
    1.15 +SOURCE="POLICY_KIT"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	# tazwok does not set _pkg correctly
    1.21 +	_pkg=$WOK/$WANTED/$SOURCE-$VERSION/_pkg
    1.22 +	
    1.23 +	mkdir -p $fs/usr/lib
    1.24 +	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    1.25 +	cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib
    1.26 +	cp -a $_pkg/usr/include $fs/usr
    1.27 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/PolicyKit0/receipt	Thu Jun 11 11:19:20 2009 +0000
     2.3 @@ -0,0 +1,53 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="PolicyKit0"
     2.7 +SOURCE="POLICY_KIT"
     2.8 +VERSION="0_9"
     2.9 +CATEGORY="system-tools"
    2.10 +SHORT_DESC="An application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes."
    2.11 +MAINTAINER="rcx@zoominternet.net"
    2.12 +DEPENDS="glibc-base glib dbus dbus-glib expat"
    2.13 +BUILD_DEPENDS="slitaz-toolchain m4 autoconf automake libtool glib-dev intltool \
    2.14 +dbus-dev dbus-glib-dev expat-dev gettext pam-dev pam"
    2.15 +TARBALL="${SOURCE}_${VERSION}.tar.bz2"
    2.16 +WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit/"
    2.17 +WGET_URL="http://cgit.freedesktop.org/PolicyKit/snapshot/$TARBALL"
    2.18 +
    2.19 +# Rules to configure and make the package.
    2.20 +compile_rules()
    2.21 +{
    2.22 +	mv ${SOURCE}_${VERSION} $SOURCE-$VERSION
    2.23 +	cd $src
    2.24 +	
    2.25 +	# autogen.sh forces some unnecessary options; remove them
    2.26 +	sed -i 's/gtkdocize /echo /' $src/autogen.sh || exit 1
    2.27 +	sed -i 's/--enable-gtk-doc//' $src/autogen.sh || exit 1
    2.28 +	sed -i 's/--enable-maintainer-mode//' $src/autogen.sh || exit 1
    2.29 +	sed -i 's/ doc / /' $src/Makefile.am || exit 1
    2.30 +	sed -i 's|doc/Makefile||' $src/configure.in || exit 1
    2.31 +	sed -i 's|doc/version.xml||' $src/configure.in || exit 1
    2.32 +	sed -i 's|doc/man/Makefile||' $src/configure.in || exit 1
    2.33 +	sed -i 's|GTK_DOC_CHECK(\[1.3\])||' $src/configure.in || exit 1
    2.34 +	rm -r -f $src/docs
    2.35 +		
    2.36 +    ./autogen.sh --prefix=/usr \
    2.37 +		--enable-gtk-doc=no \
    2.38 +		$CONFIGURE_ARGS  &&
    2.39 +    make &&
    2.40 +    make DESTDIR=$src/_pkg install
    2.41 +}
    2.42 +
    2.43 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.44 +genpkg_rules()
    2.45 +{
    2.46 +	mkdir -p  $fs/usr/lib
    2.47 +	cp -a $_pkg/usr/bin $fs/usr
    2.48 +	cp -a $_pkg/usr/etc $fs/usr
    2.49 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.50 +	cp -a $_pkg/usr/libexec $fs/usr
    2.51 +	cp -a $_pkg/usr/var $fs/usr
    2.52 +	
    2.53 +	mkdir -p $fs/usr/share
    2.54 +	cp -a $_pkg/usr/share/dbus-1 $fs/usr/share
    2.55 +	cp -a $_pkg/usr/share/PolicyKit $fs/usr/share
    2.56 +}