wok view dnsmasq/receipt @ rev 25687
updated sc-im (0.8.2 -> 0.8.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 11 14:51:51 2024 +0100 (7 months ago) |
parents | 293b75a2e1b2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="dnsmasq"
4 VERSION="2.90"
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 }