| 1 | ### -*-makefile-*- |
| 2 | ### |
| 3 | ### Makefile for TrIPE services |
| 4 | ### |
| 5 | ### (c) 2001 Straylight/Edgeware |
| 6 | ### |
| 7 | |
| 8 | ###----- Licensing notice --------------------------------------------------- |
| 9 | ### |
| 10 | ### This file is part of Trivial IP Encryption (TrIPE). |
| 11 | ### |
| 12 | ### TrIPE is free software; you can redistribute it and/or modify |
| 13 | ### it under the terms of the GNU General Public License as published by |
| 14 | ### the Free Software Foundation; either version 2 of the License, or |
| 15 | ### (at your option) any later version. |
| 16 | ### |
| 17 | ### TrIPE is distributed in the hope that it will be useful, |
| 18 | ### but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | ### GNU General Public License for more details. |
| 21 | ### |
| 22 | ### You should have received a copy of the GNU General Public License |
| 23 | ### along with TrIPE; if not, write to the Free Software Foundation, |
| 24 | ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | |
| 26 | include $(top_srcdir)/vars.am |
| 27 | |
| 28 | servicesdir = ${pkglibdir}/services |
| 29 | |
| 30 | services_SCRIPTS = |
| 31 | man_MANS = |
| 32 | |
| 33 | ###-------------------------------------------------------------------------- |
| 34 | ### Services. |
| 35 | |
| 36 | ## Handle dynamic connections. |
| 37 | services_SCRIPTS += connect |
| 38 | CLEANFILES += connect |
| 39 | EXTRA_DIST += connect.in |
| 40 | |
| 41 | man_MANS += connect.8tripe |
| 42 | CLEANFILES += connect.8tripe |
| 43 | EXTRA_DIST += connect.8.in |
| 44 | |
| 45 | connect: connect.in Makefile |
| 46 | $(SUBST) $(srcdir)/connect.in >$@.new $(SUBSTITUTIONS) && \ |
| 47 | chmod +x $@.new && mv $@.new $@ |
| 48 | |
| 49 | ## Watch D-Bus to keep track of external connectivity. |
| 50 | services_SCRIPTS += conntrack |
| 51 | CLEANFILES += conntrack |
| 52 | EXTRA_DIST += conntrack.in |
| 53 | |
| 54 | man_MANS += conntrack.8tripe |
| 55 | CLEANFILES += conntrack.8tripe |
| 56 | EXTRA_DIST += conntrack.8.in |
| 57 | |
| 58 | conntrack: conntrack.in Makefile |
| 59 | $(SUBST) $(srcdir)/conntrack.in >$@.new $(SUBSTITUTIONS) && \ |
| 60 | chmod +x $@.new && mv $@.new $@ |
| 61 | |
| 62 | ## Bring up an interface. |
| 63 | sbin_SCRIPTS = tripe-ifup |
| 64 | CLEANFILES += tripe-ifup |
| 65 | EXTRA_DIST += tripe-ifup.in |
| 66 | |
| 67 | man_MANS += tripe-ifup.8tripe |
| 68 | CLEANFILES += tripe-ifup.8tripe |
| 69 | EXTRA_DIST += tripe-ifup.8.in |
| 70 | |
| 71 | tripe-ifup: tripe-ifup.in Makefile |
| 72 | $(SUBST) $(srcdir)/tripe-ifup.in >$@.new $(SUBSTITUTIONS) && \ |
| 73 | chmod +x $@.new && mv $@.new $@ |
| 74 | |
| 75 | ###----- That's all, folks -------------------------------------------------- |