wok view dnsmasq/receipt @ rev 24569

sokojs: add shrink.sh (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 26 18:46:53 2022 +0000 (2022-02-26)
parents bfabe25c21ff
children c370be1be30e
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 }