wok-current diff dnsmasq/receipt @ rev 25549

created recipe for lesspipe
author Hans-G?nter Theisgen
date Mon Apr 03 06:53:23 2023 +0100 (19 months ago)
parents bfabe25c21ff
children
line diff
     1.1 --- a/dnsmasq/receipt	Sun Feb 13 18:01:32 2022 +0000
     1.2 +++ b/dnsmasq/receipt	Mon Apr 03 06:53:23 2023 +0100
     1.3 @@ -1,15 +1,21 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="dnsmasq"
     1.7 -VERSION="2.81"
     1.8 +VERSION="2.86"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Lightweight, DNS forwarder and DHCP server."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 +WEB_SITE="https://thekelleys.org.uk/dnsmasq/doc.html"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="http://www.thekelleys.org.uk/dnsmasq/doc.html"
    1.17 -WGET_URL="http://www.thekelleys.org.uk/$PACKAGE/$TARBALL"
    1.18 +WGET_URL="https://www.thekelleys.org.uk/$PACKAGE/$TARBALL"
    1.19 +
    1.20 +DEPENDS="gcc83-lib-base"
    1.21 +BUILD_DEPENDS="coreutils-file-sort gcc83"
    1.22 +
    1.23  CONFIG_FILES="/etc/dnsmasq.conf"
    1.24 +
    1.25  HOST_ARCH="i486 arm"
    1.26  
    1.27  # What is the latest version available today?
    1.28 @@ -22,17 +28,31 @@
    1.29  # Rules to configure and make the package.
    1.30  compile_rules()
    1.31  {
    1.32 -	sed -i -e 's/nawk/awk/' -e 's|/usr/local|/usr|' Makefile
    1.33 -	make PREFIX=/usr && make DESTDIR=$DESTDIR install &&
    1.34 +	# 2.86 obsolete
    1.35 +#	sed -i	-e 's/nawk/awk/'	\
    1.36 +#		Makefile
    1.37 +
    1.38 +	export	CFLAGS="$CFLAGS -std=c99"
    1.39 +
    1.40 +	make				\
    1.41 +		CC=gcc-83		\
    1.42 +		CFLAGS="$CFLAGS"	\
    1.43 +		PREFIX=$DESTDIR/usr &&
    1.44 +	make	install			\
    1.45 +		CC=gcc-83		\
    1.46 +		CFLAGS="$CFLAGS"	\
    1.47 +		PREFIX=$DESTDIR/usr &&
    1.48 +
    1.49  	mkdir -p $DESTDIR/etc &&
    1.50 -	cp -a $src/dnsmasq.conf.example $DESTDIR/etc/dnsmasq.conf
    1.51 +	cp -a $src/dnsmasq.conf.example	$DESTDIR/etc/dnsmasq.conf
    1.52  }
    1.53  
    1.54  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.55  genpkg_rules()
    1.56  {
    1.57  	mkdir -p $fs/usr
    1.58 -	cp -a $install/usr/sbin $fs/usr
    1.59 -	cp -a $install/etc $fs
    1.60 -	cp -a $stuff/* $fs
    1.61 +
    1.62 +	cp -a $install/etc	$fs
    1.63 +	cp -a $install/usr/sbin	$fs/usr
    1.64 +	cp -a $stuff/*		$fs
    1.65  }