ndppd: new upstream release 0.2.3

Also update maintainer email address and cherry-pick commit 00da8bf to
prevent daemonizing before reading the configuration file.

Signed-off-by: Gabriel Kerneis <gabriel@kerneis.info>
This commit is contained in:
Gabriel Kerneis 2013-05-27 06:48:05 +01:00
parent 072ba90ce4
commit 1a690796a3
2 changed files with 57 additions and 4 deletions

View File

@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ndppd
PKG_VERSION:=0.2.2
PKG_RELEASE:=2
PKG_VERSION:=0.2.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
# Latest release
PKG_SOURCE_URL:=http://www.priv.nu/projects/ndppd/files/
PKG_MD5SUM:=d90c4b65777a62274c1837dba341e5a8
PKG_MD5SUM:=d6f3243bb7fc04c8085371c9acddc50e
# Development snapshot
#PKG_SOURCE_URL=git://github.com/Tuhox/ndppd.git
@ -30,7 +30,7 @@ define Package/ndppd
CATEGORY:=Network
TITLE:=NDP Proxy Daemon
URL:=http://www.priv.nu/projects/ndppd/
MAINTAINER:=Gabriel Kerneis <kerneis@pps.jussieu.fr>
MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
DEPENDS:=+kmod-ipv6 $(CXX_DEPENDS)
endef

View File

@ -0,0 +1,53 @@
From 00da8bf7bab88a3827af4110fb27df9cde542e32 Mon Sep 17 00:00:00 2001
From: Daniel Adolfsson <daniel@priv.nu>
Date: Tue, 12 Feb 2013 13:25:22 +0100
Subject: [PATCH] =?UTF-8?q?Fix=20issue=20#2=20-=20ndppd=20d=C3=A6monizes=20t?=
=?UTF-8?q?oo=20early?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/ndppd.cc | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/ndppd.cc b/src/ndppd.cc
index 6ac19e8..20ced6f 100644
--- a/src/ndppd.cc
+++ b/src/ndppd.cc
@@ -201,15 +201,6 @@ int main(int argc, char* argv[], char* env[])
}
}
- if (daemon) {
- logger::syslog(true);
-
- if (daemonize() < 0) {
- logger::error() << "Failed to daemonize process";
- return 1;
- }
- }
-
if (!pidfile.empty()) {
std::ofstream pf;
pf.open(pidfile.c_str(), std::ios::out | std::ios::trunc);
@@ -225,8 +216,15 @@ int main(int argc, char* argv[], char* env[])
if (!configure(config_path))
return -1;
+
+ if (daemon) {
+ logger::syslog(true);
- //route::load("/proc/net/ipv6_route");
+ if (daemonize() < 0) {
+ logger::error() << "Failed to daemonize process";
+ return 1;
+ }
+ }
// Time stuff.
--
1.7.10.4