/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-10 17:06:26 UTC
  • mto: This revision was merged to the branch mainline in revision 427.
  • Revision ID: teddy@fukt.bsnet.se-20100910170626-exo8e7ptkb9ncg29
* Makefile (install-server): Install dbus-mandos.conf as
                             "/etc/dbus-1/system.d/mandos.conf".
  (purge-server): Remove "/etc/dbus-1/system.d/mandos.conf".

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
 
210
210
# Run the client with a local config and key
211
211
run-client: all keydir/seckey.txt keydir/pubkey.txt
 
212
        @echo "###################################################################"
 
213
        @echo "# The following error messages are harmless and can be safely     #"
 
214
        @echo "# ignored.  The messages are caused by not running as root, but   #"
 
215
        @echo "# you should NOT run \"make run-client\" as root unless you also    #"
 
216
        @echo "# unpacked and compiled Mandos as root, which is NOT recommended. #"
 
217
        @echo "# From plugin-runner: setuid: Operation not permitted             #"
 
218
        @echo "# From askpass-fifo:  mkfifo: Permission denied                   #"
 
219
        @echo "# From mandos-client: setuid: Operation not permitted             #"
 
220
        @echo "#                     seteuid: Operation not permitted            #"
 
221
        @echo "#                     klogctl: Operation not permitted            #"
 
222
        @echo "###################################################################"
212
223
        ./plugin-runner --plugin-dir=plugins.d \
213
224
                --config-file=plugin-runner.conf \
214
225
                --options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt \
221
232
 
222
233
# Run the server with a local config
223
234
run-server: confdir/mandos.conf confdir/clients.conf
 
235
        @echo "#################################################################"
 
236
        @echo "# NOTE: Please IGNORE errors about \"No permission to bind to    #"
 
237
        @echo "# interface\" or \"Could not open file u'/var/run/mandos.pid'\" -  #"
 
238
        @echo "# they are harmless and are caused by the server not running as #"
 
239
        @echo "# root.  Do NOT run \"make run-server\" server as root if you did #"
 
240
        @echo "# not also unpack and compile it as root.                       #"
 
241
        @echo "#################################################################"
224
242
        ./mandos --debug --no-dbus --configdir=confdir $(SERVERARGS)
225
243
 
226
244
# Used by run-server
247
265
                mandos.conf
248
266
        install --mode=u=rw --target-directory=$(CONFDIR) \
249
267
                clients.conf
 
268
        install --mode=u=rw,go=r dbus-mandos.conf \
 
269
                $(DESTDIR)/etc/dbus-1/system.d/mandos.conf
250
270
        install --mode=u=rwx,go=rx init.d-mandos \
251
271
                $(DESTDIR)/etc/init.d/mandos
252
272
        install --mode=u=rw,go=r default-mandos \
356
376
 
357
377
purge-server: uninstall-server
358
378
        -rm --force $(CONFDIR)/mandos.conf $(CONFDIR)/clients.conf \
 
379
                $(DESTDIR)/etc/dbus-1/system.d/mandos.conf
359
380
                $(DESTDIR)/etc/default/mandos \
360
381
                $(DESTDIR)/etc/init.d/mandos \
361
382
                $(DESTDIR)/var/run/mandos.pid