wok-next annotate atftp/receipt @ rev 20486

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