diff options
author | jperkin <jperkin@pkgsrc.org> | 2013-11-01 13:26:53 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2013-11-01 13:26:53 +0000 |
commit | b213a346834e7a0b630b287e5b6802ae3824ce02 (patch) | |
tree | 594f8c49db43f81e67d347227135f6c8b8ac11f2 /net/spread/patches | |
parent | 5b13d96dab5f533ae53dc1208640494c3079dceb (diff) | |
download | pkgsrc-b213a346834e7a0b630b287e5b6802ae3824ce02.tar.gz |
Substitute SPREAD_* variables in source and example configs.
Bump PKGREVISION.
Diffstat (limited to 'net/spread/patches')
-rw-r--r-- | net/spread/patches/patch-sample.spread.conf | 24 | ||||
-rw-r--r-- | net/spread/patches/patch-spread__params.h | 23 |
2 files changed, 47 insertions, 0 deletions
diff --git a/net/spread/patches/patch-sample.spread.conf b/net/spread/patches/patch-sample.spread.conf new file mode 100644 index 00000000000..ed443ba8221 --- /dev/null +++ b/net/spread/patches/patch-sample.spread.conf @@ -0,0 +1,24 @@ +$NetBSD: patch-sample.spread.conf,v 1.1 2013/11/01 13:26:53 jperkin Exp $ + +Make sure the runtime dir and user/group bits are passed on. + +--- sample.spread.conf.orig 2002-09-17 23:45:46.000000000 +0000 ++++ sample.spread.conf +@@ -91,14 +91,14 @@ Spread_Segment 127.0.0.255:4803 { + # compile-time preprocessor define SP_RUNTIME_DIR, which is generally + # "/var/run/spread". + +-#RuntimeDir = /var/run/spread ++#RuntimeDir = @RUNTIME_DIR@ + + #Sets the unix user that the Spread daemon runs as (when launched as + # the "root" user). Not effective on a Windows system. Defaults to + # the user and group "spread". + +-#DaemonUser = spread +-#DaemonGroup = spread ++#DaemonUser = @SPREAD_USER@ ++#DaemonGroup = @SPREAD_GROUP@ + + + #Set the list of authentication methods that the daemon will allow diff --git a/net/spread/patches/patch-spread__params.h b/net/spread/patches/patch-spread__params.h new file mode 100644 index 00000000000..c5ed8f2de84 --- /dev/null +++ b/net/spread/patches/patch-spread__params.h @@ -0,0 +1,23 @@ +$NetBSD: patch-spread__params.h,v 1.1 2013/11/01 13:26:53 jperkin Exp $ + +Make sure the runtime dir and user/group bits are passed on. + +--- spread_params.h.orig 2004-10-05 14:42:14.000000000 +0000 ++++ spread_params.h +@@ -43,13 +43,13 @@ + #define DEFAULT_SPREAD_PORT 4803 + + #ifndef SP_RUNTIME_DIR +-#define SP_RUNTIME_DIR "/var/run/spread" ++#define SP_RUNTIME_DIR "@RUNTIME_DIR@" + #endif + #ifndef SP_GROUP +-#define SP_GROUP "spread" ++#define SP_GROUP "@SPREAD_GROUP@" + #endif + #ifndef SP_USER +-#define SP_USER "spread" ++#define SP_USER "@SPREAD_USER@" + #endif + + #define MAX_PROC_NAME 20 /* including the null, so actually max 19, look for it if changed */ |