wok-current annotate dnsmasq/receipt @ rev 25552

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