2009-12-04 07:05:13 +01:00
|
|
|
# Template file for 'dnsmasq'
|
|
|
|
pkgname=dnsmasq
|
2012-12-05 15:57:35 +01:00
|
|
|
version=2.64
|
|
|
|
revision=1
|
2012-07-09 23:00:38 +02:00
|
|
|
makedepends="pkg-config dbus-devel libcap-devel libidn-devel"
|
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"
|
2012-12-05 15:57:35 +01:00
|
|
|
checksum=78fdc82ca90d6c79ce52c54fd4a3912e8b1998f84cb05755a3781eae51fb6d11
|
2009-12-04 07:05:13 +01:00
|
|
|
long_desc="
|
|
|
|
Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server.
|
|
|
|
It is designed to provide DNS and, optionally, DHCP, to a small network. It
|
|
|
|
can serve the names of local machines which are not in the global DNS.
|
|
|
|
The DHCP server integrates with the DNS server and allows machines with
|
|
|
|
DHCP-allocated addresses to appear in the DNS with names configured either in
|
|
|
|
each host or in a central configuration file. Dnsmasq supports static and
|
|
|
|
dynamic DHCP leases and BOOTP/TFTP/PXE for network booting of diskless machines."
|
|
|
|
|
2012-12-05 15:57:35 +01:00
|
|
|
system_accounts="dnsmasq"
|
|
|
|
conf_files="/etc/dnsmasq.conf"
|
|
|
|
|
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
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|