/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to Makefile

* plugins.d/mandos-client.c (start_mandos_communication): Bug fix:
                                                          always free
                                                          "decrypted_buffer".
                                                          Default to
                                                          fail unless
                                                          success is
                                                          achieved.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
WARN=-O -Wall -Wformat=2 -Winit-self -Wmissing-include-dirs \
2
2
        -Wswitch-default -Wswitch-enum -Wunused-parameter \
3
 
        -Wstrict-aliasing=2 -Wextra -Wfloat-equal -Wundef -Wshadow \
 
3
        -Wstrict-aliasing=1 -Wextra -Wfloat-equal -Wundef -Wshadow \
4
4
        -Wunsafe-loop-optimizations -Wpointer-arith \
5
5
        -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings \
6
6
        -Wconversion -Wstrict-prototypes -Wold-style-definition \
16
16
OPTIMIZE=-Os
17
17
LANGUAGE=-std=gnu99
18
18
htmldir=man
19
 
version=1.0.3
 
19
version=1.0.11
20
20
SED=sed
21
21
 
22
22
## Use these settings for a traditional /usr/local install
35
35
INITRAMFSTOOLS=$(DESTDIR)/usr/share/initramfs-tools
36
36
##
37
37
 
38
 
GNUTLS_CFLAGS=$(shell libgnutls-config --cflags)
39
 
GNUTLS_LIBS=$(shell libgnutls-config --libs)
 
38
GNUTLS_CFLAGS=$(shell pkg-config --cflags-only-I gnutls)
 
39
GNUTLS_LIBS=$(shell pkg-config --libs gnutls)
40
40
AVAHI_CFLAGS=$(shell pkg-config --cflags-only-I avahi-core)
41
41
AVAHI_LIBS=$(shell pkg-config --libs avahi-core)
42
 
GPGME_CFLAGS=$(shell gpgme-config --cflags)
43
 
GPGME_LIBS=$(shell gpgme-config --libs)
 
42
GPGME_CFLAGS=$(shell gpgme-config --cflags; getconf LFS_CFLAGS)
 
43
GPGME_LIBS=$(shell gpgme-config --libs; getconf LFS_LIBS; \
 
44
        getconf LFS_LDFLAGS)
44
45
 
45
46
# Do not change these two
46
47
CFLAGS=$(WARN) $(DEBUG) $(FORTIFY) $(COVERAGE) $(OPTIMIZE) \
77
78
PLUGINS=plugins.d/password-prompt plugins.d/mandos-client \
78
79
        plugins.d/usplash plugins.d/splashy plugins.d/askpass-fifo
79
80
CPROGS=plugin-runner $(PLUGINS)
80
 
PROGS=mandos mandos-keygen mandos-list $(CPROGS)
 
81
PROGS=mandos mandos-keygen mandos-ctl $(CPROGS)
81
82
DOCS=mandos.8 plugin-runner.8mandos mandos-keygen.8 \
82
83
        plugins.d/mandos-client.8mandos \
83
84
        plugins.d/password-prompt.8mandos mandos.conf.5 \
151
152
# Update all these files with version number $(version)
152
153
common.ent: Makefile
153
154
        $(SED) --in-place \
154
 
                --expression='s/^\(<ENTITY VERSION "\)[^"]*">$$/\1$(version)"/' \
 
155
                --expression='s/^\(<!ENTITY version "\)[^"]*">$$/\1$(version)">/' \
155
156
                $@
156
157
 
157
158
mandos: Makefile
164
165
                --expression='s/^\(VERSION="\)[^"]*"$$/\1$(version)"/' \
165
166
                $@
166
167
 
167
 
mandos-list: Makefile
 
168
mandos-ctl: Makefile
168
169
        $(SED) --in-place \
169
170
                --expression='s/^\(version = "\)[^"]*"$$/\1$(version)"/' \
170
171
                $@
203
204
run-client: all keydir/seckey.txt keydir/pubkey.txt
204
205
        ./plugin-runner --plugin-dir=plugins.d \
205
206
                --config-file=plugin-runner.conf \
206
 
                --options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt
 
207
                --options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt \
 
208
                $(CLIENTARGS)
207
209
 
208
210
# Used by run-client
209
211
keydir/seckey.txt keydir/pubkey.txt: mandos-keygen
212
214
 
213
215
# Run the server with a local config
214
216
run-server: confdir/mandos.conf confdir/clients.conf
215
 
        ./mandos --debug --configdir=confdir
 
217
        ./mandos --debug --no-dbus --configdir=confdir $(SERVERARGS)
216
218
 
217
219
# Used by run-server
218
220
confdir/mandos.conf: mandos.conf
284
286
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
285
287
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos
286
288
        install initramfs-tools-script \
287
 
                $(INITRAMFSTOOLS)/scripts/local-top/mandos
 
289
                $(INITRAMFSTOOLS)/scripts/init-premount/mandos
288
290
        install --mode=u=rw,go=r plugin-runner.conf $(CONFDIR)
289
291
        gzip --best --to-stdout mandos-keygen.8 \
290
292
                > $(MANDIR)/man8/mandos-keygen.8.gz
331
333
                $(PREFIX)/lib/mandos/plugins.d/askpass-fifo \
332
334
                $(INITRAMFSTOOLS)/hooks/mandos \
333
335
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos \
334
 
                $(INITRAMFSTOOLS)/scripts/local-top/mandos \
 
336
                $(INITRAMFSTOOLS)/scripts/init-premount/mandos \
335
337
                $(MANDIR)/man8/plugin-runner.8mandos.gz \
336
338
                $(MANDIR)/man8/mandos-keygen.8.gz \
337
339
                $(MANDIR)/man8/password-prompt.8mandos.gz \