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/rarpd/Makefile | 16 ++++++---------- package/rarpd/files/rarpd.init | 4 +++- package/rarpd/files/rarpd.postinst | 4 ++++ package/rarpd/ipkg/rarpd.control | 5 ----- package/rarpd/ipkg/rarpd.postinst | 4 ---- 5 files changed, 13 insertions(+), 20 deletions(-) create mode 100644 package/rarpd/files/rarpd.postinst delete mode 100644 package/rarpd/ipkg/rarpd.control delete mode 100644 package/rarpd/ipkg/rarpd.postinst (limited to 'package/rarpd') diff --git a/package/rarpd/Makefile b/package/rarpd/Makefile index 2bf981a2b..9158c3f9b 100644 --- a/package/rarpd/Makefile +++ b/package/rarpd/Makefile @@ -9,28 +9,24 @@ PKG_NAME:= rarpd PKG_VERSION:= 1.1 PKG_RELEASE:= 10 PKG_MD5SUM:= 04e2ca849e758d0b88c8281775ec3b58 -MASTER_SITES:= ftp://ftp.dementia.org/pub/net-tools/ - -# Hack Alert! -# The configure script for rarpd, when used with the --with-libnet option -# doesn't correctly detect and set -DNEW_LIBNET_INTERFACE. -EXTRA_CFLAGS= -DNEW_LIBNET_INTERFACE +PKG_DESCR:= Reverse ARP Daemon +PKG_SECTION:= net +PKG_DEPENDS:= libnet +PKG_SITES:= ftp://ftp.dementia.org/pub/net-tools/ include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,RARPD,rarpd,${PKG_VERSION}-${PKG_RELEASE})) +$(eval $(call PKG_template,RARPD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) CONFIGURE_STYLE:= gnu CONFIGURE_ARGS+= --with-libnet="${STAGING_DIR}/usr" \ --with-pcap="${STAGING_DIR}/usr" -TCFLAGS+= ${EXTRA_CFLAGS} +TCFLAGS+= -DNEW_LIBNET_INTERFACE BUILD_STYLE:= auto INSTALL_STYLE:= auto post-install: ${INSTALL_DIR} ${IDIR_RARPD}/usr/sbin - ${INSTALL_DIR} ${IDIR_RARPD}/etc/init.d ${INSTALL_BIN} ${WRKINST}/sbin/rarpd ${IDIR_RARPD}/usr/sbin/ - ${INSTALL_BIN} ./files/rarpd.init ${IDIR_RARPD}/etc/init.d/rarpd include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/rarpd/files/rarpd.init b/package/rarpd/files/rarpd.init index 09a346432..7af906b46 100644 --- a/package/rarpd/files/rarpd.init +++ b/package/rarpd/files/rarpd.init @@ -1,5 +1,7 @@ #!/bin/sh -#FWINIT 60 +#PKG rarpd +#INIT 60 + . /etc/rc.conf case $1 in diff --git a/package/rarpd/files/rarpd.postinst b/package/rarpd/files/rarpd.postinst new file mode 100644 index 000000000..ed21e9d6f --- /dev/null +++ b/package/rarpd/files/rarpd.postinst @@ -0,0 +1,4 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf rarpd rarpd NO +add_rcconf rarpd_flags rarpd_flags "-i eth0.0" diff --git a/package/rarpd/ipkg/rarpd.control b/package/rarpd/ipkg/rarpd.control deleted file mode 100644 index 221e869af..000000000 --- a/package/rarpd/ipkg/rarpd.control +++ /dev/null @@ -1,5 +0,0 @@ -Package: rarpd -Priority: optional -Section: net -Depends: libnet -Description: Reverse ARP Daemon diff --git a/package/rarpd/ipkg/rarpd.postinst b/package/rarpd/ipkg/rarpd.postinst deleted file mode 100644 index ed21e9d6f..000000000 --- a/package/rarpd/ipkg/rarpd.postinst +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. $IPKG_INSTROOT/etc/functions.sh -add_rcconf rarpd rarpd NO -add_rcconf rarpd_flags rarpd_flags "-i eth0.0" -- cgit v1.2.3