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

Fix libtool where applicable (a*-f* packages yet); combine collectd* receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 13 07:14:16 2018 +0300 (2018-04-13)
parents 757d032c55c7
children d5aab818505e
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@20569 20
al@20464 21 ./configure \
al@20464 22 --enable-largelimits \
al@20464 23 --enable-binstatusfile \
al@20464 24 --enable-statusfile \
al@20464 25 --enable-chilliproxy \
al@20464 26 --enable-chilliradsec \
al@20464 27 --enable-chilliredir \
al@20464 28 --with-openssl \
al@20464 29 --with-curl \
al@20464 30 --with-poll \
al@20464 31 --enable-dhcpopt \
al@20464 32 --enable-sessgarden \
al@20464 33 --enable-dnslog \
al@20464 34 --enable-ipwhitelist \
al@20464 35 --enable-redirdnsreq \
al@20464 36 --enable-miniconfig \
al@20464 37 --enable-libjson \
al@20464 38 --enable-layer3 \
al@20464 39 --enable-proxyvsa \
al@20464 40 --enable-miniportal \
al@20464 41 --enable-chilliscript \
al@20464 42 --enable-eapol \
al@20464 43 --enable-uamdomainfile \
al@20464 44 --enable-modules \
al@20464 45 --enable-multiroute \
pascal@18274 46 $CONFIGURE_ARGS &&
al@20569 47 fix libtool &&
pascal@18274 48 make &&
pascal@18274 49 make DESTDIR=$DESTDIR install
pascal@18274 50 }
pascal@18274 51
al@20464 52 genpkg_rules() {
al@20464 53 case $PACKAGE in
al@20464 54 coova-chilli)
al@20534 55 copy @std
al@20464 56 DEPENDS="openssl curl libidn"
al@20464 57 ;;
al@20464 58 *-dev)
al@20534 59 copy @dev
al@20464 60 ;;
al@20464 61 esac
pascal@18274 62 }