From ba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 30 May 2009 20:39:07 +0200 Subject: optimize ipkg package management - generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig --- package/maradns/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'package/maradns/Makefile') diff --git a/package/maradns/Makefile b/package/maradns/Makefile index 631d8482a..b481106c3 100644 --- a/package/maradns/Makefile +++ b/package/maradns/Makefile @@ -9,14 +9,18 @@ PKG_NAME:= maradns PKG_VERSION:= 1.0.41 PKG_RELEASE:= 1 PKG_MD5SUM:= 9abc13da25c1103d788ee9def1c8e764 -MASTER_SITES:= http://www.maradns.org/download/1.0/ +PKG_DESCR:= small and secure DNS server +PKG_SECTION:= net +PKG_DEPENDS:= libpthread +PKG_URL:= http://www.maradns.org +PKG_SITES:= http://www.maradns.org/download/1.0/ + DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,MARADNS,maradns,${PKG_VERSION}-${PKG_RELEASE})) +$(eval $(call PKG_template,MARADNS,maradns,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) -#CONFIGURE_STYLE:= gnu BUILD_STYLE:= auto MAKE_FLAGS+= CFLAGS="${TCFLAGS}" \ FLAGS="${TCFLAGS}" \ @@ -31,11 +35,10 @@ pre-install: mkdir -p ${WRKINST}/usr/man/man{1,5,8} post-install: - ${INSTALL_DIR} ${IDIR_MARADNS}/etc/{init.d,maradns} - ${INSTALL_DIR} ${IDIR_MARADNS}/usr/{s,}bin + ${INSTALL_DIR} ${IDIR_MARADNS}/etc/maradns + ${INSTALL_DIR} ${IDIR_MARADNS}/usr/bin ${IDIR_MARADNS}/usr/sbin ${INSTALL_DATA} ./files/mararc ${IDIR_MARADNS}/etc/mararc ${INSTALL_DATA} ./files/sample.{zone,ptr} ${IDIR_MARADNS}/etc/maradns/ - ${INSTALL_BIN} ./files/maradns.init ${IDIR_MARADNS}/etc/init.d/${PKG_NAME} ${CP} ${WRKINST}/usr/bin/{askmara,getzone} ${IDIR_MARADNS}/usr/bin/ ${CP} ${WRKINST}/usr/sbin/{maradns,zoneserver} ${IDIR_MARADNS}/usr/sbin/ -- cgit v1.2.3