wok-next annotate coova-chilli/receipt @ rev 20534
Clean default configure options when site script used.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 30 19:31:50 2018 +0300 (2018-03-30) |
parents | 4396aed7eb01 |
children | 835b3b8ce6ac |
rev | line source |
---|---|
al@20464 | 1 # SliTaz package receipt v2. |
pascal@18274 | 2 |
pascal@18274 | 3 PACKAGE="coova-chilli" |
pascal@18274 | 4 VERSION="1.3.0" |
pascal@18274 | 5 CATEGORY="network" |
al@20464 | 6 SHORT_DESC="Captive portal or wireless LAN access point controller" |
pascal@18274 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18274 | 8 LICENSE="GPL3" |
al@20464 | 9 WEB_SITE="http://www.coova.org/CoovaChilli" |
al@20464 | 10 |
pascal@18274 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18274 | 12 WGET_URL="http://ap.coova.org/chilli/$TARBALL" |
pascal@18274 | 13 |
pascal@19699 | 14 BUILD_DEPENDS="openssl-dev curl-dev perl" |
al@20464 | 15 SPLIT="coova-chilli-dev" |
pascal@18274 | 16 |
al@20464 | 17 compile_rules() { |
pascal@19699 | 18 sed -i 's|return -1; safe_close|return -1;\n safe_close|' src/redir.c |
pascal@19699 | 19 sed -i 's|if (.\(safe_write.*\)) /. error ./|\1|' src/garden.c |
al@20464 | 20 ./configure \ |
al@20464 | 21 --enable-largelimits \ |
al@20464 | 22 --enable-binstatusfile \ |
al@20464 | 23 --enable-statusfile \ |
al@20464 | 24 --enable-chilliproxy \ |
al@20464 | 25 --enable-chilliradsec \ |
al@20464 | 26 --enable-chilliredir \ |
al@20464 | 27 --with-openssl \ |
al@20464 | 28 --with-curl \ |
al@20464 | 29 --with-poll \ |
al@20464 | 30 --enable-dhcpopt \ |
al@20464 | 31 --enable-sessgarden \ |
al@20464 | 32 --enable-dnslog \ |
al@20464 | 33 --enable-ipwhitelist \ |
al@20464 | 34 --enable-redirdnsreq \ |
al@20464 | 35 --enable-miniconfig \ |
al@20464 | 36 --enable-libjson \ |
al@20464 | 37 --enable-layer3 \ |
al@20464 | 38 --enable-proxyvsa \ |
al@20464 | 39 --enable-miniportal \ |
al@20464 | 40 --enable-chilliscript \ |
al@20464 | 41 --enable-eapol \ |
al@20464 | 42 --enable-uamdomainfile \ |
al@20464 | 43 --enable-modules \ |
al@20464 | 44 --enable-multiroute \ |
pascal@18274 | 45 $CONFIGURE_ARGS && |
pascal@18274 | 46 make && |
pascal@18274 | 47 make DESTDIR=$DESTDIR install |
pascal@18274 | 48 } |
pascal@18274 | 49 |
al@20464 | 50 genpkg_rules() { |
al@20464 | 51 case $PACKAGE in |
al@20464 | 52 coova-chilli) |
al@20534 | 53 copy @std |
al@20464 | 54 DEPENDS="openssl curl libidn" |
al@20464 | 55 ;; |
al@20464 | 56 *-dev) |
al@20534 | 57 copy @dev |
al@20464 | 58 ;; |
al@20464 | 59 esac |
pascal@18274 | 60 } |