wok-6.x annotate chillispot/receipt @ rev 24427
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 11:42:56 2022 +0000 (2022-02-12) |
parents | eb8067417980 |
children |
rev | line source |
---|---|
pascal@1325 | 1 # SliTaz package receipt. |
pascal@1325 | 2 |
pascal@1325 | 3 PACKAGE="chillispot" |
pascal@1325 | 4 VERSION="1.1.0" |
pascal@1325 | 5 CATEGORY="network" |
pascal@1325 | 6 SHORT_DESC="Captive portal or wireless LAN access point controller." |
pascal@1325 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL2" |
pascal@1325 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1325 | 10 WEB_SITE="http://www.chillispot.info/" |
pascal@1325 | 11 WGET_URL="${WEB_SITE}download/$TARBALL" |
pascal@1325 | 12 CONFIG_FILES="/etc/chilli.conf" |
pascal@1325 | 13 |
pascal@24427 | 14 # What is the latest version available today? |
pascal@24427 | 15 current_version() |
pascal@24427 | 16 { |
pascal@24427 | 17 wget -O - http://www.chillispot.org/download.html 2>/dev/null | \ |
pascal@24427 | 18 sed '/Released/!d;s|.*hillispot ||;s| Released.*||;q' |
pascal@24427 | 19 } |
pascal@24427 | 20 |
pascal@1325 | 21 # Rules to configure and make the package. |
pascal@1325 | 22 compile_rules() |
pascal@1325 | 23 { |
pascal@1325 | 24 cd $src |
pascal@4201 | 25 sed -i 's/) defined (/) || defined (/' src/tun.c |
pascal@1325 | 26 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1325 | 27 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \ |
pascal@15579 | 28 make && make DESTDIR=$DESTDIR install |
pascal@1325 | 29 } |
pascal@1325 | 30 |
pascal@1325 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1325 | 32 genpkg_rules() |
pascal@1325 | 33 { |
pascal@1325 | 34 mkdir -p $fs/usr $fs/etc/init.d $fs/var/lib/chilli/ |
pascal@15579 | 35 cp -a $install/usr/sbin $fs/usr |
pascal@1325 | 36 cp $src/doc/chilli.conf $fs/etc |
pankso@9697 | 37 cp $stuff/chilli $fs/etc/init.d |
pascal@1325 | 38 } |
pascal@1325 | 39 |