summaryrefslogtreecommitdiff
path: root/package/parprouted
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/parprouted
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/parprouted')
-rw-r--r--package/parprouted/Makefile17
-rw-r--r--package/parprouted/files/parprouted.init4
-rw-r--r--package/parprouted/files/parprouted.postinst (renamed from package/parprouted/ipkg/parprouted.postinst)0
-rw-r--r--package/parprouted/ipkg/parprouted.control5
-rw-r--r--package/parprouted/patches/parprouted.patch33
5 files changed, 12 insertions, 47 deletions
diff --git a/package/parprouted/Makefile b/package/parprouted/Makefile
index 86d52f336..ee596b393 100644
--- a/package/parprouted/Makefile
+++ b/package/parprouted/Makefile
@@ -6,14 +6,18 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= parprouted
-PKG_VERSION:= 0.63
-PKG_RELEASE:= 9
-PKG_MD5SUM:= 12753098a22e82997d1941d6d2284750
-MASTER_SITES:= http://www.hazard.maks.net/parprouted/
+PKG_VERSION:= 0.7
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 570f5deaf09600df8f80f589de79ecdb
+PKG_DESCR:= a proxy ARP daemon
+PKG_SECTION:= net
+PKG_DEPENDS:= libpthread
+PKG_URL:= http://www.hazard.maks.net/parprouted
+PKG_SITES:= http://www.hazard.maks.net/parprouted/
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,PARPROUTED,parprouted,${PKG_VERSION}-${PKG_RELEASE}))
+$(eval $(call PKG_template,PARPROUTED,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
BUILD_STYLE:= auto
MAKE_FLAGS+= CC="${TARGET_CC}" \
@@ -21,10 +25,7 @@ MAKE_FLAGS+= CC="${TARGET_CC}" \
LDFLAGS=""
do-install:
- ${INSTALL_DIR} ${IDIR_PARPROUTED}/etc/init.d
${INSTALL_DIR} ${IDIR_PARPROUTED}/usr/sbin
- ${INSTALL_BIN} ./files/parprouted.init \
- ${IDIR_PARPROUTED}/etc/init.d/parprouted
${INSTALL_BIN} ${WRKBUILD}/parprouted ${IDIR_PARPROUTED}/usr/sbin/
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/parprouted/files/parprouted.init b/package/parprouted/files/parprouted.init
index 248fdd5e5..98a901408 100644
--- a/package/parprouted/files/parprouted.init
+++ b/package/parprouted/files/parprouted.init
@@ -1,5 +1,7 @@
#!/bin/sh
-#FWINIT 75
+#PKG parprouted
+#INIT 75
+
. /etc/rc.conf
case $1 in
diff --git a/package/parprouted/ipkg/parprouted.postinst b/package/parprouted/files/parprouted.postinst
index 5943ccc96..5943ccc96 100644
--- a/package/parprouted/ipkg/parprouted.postinst
+++ b/package/parprouted/files/parprouted.postinst
diff --git a/package/parprouted/ipkg/parprouted.control b/package/parprouted/ipkg/parprouted.control
deleted file mode 100644
index 9357ae586..000000000
--- a/package/parprouted/ipkg/parprouted.control
+++ /dev/null
@@ -1,5 +0,0 @@
-Package: parprouted
-Priority: optional
-Section: net
-Description: a proxy ARP daemon
-Depends: libpthread
diff --git a/package/parprouted/patches/parprouted.patch b/package/parprouted/patches/parprouted.patch
deleted file mode 100644
index 17fbdecec..000000000
--- a/package/parprouted/patches/parprouted.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -rupw parprouted-0.63/arp.c parprouted-0.63-1/arp.c
---- parprouted-0.63/arp.c 2004-05-23 14:06:31.000000000 +0200
-+++ parprouted-0.63-1/arp.c 2005-03-13 16:10:18.000000000 +0100
-@@ -366,7 +366,7 @@ void *arp(char *ifname)
- do {
- pthread_testcancel();
- /* Sleep a bit in order not to overload the system */
-- usleep(300);
-+ usleep(3000);
-
- if (arp_recv(sock, &frame) <= 0)
- continue;
-diff -rupw parprouted-0.63/parprouted.c parprouted-0.63-1/parprouted.c
---- parprouted-0.63/parprouted.c 2004-01-30 02:45:43.000000000 +0100
-+++ parprouted-0.63-1/parprouted.c 2005-03-20 09:14:35.000000000 +0100
-@@ -93,7 +93,7 @@ void processarp(int cleanup)
-
- /* added route to the kernel */
- if (snprintf(routecmd_str, ROUTE_CMD_LEN-1,
-- "/sbin/ip route add %s/32 metric 50 dev %s scope link",
-+ "/sbin/route add -host %s metric 50 dev %s",
- inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1)
- {
- syslog(LOG_INFO, "ip route command too large to fit in buffer!");
-@@ -112,7 +112,7 @@ void processarp(int cleanup)
-
- /* remove entry from arp table and remove route from kernel */
- if (snprintf(routecmd_str, ROUTE_CMD_LEN-1,
-- "/sbin/ip route del %s/32 metric 50 dev %s scope link",
-+ "/sbin/route del -host %s metric 50 dev %s",
- inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1)
- {
- syslog(LOG_INFO, "ip route command too large to fit in buffer!");