wok annotate acl/receipt @ rev 18145
Add defragfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 18 16:31:01 2015 +0200 (2015-06-18) |
parents | 7e1257627587 |
children | 45507bfb2b0d |
rev | line source |
---|---|
rcx@3746 | 1 # SliTaz package receipt. |
rcx@3746 | 2 |
rcx@3746 | 3 PACKAGE="acl" |
slaxemulator@10127 | 4 VERSION="2.2.51" |
rcx@3746 | 5 CATEGORY="system-tools" |
rcx@3746 | 6 SHORT_DESC="Commands for Manipulating POSIX Access Control Lists." |
rcx@3746 | 7 MAINTAINER="rcx@zoominternet.net" |
al@14766 | 8 LICENSE="LGPL2.1 GPL2" |
rcx@3746 | 9 WEB_SITE="http://savannah.nongnu.org/projects/acl/" |
al@14766 | 10 TARBALL="$PACKAGE-$VERSION.src.tar.gz" |
al@14766 | 11 WGET_URL="http://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL" |
pankso@16066 | 12 HOST_ARCH="i486 arm" |
al@14766 | 13 |
pankso@15988 | 14 DEPENDS="attr" |
al@14766 | 15 BUILD_DEPENDS="attr-dev bash libtool" |
rcx@3746 | 16 |
pankso@15988 | 17 # Handle cross compilation. |
pankso@15988 | 18 case "$ARCH" in |
pankso@15988 | 19 arm) BUILD_DEPENDS="attr-dev" ;; |
pankso@15988 | 20 esac |
pankso@15988 | 21 |
rcx@3746 | 22 # Rules to configure and make the package. |
rcx@3746 | 23 compile_rules() |
rcx@3746 | 24 { |
al@14766 | 25 # Need bash as /bin/sh to compile |
gokhlayeh@7894 | 26 mv /bin/sh /bin/sh.bak |
gokhlayeh@7894 | 27 ln -s /bin/bash /bin/sh |
gokhlayeh@7894 | 28 |
al@14766 | 29 { |
al@14766 | 30 INSTALL_USER=root \ |
al@14766 | 31 INSTALL_GROUP=root \ |
al@14766 | 32 ./configure \ |
al@14766 | 33 --prefix=/usr \ |
al@14766 | 34 --libdir=/lib \ |
al@14766 | 35 --libexecdir=/usr/lib \ |
al@14766 | 36 $CONFIGURE_ARGS && |
al@14766 | 37 make && |
al@14766 | 38 DIST_ROOT=$DESTDIR \ |
al@14766 | 39 make install install-lib install-dev |
al@14766 | 40 } || { |
al@14766 | 41 mv -f /bin/sh.bak /bin/sh; return 1 |
al@14766 | 42 } |
gokhlayeh@7894 | 43 |
gokhlayeh@7894 | 44 mv -f /bin/sh.bak /bin/sh |
al@14766 | 45 # .so and .la files must be executable |
al@14766 | 46 find $install -type f -name '*.[sl][oa]*' -exec chmod a+x \{\} \; |
al@14766 | 47 sed -i "s|libdir='/lib'|libdir='/usr/lib'|" $install/usr/lib/libacl.la |
rcx@3746 | 48 } |
rcx@3746 | 49 |
rcx@3746 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3746 | 51 genpkg_rules() |
rcx@3746 | 52 { |
gokhlayeh@8050 | 53 mkdir -p $fs/lib $fs/usr/lib |
al@14766 | 54 cp -a $install/lib/*.so* $fs/lib |
al@14766 | 55 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@14766 | 56 cp -a $install/usr/bin $fs/usr |
rcx@3746 | 57 } |