server/admin.c: Remove spurious `ping' in usage message.
[tripe] / svc / Makefile.am
index f37ecb1..2b73ebe 100644 (file)
@@ -9,30 +9,66 @@
 ###
 ### 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
 
+servicesdir = ${pkglibdir}/services
+
+services_SCRIPTS        =
 man_MANS                =
 
 ###--------------------------------------------------------------------------
 ### Services.
 
-## Services manual page.
-man_MANS               += tripe-service.7
-CLEANFILES             += tripe-service.7
-EXTRA_DIST             += tripe-service.7.in
+## Handle dynamic connections.
+services_SCRIPTS       += connect
+CLEANFILES             += connect
+EXTRA_DIST             += connect.in
+
+man_MANS               += connect.8tripe
+CLEANFILES             += connect.8tripe
+EXTRA_DIST             += connect.8.in
+
+connect: connect.in Makefile
+       $(SUBST) $(srcdir)/connect.in >$@.new $(SUBSTITUTIONS) && \
+               chmod +x $@.new && mv $@.new $@
+
+## Watch D-Bus to keep track of external connectivity.
+services_SCRIPTS       += conntrack
+CLEANFILES             += conntrack
+EXTRA_DIST             += conntrack.in
+
+man_MANS               += conntrack.8tripe
+CLEANFILES             += conntrack.8tripe
+EXTRA_DIST             += conntrack.8.in
+
+conntrack: conntrack.in Makefile
+       $(SUBST) $(srcdir)/conntrack.in >$@.new $(SUBSTITUTIONS) && \
+               chmod +x $@.new && mv $@.new $@
+
+## Bring up an interface.
+sbin_SCRIPTS            = tripe-ifup
+CLEANFILES             += tripe-ifup
+EXTRA_DIST             += tripe-ifup.in
+
+man_MANS               += tripe-ifup.8tripe
+CLEANFILES             += tripe-ifup.8tripe
+EXTRA_DIST             += tripe-ifup.8.in
+
+tripe-ifup: tripe-ifup.in Makefile
+       $(SUBST) $(srcdir)/tripe-ifup.in >$@.new $(SUBSTITUTIONS) && \
+               chmod +x $@.new && mv $@.new $@
 
 ###----- That's all, folks --------------------------------------------------