chiark / gitweb /
ipif: Provide head comment of service.c as a txt docs.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Dec 2013 22:48:38 +0000 (22:48 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Dec 2013 22:48:38 +0000 (22:48 +0000)
debian/changelog
ipif/Makefile
ipif/ipif

index c8a05610a05cb2a5186e6a4af2c0d5a03140433f..a1d232a59c1f9680007787b6174fce3cba80591a 100644 (file)
@@ -8,6 +8,7 @@ userv-utils (0.6.0~~iwj1) unstable; urgency=low
   * Update to GPLv3+; update copyright notices everywhere.
   * ipif: Update docs to reflect fact that we are now using tun/tap.
   * ipif: Deprecate udptunnel.
+  * ipif: Provide head comment of service.c as a txt docs.
 
  --
 
index 78b49725bdacb9307aa0f25718517b5c5d882f24..fe6ec6efefcc00ae68dd3cce890ced5d510136f9 100644 (file)
@@ -38,6 +38,7 @@ PROGRAMS$(depr)+=     udptunnel
 PROGRAMS+=             $(PROGRAM_TARGETS)
 
 DIRS+=                 $(libuserv) $(etcuserv) $(services)
+DIRS+=                 $(docdir)/userv-ipif
 DIRS$(depr)+=          $(bindir) $(varlibvpn) $(shareuserv)
 
 SHAREFILES$(depr)+=    udptunnel-vpn-config.m4 udptunnel-vpn-defaults
@@ -59,6 +60,7 @@ install:      all
                set -e; for f in $(SHAREFILES); do cp $$f $(shareuserv)/.; done
 
 install-docs:
+               sed -n '1,/^$$/p' service.c >$(docdir)/userv-ipif/service.c.txt
 
 install-examples:
                set -e; if [ "x$depr" = x ]; then \
index f8c583844c57475ddc13c9a2a8b1b7645cd78dc3..c6784c759dcc8e8a9b8fc44fa7ad79d70bae571b 100644 (file)
--- a/ipif/ipif
+++ b/ipif/ipif
@@ -1,3 +1,5 @@
+# See /usr/share/doc/userv-ipif/service.c.txt
+#
 if ( grep calling-user-shell /etc/shells
    & glob service-user root
    )