2009-12-04 06:05:13 +00:00
|
|
|
# Template file for 'dnsmasq'
|
|
|
|
pkgname=dnsmasq
|
2011-10-08 16:50:02 +00:00
|
|
|
version=2.58
|
2011-10-11 02:33:52 +00:00
|
|
|
revision=1
|
2011-10-08 16:50:02 +00:00
|
|
|
homepage="http://www.thekelleys.org.uk/dnsmasq/doc.html"
|
2009-12-04 06:05:13 +00:00
|
|
|
distfiles="http://www.thekelleys.org.uk/$pkgname/$pkgname-$version.tar.gz"
|
2011-10-08 16:50:02 +00:00
|
|
|
build_style=custom-install
|
2009-12-04 06:05:13 +00:00
|
|
|
short_desc="Lightweight, easy to configure DNS forwarder and DHCP server"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-08 16:50:02 +00:00
|
|
|
license="GPL-2"
|
|
|
|
checksum=d5f64ed65f2b9a4db846d6da5d6903ec03e86924c09e232f42c7b63bcbfa3be6
|
2009-12-04 06:05:13 +00: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."
|
|
|
|
|
2011-10-08 16:50:02 +00:00
|
|
|
system_accounts="dnsmasq"
|
2009-12-04 06:05:13 +00:00
|
|
|
conf_files="/etc/dnsmasq.conf /etc/conf.d/dnsmasq"
|
2011-10-11 02:33:52 +00:00
|
|
|
systemd_services="dnsmasq.service"
|
2009-12-04 06:05:13 +00:00
|
|
|
|
2010-04-16 20:09:33 +00:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run dbus-libs
|
|
|
|
Add_dependency run libcap
|
|
|
|
Add_dependency run libidn
|
2011-10-11 02:33:52 +00:00
|
|
|
Add_dependency run dbus
|
2011-10-08 16:50:02 +00:00
|
|
|
|
2009-12-04 06:29:44 +00:00
|
|
|
Add_dependency build gettext
|
2010-04-16 20:09:33 +00:00
|
|
|
Add_dependency build dbus-devel
|
|
|
|
Add_dependency build libcap-devel
|
|
|
|
Add_dependency build libidn-devel
|
2009-12-04 06:05:13 +00:00
|
|
|
|
2011-10-08 16:50:02 +00:00
|
|
|
do_build()
|
2009-12-04 06:05:13 +00:00
|
|
|
{
|
2011-10-08 16:50:02 +00:00
|
|
|
echo '#define HAVE_DBUS' >> src/config.h
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
|
|
|
|
|
|
vinstall dnsmasq.conf.example 644 etc dnsmasq.conf
|
|
|
|
vinstall ${FILESDIR}/dnsmasq.service 644 lib/systemd/system
|
|
|
|
vinstall dbus/dnsmasq.conf 644 etc/dbus-1/system.d
|
2009-12-04 06:05:13 +00:00
|
|
|
}
|