/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-08 18:18:49 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080908181849-ogydhr0m4axi3dnu
* INSTALL: More text.  Better text.

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-nokey
 
141
install: install-server install-client
142
142
 
143
143
install-server: doc
144
 
        install --directory $(CONFDIR)
 
144
        install --directory $(CONFDIR) $(MANDIR)/man5 \
 
145
                $(MANDIR)/man8
145
146
        install --mode=u=rwx,go=rx mandos $(PREFIX)/sbin/mandos
146
147
        install --mode=u=rw,go=r --target-directory=$(CONFDIR) \
147
148
                mandos.conf
151
152
                $(DESTDIR)/etc/init.d/mandos
152
153
        install --mode=u=rw,go=r default-mandos \
153
154
                $(DESTDIR)/etc/default/mandos
154
 
        if [ -z $(DESTDIR) ]; then \
155
 
                update-rc.d mandos defaults 25 15;\
156
 
        fi
 
155
        update-rc.d mandos defaults
157
156
        gzip --best --to-stdout mandos.8 \
158
157
                > $(MANDIR)/man8/mandos.8.gz
159
158
        gzip --best --to-stdout mandos.conf.5 \
161
160
        gzip --best --to-stdout mandos-clients.conf.5 \
162
161
                > $(MANDIR)/man5/mandos-clients.conf.5.gz
163
162
 
164
 
install-client-nokey: all doc
165
 
        install --directory $(PREFIX)/lib/mandos $(CONFDIR)
166
 
        install --directory --mode=u=rwx $(KEYDIR) \
 
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 \
167
168
                $(PREFIX)/lib/mandos/plugins.d
168
169
        if [ "$(CONFDIR)" != "$(PREFIX)/lib/mandos" ]; then \
169
170
                install --mode=u=rwx \
170
171
                        --directory "$(CONFDIR)/plugins.d"; \
 
172
                install --mode=u=rw,go=r etc-plugins.d-README \
 
173
                        $(CONFDIR)/plugins.d/README ; \
171
174
        fi
172
175
        install --mode=u=rwx,go=rx \
173
176
                --target-directory=$(PREFIX)/lib/mandos plugin-runner
184
187
                plugins.d/usplash
185
188
        install initramfs-tools-hook \
186
189
                $(INITRAMFSTOOLS)/hooks/mandos
187
 
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
 
190
        install initramfs-tools-hook-conf \
188
191
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos
189
192
        install initramfs-tools-script \
190
193
                $(INITRAMFSTOOLS)/scripts/local-top/mandos
197
200
                > $(MANDIR)/man8/password-prompt.8mandos.gz
198
201
        gzip --best --to-stdout plugins.d/mandos-client.8mandos \
199
202
                > $(MANDIR)/man8/mandos-client.8mandos.gz
200
 
 
201
 
install-client: install-client-nokey
202
203
# Post-installation stuff
203
204
        -$(PREFIX)/sbin/mandos-keygen --dir "$(KEYDIR)"
204
205
        update-initramfs -k all -u