wok-current annotate posixovl/receipt @ rev 14245
posixovl: fix symlink size
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 23 19:33:01 2013 +0100 (2013-03-23) |
parents | 404d32ff75a1 |
children | 51a1ebbda768 |
rev | line source |
---|---|
pascal@10913 | 1 # SliTaz package receipt. |
pascal@10913 | 2 |
pascal@10913 | 3 PACKAGE="posixovl" |
pascal@11987 | 4 VERSION="1.2" |
pascal@10913 | 5 CATEGORY="system-tools" |
pascal@10913 | 6 SHORT_DESC="A modern equivalent of the UMSDOS." |
pascal@10913 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@11987 | 8 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@10913 | 9 WEB_SITE="http://$PACKAGE.sourceforge.net/" |
pascal@10913 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@10913 | 11 |
pascal@10913 | 12 DEPENDS="fuse attr" |
pascal@10913 | 13 BUILD_DEPENDS="autoconf automake fuse-dev attr-dev" |
pascal@10913 | 14 |
pascal@10913 | 15 # Rules to configure and make the package. |
pascal@10913 | 16 compile_rules() |
pascal@10913 | 17 { |
pascal@10913 | 18 mv $PACKAGE $src 2> /dev/null |
pascal@10913 | 19 cd $src |
pascal@14245 | 20 grep -q 'else if (!S_ISREG' posixovl.c || |
pascal@14245 | 21 sed -i 's/if (!S_ISREG/if (S_ISLNK(cb->ll.mode))\n\t\tcb->sb.st_size = strlen(cb->ll.target);\n\telse &/' posixovl.c |
pascal@14245 | 22 sed -i 's/cb->ll.size/0/' posixovl.c |
pascal@10913 | 23 sh autogen.sh |
pascal@10913 | 24 ./configure --prefix=/usr --mandir=/usr/share/man \ |
pascal@10913 | 25 $CONFIGURE_ARGS && |
pascal@10913 | 26 make |
pascal@10913 | 27 } |
pascal@10913 | 28 |
pascal@10913 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@10913 | 30 genpkg_rules() |
pascal@10913 | 31 { |
pascal@10913 | 32 mkdir -p $fs/usr/sbin |
pascal@10913 | 33 cp $src/mount.posixovl $fs/usr/sbin |
pascal@10913 | 34 } |