wok-4.x diff acl/receipt @ rev 3746

Add: acl
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jul 23 13:37:17 2009 +0000 (2009-07-23)
parents
children 22fccd4d5400
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/acl/receipt	Thu Jul 23 13:37:17 2009 +0000
     1.3 @@ -0,0 +1,56 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="acl"
     1.7 +VERSION="2.2.47-1"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Commands for Manipulating POSIX Access Control Lists."
    1.10 +MAINTAINER="rcx@zoominternet.net"
    1.11 +DEPENDS="glibc-base attr"
    1.12 +BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 libtool gettext"
    1.13 +TARBALL="${PACKAGE}_${VERSION}.tar.gz"
    1.14 +WEB_SITE="http://savannah.nongnu.org/projects/acl/"
    1.15 +WGET_URL="ftp://oss.sgi.com/projects/xfs/cmd_tars/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	mv $PACKAGE-2.2.47 $PACKAGE-$VERSION
    1.21 +
    1.22 +	cd $src
    1.23 +
    1.24 +	# Patch commands are from http://minimalinux.org/forum/viewtopic.php?pid=1446#p1446
    1.25 +
    1.26 +	# these sed lines replace the patch "attr.destdir.diff" from the Slackware source files
    1.27 +	sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in
    1.28 +	sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in
    1.29 +	sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in
    1.30 +	sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in
    1.31 +	sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in
    1.32 +	sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in
    1.33 +	
    1.34 +	# force docdir conformance to Slack default
    1.35 +	sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in
    1.36 +	sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in
    1.37 +
    1.38 +	# Don't need to build man and doc
    1.39 +	rm -r -f man
    1.40 +	rm -r -f doc
    1.41 +
    1.42 +	./configure \
    1.43 +		--prefix=/usr \
    1.44 +		$CONFIGURE_ARGS &&
    1.45 +	make &&
    1.46 +	make DESTDIR=$src/_pkg install install-lib install-dev
    1.47 +}
    1.48 +
    1.49 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.50 +genpkg_rules()
    1.51 +{
    1.52 +	mkdir -p $fs/usr/lib
    1.53 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.54 +	
    1.55 +	mkdir -p $fs/usr/libexec
    1.56 +	cp -a $_pkg/usr/libexec/*.so* $fs/usr/libexec
    1.57 +	
    1.58 +	cp -a $_pkg/usr/bin $fs/usr
    1.59 +}