From e808065be0139fd6c9d9a6b1e412d685dada4821 Mon Sep 17 00:00:00 2001 From: Daniel Roethlisberger Date: Mon, 29 Oct 2018 21:10:45 +0100 Subject: [PATCH] Use PREFIX for config file path in sslsplit.conf(5) --- .gitignore | 1 + GNUmakefile | 3 +++ sslsplit.conf.5 => sslsplit.conf.5.in | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) rename sslsplit.conf.5 => sslsplit.conf.5.in (99%) diff --git a/.gitignore b/.gitignore index b4760169..403d9f99 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /sslsplit /sslsplit.test /sslsplit.conf +/sslsplit.conf.5 /extra/*.pyc /extra/engine/*.dylib /extra/engine/*.so diff --git a/GNUmakefile b/GNUmakefile index 554109fe..718d65a1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -507,6 +507,9 @@ clean: $(TARGET).conf: $(TARGET).conf.in $(MKFS) $(SED) 's,/usr/local,$(PREFIX),' <$< >$@ +$(TARGET).conf.5: $(TARGET).conf.5.in $(MKFS) + $(SED) 's,/usr/local,$(PREFIX),' <$< >$@ + install: $(TARGET) $(TARGET).conf $(TARGET).1 $(TARGET).conf.5 test -d $(DESTDIR)$(PREFIX)/bin || $(MKDIR) -p $(DESTDIR)$(PREFIX)/bin test -d $(DESTDIR)$(PREFIX)/$(TARGET) || \ diff --git a/sslsplit.conf.5 b/sslsplit.conf.5.in similarity index 99% rename from sslsplit.conf.5 rename to sslsplit.conf.5.in index d3c78c0c..519721d0 100644 --- a/sslsplit.conf.5 +++ b/sslsplit.conf.5.in @@ -197,7 +197,7 @@ Default: yes Proxy specification: type listenaddr+port [natengine|targetaddr+port|"sni"+port]. Multiple specs are allowed, one on each line. .SH "FILES" .LP -/etc/sslsplit/sslsplit.conf +/usr/local/etc/sslsplit/sslsplit.conf .SH "AUTHOR" .LP The config file facility was added by Soner Tari .