2009-12-04 06:05:13 +00:00
|
|
|
# Template file for 'dnsmasq'
|
|
|
|
pkgname=dnsmasq
|
2011-02-19 15:35:34 +00:00
|
|
|
version=2.57
|
2009-12-04 06:05:13 +00:00
|
|
|
distfiles="http://www.thekelleys.org.uk/$pkgname/$pkgname-$version.tar.gz"
|
|
|
|
build_style=gnu_makefile
|
2009-12-04 06:29:44 +00:00
|
|
|
make_build_target="all-i18n"
|
|
|
|
make_install_args="PREFIX=/usr install-i18n"
|
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-02-19 15:35:34 +00:00
|
|
|
checksum=c2e0c7b82122d636933b28a1c28e6bccb6daad49162e7534b641b3c3340ff8ae
|
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."
|
|
|
|
|
|
|
|
conf_files="/etc/dnsmasq.conf /etc/conf.d/dnsmasq"
|
2010-04-16 20:09:33 +00:00
|
|
|
openrc_services="dnsmasq default false"
|
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
|
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
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
install -D -m644 dnsmasq.conf.example \
|
2011-02-19 15:35:34 +00:00
|
|
|
${DESTDIR}/etc/dnsmasq.conf
|
2009-12-04 06:05:13 +00:00
|
|
|
install -D -m755 ${FILESDIR}/dnsmasq.rc \
|
2011-02-19 15:35:34 +00:00
|
|
|
${DESTDIR}/etc/init.d/dnsmasq
|
2009-12-04 06:05:13 +00:00
|
|
|
install -D -m644 ${FILESDIR}/dnsmasq.confd \
|
2011-02-19 15:35:34 +00:00
|
|
|
${DESTDIR}/etc/conf.d/dnsmasq
|
2009-12-04 06:29:44 +00:00
|
|
|
install -D -m644 dbus/dnsmasq.conf \
|
2011-02-19 15:35:34 +00:00
|
|
|
${DESTDIR}/etc/dbus-1/system.d/dnsmasq.conf
|
2009-12-04 06:05:13 +00:00
|
|
|
}
|