X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/a4f886c34289b7acc6a700d774a2f4f583719ae2..refs/tags/1.0.0pre16.1:/contrib/Makefile.am diff --git a/contrib/Makefile.am b/contrib/Makefile.am index fe5b4727..3bd45912 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -25,12 +25,77 @@ include $(top_srcdir)/vars.am -dist_noinst_DATA = +noinst_DATA = +noinst_SCRIPTS = ###-------------------------------------------------------------------------- ### Contributions. ## Glue for `userv-ipif'. -dist_noinst_DATA += tripe-ipif ipif-peers +noinst_DATA += tripe-ipif ipif-peers +EXTRA_DIST += tripe-ipif.in ipif-peers.in +CLEANFILES += tripe-ipif ipif-peers + +tripe-ipif: tripe-ipif.in Makefile + $(SUBST) $(srcdir)/tripe-ipif.in >$@.new $(SUBSTITUTIONS) && \ + mv $@.new $@ + +ipif-peers: ipif-peers.in Makefile + $(SUBST) $(srcdir)/ipif-peers.in >$@.new $(SUBSTITUTIONS) && \ + mv $@.new $@ + +## Upstart fragment. This forks with Maemo's ancient upstart. +noinst_DATA += tripe-upstart +EXTRA_DIST += tripe-upstart.in +CLEANFILES += tripe-upstart + +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 --------------------------------------------------