###
### 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.
$(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 --------------------------------------------------