/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:54:24 UTC
  • mto: This revision was merged to the branch mainline in revision 188.
  • Revision ID: teddy@fukt.bsnet.se-20080919005424-2kw5e1h9pjygj4ug
* debian/mandos.postinst: New. Create mandos user and group.

* debian/mandos.postrm: New.  Delete mandos user and group.

* initramfs-tools-hook: Add "--userid" and "--groupid" to
                        "plugin-runner.conf" if necessary.

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 \
152
151
                $(DESTDIR)/etc/init.d/mandos
153
152
        install --mode=u=rw,go=r default-mandos \
154
153
                $(DESTDIR)/etc/default/mandos
155
 
        if [ -z $(DESTDIR) ]; then \
156
 
                update-rc.d mandos defaults 25 15;\
157
 
        fi
 
154
        update-rc.d mandos defaults
158
155
        gzip --best --to-stdout mandos.8 \
159
156
                > $(MANDIR)/man8/mandos.8.gz
160
157
        gzip --best --to-stdout mandos.conf.5 \
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" && \
 
169
                install --mode=u=rw,go=r etc-plugins.d-README \
 
170
                        $(CONFDIR)/plugins.d/README ; \
172
171
        fi
173
172
        install --mode=u=rwx,go=rx \
174
173
                --target-directory=$(PREFIX)/lib/mandos plugin-runner
180
179
        install --mode=u=rwxs,go=rx \
181
180
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
182
181
                plugins.d/mandos-client
183
 
        install --mode=u=rwxs,go=rx \
 
182
        install --mode=u=rwx,go=rx \
184
183
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
185
184
                plugins.d/usplash
186
 
        install --mode=u=rwxs,go=rx \
187
 
                --target-directory=$(PREFIX)/lib/mandos/plugins.d \
188
 
                plugins.d/splashy
189
185
        install initramfs-tools-hook \
190
186
                $(INITRAMFSTOOLS)/hooks/mandos
191
187
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
228
224
                $(PREFIX)/lib/mandos/plugins.d/password-prompt \
229
225
                $(PREFIX)/lib/mandos/plugins.d/mandos-client \
230
226
                $(PREFIX)/lib/mandos/plugins.d/usplash \
231
 
                $(PREFIX)/lib/mandos/plugins.d/splashy \
232
227
                $(INITRAMFSTOOLS)/hooks/mandos \
233
228
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos \
234
229
                $(INITRAMFSTOOLS)/scripts/local-top/mandos \