wok-next annotate coova-chilli/receipt @ rev 19699
coova-chilli: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 23 13:42:55 2017 +0200 (2017-04-23) |
parents | ca61db166b09 |
children | e6615350078d |
rev | line source |
---|---|
pascal@18274 | 1 # SliTaz package receipt. |
pascal@18274 | 2 |
pascal@18274 | 3 PACKAGE="coova-chilli" |
pascal@18274 | 4 VERSION="1.3.0" |
pascal@18274 | 5 CATEGORY="network" |
pascal@18274 | 6 SHORT_DESC="Captive portal or wireless LAN access point controller." |
pascal@18274 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18274 | 8 LICENSE="GPL3" |
pascal@18274 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18274 | 10 WEB_SITE="http://www.coova.org/CoovaChilli" |
pascal@18274 | 11 WGET_URL="http://ap.coova.org/chilli/$TARBALL" |
pascal@18274 | 12 |
pascal@18274 | 13 DEBENDS="libssl curl libidn" |
pascal@19699 | 14 BUILD_DEPENDS="openssl-dev curl-dev perl" |
pascal@18274 | 15 |
pascal@18274 | 16 # Rules to configure and make the package. |
pascal@18274 | 17 compile_rules() |
pascal@18274 | 18 { |
pascal@19699 | 19 sed -i 's|return -1; safe_close|return -1;\n safe_close|' src/redir.c |
pascal@19699 | 20 sed -i 's|if (.\(safe_write.*\)) /. error ./|\1|' src/garden.c |
pascal@18274 | 21 ./configure --prefix=/usr --mandir=/usr/share/man \ |
pascal@18274 | 22 --infodir=/usr/share/info \ |
pascal@18274 | 23 --sysconfdir=/etc --localstatedir=/var --enable-largelimits \ |
pascal@18274 | 24 --enable-binstatusfile --enable-statusfile --enable-chilliproxy \ |
pascal@18274 | 25 --enable-chilliradsec --enable-chilliredir --with-openssl --with-curl \ |
pascal@18274 | 26 --with-poll --enable-dhcpopt --enable-sessgarden --enable-dnslog \ |
pascal@18274 | 27 --enable-ipwhitelist --enable-redirdnsreq --enable-miniconfig \ |
pascal@18274 | 28 --enable-libjson --enable-layer3 --enable-proxyvsa --enable-miniportal \ |
pascal@18274 | 29 --enable-chilliscript --enable-eapol --enable-uamdomainfile \ |
pascal@18274 | 30 --enable-modules --enable-multiroute \ |
pascal@18274 | 31 $CONFIGURE_ARGS && |
pascal@18274 | 32 make && |
pascal@18274 | 33 make DESTDIR=$DESTDIR install |
pascal@18274 | 34 } |
pascal@18274 | 35 |
pascal@18274 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18274 | 37 genpkg_rules() |
pascal@18274 | 38 { |
pascal@18274 | 39 mkdir -p $fs/usr/lib/coova-chilli |
pascal@18274 | 40 cp -a $install/usr/lib/coova-chilli/*.so* $fs/usr/lib/ |
pascal@18274 | 41 cp -a $install/usr/lib/*.so* $fs/usr/lib/ |
pascal@18274 | 42 cp -a $install/usr/sbin $fs/usr/ |
pascal@18274 | 43 cp -a $install/etc $fs/ |
pascal@18274 | 44 } |