wok-current view dnsmasq/receipt @ rev 25234

updated python-routes (2.4.1 -> 2.5.1)
author Hans-G?nter Theisgen
date Wed Jul 13 17:31:59 2022 +0100 (2022-07-13)
parents bfabe25c21ff
children
line source
1 # SliTaz package receipt.
3 PACKAGE="dnsmasq"
4 VERSION="2.86"
5 CATEGORY="network"
6 SHORT_DESC="Lightweight, DNS forwarder and DHCP server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://thekelleys.org.uk/dnsmasq/doc.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.thekelleys.org.uk/$PACKAGE/$TARBALL"
14 DEPENDS="gcc83-lib-base"
15 BUILD_DEPENDS="coreutils-file-sort gcc83"
17 CONFIG_FILES="/etc/dnsmasq.conf"
19 HOST_ARCH="i486 arm"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/*} 2>/dev/null | \
25 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # 2.86 obsolete
32 # sed -i -e 's/nawk/awk/' \
33 # Makefile
35 export CFLAGS="$CFLAGS -std=c99"
37 make \
38 CC=gcc-83 \
39 CFLAGS="$CFLAGS" \
40 PREFIX=$DESTDIR/usr &&
41 make install \
42 CC=gcc-83 \
43 CFLAGS="$CFLAGS" \
44 PREFIX=$DESTDIR/usr &&
46 mkdir -p $DESTDIR/etc &&
47 cp -a $src/dnsmasq.conf.example $DESTDIR/etc/dnsmasq.conf
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr
55 cp -a $install/etc $fs
56 cp -a $install/usr/sbin $fs/usr
57 cp -a $stuff/* $fs
58 }