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/reaim/Makefile | 11 ++++++----- package/reaim/files/reaim.init | 4 +++- package/reaim/files/reaim.postinst | 4 ++++ package/reaim/ipkg/reaim.control | 5 ----- package/reaim/ipkg/reaim.postinst | 4 ---- 5 files changed, 13 insertions(+), 15 deletions(-) create mode 100644 package/reaim/files/reaim.postinst delete mode 100644 package/reaim/ipkg/reaim.control delete mode 100644 package/reaim/ipkg/reaim.postinst (limited to 'package/reaim') diff --git a/package/reaim/Makefile b/package/reaim/Makefile index 37cdda654..77d09db0e 100644 --- a/package/reaim/Makefile +++ b/package/reaim/Makefile @@ -9,20 +9,21 @@ PKG_NAME:= reaim PKG_VERSION:= 0.8 PKG_RELEASE:= 9 PKG_MD5SUM:= 647d2ab72ec454f89294accfb3182c09 -MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=reaim/} +PKG_DESCR:= A transparent AIM / MSN proxy +PKG_SECTION:= net +PKG_DEPENDS:= iptables +PKG_URL:= http://reaim.sourceforge.net +PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=reaim/} include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,REAIM,reaim,${PKG_VERSION}-${PKG_RELEASE})) +$(eval $(call PKG_template,REAIM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) BUILD_STYLE:= auto INSTALL_STYLE:= auto post-install: - ${INSTALL_DIR} ${IDIR_REAIM}/etc/init.d ${INSTALL_DIR} ${IDIR_REAIM}/usr/sbin - ${INSTALL_BIN} ./files/reaim.init \ - ${IDIR_REAIM}/etc/init.d/reaim ${INSTALL_BIN} ${WRKINST}/usr/sbin/reaim ${IDIR_REAIM}/usr/sbin/ include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/reaim/files/reaim.init b/package/reaim/files/reaim.init index 4ef211283..7450b7e08 100644 --- a/package/reaim/files/reaim.init +++ b/package/reaim/files/reaim.init @@ -1,5 +1,7 @@ #!/bin/sh -#FWINIT 75 +#PKG reaim +#INIT 75 + . /etc/rc.conf IPT=/usr/sbin/iptables diff --git a/package/reaim/files/reaim.postinst b/package/reaim/files/reaim.postinst new file mode 100644 index 000000000..39c37b222 --- /dev/null +++ b/package/reaim/files/reaim.postinst @@ -0,0 +1,4 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf reaim reaim NO +add_rcconf reaim_flags reaim_flags "eth0.1" diff --git a/package/reaim/ipkg/reaim.control b/package/reaim/ipkg/reaim.control deleted file mode 100644 index 31bc9a9a3..000000000 --- a/package/reaim/ipkg/reaim.control +++ /dev/null @@ -1,5 +0,0 @@ -Package: reaim -Priority: optional -Section: net -Depends: iptables -Description: A transparent AIM / MSN proxy diff --git a/package/reaim/ipkg/reaim.postinst b/package/reaim/ipkg/reaim.postinst deleted file mode 100644 index 39c37b222..000000000 --- a/package/reaim/ipkg/reaim.postinst +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. $IPKG_INSTROOT/etc/functions.sh -add_rcconf reaim reaim NO -add_rcconf reaim_flags reaim_flags "eth0.1" -- cgit v1.2.3