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/ez-ipupdate/Makefile | 16 ++++++++-------- package/ez-ipupdate/files/ez-ipupdate.conffiles | 1 + package/ez-ipupdate/files/ez-ipupdate.init | 3 ++- package/ez-ipupdate/files/ez-ipupdate.postinst | 3 +++ package/ez-ipupdate/ipkg/ez-ipupdate.conffiles | 1 - package/ez-ipupdate/ipkg/ez-ipupdate.control | 4 ---- package/ez-ipupdate/ipkg/ez-ipupdate.postinst | 3 --- 7 files changed, 14 insertions(+), 17 deletions(-) create mode 100644 package/ez-ipupdate/files/ez-ipupdate.conffiles create mode 100644 package/ez-ipupdate/files/ez-ipupdate.postinst delete mode 100644 package/ez-ipupdate/ipkg/ez-ipupdate.conffiles delete mode 100644 package/ez-ipupdate/ipkg/ez-ipupdate.control delete mode 100644 package/ez-ipupdate/ipkg/ez-ipupdate.postinst (limited to 'package/ez-ipupdate') diff --git a/package/ez-ipupdate/Makefile b/package/ez-ipupdate/Makefile index 02cf17632..f0f46b79f 100644 --- a/package/ez-ipupdate/Makefile +++ b/package/ez-ipupdate/Makefile @@ -9,24 +9,24 @@ PKG_NAME:= ez-ipupdate PKG_VERSION:= 3.0.11b8 PKG_RELEASE:= 10 PKG_MD5SUM:= 000211add4c4845ffa4211841bff4fb0 -DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.orig.tar.gz -MASTER_SITES:= http://ftp.debian.org/debian/pool/main/e/ez-ipupdate/ \ +PKG_DESCR:= a client for dynamic DNS services +PKG_SECTION:= net +PKG_URL:= http://ez-ipupdate.com +PKG_SITES:= http://ftp.debian.org/debian/pool/main/e/ez-ipupdate/ \ http://ftp.de.debian.org/debian/pool/main/e/ez-ipupdate/ +DISTFILES:= ${PKG_NAME}_${PKG_VERSION}.orig.tar.gz + include ${TOPDIR}/mk/package.mk -${eval ${call PKG_template,EZIPUPDATE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE}}} +$(eval $(call PKG_template,EZIPUPDATE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) CONFIGURE_STYLE= gnu BUILD_STYLE= auto do-install: - ${INSTALL_DIR} ${IDIR_EZIPUPDATE}/etc + ${INSTALL_DIR} ${IDIR_EZIPUPDATE}/etc ${IDIR_EZIPUPDATE}/usr/sbin install -m0600 ./files/${PKG_NAME}.conf ${IDIR_EZIPUPDATE}/etc/ - ${INSTALL_DIR} ${IDIR_EZIPUPDATE}/usr/sbin ${INSTALL_BIN} ${WRKBUILD}/${PKG_NAME} ${IDIR_EZIPUPDATE}/usr/sbin/ - ${INSTALL_DIR} ${IDIR_EZIPUPDATE}/etc/init.d - ${INSTALL_SCRIPT} ./files/ez-ipupdate.init \ - ${IDIR_EZIPUPDATE}/etc/init.d/ez-ipupdate include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/ez-ipupdate/files/ez-ipupdate.conffiles b/package/ez-ipupdate/files/ez-ipupdate.conffiles new file mode 100644 index 000000000..3a9041e34 --- /dev/null +++ b/package/ez-ipupdate/files/ez-ipupdate.conffiles @@ -0,0 +1 @@ +/etc/ez-ipupdate.conf diff --git a/package/ez-ipupdate/files/ez-ipupdate.init b/package/ez-ipupdate/files/ez-ipupdate.init index 36cfa7dd9..c6fbfc39e 100644 --- a/package/ez-ipupdate/files/ez-ipupdate.init +++ b/package/ez-ipupdate/files/ez-ipupdate.init @@ -1,5 +1,6 @@ #!/bin/sh -#FWINIT 50 +#PKG ez-ipupdate +#INIT 50 . /etc/rc.conf case $1 in diff --git a/package/ez-ipupdate/files/ez-ipupdate.postinst b/package/ez-ipupdate/files/ez-ipupdate.postinst new file mode 100644 index 000000000..c8094c139 --- /dev/null +++ b/package/ez-ipupdate/files/ez-ipupdate.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf ezipupdate ezipupdate NO diff --git a/package/ez-ipupdate/ipkg/ez-ipupdate.conffiles b/package/ez-ipupdate/ipkg/ez-ipupdate.conffiles deleted file mode 100644 index 3a9041e34..000000000 --- a/package/ez-ipupdate/ipkg/ez-ipupdate.conffiles +++ /dev/null @@ -1 +0,0 @@ -/etc/ez-ipupdate.conf diff --git a/package/ez-ipupdate/ipkg/ez-ipupdate.control b/package/ez-ipupdate/ipkg/ez-ipupdate.control deleted file mode 100644 index 1b7dff825..000000000 --- a/package/ez-ipupdate/ipkg/ez-ipupdate.control +++ /dev/null @@ -1,4 +0,0 @@ -Package: ez-ipupdate -Priority: optional -Section: net -Description: a client for dynamic DNS services diff --git a/package/ez-ipupdate/ipkg/ez-ipupdate.postinst b/package/ez-ipupdate/ipkg/ez-ipupdate.postinst deleted file mode 100644 index c8094c139..000000000 --- a/package/ez-ipupdate/ipkg/ez-ipupdate.postinst +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -. $IPKG_INSTROOT/etc/functions.sh -add_rcconf ezipupdate ezipupdate NO -- cgit v1.2.3