/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 04:22:50 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080921042250-r0qqjsbz2ulfo5le
* Makefile: Bug fix: fix syntax error.

* debian/control: Depend on "po-debconf".
  (mandos, mandos-client): Add "${misc:Depends}", used by
                           dh_installdebconf.

* debian/mandos-client.config: New; show note.
* debian/mandos-client.template: New.

* debian/mandos.README.Debian: New.

* debian/mandos.config: New; show note.
* debian/mandos.prerm: New; stop daemon.
* debian/mandos.template: New.

* debian/po/POTFILES.in: New.
* debian/po/sv.po: New.

* debian/rules (clean): Added "debconf-updatepo" as suggested by
                        po-debconf(7).
  (binary-common): Added "dh_installdebconf" to use "debian/*.config"
                   and "debian/*.template" files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
install: install-server install-client-nokey
142
142
 
143
143
install-server: doc
144
 
        install --directory $(CONFDIR) $(MANDIR)/man5 \
145
 
                $(MANDIR)/man8 $(DESTDIR)/etc/init.d \
146
 
                $(DESTDIR)/etc/default $(PREFIX)/sbin
 
144
        install --directory $(CONFDIR)
147
145
        install --mode=u=rwx,go=rx mandos $(PREFIX)/sbin/mandos
148
146
        install --mode=u=rw,go=r --target-directory=$(CONFDIR) \
149
147
                mandos.conf
153
151
                $(DESTDIR)/etc/init.d/mandos
154
152
        install --mode=u=rw,go=r default-mandos \
155
153
                $(DESTDIR)/etc/default/mandos
156
 
        update-rc.d mandos defaults
 
154
        if [ -z $(DESTDIR) ]; then update-rc.d mandos defaults; fi
157
155
        gzip --best --to-stdout mandos.8 \
158
156
                > $(MANDIR)/man8/mandos.8.gz
159
157
        gzip --best --to-stdout mandos.conf.5 \
162
160
                > $(MANDIR)/man5/mandos-clients.conf.5.gz
163
161
 
164
162
install-client-nokey: all doc
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 \
 
163
        install --directory $(PREFIX)/lib/mandos $(CONFDIR)
 
164
        install --directory --mode=u=rwx $(KEYDIR) \
172
165
                $(PREFIX)/lib/mandos/plugins.d
173
166
        if [ "$(CONFDIR)" != "$(PREFIX)/lib/mandos" ]; then \
174
167
                install --mode=u=rwx \
175
 
                        --directory "$(CONFDIR)/plugins.d" && \
176
 
                install --mode=u=rw,go=r etc-plugins.d-README \
177
 
                        $(CONFDIR)/plugins.d/README ; \
 
168
                        --directory "$(CONFDIR)/plugins.d"; \
178
169
        fi
179
170
        install --mode=u=rwx,go=rx \
180
171
                --target-directory=$(PREFIX)/lib/mandos plugin-runner
191
182
                plugins.d/usplash
192
183
        install initramfs-tools-hook \
193
184
                $(INITRAMFSTOOLS)/hooks/mandos
194
 
        install initramfs-tools-hook-conf \
 
185
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
195
186
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos
196
187
        install initramfs-tools-script \
197
188
                $(INITRAMFSTOOLS)/scripts/local-top/mandos