From e8a2e04315d138863b743ff3f51af167cbcdae37 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Sun, 26 Jul 2015 01:34:53 +0200 Subject: package/maradns: update to version 2.0.09 Additionally: - Also minimize necessary patching. Still a bit hacky, but a lot less intrusive at least. - Allow enabling IPv6 support. - Make sure /etc/maradns/logger exists, necessary for chroot operation Signed-off-by: Phil Sutter --- package/maradns/Makefile | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'package/maradns/Makefile') diff --git a/package/maradns/Makefile b/package/maradns/Makefile index 221341df1..524112900 100644 --- a/package/maradns/Makefile +++ b/package/maradns/Makefile @@ -4,17 +4,20 @@ include ${ADK_TOPDIR}/rules.mk PKG_NAME:= maradns -PKG_VERSION:= 1.4.05 +PKG_VERSION:= 2.0.09 PKG_RELEASE:= 1 -PKG_HASH:= d23ca1301dfff220beed8847466785c077e94bed931cf81668c3a23ae461a680 +PKG_HASH:= e1ee80836f0fbc47b9b94ec839e112ea19c40bed0b70d672d231849a4dea1083 PKG_DESCR:= small and secure DNS server PKG_SECTION:= net/dns -PKG_DEPENDS:= libpthread +PKG_DEPENDS:= libpthread librt PKG_URL:= http://www.maradns.org -PKG_SITES:= http://www.maradns.org/download/1.4/${PKG_VERSION}/ +PKG_SITES:= http://maradns.samiam.org/download/2.0/${PKG_VERSION}/ PKG_NOPARALLEL:= 1 -DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +PKG_FLAVOURS_MARADNS:= WITH_IPV6 +PKGFD_WITH_IPV6:= enable IPv6 support include ${ADK_TOPDIR}/mk/package.mk @@ -24,14 +27,19 @@ CONFIG_STYLE:= manual FAKE_FLAGS+= PREFIX="${WRKINST}/usr" \ RPM_BUILD_ROOT="${WRKINST}" +CONFIGURE_ARGS:= +ifneq (${ADK_PACKAGE_MARADNS_WITH_IPV6},) +CONFIGURE_ARGS+= --ipv6 +endif + pre-install: @mkdir -p ${WRKINST}/usr/{sbin,bin,man/man{1,5,8}} do-configure: - (cd ${WRKBUILD} && ./configure); + (cd ${WRKBUILD} && ./configure ${CONFIGURE_ARGS}); maradns-install: - ${INSTALL_DIR} ${IDIR_MARADNS}/etc/maradns + ${INSTALL_DIR} ${IDIR_MARADNS}/etc/maradns/logger ${INSTALL_DIR} ${IDIR_MARADNS}/usr/bin ${IDIR_MARADNS}/usr/sbin ${INSTALL_DATA} ./files/mararc ${IDIR_MARADNS}/etc/mararc ${INSTALL_DATA} ./files/sample.{zone,ptr} \ -- cgit v1.2.3