diff options
author | Jeroen Roovers <jer@gentoo.org> | 2016-08-09 10:41:00 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2016-08-09 10:41:23 +0200 |
commit | 2b395917741e52594a2c1c95f987fcb6ce9b7c19 (patch) | |
tree | db26dc364ada3785632aaaa1a38a59d32f4472e7 /net-analyzer/netperf/files | |
parent | app-i18n/man-pages-de: Stable for all arches. Removed old. (diff) | |
download | gentoo-2b395917741e52594a2c1c95f987fcb6ce9b7c19.tar.gz gentoo-2b395917741e52594a2c1c95f987fcb6ce9b7c19.tar.bz2 gentoo-2b395917741e52594a2c1c95f987fcb6ce9b7c19.zip |
net-analyzer/netperf: Fix permissions on debug output file (bug #389975).
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-analyzer/netperf/files')
-rw-r--r-- | net-analyzer/netperf/files/netperf-2.7.0-init | 23 | ||||
-rw-r--r-- | net-analyzer/netperf/files/netperf-2.7.0-space.patch | 17 |
2 files changed, 40 insertions, 0 deletions
diff --git a/net-analyzer/netperf/files/netperf-2.7.0-init b/net-analyzer/netperf/files/netperf-2.7.0-init new file mode 100644 index 000000000000..3d1bb0c15973 --- /dev/null +++ b/net-analyzer/netperf/files/netperf-2.7.0-init @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# +# init.d script for net-analyzer/netperf's netserver +# + +depend() { + use net +} + +start() { + checkpath -o netperf:netperf -d /var/log/netperf + + ebegin 'Starting netperf server (netserver)' + start-stop-daemon --start --user netperf \ + --exec /usr/sbin/netserver -- ${NETSERVER_ARGS} + eend $? +} + +stop() { + ebegin 'Stopping netperf server (netserver)' + start-stop-daemon --stop --quiet --exec /usr/sbin/netserver + eend $? +} diff --git a/net-analyzer/netperf/files/netperf-2.7.0-space.patch b/net-analyzer/netperf/files/netperf-2.7.0-space.patch new file mode 100644 index 000000000000..9ad43270b166 --- /dev/null +++ b/net-analyzer/netperf/files/netperf-2.7.0-space.patch @@ -0,0 +1,17 @@ +--- a/src/netserver.c ++++ b/src/netserver.c +@@ -165,12 +165,12 @@ + #elif defined(ANDROID) + #define DEBUG_LOG_FILE_DIR "/data/local/tmp/" + #else +-#define DEBUG_LOG_FILE_DIR "/var/log/" ++#define DEBUG_LOG_FILE_DIR "/var/log/netperf/" + #endif + #endif /* DEBUG_LOG_FILE_DIR */ + + #ifndef DEBUG_LOG_FILE +-#define DEBUG_LOG_FILE DEBUG_LOG_FILE_DIR"netserver.debug" ++#define DEBUG_LOG_FILE DEBUG_LOG_FILE_DIR "/netserver.debug" + #endif + + #if !defined(PATH_MAX) |