Skip to content

Commit

Permalink
Use PREFIX for config file path in sslsplit.conf(5)
Browse files Browse the repository at this point in the history
  • Loading branch information
droe committed Oct 29, 2018
1 parent 64a8833 commit e808065
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/sslsplit
/sslsplit.test
/sslsplit.conf
/sslsplit.conf.5
/extra/*.pyc
/extra/engine/*.dylib
/extra/engine/*.so
Expand Down
3 changes: 3 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) || \
Expand Down
2 changes: 1 addition & 1 deletion sslsplit.conf.5 → sslsplit.conf.5.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sonertari@gmail.com>.
Expand Down

0 comments on commit e808065

Please sign in to comment.