wok view wifidog/receipt @ rev 25491
Up foomatic-db-nonfree (20221116)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 17 12:13:24 2022 +0000 (23 months ago) |
parents | 5ea0ce1cecc0 |
children | 0262035dc1e7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wifidog"
4 VERSION="1.3.0"
5 CATEGORY="network"
6 SHORT_DESC="Captive portal solution for hotspot, gateway side."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/wifidog/wifidog-gateway"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/wifidog-gateway/archive/$VERSION.tar.gz"
14 BUILD_DEPENDS="libtool"
16 CONFIG_FILES="/etc/wifidog.conf"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./autogen.sh \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 mkdir -p $fs/etc/init.d
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 cp $src/wifidog.conf $fs/etc
45 cp $src/scripts/init.d/wifidog $fs/etc/init.d
46 }