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/rdate/Makefile | 15 ++++++--------- package/rdate/files/rdate.postinst | 4 ++++ package/rdate/ipkg/rdate.control | 4 ---- package/rdate/ipkg/rdate.postinst | 4 ---- 4 files changed, 10 insertions(+), 17 deletions(-) create mode 100644 package/rdate/files/rdate.postinst delete mode 100644 package/rdate/ipkg/rdate.control delete mode 100644 package/rdate/ipkg/rdate.postinst (limited to 'package/rdate') diff --git a/package/rdate/Makefile b/package/rdate/Makefile index 8d16e942a..39d74f6bf 100644 --- a/package/rdate/Makefile +++ b/package/rdate/Makefile @@ -9,24 +9,21 @@ PKG_NAME= rdate PKG_VERSION= 20070817 PKG_RELEASE= 2 PKG_MD5SUM= 9a6489d7de4311678a3fab001bb503df -MASTER_SITES= ${MASTER_SITE_MIRBSD:distfiles/=dist/mir/rdate/} +PKG_DESCR:= A small rdate and NTP client +PKG_SECTION:= net +PKG_SITES= ${MASTER_SITE_MIRBSD:distfiles/=dist/mir/rdate/} + WRKDIST= ${WRKDIR}/${PKG_NAME} include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,RDATE,rdate,${PKG_VERSION}-${PKG_RELEASE})) +$(eval $(call PKG_template,RDATE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) MAKE_FILE= GNUmakefile BUILD_STYLE= auto do-install: -ifeq (${ADK_MANPAGES},y) - mkdir -p ${WRKINST}/man8 - cp ${WRKSRC}/rdate.8 ${WRKINST}/man8/ -endif - ${INSTALL_DIR} ${IDIR_RDATE}/{etc/{init.d,ppp/ip-up.d},usr/sbin} + ${INSTALL_DIR} ${IDIR_RDATE}/usr/sbin ${INSTALL_BIN} ${WRKBUILD}/rdate ${IDIR_RDATE}/usr/sbin/ - ${INSTALL_SCRIPT} rdate.ip-up ${IDIR_RDATE}/etc/ppp/ip-up.d/rdate - ${INSTALL_SCRIPT} rdate.init ${IDIR_RDATE}/etc/init.d/rdate include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/rdate/files/rdate.postinst b/package/rdate/files/rdate.postinst new file mode 100644 index 000000000..e0013bdcc --- /dev/null +++ b/package/rdate/files/rdate.postinst @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf 'e.g. "-nv pool.ntp.org"' rdate_flags +add_service ntp 123/udp diff --git a/package/rdate/ipkg/rdate.control b/package/rdate/ipkg/rdate.control deleted file mode 100644 index dcd902764..000000000 --- a/package/rdate/ipkg/rdate.control +++ /dev/null @@ -1,4 +0,0 @@ -Package: rdate -Priority: base -Section: base -Description: A small rdate and NTP client diff --git a/package/rdate/ipkg/rdate.postinst b/package/rdate/ipkg/rdate.postinst deleted file mode 100644 index e0013bdcc..000000000 --- a/package/rdate/ipkg/rdate.postinst +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -. $IPKG_INSTROOT/etc/functions.sh -add_rcconf 'e.g. "-nv pool.ntp.org"' rdate_flags -add_service ntp 123/udp -- cgit v1.2.3