chiark / gitweb /
server/admin.c: Remove spurious `ping' in usage message.
[tripe] / contrib / Makefile.am
index fe5b47270c2d7b4cc3ef7aed5b266ae79f38f973..2d7a9496d0f16c7d374dffe18a2f1289411ab185 100644 (file)
@@ -9,28 +9,96 @@
 ###
 ### This file is part of Trivial IP Encryption (TrIPE).
 ###
-### TrIPE is free software; you can redistribute it and/or modify
-### it under the terms of the GNU General Public License as published by
-### the Free Software Foundation; either version 2 of the License, or
-### (at your option) any later version.
+### TrIPE is free software: you can redistribute it and/or modify it under
+### the terms of the GNU General Public License as published by the Free
+### Software Foundation; either version 3 of the License, or (at your
+### option) any later version.
 ###
-### TrIPE is distributed in the hope that it will be useful,
-### but WITHOUT ANY WARRANTY; without even the implied warranty of
-### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-### GNU General Public License for more details.
+### TrIPE is distributed in the hope that it will be useful, but WITHOUT
+### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+### FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+### for more details.
 ###
 ### You should have received a copy of the GNU General Public License
-### along with TrIPE; if not, write to the Free Software Foundation,
-### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+### along with TrIPE.  If not, see <https://www.gnu.org/licenses/>.
 
 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 $@
+
+## Configuration for `sshsvc-mkauthkeys'.
+dist_noinst_DATA       += sshsvc.conf
 
 ###----- That's all, folks --------------------------------------------------