summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2013-12-04 22:48:38 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2013-12-04 22:48:38 +0000
commit28b264ac22b5bb4f39920e6be74d3d59b92c9eac (patch)
tree264ec6b871dd4067fb2453eae6788d5b3b405bbc
parent5e8cb121d0061bf38eb33be82b0b026ddafeda63 (diff)
downloaduserv-utils-28b264ac22b5bb4f39920e6be74d3d59b92c9eac.tar.gz
ipif: Provide head comment of service.c as a txt docs.
-rw-r--r--debian/changelog1
-rw-r--r--ipif/Makefile2
-rw-r--r--ipif/ipif2
3 files changed, 5 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index c8a0561..a1d232a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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.
--
diff --git a/ipif/Makefile b/ipif/Makefile
index 78b4972..fe6ec6e 100644
--- a/ipif/Makefile
+++ b/ipif/Makefile
@@ -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 \
diff --git a/ipif/ipif b/ipif/ipif
index f8c5838..c6784c7 100644
--- 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
)