/mandos/trunk

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

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: teddy at bsnet
  • Date: 2010-09-13 06:19:45 UTC
  • Revision ID: teddy@fukt.bsnet.se-20100913061945-y6qw52q01ptn7q71
* mandos-keygen: Don't use "echo -e".

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# If BROKEN_PIE is set, do not build with -pie
18
18
ifndef BROKEN_PIE
19
19
FORTIFY += -fPIE
20
 
LINK_FORTIFY_LD += -fPIE
21
20
LINK_FORTIFY += -pie
22
21
endif
23
22
#COVERAGE=--coverage
84
83
        --expression='s/\(<a class="citerefentry" href="\)\("><span class="citerefentry"><span class="refentrytitle">\)\([^<]*\)\(<\/span>(\)\([^)]*\)\()<\/span><\/a>\)/\1\3.\5\2\3\4\5\6/g'
85
84
 
86
85
PLUGINS=plugins.d/password-prompt plugins.d/mandos-client \
87
 
        plugins.d/usplash plugins.d/splashy plugins.d/askpass-fifo
 
86
        plugins.d/usplash plugins.d/splashy plugins.d/askpass-fifo \
 
87
        plugins.d/plymouth
88
88
CPROGS=plugin-runner $(PLUGINS)
89
89
PROGS=mandos mandos-keygen mandos-ctl $(CPROGS)
90
90
DOCS=mandos.8 plugin-runner.8mandos mandos-keygen.8 \
210
210
 
211
211
# Run the client with a local config and key
212
212
run-client: all keydir/seckey.txt keydir/pubkey.txt
 
213
        @echo "###################################################################"
 
214
        @echo "# The following error messages are harmless and can be safely     #"
 
215
        @echo "# ignored.  The messages are caused by not running as root, but   #"
 
216
        @echo "# you should NOT run \"make run-client\" as root unless you also    #"
 
217
        @echo "# unpacked and compiled Mandos as root, which is NOT recommended. #"
 
218
        @echo "# From plugin-runner: setuid: Operation not permitted             #"
 
219
        @echo "# From askpass-fifo:  mkfifo: Permission denied                   #"
 
220
        @echo "# From mandos-client: setuid: Operation not permitted             #"
 
221
        @echo "#                     seteuid: Operation not permitted            #"
 
222
        @echo "#                     klogctl: Operation not permitted            #"
 
223
        @echo "###################################################################"
213
224
        ./plugin-runner --plugin-dir=plugins.d \
214
225
                --config-file=plugin-runner.conf \
215
226
                --options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt \
222
233
 
223
234
# Run the server with a local config
224
235
run-server: confdir/mandos.conf confdir/clients.conf
 
236
        @echo "#################################################################"
 
237
        @echo "# NOTE: Please IGNORE the error about \"Could not open file      #"
 
238
        @echo "# u'/var/run/mandos.pid'\" -  it is harmless and is caused by    #"
 
239
        @echo "# the server not running as root.  Do NOT run \"make run-server\" #"
 
240
        @echo "# server as root if you didn't also unpack and compile it thus. #"
 
241
        @echo "#################################################################"
225
242
        ./mandos --debug --no-dbus --configdir=confdir $(SERVERARGS)
226
243
 
227
244
# Used by run-server
248
265
                mandos.conf
249
266
        install --mode=u=rw --target-directory=$(CONFDIR) \
250
267
                clients.conf
 
268
        install --mode=u=rw,go=r dbus-mandos.conf \
 
269
                $(DESTDIR)/etc/dbus-1/system.d/mandos.conf
251
270
        install --mode=u=rwx,go=rx init.d-mandos \
252
271
                $(DESTDIR)/etc/init.d/mandos
253
272
        install --mode=u=rw,go=r default-mandos \
289
308
        install --mode=u=rwxs,go=rx \
290
309
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
291
310
                plugins.d/askpass-fifo
 
311
        install --mode=u=rwxs,go=rx \
 
312
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
 
313
                plugins.d/plymouth
292
314
        install initramfs-tools-hook \
293
315
                $(INITRAMFSTOOLS)/hooks/mandos
294
316
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
339
361
                $(PREFIX)/lib/mandos/plugins.d/usplash \
340
362
                $(PREFIX)/lib/mandos/plugins.d/splashy \
341
363
                $(PREFIX)/lib/mandos/plugins.d/askpass-fifo \
 
364
                $(PREFIX)/lib/mandos/plugins.d/plymouth \
342
365
                $(INITRAMFSTOOLS)/hooks/mandos \
343
366
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos \
344
367
                $(INITRAMFSTOOLS)/scripts/init-premount/mandos \
357
380
 
358
381
purge-server: uninstall-server
359
382
        -rm --force $(CONFDIR)/mandos.conf $(CONFDIR)/clients.conf \
 
383
                $(DESTDIR)/etc/dbus-1/system.d/mandos.conf
360
384
                $(DESTDIR)/etc/default/mandos \
361
385
                $(DESTDIR)/etc/init.d/mandos \
362
386
                $(DESTDIR)/var/run/mandos.pid