tinc: Add clean sources of 1.1pre10.
[tomato.git] / release / src / router / rom / Makefile
bloba5f55a0b96613b576838e5900a616e8c3e185919
1 include ../common.mak
3 all:
4 @echo "" >rom/etc/motd
5 @echo "" >>rom/etc/motd
6 @echo "Tomato v"`cat ../shared/tomato_version`"" >>rom/etc/motd
8 clean:
9 rm -f rom/etc/motd
11 install:
12 mkdir -p $(INSTALLDIR)
13 ( tar --exclude=.svn --exclude=*.bak -cpf - rom ) | ( cd $(INSTALLDIR) && tar -xpf - )
15 # remove comments, compress whitespace
16 sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < rom/etc/services > $(INSTALLDIR)/rom/etc/services
17 sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < rom/etc/protocols > $(INSTALLDIR)/rom/etc/protocols
19 ifeq ($(TCONFIG_HTTPS),y)
20 sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < rom/etc/openssl.cnf > $(INSTALLDIR)/rom/etc/openssl.cnf
21 else
22 rm -f $(INSTALLDIR)/rom/etc/openssl.cnf
23 endif
25 ifneq ($(TCONFIG_DNSSEC),y)
26 rm -f $(INSTALLDIR)/rom/etc/trust-anchors.conf
27 endif
29 ifneq ($(TCONFIG_DNSCRYPT),y)
30 rm -f $(INSTALLDIR)/rom/etc/dnscrypt-resolvers.csv
31 else
32 -wget https://raw.githubusercontent.com/jedisct1/dnscrypt-proxy/master/dnscrypt-resolvers.csv -O $(INSTALLDIR)/rom/etc/dnscrypt-resolvers.csv
33 endif