From 58bf257aaa8b1b67bbd61f665dfecb5175df446b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 4 Dec 2009 07:29:44 +0100 Subject: [PATCH] dnsmasq: build with dbus and i18n support. --HG-- extra : convert_revision : f3ec6f0c8b648af2688837ef4e382006195b950c --- srcpkgs/dnsmasq/patches/enable_dbus.diff | 11 +++++++++++ srcpkgs/dnsmasq/template | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/dnsmasq/patches/enable_dbus.diff diff --git a/srcpkgs/dnsmasq/patches/enable_dbus.diff b/srcpkgs/dnsmasq/patches/enable_dbus.diff new file mode 100644 index 00000000000..21eb0508456 --- /dev/null +++ b/srcpkgs/dnsmasq/patches/enable_dbus.diff @@ -0,0 +1,11 @@ +--- src/config.h.orig 2009-12-04 07:13:34.249760044 +0100 ++++ src/config.h 2009-12-04 07:13:44.546926746 +0100 +@@ -169,7 +169,7 @@ NOTES: + #define HAVE_TFTP + #define HAVE_SCRIPT + /* #define HAVE_BROKEN_RTC */ +-/* #define HAVE_DBUS */ ++#define HAVE_DBUS + + /* Allow TFTP to be disabled with COPTS=-DNO_TFTP */ + #ifdef NO_TFTP diff --git a/srcpkgs/dnsmasq/template b/srcpkgs/dnsmasq/template index ae0cc074d37..1392a451058 100644 --- a/srcpkgs/dnsmasq/template +++ b/srcpkgs/dnsmasq/template @@ -3,7 +3,8 @@ pkgname=dnsmasq version=2.51 distfiles="http://www.thekelleys.org.uk/$pkgname/$pkgname-$version.tar.gz" build_style=gnu_makefile -make_install_args="PREFIX=/usr" +make_build_target="all-i18n" +make_install_args="PREFIX=/usr install-i18n" short_desc="Lightweight, easy to configure DNS forwarder and DHCP server" maintainer="Juan RP " checksum=08a7f95e1aa344be07681f514d992320b86932c5dc2f091ac6edd0599ff90622 @@ -20,7 +21,10 @@ conf_files="/etc/dnsmasq.conf /etc/conf.d/dnsmasq" openrc_services="dnsmasq default" Add_dependency full glibc +Add_dependency full dbus Add_dependency full libcap +Add_dependency full libidn +Add_dependency build gettext post_install() { @@ -31,4 +35,6 @@ post_install() ${DESTDIR}/etc/init.d/dnsmasq || return 1 install -D -m644 ${FILESDIR}/dnsmasq.confd \ ${DESTDIR}/etc/conf.d/dnsmasq || return 1 + install -D -m644 dbus/dnsmasq.conf \ + ${DESTDIR}/etc/dbus-1/system.d/dnsmasq.conf || return 1 }