/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: 2008-09-19 00:00:51 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080919000051-tgm5erxuj0zhs867
* debian/mandos-client.README.Debian: Document "eth0" default and how
                                      to change it.

* debian/mandos-client.postrm (update_initramfs): Use "type" instead
                                                  of "which".

* plugin-runner.c (handle_sigchld, print_out_password): Declared
                                                        static.

* plugin-runner.xml (SYNOPSIS, OPTIONS): Changed "VAR" to "ENV" in the
                                         "--global-env" option to be
                                         consistent with the
                                         "--env-for" option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
# Add a client password
139
139
        ./mandos-keygen --dir keydir --password >> $@
140
140
 
141
 
install: install-server install-client
 
141
install: install-server install-client-nokey
142
142
 
143
143
install-server: doc
144
 
        install --directory $(CONFDIR) $(MANDIR)/man5 \
145
 
                $(MANDIR)/man8
 
144
        install --directory $(CONFDIR)
146
145
        install --mode=u=rwx,go=rx mandos $(PREFIX)/sbin/mandos
147
146
        install --mode=u=rw,go=r --target-directory=$(CONFDIR) \
148
147
                mandos.conf
160
159
        gzip --best --to-stdout mandos-clients.conf.5 \
161
160
                > $(MANDIR)/man5/mandos-clients.conf.5.gz
162
161
 
163
 
install-client: all doc $(INITRAMFSTOOLS)/hooks/.
164
 
        install --directory $(PREFIX)/lib/mandos $(CONFDIR) \
165
 
                $(MANDIR)/man8
166
 
        install --directory --mode=u=rwx $(KEYDIR)
167
 
        install --directory --mode=u=rwx \
 
162
install-client-nokey: all doc
 
163
        install --directory $(PREFIX)/lib/mandos $(CONFDIR)
 
164
        install --directory --mode=u=rwx $(KEYDIR) \
168
165
                $(PREFIX)/lib/mandos/plugins.d
169
166
        if [ "$(CONFDIR)" != "$(PREFIX)/lib/mandos" ]; then \
170
167
                install --mode=u=rwx \
171
 
                        --directory "$(CONFDIR)/plugins.d"; \
 
168
                        --directory "$(CONFDIR)/plugins.d" && \
172
169
                install --mode=u=rw,go=r etc-plugins.d-README \
173
170
                        $(CONFDIR)/plugins.d/README ; \
174
171
        fi
187
184
                plugins.d/usplash
188
185
        install initramfs-tools-hook \
189
186
                $(INITRAMFSTOOLS)/hooks/mandos
190
 
        install initramfs-tools-hook-conf \
 
187
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
191
188
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos
192
189
        install initramfs-tools-script \
193
190
                $(INITRAMFSTOOLS)/scripts/local-top/mandos
200
197
                > $(MANDIR)/man8/password-prompt.8mandos.gz
201
198
        gzip --best --to-stdout plugins.d/mandos-client.8mandos \
202
199
                > $(MANDIR)/man8/mandos-client.8mandos.gz
 
200
 
 
201
install-client: install-client-nokey
203
202
# Post-installation stuff
204
203
        -$(PREFIX)/sbin/mandos-keygen --dir "$(KEYDIR)"
205
204
        update-initramfs -k all -u