/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 Hogeborn
  • Date: 2010-09-12 03:15:54 UTC
  • Revision ID: teddy@fukt.bsnet.se-20100912031554-le622fn5c0hy61ys
* Makefile: Compile and install new "plymouth" plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
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'
84
84
 
85
85
PLUGINS=plugins.d/password-prompt plugins.d/mandos-client \
86
 
        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
87
88
CPROGS=plugin-runner $(PLUGINS)
88
89
PROGS=mandos mandos-keygen mandos-ctl $(CPROGS)
89
90
DOCS=mandos.8 plugin-runner.8mandos mandos-keygen.8 \
209
210
 
210
211
# Run the client with a local config and key
211
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 "###################################################################"
212
224
        ./plugin-runner --plugin-dir=plugins.d \
213
225
                --config-file=plugin-runner.conf \
214
226
                --options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt \
221
233
 
222
234
# Run the server with a local config
223
235
run-server: confdir/mandos.conf confdir/clients.conf
 
236
        @echo "#################################################################"
 
237
        @echo "# NOTE: Please IGNORE errors about \"No permission to bind to    #"
 
238
        @echo "# interface\" or \"Could not open file u'/var/run/mandos.pid'\" -  #"
 
239
        @echo "# they are harmless and are caused by the server not running as #"
 
240
        @echo "# root.  Do NOT run \"make run-server\" server as root if you did #"
 
241
        @echo "# not also unpack and compile it as root.                       #"
 
242
        @echo "#################################################################"
224
243
        ./mandos --debug --no-dbus --configdir=confdir $(SERVERARGS)
225
244
 
226
245
# Used by run-server
288
307
        install --mode=u=rwxs,go=rx \
289
308
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
290
309
                plugins.d/askpass-fifo
 
310
        install --mode=u=rwxs,go=rx \
 
311
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
 
312
                plugins.d/plymouth
291
313
        install initramfs-tools-hook \
292
314
                $(INITRAMFSTOOLS)/hooks/mandos
293
315
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
338
360
                $(PREFIX)/lib/mandos/plugins.d/usplash \
339
361
                $(PREFIX)/lib/mandos/plugins.d/splashy \
340
362
                $(PREFIX)/lib/mandos/plugins.d/askpass-fifo \
 
363
                $(PREFIX)/lib/mandos/plugins.d/plymouth \
341
364
                $(INITRAMFSTOOLS)/hooks/mandos \
342
365
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos \
343
366
                $(INITRAMFSTOOLS)/scripts/init-premount/mandos \