/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

  • Committer: Teddy Hogeborn
  • Date: 2008-09-06 16:11:50 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080906161150-1umb8yz6a29zxg28
* Makefile (install-client): Add "/etc/plugins.d/README".
  (uninstall-client): Remove "/etc/plugins.d/README".

* etc-plugins.d-README: New file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
# DocBook-to-man post-processing to fix a \n escape bug
48
48
MANPOST=sed --in-place --expression='s,\\\\en,\\en,g;s,\\n,\\en,g'
49
49
 
50
 
PLUGINS=plugins.d/password-prompt plugins.d/mandos-client
 
50
PLUGINS=plugins.d/password-prompt plugins.d/password-request
51
51
PROGS=plugin-runner $(PLUGINS)
52
52
DOCS=mandos.8 plugin-runner.8mandos mandos-keygen.8 \
53
 
        plugins.d/mandos-client.8mandos \
 
53
        plugins.d/password-request.8mandos \
54
54
        plugins.d/password-prompt.8mandos mandos.conf.5 \
55
55
        mandos-clients.conf.5
56
56
 
81
81
plugin-runner.8mandos: plugin-runner.xml overview.xml legalnotice.xml
82
82
        $(DOCBOOKTOMAN)
83
83
 
84
 
plugins.d/mandos-client.8mandos: plugins.d/mandos-client.xml \
 
84
plugins.d/password-request.8mandos: plugins.d/password-request.xml \
85
85
                                        mandos-options.xml \
86
86
                                        overview.xml legalnotice.xml
87
87
        $(DOCBOOKTOMAN)
88
88
 
89
 
plugins.d/mandos-client: plugins.d/mandos-client.o
 
89
plugins.d/password-request: plugins.d/password-request.o
90
90
        $(LINK.o) $(GNUTLS_LIBS) $(AVAHI_LIBS) $(GPGME_LIBS) \
91
91
                $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@
92
92
 
109
109
run-client: all keydir/seckey.txt keydir/pubkey.txt
110
110
        ./plugin-runner --plugin-dir=plugins.d \
111
111
                --config-file=plugin-runner.conf \
112
 
                --options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt
 
112
                --options-for=password-request:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt
113
113
 
114
114
# Used by run-client
115
115
keydir/seckey.txt keydir/pubkey.txt: mandos-keygen
171
171
                plugins.d/password-prompt
172
172
        install --mode=u=rwxs,go=rx \
173
173
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
174
 
                plugins.d/mandos-client
 
174
                plugins.d/password-request
175
175
        install --mode=u=rwx,go=rx \
176
176
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
177
177
                plugins.d/usplash
188
188
                > $(MANDIR)/man8/plugin-runner.8mandos.gz
189
189
        gzip --best --to-stdout plugins.d/password-prompt.8mandos \
190
190
                > $(MANDIR)/man8/password-prompt.8mandos.gz
191
 
        gzip --best --to-stdout plugins.d/mandos-client.8mandos \
192
 
                > $(MANDIR)/man8/mandos-client.8mandos.gz
 
191
        gzip --best --to-stdout plugins.d/password-request.8mandos \
 
192
                > $(MANDIR)/man8/password-request.8mandos.gz
193
193
# Post-installation stuff
194
194
        -$(PREFIX)/sbin/mandos-keygen --dir "$(KEYDIR)"
195
195
        update-initramfs -k all -u
213
213
        -rm --force $(PREFIX)/sbin/mandos-keygen \
214
214
                $(PREFIX)/lib/mandos/plugin-runner \
215
215
                $(PREFIX)/lib/mandos/plugins.d/password-prompt \
216
 
                $(PREFIX)/lib/mandos/plugins.d/mandos-client \
 
216
                $(PREFIX)/lib/mandos/plugins.d/password-request \
217
217
                $(PREFIX)/lib/mandos/plugins.d/usplash \
218
218
                /usr/share/initramfs-tools/hooks/mandos \
219
219
                /usr/share/initramfs-tools/conf-hooks.d/mandos \
221
221
                $(MANDIR)/man8/plugin-runner.8mandos.gz \
222
222
                $(MANDIR)/man8/mandos-keygen.8.gz \
223
223
                $(MANDIR)/man8/password-prompt.8mandos.gz \
224
 
                $(MANDIR)/man8/mandos-client.8mandos.gz
 
224
                $(MANDIR)/man8/password-request.8mandos.gz
225
225
        if [ "$(CONFDIR)" != "$(PREFIX)/lib/mandos" ]; then \
226
226
                rm --force $(CONFDIR)/plugins.d/README; \
227
227
        fi