wok-next annotate coova-chilli/receipt @ rev 20464

Combine receipts (final)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 07 19:43:44 2018 +0200 (2018-03-07)
parents e6615350078d
children 757d032c55c7
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 --prefix=/usr \
al@20464 22 --mandir=/usr/share/man \
pascal@18274 23 --infodir=/usr/share/info \
al@20464 24 --sysconfdir=/etc \
al@20464 25 --localstatedir=/var \
al@20464 26 --enable-largelimits \
al@20464 27 --enable-binstatusfile \
al@20464 28 --enable-statusfile \
al@20464 29 --enable-chilliproxy \
al@20464 30 --enable-chilliradsec \
al@20464 31 --enable-chilliredir \
al@20464 32 --with-openssl \
al@20464 33 --with-curl \
al@20464 34 --with-poll \
al@20464 35 --enable-dhcpopt \
al@20464 36 --enable-sessgarden \
al@20464 37 --enable-dnslog \
al@20464 38 --enable-ipwhitelist \
al@20464 39 --enable-redirdnsreq \
al@20464 40 --enable-miniconfig \
al@20464 41 --enable-libjson \
al@20464 42 --enable-layer3 \
al@20464 43 --enable-proxyvsa \
al@20464 44 --enable-miniportal \
al@20464 45 --enable-chilliscript \
al@20464 46 --enable-eapol \
al@20464 47 --enable-uamdomainfile \
al@20464 48 --enable-modules \
al@20464 49 --enable-multiroute \
pascal@18274 50 $CONFIGURE_ARGS &&
pascal@18274 51 make &&
pascal@18274 52 make DESTDIR=$DESTDIR install
pascal@18274 53 }
pascal@18274 54
al@20464 55 genpkg_rules() {
al@20464 56 case $PACKAGE in
al@20464 57 coova-chilli)
al@20464 58 mkdir -p $fs/usr/lib/coova-chilli
al@20464 59 cp -a $install/usr/lib/coova-chilli/*.so* $fs/usr/lib/
al@20464 60 cp -a $install/usr/lib/*.so* $fs/usr/lib/
al@20464 61 cp -a $install/usr/sbin $fs/usr/
al@20464 62 cp -a $install/etc $fs/
al@20464 63 DEPENDS="openssl curl libidn"
al@20464 64 ;;
al@20464 65 *-dev)
al@20464 66 mkdir -p $fs/usr/lib/coova-chilli
al@20464 67 cp -a $install/usr/lib/coova-chilli/*a $fs/usr/lib/
al@20464 68 cp -a $install/usr/lib/*a $fs/usr/lib/
al@20464 69 cp -a $install/usr/lib/python $fs/usr/lib/
al@20464 70 cp -a $install/usr/include $fs/usr/
al@20464 71 ;;
al@20464 72 esac
pascal@18274 73 }