chiark / gitweb /
contrib/knock.in: Can now be called from an ordinary shell.
[tripe] / contrib / Makefile.am
index 8802b62af1287e9c4c993451a848e1f39cee26b1..3bd45912ead756b2904e3e80c755e488dba74025 100644 (file)
@@ -26,6 +26,7 @@
 include $(top_srcdir)/vars.am
 
 noinst_DATA             =
+noinst_SCRIPTS          =
 
 ###--------------------------------------------------------------------------
 ### Contributions.
@@ -52,4 +53,49 @@ tripe-upstart: tripe-upstart.in Makefile
        $(SUBST) $(srcdir)/tripe-upstart.in >$@.new $(SUBSTITUTIONS) && \
                mv $@.new $@
 
+## Systemd units.
+noinst_DATA            += tripe.service
+EXTRA_DIST             += tripe.service.in
+CLEANFILES             += tripe.service
+
+tripe.service: tripe.service.in Makefile
+       $(SUBST) $(srcdir)/tripe.service.in >$@.new $(SUBSTITUTIONS) && \
+               mv $@.new $@
+
+noinst_DATA            += tripe-connect.service tripe-conntrack.service
+EXTRA_DIST             += tripe-service.service.in
+CLEANFILES             += tripe-connect.service tripe-conntrack.service
+
+tripe-connect.service: tripe-service.service.in Makefile
+       $(SUBST) $(srcdir)/tripe-service.service.in >$@.new \
+                       $(SUBSTITUTIONS) service=connect \
+                       descr="manage peer connections" && \
+               mv $@.new $@
+
+tripe-conntrack.service: tripe-service.service.in Makefile
+       $(SUBST) $(srcdir)/tripe-service.service.in >$@.new \
+                       $(SUBSTITUTIONS) service=conntrack \
+                       descr="track network connectivity" && \
+               mv $@.new $@
+
+## `greet' utility for stimulating passive connections.
+if HAVE_PYTHON
+noinst_SCRIPTS         += greet
+EXTRA_DIST             += greet.in
+CLEANFILES             += greet
+
+greet: greet.in Makefile
+       $(SUBST) $(srcdir)/greet.in >$@.new $(SUBSTITUTIONS) && \
+               chmod +x $@.new && mv $@.new $@
+endif
+
+## `knock' script for accepting incoming dynamic associations.
+noinst_SCRIPTS         += knock
+EXTRA_DIST             += knock.in
+CLEANFILES             += knock
+
+knock: knock.in Makefile
+       $(SUBST) $(srcdir)/knock.in >$@.new $(SUBSTITUTIONS) && \
+               chmod +x $@.new && mv $@.new $@
+
 ###----- That's all, folks --------------------------------------------------