summaryrefslogtreecommitdiff
path: root/package/portmap
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-30 20:39:07 +0200
commitba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (patch)
tree10c726d162bc0ded85eb7aeacf8f246bd39ad63a /package/portmap
parentbbd610f15a71b27c955175cb98392b114717fd47 (diff)
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
Diffstat (limited to 'package/portmap')
-rw-r--r--package/portmap/Makefile18
-rw-r--r--package/portmap/files/portmap.init4
-rw-r--r--package/portmap/files/portmap.postinst (renamed from package/portmap/ipkg/portmap.postinst)0
-rw-r--r--package/portmap/ipkg/portmap.control4
4 files changed, 13 insertions, 13 deletions
diff --git a/package/portmap/Makefile b/package/portmap/Makefile
index f5f019607..e4eba9d32 100644
--- a/package/portmap/Makefile
+++ b/package/portmap/Makefile
@@ -9,13 +9,21 @@ PKG_NAME:= portmap
PKG_VERSION:= 6.0
PKG_RELEASE:= 1
PKG_MD5SUM:= ac108ab68bf0f34477f8317791aaf1ff
-MASTER_SITES:= http://neil.brown.name/portmap/
+PKG_DESCR:= RPC portmapper
+PKG_SECTION:= net
+PKG_URL:= http://neil.brown.name/portmap
+PKG_SITES:= http://neil.brown.name/portmap/
+
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tgz
WRKDIST= ${WRKDIR}/${PKG_NAME}_${PKG_VERSION}
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,PORTMAP,portmap,${PKG_VERSION}-${PKG_RELEASE}))
+ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
+PKG_DEPENDS:= libwrap
+endif
+
+$(eval $(call PKG_template,PORTMAP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
MAKE_FLAGS+= WRAP_LIB='-L${STAGING_DIR}/usr/lib -lwrap'
@@ -28,13 +36,7 @@ MAKE_FLAGS+= ${TARGET_CONFIGURE_OPTS} \
CFLAGS='${TCFLAGS}'
do-install:
- ${INSTALL_DIR} ${IDIR_PORTMAP}/etc/init.d
${INSTALL_DIR} ${IDIR_PORTMAP}/usr/sbin
- ${INSTALL_BIN} ./files/portmap.init \
- ${IDIR_PORTMAP}/etc/init.d/portmap
${INSTALL_BIN} ${WRKBUILD}/portmap ${IDIR_PORTMAP}/usr/sbin/
-ifneq ($(strip ${ADK_PACKAGE_PORTMAP_LIBWRAP}),)
- echo 'Depends: libwrap' >>${IDIR_PORTMAP}/CONTROL/control
-endif
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/portmap/files/portmap.init b/package/portmap/files/portmap.init
index 19e54ee77..a42c2e2e0 100644
--- a/package/portmap/files/portmap.init
+++ b/package/portmap/files/portmap.init
@@ -1,5 +1,7 @@
#!/bin/sh
-#FWINIT 60
+#PKG portmap
+#INIT 60
+
. /etc/rc.conf
case $1 in
diff --git a/package/portmap/ipkg/portmap.postinst b/package/portmap/files/portmap.postinst
index 1017d2251..1017d2251 100644
--- a/package/portmap/ipkg/portmap.postinst
+++ b/package/portmap/files/portmap.postinst
diff --git a/package/portmap/ipkg/portmap.control b/package/portmap/ipkg/portmap.control
deleted file mode 100644
index 88fc963fa..000000000
--- a/package/portmap/ipkg/portmap.control
+++ /dev/null
@@ -1,4 +0,0 @@
-Package: portmap
-Priority: optional
-Section: net
-Description: The RPC Portmapper