wok-next view atftp/receipt @ rev 20727

python-gevent-psycopg2: fix error "urllib2.HTTPError: HTTP Error 403: SSL is required"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 28 15:32:33 2018 +0300 (2018-05-28)
parents c4e53a39395a
children 342b30daff76
line source
1 # SliTaz package receipt v2.
3 PACKAGE="atftp"
4 VERSION="0.7"
5 CATEGORY="network"
6 SHORT_DESC="Advanced Trivial File Transport Protocol"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://freshmeat.net/projects/atftp/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://downloads.openwrt.org/sources/$TARBALL"
14 BUILD_DEPENDS="pcre-dev readline-dev"
15 SPLIT="atftpd"
17 compile_rules() {
18 sed -i -e 's/char \*__entry) __THROW/char *__entry))/' \
19 -e 's/^_*argz_next/__NTH(&/' argz.h
20 sed -i 's/CLK_TCK/CLOCKS_PER_SEC/' stats.c
21 sed -i 's/D_REENTRANT/& -std=gnu89/' configure*
22 ./configure \
23 --prefix=/usr \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 atftp)
34 mkdir -p $fs/usr
35 cp -a $install/usr/bin $fs/usr
36 CAT="network|client"
37 DEPENDS="ncurses readline"
38 ;;
39 atftpd)
40 mkdir -p $fs/usr
41 cp -a $install/usr/sbin $fs/usr
42 CAT="network|server"
43 DEPENDS="pcre"
44 ;;
45 esac
46 }