[server] Strong access.conf validation
[fwknop.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 if WANT_CLIENT
4   CLIENT_DIR = client
5 endif
6
7 if WANT_SERVER
8   SERVER_DIR = server
9 endif
10
11 SUBDIRS = \
12     lib \
13     common \
14     $(CLIENT_DIR) \
15     $(SERVER_DIR) \
16     doc
17
18 EXTRA_DIST = \
19     android/COPYING \
20     android/Application.mk \
21     android/README \
22     android/project/src/com/max2idea/android/fwknop/R.java \
23     android/project/src/com/max2idea/android/fwknop/Fwknop.java \
24     android/project/build.xml \
25     android/project/default.properties \
26     android/project/res/values/strings.xml \
27     android/project/res/drawable-hdpi/icon.png \
28     android/project/res/drawable-mdpi/icon.png \
29     android/project/res/drawable-ldpi/icon.png \
30     android/project/res/drawable/lock_64x64.png \
31     android/project/res/drawable/lock_32x32.png \
32     android/project/res/drawable/lock_128x128.png \
33     android/project/res/layout/main.xml \
34     android/project/nbproject/project.properties \
35     android/project/nbproject/project.xml \
36     android/project/nbproject/build-impl.xml \
37     android/project/nbproject/private/private.properties \
38     android/project/nbproject/private/private.xml \
39     android/project/nbproject/private/config.properties \
40     android/project/nbproject/genfiles.properties \
41     android/project/build.properties \
42     android/project/AndroidManifest.xml \
43     android/project/jni/fwknop/fwknop_client.c \
44     android/project/jni/fwknop/fwknop_client.h \
45     android/project/jni/fwknop/send_spa_packet.c \
46     android/project/jni/config.h \
47     android/project/jni/libfwknop/README \
48     android/project/jni/libfwknop/get_libfko_files.sh \
49     android/project/jni/logutils.h \
50     android/project/jni/Android.mk \
51     ChangeLog \
52     ChangeLog.git \
53     CREDITS \
54     todo.org \
55     extras/fwknop.init.debian \
56     extras/fwknop.init.openwrt \
57     extras/fwknop.init.redhat \
58     extras/myip/myip.c \
59     extras/openwrt/README.openwrt \
60     extras/openwrt/package/fwknop/Makefile \
61     extras/openwrt/package/fwknop/files/fwknopd.init \
62     extras/openwrt/package/gpgme/Makefile \
63     extras/fwknop-launcher/fwknop-launcher-lsof.pl \
64     extras/fwknop-launcher/fwknop-launcher.conf \
65     fwknop.spec \
66     iphone/main.m \
67     iphone/Fwknop.xcodeproj \
68     iphone/Fwknop.xcodeproj/project.pbxproj \
69     iphone/Fwknop.xcodeproj/dev.pbxuser \
70     iphone/Fwknop.xcodeproj/dev.mode1v3 \
71     iphone/lock_57x57.png \
72     iphone/Fwknop.pch \
73     iphone/README \
74     iphone/Info.plist \
75     iphone/COPYING \
76     iphone/Classes \
77     iphone/Classes/MyAppDelegate.h \
78     iphone/Classes/fwknop \
79     iphone/Classes/fwknop/send_spa_packet.c \
80     iphone/Classes/fwknop/fwknop_client.c \
81     iphone/Classes/fwknop/fwknop_client.h \
82     iphone/Classes/FwknopController.m \
83     iphone/Classes/config.h \
84     iphone/Classes/FwknopController.h \
85     iphone/Classes/bridge_fwknop.h \
86     iphone/Classes/MyAppDelegate.m \
87     iphone/Classes/libfwknop \
88     iphone/Classes/libfwknop/README \
89     iphone/Classes/libfwknop/config.h \
90     iphone/Classes/libfwknop/fko_common.b \
91     iphone/Classes/libfwknop/get_libfko_files.sh \
92     iphone/Classes/bridge_fwknop.c \
93     iphone/Classes/logutils.h \
94     perl/FKO/README \
95     perl/FKO/inc/Devel/CheckLib.pm \
96     perl/FKO/MANIFEST \
97     perl/FKO/ppport.h \
98     perl/FKO/FKO.xs \
99     perl/FKO/t/03_errors.t \
100     perl/FKO/t/02_functions.t \
101     perl/FKO/t/01_constants.t \
102     perl/FKO/t/00_init.t \
103     perl/FKO/Makefile.PL \
104     perl/FKO/typemap \
105     perl/FKO/lib/FKO.pm \
106     perl/FKO/lib/FKO_Constants.pl \
107     perl/FKO/Changes \
108     python/README \
109     python/setup.py \
110     python/fkomodule.c \
111     python/fko.py \
112     test/conf/client-gpg/pubring.gpg \
113     test/conf/client-gpg/secring.gpg \
114     test/conf/client-gpg/trustdb.gpg \
115     test/conf/client-gpg-no-pw/pubring.gpg \
116     test/conf/client-gpg-no-pw/secring.gpg \
117     test/conf/client-gpg-no-pw/trustdb.gpg \
118     test/conf/server-gpg/pubring.gpg \
119     test/conf/server-gpg/secring.gpg \
120     test/conf/server-gpg/trustdb.gpg \
121     test/conf/server-gpg-no-pw/pubring.gpg \
122     test/conf/server-gpg-no-pw/secring.gpg \
123     test/conf/server-gpg-no-pw/trustdb.gpg \
124     test/conf/default_access.conf \
125     test/conf/default_fwknopd.conf \
126     test/conf/dual_key_usage_access.conf \
127     test/conf/expired_epoch_stanza_access.conf \
128     test/conf/expired_stanza_access.conf \
129     test/conf/force_nat_access.conf \
130     test/conf/future_expired_stanza_access.conf \
131     test/conf/gpg_access.conf \
132     test/conf/gpg_no_pw_access.conf \
133     test/conf/invalid_expire_access.conf \
134     test/conf/ip_source_match_access.conf \
135     test/conf/mismatch_open_ports_access.conf \
136     test/conf/mismatch_user_access.conf \
137     test/conf/multi_gpg_access.conf \
138     test/conf/multi_source_match_access.conf \
139     test/conf/multi_stanzas_access.conf \
140     test/conf/multi_stanzas_with_broken_keys.conf \
141     test/conf/nat_fwknopd.conf \
142     test/conf/ipfw_active_expire_equal_fwknopd.conf \
143     test/conf/no_multi_source_match_access.conf \
144     test/conf/no_source_match_access.conf \
145     test/conf/no_subnet_source_match_access.conf \
146     test/conf/open_ports_access.conf \
147     test/conf/override_fwknopd.conf \
148     test/conf/require_src_access.conf \
149     test/conf/require_user_access.conf \
150     test/conf/subnet_source_match_access.conf \
151     test/conf/local_nat_fwknopd.conf \
152     test/conf/disable_aging_fwknopd.conf \
153     test/conf/fuzzing_source_access.conf \
154     test/conf/fuzzing_open_ports_access.conf \
155     test/conf/fuzzing_restrict_ports_access.conf \
156     test/hardening-check \
157     test/local_spa.key \
158     test/test-fwknop.pl \
159     VERSION \
160     win32/config.h \
161     win32/fwknop-client.vcproj \
162     win32/getopt.c \
163     win32/getopt1.c \
164     win32/getopt.h \
165     win32/getlogin.c \
166     win32/getlogin.h \
167     win32/libfko.sln \
168     win32/libfko.vcproj
169
170 # Make dist makes the man pages to put them in the distribution.  We
171 # do not want that. They will be remade after configure and make is
172 # later.  This is bit of a kludge, but seems to work (until I find a
173 # better way).   --DSS
174 #
175 dist-hook:
176         rm -f $(distdir)/client/fwknop.8
177         rm -f $(distdir)/server/fwknopd.8
178
179 uninstall-local:
180         if test -f $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf; then \
181                 rm -f $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf; \
182         fi
183         if test -f $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf.inst; then \
184                 rm -f $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf.inst; \
185         fi
186         if test -f $(DESTDIR)$(sysconfdir)/fwknop/access.conf; then \
187                 rm -f $(DESTDIR)$(sysconfdir)/fwknop/access.conf; \
188         fi
189         if test -f $(DESTDIR)$(sysconfdir)/fwknop/access.conf.inst; then \
190                 rm -f $(DESTDIR)$(sysconfdir)/fwknop/access.conf.inst; \
191         fi
192
193 install-exec-hook:
194         if test -d $(DESTDIR)$(sysconfdir)/fwknop; then \
195                 chmod 700 $(DESTDIR)$(sysconfdir)/fwknop; \
196         fi
197         if test -f $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf; then :; \
198         else \
199                 if test -f $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf.inst; then \
200                         mv $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf.inst $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf; \
201                 fi \
202         fi
203         if test -f $(DESTDIR)$(sysconfdir)/fwknop/access.conf; then :; \
204         else \
205                 if test -f $(DESTDIR)$(sysconfdir)/fwknop/access.conf.inst; then \
206                         mv $(DESTDIR)$(sysconfdir)/fwknop/access.conf.inst $(DESTDIR)$(sysconfdir)/fwknop/access.conf; \
207                 fi \
208         fi
209         if test -f $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf; then \
210                 chmod 600 $(DESTDIR)$(sysconfdir)/fwknop/fwknopd.conf; \
211         fi
212         if test -f $(DESTDIR)$(sysconfdir)/fwknop/access.conf; then \
213                 chmod 600 $(DESTDIR)$(sysconfdir)/fwknop/access.conf; \
214         fi