]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - crypto/heimdal/tests/kdc/Makefile.am
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / crypto / heimdal / tests / kdc / Makefile.am
1 # $Id: Makefile.am 22447 2008-01-15 06:05:17Z lha $
2
3 include $(top_srcdir)/Makefile.am.common
4
5 noinst_DATA = \
6         krb5.conf \
7         krb5-pkinit.conf \
8         krb5-pkinit-win.conf \
9         krb5-slave.conf
10
11 check_PROGRAMS = ap-req
12 check_SCRIPTS = $(SCRIPT_TESTS) 
13
14 SCRIPT_TESTS = \
15         check-digest \
16         check-kadmin \
17         check-kdc \
18         check-keys \
19         check-pkinit \
20         check-iprop \
21         check-referral \
22         check-uu
23
24 TESTS = $(SCRIPT_TESTS)
25
26 port = 49188
27 admport = 49189
28
29 if HAVE_DLOPEN
30 do_dlopen = -e 's,[@]DLOPEN[@],true,g'
31 else
32 do_dlopen = -e 's,[@]DLOPEN[@],false,g'
33 endif
34
35 do_subst = sed $(do_dlopen) \
36         -e 's,[@]srcdir[@],$(srcdir),g' \
37         -e 's,[@]port[@],$(port),g' \
38         -e 's,[@]admport[@],$(admport),g' \
39         -e 's,[@]objdir[@],$(top_builddir)/tests/kdc,g' \
40         -e 's,[@]EGREP[@],$(EGREP),g' 
41
42 LDADD = ../../lib/krb5/libkrb5.la $(LIB_roken)
43
44 check-kdc: check-kdc.in Makefile
45         $(do_subst) < $(srcdir)/check-kdc.in > check-kdc.tmp
46         chmod +x check-kdc.tmp
47         mv check-kdc.tmp check-kdc
48
49 check-keys: check-keys.in Makefile
50         $(do_subst) < $(srcdir)/check-keys.in > check-keys.tmp
51         chmod +x check-keys.tmp
52         mv check-keys.tmp check-keys
53
54 check-kadmin: check-kadmin.in Makefile
55         $(do_subst) < $(srcdir)/check-kadmin.in > check-kadmin.tmp
56         chmod +x check-kadmin.tmp
57         mv check-kadmin.tmp check-kadmin
58
59 check-uu: check-uu.in Makefile
60         $(do_subst) < $(srcdir)/check-uu.in > check-uu.tmp
61         chmod +x check-uu.tmp
62         mv check-uu.tmp check-uu
63
64 check-pkinit: check-pkinit.in Makefile krb5-pkinit.conf
65         $(do_subst) < $(srcdir)/check-pkinit.in > check-pkinit.tmp
66         chmod +x check-pkinit.tmp
67         mv check-pkinit.tmp check-pkinit
68
69 check-iprop: check-iprop.in Makefile krb5.conf krb5-slave.conf
70         $(do_subst) < $(srcdir)/check-iprop.in > check-iprop.tmp
71         chmod +x check-iprop.tmp
72         mv check-iprop.tmp check-iprop
73
74 check-digest: check-digest.in Makefile
75         $(do_subst) < $(srcdir)/check-digest.in > check-digest.tmp
76         chmod +x check-digest.tmp
77         mv check-digest.tmp check-digest
78
79 check-referral: check-referral.in Makefile
80         $(do_subst) < $(srcdir)/check-referral.in > check-referral.tmp
81         chmod +x check-referral.tmp
82         mv check-referral.tmp check-referral
83
84 krb5.conf: krb5.conf.in Makefile
85         $(do_subst) \
86            -e 's,[@]kdc[@],,g' < $(srcdir)/krb5.conf.in > krb5.conf.tmp
87         mv krb5.conf.tmp krb5.conf
88
89 krb5-slave.conf: krb5.conf.in Makefile
90         $(do_subst) \
91            -e 's,[@]kdc[@],.slave,g' < $(srcdir)/krb5.conf.in > krb5-slave.conf.tmp
92         mv krb5-slave.conf.tmp krb5-slave.conf
93
94 krb5-pkinit.conf: krb5-pkinit.conf.in Makefile
95         $(do_subst) -e 's,[@]w2k[@],no,g' < $(srcdir)/krb5-pkinit.conf.in > krb5-pkinit.conf.tmp
96         mv krb5-pkinit.conf.tmp krb5-pkinit.conf
97
98 krb5-pkinit-win.conf: krb5-pkinit.conf.in Makefile
99         $(do_subst) -e 's,[@]w2k[@],yes,g' < $(srcdir)/krb5-pkinit.conf.in > krb5-pkinit-win.conf.tmp
100         mv krb5-pkinit-win.conf.tmp krb5-pkinit-win.conf
101
102 CLEANFILES= \
103         $(TESTS) \
104         iprop-stats \
105         barpassword \
106         cache.krb5 \
107         cdigest-reply \
108         *.tmp \
109         client-cache \
110         current-db* \
111         current*.log \
112         iprop.keytab \
113         digest-reply \
114         foopassword \
115         krb5.conf \
116         krb5-slave.conf \
117         krb5-pkinit.conf \
118         krb5-pkinit-win.conf \
119         krb5.conf.keys \
120         signal \
121         messages.log \
122         o2cache.krb5 \
123         o2digest-reply \
124         ocache.krb5 \
125         s2digest-reply \
126         sdigest-init \
127         sdigest-reply \
128         server.keytab \
129         req-pkinit.der \
130         req-pkinit2.der \
131         req-kdc.der \
132         pkinit.crt \
133         pkinit2.crt \
134         pkinit3.crt \
135         kdc.crt \
136         ca.crt \
137         uuserver.log \
138         tempfile \
139         test-rc-file.rc
140
141 EXTRA_DIST = \
142         check-kadmin.in \
143         check-kdc.in \
144         check-keys.in \
145         check-referral.in \
146         check-uu.in \
147         check-pkinit.in \
148         check-iprop.in \
149         check-digest.in \
150         heimdal.acl \
151         krb5.conf.in \
152         krb5.conf.keys.in \
153         krb5-pkinit.conf.in \
154         iprop-acl \
155         wait-kdc.sh \
156         pki-mapping \
157         ntlm-user-file.txt \
158         uuserver.txt \
159         donotexists.txt