/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-13 15:36:18 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080913153618-atp386q2bqj0ku99
* Makefile (install-client-nokey): Do "&&" instead of ";" to catch
                                   errors.

* README: Kill the straight quotes.  Add copyright notice.

* overview.xml: Improved wording.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
# DocBook-to-man post-processing to fix a '\n' escape bug
56
56
MANPOST=sed --in-place --expression='s,\\\\en,\\en,g;s,\\n,\\en,g'
57
57
 
58
 
PLUGINS=plugins.d/password-prompt plugins.d/mandos-client \
59
 
        plugins.d/usplash plugins.d/splashy
 
58
PLUGINS=plugins.d/password-prompt plugins.d/mandos-client
60
59
PROGS=plugin-runner $(PLUGINS)
61
60
DOCS=mandos.8 plugin-runner.8mandos mandos-keygen.8 \
62
61
        plugins.d/mandos-client.8mandos \
142
141
install: install-server install-client-nokey
143
142
 
144
143
install-server: doc
145
 
        install --directory $(CONFDIR)
 
144
        install --directory $(CONFDIR) $(MANDIR)/man5 \
 
145
                $(MANDIR)/man8 $(DESTDIR)/etc/init.d \
 
146
                $(DESTDIR)/etc/default $(PREFIX)/sbin
146
147
        install --mode=u=rwx,go=rx mandos $(PREFIX)/sbin/mandos
147
148
        install --mode=u=rw,go=r --target-directory=$(CONFDIR) \
148
149
                mandos.conf
152
153
                $(DESTDIR)/etc/init.d/mandos
153
154
        install --mode=u=rw,go=r default-mandos \
154
155
                $(DESTDIR)/etc/default/mandos
155
 
        if [ -z $(DESTDIR) ]; then \
156
 
                update-rc.d mandos defaults 25 15;\
157
 
        fi
 
156
        update-rc.d mandos defaults
158
157
        gzip --best --to-stdout mandos.8 \
159
158
                > $(MANDIR)/man8/mandos.8.gz
160
159
        gzip --best --to-stdout mandos.conf.5 \
163
162
                > $(MANDIR)/man5/mandos-clients.conf.5.gz
164
163
 
165
164
install-client-nokey: all doc
166
 
        install --directory $(PREFIX)/lib/mandos $(CONFDIR)
167
 
        install --directory --mode=u=rwx $(KEYDIR) \
 
165
        install --directory $(PREFIX)/lib/mandos $(CONFDIR) \
 
166
                $(MANDIR)/man8 $(PREFIX)/sbin \
 
167
                $(INITRAMFSTOOLS)/hooks \
 
168
                $(INITRAMFSTOOLS)/conf-hooks.d \
 
169
                $(INITRAMFSTOOLS)/scripts/local-top
 
170
        install --directory --mode=u=rwx $(KEYDIR)
 
171
        install --directory --mode=u=rwx \
168
172
                $(PREFIX)/lib/mandos/plugins.d
169
173
        if [ "$(CONFDIR)" != "$(PREFIX)/lib/mandos" ]; then \
170
174
                install --mode=u=rwx \
171
 
                        --directory "$(CONFDIR)/plugins.d"; \
 
175
                        --directory "$(CONFDIR)/plugins.d" && \
 
176
                install --mode=u=rw,go=r etc-plugins.d-README \
 
177
                        $(CONFDIR)/plugins.d/README ; \
172
178
        fi
173
179
        install --mode=u=rwx,go=rx \
174
180
                --target-directory=$(PREFIX)/lib/mandos plugin-runner
180
186
        install --mode=u=rwxs,go=rx \
181
187
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
182
188
                plugins.d/mandos-client
183
 
        install --mode=u=rwxs,go=rx \
 
189
        install --mode=u=rwx,go=rx \
184
190
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
185
191
                plugins.d/usplash
186
 
        install --mode=u=rwxs,go=rx \
187
 
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
188
 
                plugins.d/splashy
189
192
        install initramfs-tools-hook \
190
193
                $(INITRAMFSTOOLS)/hooks/mandos
191
 
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
 
194
        install initramfs-tools-hook-conf \
192
195
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos
193
196
        install initramfs-tools-script \
194
197
                $(INITRAMFSTOOLS)/scripts/local-top/mandos
228
231
                $(PREFIX)/lib/mandos/plugins.d/password-prompt \
229
232
                $(PREFIX)/lib/mandos/plugins.d/mandos-client \
230
233
                $(PREFIX)/lib/mandos/plugins.d/usplash \
231
 
                $(PREFIX)/lib/mandos/plugins.d/splashy \
232
234
                $(INITRAMFSTOOLS)/hooks/mandos \
233
235
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos \
234
236
                $(INITRAMFSTOOLS)/scripts/local-top/mandos \