2009-12-04 07:05:13 +01:00
|
|
|
# Template file for 'dnsmasq'
|
|
|
|
pkgname=dnsmasq
|
2014-05-21 21:52:20 +02:00
|
|
|
version=2.71
|
2014-04-10 00:08:16 +02:00
|
|
|
revision=1
|
2013-11-03 07:20:30 +01:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="dbus-devel libcap-devel libidn-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/dnsmasq.conf"
|
|
|
|
system_accounts="dnsmasq"
|
2009-12-04 07:05:13 +01:00
|
|
|
short_desc="Lightweight, easy to configure DNS forwarder and DHCP server"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-08 18:50:02 +02:00
|
|
|
license="GPL-2"
|
2012-07-09 23:00:38 +02:00
|
|
|
homepage="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
|
|
|
distfiles="http://www.thekelleys.org.uk/$pkgname/$pkgname-$version.tar.gz"
|
2014-05-21 21:52:20 +02:00
|
|
|
checksum=7d8c64f66a396442e01b639df3ea6b4e02ba88cbe206c80be8de68b6841634c4
|
2009-12-04 07:05:13 +01:00
|
|
|
|
2012-05-27 20:04:01 +02:00
|
|
|
do_build() {
|
2011-10-08 18:50:02 +02:00
|
|
|
echo '#define HAVE_DBUS' >> src/config.h
|
2014-02-18 16:47:07 +01:00
|
|
|
make CC=$CC ${makejobs}
|
2011-10-08 18:50:02 +02:00
|
|
|
}
|
|
|
|
|
2012-05-27 20:04:01 +02:00
|
|
|
do_install() {
|
2011-10-08 18:50:02 +02:00
|
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
|
|
|
|
|
|
vinstall dnsmasq.conf.example 644 etc dnsmasq.conf
|
2012-07-09 23:00:38 +02:00
|
|
|
vinstall ${FILESDIR}/dnsmasq.service 644 usr/lib/systemd/system
|
2011-10-08 18:50:02 +02:00
|
|
|
vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d
|
2009-12-04 07:05:13 +01:00
|
|
|
}
|