wok-next diff atftp/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | c4e53a39395a |
children | 342b30daff76 |
line diff
1.1 --- a/atftp/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/atftp/receipt Fri Apr 27 15:12:17 2018 +0300 1.3 @@ -1,35 +1,46 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="atftp" 1.8 VERSION="0.7" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="Advanced Trivial File Transport Protocol client." 1.11 +SHORT_DESC="Advanced Trivial File Transport Protocol" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2" 1.14 WEB_SITE="http://freshmeat.net/projects/atftp/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 WGET_URL="http://downloads.openwrt.org/sources/$TARBALL" 1.18 1.19 -DEPENDS="ncurses readline" 1.20 BUILD_DEPENDS="pcre-dev readline-dev" 1.21 +SPLIT="atftpd" 1.22 1.23 -# Rules to configure and make the package. 1.24 -compile_rules() 1.25 -{ 1.26 +compile_rules() { 1.27 sed -i -e 's/char \*__entry) __THROW/char *__entry))/' \ 1.28 -e 's/^_*argz_next/__NTH(&/' argz.h 1.29 sed -i 's/CLK_TCK/CLOCKS_PER_SEC/' stats.c 1.30 sed -i 's/D_REENTRANT/& -std=gnu89/' configure* 1.31 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.32 - --mandir=/usr/share/man \ 1.33 - $CONFIGURE_ARGS && 1.34 + ./configure \ 1.35 + --prefix=/usr \ 1.36 + --infodir=/usr/share/info \ 1.37 + --mandir=/usr/share/man \ 1.38 + $CONFIGURE_ARGS && 1.39 make && 1.40 make DESTDIR=$DESTDIR install 1.41 } 1.42 1.43 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.44 -genpkg_rules() 1.45 -{ 1.46 - mkdir -p $fs/usr 1.47 - cp -a $install/usr/bin $fs/usr 1.48 +genpkg_rules() { 1.49 + case $PACKAGE in 1.50 + atftp) 1.51 + mkdir -p $fs/usr 1.52 + cp -a $install/usr/bin $fs/usr 1.53 + CAT="network|client" 1.54 + DEPENDS="ncurses readline" 1.55 + ;; 1.56 + atftpd) 1.57 + mkdir -p $fs/usr 1.58 + cp -a $install/usr/sbin $fs/usr 1.59 + CAT="network|server" 1.60 + DEPENDS="pcre" 1.61 + ;; 1.62 + esac 1.63 }