wok-current view acl/receipt @ rev 7894
acl: Need bash sh to compile
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Jan 09 13:54:38 2011 +0100 (2011-01-09) |
parents | 67c05a14a3b1 |
children | 58b03979b9da |
line source
1 # SliTaz package receipt.
3 PACKAGE="acl"
4 VERSION="2.2.49"
5 CATEGORY="system-tools"
6 SHORT_DESC="Commands for Manipulating POSIX Access Control Lists."
7 MAINTAINER="rcx@zoominternet.net"
8 DEPENDS="glibc-base attr"
9 BUILD_DEPENDS="slitaz-toolchain autoconf automake m4 libtool gettext attr-dev attr"
10 TARBALL="${PACKAGE}-${VERSION}.src.tar.gz"
11 WEB_SITE="http://savannah.nongnu.org/projects/acl/"
12 WGET_URL="http://nongnu.askapache.com/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # Patch commands are from http://minimalinux.org/forum/viewtopic.php?pid=1446#p1446
21 # these sed lines replace the patch "attr.destdir.diff" from the Slackware source files
22 sed -i s%"@bindir@"%"\$\(DESTDIR\)@bindir@"% include/builddefs.in
23 sed -i s%"@sbindir@"%"\$\(DESTDIR\)@sbindir@"% include/builddefs.in
24 sed -i s%"@libdir@@libdirsuffix@"%"\$\(DESTDIR\)@libdir@@libdirsuffix@"% include/builddefs.in
25 sed -i s%"@libexecdir@@libdirsuffix@"%"\$\(DESTDIR\)@libexecdir@@libdirsuffix@"% include/builddefs.in
26 sed -i s%"@includedir@/attr"%"\$\(DESTDIR\)@includedir@/attr"% include/builddefs.in
27 sed -i s%"@mandir@"%"\$\(DESTDIR\)@mandir@"% include/builddefs.in
29 # force docdir conformance to Slack default
30 sed -i s%"@datadir@/doc/@pkg_name@"%"\$\(DESTDIR\)/usr/doc/@pkg_name@-\$\(VERSION\)"% include/builddefs.in
31 sed -i s%"@datadir@/locale"%"\$\(DESTDIR\)@datadir@/locale"% include/builddefs.in
33 # Don't need to build man and doc
34 # rm -r -f man
35 # rm -r -f doc
37 # Need bash sh to compile
38 mv /bin/sh /bin/sh.bak
39 ln -s /bin/bash /bin/sh
41 # Configure is included in Makefile
42 { make LOCAL_CONFIGURE_OPTIONS="$CONFIGURE_ARGS" &&
43 make install install-lib install-dev
44 } || { mv -f /bin/sh.bak /bin/sh; return 1; }
46 mv -f /bin/sh.bak /bin/sh
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/lib
53 cp -a $_pkg/lib/*.so* $fs/lib
55 # Symlinks are not created correctly; create manually
56 mkdir -p $fs/usr/lib
57 ln -s /lib/libacl.so $fs/usr/lib/libacl.so
59 cp -a $_pkg/usr/bin $fs/usr
60 }