forked from OpenIDC/mod_auth_openidc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
96 lines (76 loc) · 2.15 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
ACLOCAL_AMFLAGS=-I m4
noinst_LTLIBRARIES = libauth_openidc.la
libauth_openidc_la_SOURCES = \
src/mod_auth_openidc.c \
src/cache/file.c \
src/cache/shm.c \
src/cache/common.c \
src/oauth.c \
src/proto.c \
src/config.c \
src/util.c \
src/authz.c \
src/session.c \
src/metadata.c \
src/jose.c \
src/parse.c \
src/pcre_subst.c
AM_CFLAGS = -DNAMEVER="@NAMEVER@" -I$(top_srcdir)/src @APACHE_CFLAGS@ @OPENSSL_CFLAGS@ @CURL_CFLAGS@ @JANSSON_CFLAGS@ @CJOSE_CFLAGS@ @PCRE_CFLAGS@
AM_CPPFLAGS = @APACHE_CPPFLAGS@
AM_LDFLAGS = @APACHE_LDFLAGS@
LIBADD = @APACHE_LIBS@ @OPENSSL_LIBS@ @CURL_LIBS@ @JANSSON_LIBS@ @CJOSE_LIBS@ @PCRE_LIBS@
if HAVE_LIBHIREDIS
libauth_openidc_la_SOURCES += \
src/cache/redis.c
AM_CFLAGS += -DUSE_LIBHIREDIS @HIREDIS_CFLAGS@
LIBADD += @HIREDIS_LIBS@
endif
if HAVE_MEMCACHE
AM_CFLAGS += -DUSE_MEMCACHE
libauth_openidc_la_SOURCES += \
src/cache/memcache.c
endif
if HAVE_LIBJQ
AM_CFLAGS += -DUSE_LIBJQ @JQ_CFLAGS@
LIBADD += @JQ_LIBS@
endif
noinst_HEADERS = \
src/mod_auth_openidc.h \
src/jose.h \
src/parse.h \
src/cache/cache.h \
src/pcre_subst.h
if HAVE_LIBHIREDIS
noinst_HEADERS += \
src/cache/redis.h
endif
EXTRA_DIST = \
README.md \
ChangeLog \
INSTALL \
AUTHORS \
LICENSE.txt \
auth_openidc.conf \
test/public.pem \
test/certificate.pem \
test/open-redirect-payload-list.txt
noinst_DATA = mod_auth_openidc.la
mod_auth_openidc.la: libauth_openidc.la
${APXS} -c -o $@ $< ${AM_CFLAGS} ${LIBADD}
install-exec-local:
# @APXS@ -i -a -n auth_openidc mod_auth_openidc.la
${INSTALL} -d $(DESTDIR)@APACHE_MODULEDIR@
${INSTALL} -p -m 755 .libs/mod_auth_openidc.so $(DESTDIR)@APACHE_MODULEDIR@/mod_auth_openidc.so
uninstall-local:
rm -f $(DESTDIR)@APACHE_MODULEDIR@/mod_auth_openidc.so mod_auth_openidc.la
LDADD = libauth_openidc.la ${LIBADD}
noinst_PROGRAMS = test/test-cmd
test_test_cmd_SOURCES = test/test-cmd.c test/stub.c
TESTS = test/test
check_PROGRAMS = test/test
test_test_SOURCES = test/test.c test/stub.c
docker: docker-build docker-run
docker-build:
docker build -t mod_auth_openidc .
docker-run:
docker run -p 80:80 -p 443:443 --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -it mod_auth_openidc /bin/bash -c "/root/run.sh"