chiark / gitweb /
ipif: ship and use ipif-access
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 19 Apr 2017 20:30:24 +0000 (21:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 19 Apr 2017 20:30:24 +0000 (21:30 +0100)
ipif/Makefile
ipif/ipif

index fe6ec6e..289935e 100644 (file)
@@ -39,6 +39,7 @@ PROGRAMS+=            $(PROGRAM_TARGETS)
 
 DIRS+=                 $(libuserv) $(etcuserv) $(services)
 DIRS+=                 $(docdir)/userv-ipif
+DIRS+=                 $(etcuserv)/ipif-access
 DIRS$(depr)+=          $(bindir) $(varlibvpn) $(shareuserv)
 
 SHAREFILES$(depr)+=    udptunnel-vpn-config.m4 udptunnel-vpn-defaults
@@ -54,6 +55,7 @@ all:          $(TARGETS)
 install:       all
                mkdir -p $(DIRS)
                cp -b service $(libuserv)/ipif
+               cp -b service-wrap $(libuserv)/ipif-access
                set -e; for f in $(PROGRAMS); do cp -b $$f $(bindir)/.; done
                cp ipif $(services)/ipif:new
                set -e; cd $(services); test -f ipif || mv ipif:new ipif
index c6784c7..6154105 100644 (file)
--- a/ipif/ipif
+++ b/ipif/ipif
@@ -7,5 +7,5 @@ if ( grep calling-user-shell /etc/shells
        no-set-environment
        no-suppress-args
        no-disconnect-hup
-       execute /usr/lib/userv/ipif /etc/userv/ipif-networks --
+       execute /usr/lib/userv/ipif-access /etc/userv/ipif-access /usr/lib/userv/ipif /etc/userv/ipif-networks --
 fi