summaryrefslogtreecommitdiff
path: root/pcr-testing/gophernicus/xinetd-respect-custom-server-root.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pcr-testing/gophernicus/xinetd-respect-custom-server-root.patch')
-rw-r--r--pcr-testing/gophernicus/xinetd-respect-custom-server-root.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/pcr-testing/gophernicus/xinetd-respect-custom-server-root.patch b/pcr-testing/gophernicus/xinetd-respect-custom-server-root.patch
new file mode 100644
index 000000000..b0106639b
--- /dev/null
+++ b/pcr-testing/gophernicus/xinetd-respect-custom-server-root.patch
@@ -0,0 +1,34 @@
+diff --git a/configure b/configure
+index 067affe..c78a9f6 100755
+--- a/configure
++++ b/configure
+@@ -340,12 +340,14 @@ sed -i -e "s:@XINETD_CONF@:${XINETD_CONF}:" Makefile
+
+ printf "done\\n"
+
+-# Also sub in $HOSTNAME to the various init systems (whether or not we really
+-# use them, its just easier)
++# Also sub in $GOPHERROOT and $HOSTNAME to the various init systems
++# (whether or not we really use them, its just easier)
+ for f in gophernicus.env haiku_snippet org.gophernicus.server.plist \
+ gophernicus.xinetd; do
+ printf "creating init/${f}... "
+- sed -e "s:@HOSTNAME@:${HOSTNAME}:" "init/${f}.in" > "init/${f}"
++ cp init/${f}{.in,}
++ sed -i -e "s:@GOPHERROOT@:${GOPHERROOT}:" init/${f}
++ sed -i -e "s:@HOSTNAME@:${HOSTNAME}:" init/${f}
+ printf "done\\n"
+ done
+
+diff --git a/init/gophernicus.xinetd.in b/init/gophernicus.xinetd.in
+index 4f2c921..a052375 100644
+--- a/init/gophernicus.xinetd.in
++++ b/init/gophernicus.xinetd.in
+@@ -6,6 +6,6 @@ service gopher
+ wait = no
+ user = nobody
+ server = @BINARY@
+- server_args = -r/var/gopher -h@HOSTNAME@
++ server_args = -r@GOPHERROOT@ -h@HOSTNAME@
+ disable = no
+ }