summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-sbin-pkcsslotd-pkcsslotd.mk
blob: 0688ecc545cadee53b78e916853ca53e53906038 (plain) (blame)
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
--- usr/sbin/pkcsslotd/pkcsslotd.mk.orig	2022-04-25 11:04:51 UTC
+++ usr/sbin/pkcsslotd/pkcsslotd.mk
@@ -5,7 +5,7 @@ noinst_HEADERS +=							\
 
 EXTRA_DIST += usr/sbin/pkcsslotd/opencryptoki.conf
 
-usr_sbin_pkcsslotd_pkcsslotd_LDFLAGS = -lpthread -lcrypto
+usr_sbin_pkcsslotd_pkcsslotd_LDFLAGS = -lpthread -lcrypto -lepoll-shim -L$(LOCALBASE)/lib
 if HAVE_LIBUDEV
 usr_sbin_pkcsslotd_pkcsslotd_LDFLAGS += -ludev
 endif
@@ -15,7 +15,39 @@ usr_sbin_pkcsslotd_pkcsslotd_CFLAGS = -DPROGRAM_NAME=\
 	-I${top_builddir}/usr/lib/common  			\
 	-I${top_builddir}/usr/lib/api				\
 	-I${srcdir}/usr/lib/config				\
-	-I${top_builddir}/usr/lib/config
+	-I${top_builddir}/usr/lib/config			\
+	-I$(LOCALBASE)/include/libepoll-shim
+
+usr_sbin_pkcsslotd_pkcsslotd_SOURCES =							\
+	usr/sbin/pkcsslotd/slotmgr.c usr/sbin/pkcsslotd/shmem.c				\
+	usr/sbin/pkcsslotd/signal.c usr/sbin/pkcsslotd/mutex.c usr/sbin/pkcsslotd/err.c	\
+	usr/sbin/pkcsslotd/log.c usr/sbin/pkcsslotd/daemon.c				\
+	usr/sbin/pkcsslotd/garbage_linux.c usr/sbin/pkcsslotd/pkcsslotd_util.c		\
+	usr/sbin/pkcsslotd/socket_server.c usr/lib/config/configuration.c		\
+	usr/lib/config/cfgparse.y usr/lib/config/cfglex.l
+
+nodist_usr_sbin_pkcsslotd_pkcsslotd_SOURCES = \
+	usr/lib/common/dlist.c
+usr/sbin/pkcsslotd/slotmgr.$(OBJEXT): usr/lib/config/cfgparse.h
+sbin_PROGRAMS += usr/sbin/pkcsslotd/pkcsslotd
+noinst_HEADERS +=							\
+	usr/sbin/pkcsslotd/err.h usr/sbin/pkcsslotd/garbage_linux.h	\
+	usr/sbin/pkcsslotd/log.h usr/sbin/pkcsslotd/pkcsslotd.h
+
+EXTRA_DIST += usr/sbin/pkcsslotd/opencryptoki.conf
+
+usr_sbin_pkcsslotd_pkcsslotd_LDFLAGS = -lpthread -lcrypto -lepoll-shim -L$(LOCALBASE)/lib
+if HAVE_LIBUDEV
+usr_sbin_pkcsslotd_pkcsslotd_LDFLAGS += -ludev
+endif
+
+usr_sbin_pkcsslotd_pkcsslotd_CFLAGS = -DPROGRAM_NAME=\"$(@)\"	\
+	-I${srcdir}/usr/include -I${srcdir}/usr/lib/common	\
+	-I${top_builddir}/usr/lib/common  			\
+	-I${top_builddir}/usr/lib/api				\
+	-I${srcdir}/usr/lib/config				\
+	-I${top_builddir}/usr/lib/config			\
+	-I$(LOCALBASE)/include/libepoll-shim
 
 usr_sbin_pkcsslotd_pkcsslotd_SOURCES =							\
 	usr/sbin/pkcsslotd/slotmgr.c usr/sbin/pkcsslotd/shmem.c				\