/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

Added sample OpenVPN network hook.

* network-hooks.d/openvpn: New.
* network-hooks.d/openvpn.conf: - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        @echo "###################################################################"
251
251
        ./plugin-runner --plugin-dir=plugins.d \
252
252
                --config-file=plugin-runner.conf \
253
 
                --options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt \
 
253
                --options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt,--network-hook-dir=network-hooks.d \
254
254
                $(CLIENTARGS)
255
255
 
256
256
# Used by run-client
260
260
 
261
261
# Run the server with a local config
262
262
run-server: confdir/mandos.conf confdir/clients.conf
 
263
        @echo "#################################################################"
 
264
        @echo "# NOTE: Please IGNORE the error about \"Could not open file      #"
 
265
        @echo "# u'/var/run/mandos.pid'\" -  it is harmless and is caused by    #"
 
266
        @echo "# the server not running as root.  Do NOT run \"make run-server\" #"
 
267
        @echo "# server as root if you didn't also unpack and compile it thus. #"
 
268
        @echo "#################################################################"
263
269
        ./mandos --debug --no-dbus --configdir=confdir $(SERVERARGS)
264
270
 
265
271
# Used by run-server
318
324
                install --mode=u=rwx \
319
325
                        --directory "$(CONFDIR)/plugins.d"; \
320
326
        fi
 
327
        install --mode=u=rwx,go=rx --directory \
 
328
                "$(CONFDIR)/network-hooks.d"
321
329
        install --mode=u=rwx,go=rx \
322
330
                --target-directory=$(PREFIX)/lib/mandos plugin-runner
323
331
        install --mode=u=rwx,go=rx --target-directory=$(PREFIX)/sbin \