-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
65 lines (61 loc) · 3.08 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
AUTOMAKE_OPTIONS=foreign 1.9
bin_PROGRAMS=rekeymgr
sbin_PROGRAMS=$(SERVER_PROG) getnewkeys age_keytab
noinst_PROGRAMS=rekeytest
man_MANS=rekeymgr.1 age_keytab.8 getnewkeys.8
if SERVER
man_MANS += rekeysrv.8
systemdsystemunitdir=/usr/lib/systemd/system
systemdsystemunit_DATA = [email protected] rekey.socket
endif
crondailydir=/etc/cron.daily
dist_crondaily_SCRIPTS=update-kerberos-keys
EXTRA_PROGRAMS=rekeysrv try_acl
EXTRA_DIST=dhp1024.pem dhp2048.pem dhp3072.pem dhp4096.pem dhp512.pem \
dhp7680.pem m4/gnulib-cache.m4 sqlembed.pl rekey.sql SMakefile
BUILT_SOURCES=sqlinit.h dhp7680.h
CLEANFILES = sqlinit.h dhp7680.h
CLIENT_SOURCES=cltlib.c rekeylib.c memmgt.c memmgt.h protocol.h rekeyclt-locl.h rekey-locl.h krb5_portability.h
rekeymgr_SOURCES=rekeyclt.c $(CLIENT_SOURCES)
rekeymgr_LDADD=$(LDADD) $(LIB_GSS) $(LIB_KRB5) $(LIB_COM_ERR) $(SSL_LIBS) $(GETADDRINFO_LIB) $(HOSTENT_LIB) $(SERVENT_LIB) $(LIBSOCKET)
getnewkeys_SOURCES=getnewkeys.c $(CLIENT_SOURCES)
getnewkeys_LDADD=$(LDADD) $(LIB_GSS) $(LIB_KRB5) $(LIB_COM_ERR) $(SSL_LIBS) $(GETADDRINFO_LIB) $(HOSTENT_LIB) $(SERVENT_LIB) $(LIBSOCKET)
rekeytest_SOURCES=rekeytest.c $(CLIENT_SOURCES)
rekeytest_LDADD=$(LDADD) $(LIB_GSS) $(LIB_KRB5) $(SSL_LIBS) $(GETADDRINFO_LIB) $(HOSTENT_LIB) $(SERVENT_LIB) $(LIBSOCKET)
rekeysrv_SOURCES=srvmain.c srvnet.c srvops.c admin_file.c acl.c srvutil.c rekeylib.c memmgt.c memmgt.h protocol.h rekey-locl.h rekeysrv-locl.h sqlinit.h dhp7680.h
if LDAP_GROUPS
rekeysrv_SOURCES+=admin_ldapgroups-std.c
endif
rekeysrv_LDADD=$(LDADD) $(LIB_GSS) $(SSL_LIBS) $(LIB_KADMS) $(LIB_KRB5) $(LIB_SQLITE3) $(LIB_LDAP) $(GETADDRINFO_LIB) $(HOSTENT_LIB) $(SERVENT_LIB) $(INET_NTOP_LIB) $(LIBSOCKET)
age_keytab_SOURCES=age_keytab.c krb5_portability.h
age_keytab_LDADD=$(LDADD) $(LIB_KRB5) $(LIB_ASN1)
try_acl_SOURCES=try_acl.c acl.c rekeylib.c memmgt.c memmgt.h rekey-locl.h rekeysrv-locl.h
try_acl_LDADD=$(LDADD) $(LIB_GSS) $(SSL_LIBS) $(LIB_KRB5)
%.h: %.pem
openssl dhparam -C -noout -in $< | sed 's/^DH \*get_dh/static DH *get_dh/' > $@
sqlinit.h: $(srcdir)/sqlembed.pl $(srcdir)/rekey.sql
perl $(srcdir)/sqlembed.pl < $(srcdir)/rekey.sql > $@
SUBDIRS=lib
ACLOCAL_AMFLAGS=-I m4
AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib $(KRB_INC_FLAGS) \
-DSYSCONFDIR='"$(sysconfdir)"'
LDADD = lib/libgnu.a
KEEP_MAN_SECTS=
if LDAP_GROUPS
KEEP_MAN_SECTS+=ADMIN-ldapgroups-std
endif
sub_drs = s%\(\\f(CW\)*\@def_rekey_service\(\\fR\)*\@%$(def_rekey_service)%
sub_etc = s%\(\\f(CI\)*\@sysconfdir\(\\fI\)*\@%$(sysconfdir)%
keep_sect = /<<<===SECT-\($(KEEP_MAN_SECTS)\)===>>>/,/<<<===SECT-.*===>>>/p
cut_sect = /<<<===SECT-.*===>>>/,/<<<===SECT-ZZZ===>>>/d
#keep_sect = /<<<===KEEP-\($(KEEP_MAN_SECTS)\)===>>>/,/<<<===END-KEEP===>>>/p
#cut_sect = /<<<===BEGIN-CUT===>>>/,/<<<===END-CUT===>>>/d
man_sed_prog = '$(sub_drs);$(sub_etc);$(keep_sect);$(cut_sect)'
rekeymgr.1: rekeymgr.1.in
sed $(man_sed_prog) < $< > $@
rekeysrv.8: rekeysrv.8.in
sed $(man_sed_prog) < $< > $@
getnewkeys.8: getnewkeys.8.in
sed $(man_sed_prog) < $< > $@
[email protected]: $(srcdir)/[email protected]
sed -e 's![@]sbindir[@]!$(sbindir)!g' $(srcdir)/[email protected] > $@