/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-21 14:05:44 UTC
  • mfrom: (24.1.103 mandos)
  • Revision ID: teddy@fukt.bsnet.se-20080921140544-e9qo7alcl0bne2mn
Merge.

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
152
151
                $(DESTDIR)/etc/init.d/mandos
153
152
        install --mode=u=rw,go=r default-mandos \
154
153
                $(DESTDIR)/etc/default/mandos
155
 
        update-rc.d mandos defaults
 
154
        if [ -z $(DESTDIR) ]; then \
 
155
                update-rc.d mandos defaults 25 15;\
 
156
        fi
156
157
        gzip --best --to-stdout mandos.8 \
157
158
                > $(MANDIR)/man8/mandos.8.gz
158
159
        gzip --best --to-stdout mandos.conf.5 \
160
161
        gzip --best --to-stdout mandos-clients.conf.5 \
161
162
                > $(MANDIR)/man5/mandos-clients.conf.5.gz
162
163
 
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 \
 
164
install-client-nokey: all doc
 
165
        install --directory $(PREFIX)/lib/mandos $(CONFDIR)
 
166
        install --directory --mode=u=rwx $(KEYDIR) \
168
167
                $(PREFIX)/lib/mandos/plugins.d
169
168
        if [ "$(CONFDIR)" != "$(PREFIX)/lib/mandos" ]; then \
170
169
                install --mode=u=rwx \
171
170
                        --directory "$(CONFDIR)/plugins.d"; \
172
 
                install --mode=u=rw,go=r etc-plugins.d-README \
173
 
                        $(CONFDIR)/plugins.d/README ; \
174
171
        fi
175
172
        install --mode=u=rwx,go=rx \
176
173
                --target-directory=$(PREFIX)/lib/mandos plugin-runner
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