/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Teddy Hogeborn
  • Date: 2018-08-19 14:06:55 UTC
  • mto: (237.7.594 trunk)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: teddy@recompile.se-20180819140655-ghsl0d4jsx8xwg44
Move UMASK setting to more proper place

* Makefile (install-client-nokey): Also install new conf files
  "initramfs-tools-conf".
* debian/mandos-client.dirs: Add "usr/share/initramfs-tools/conf.d".
* initramfs-tools-conf: New file which sets UMASK.
* initramfs-tools-hook: Change comment to correctly state new location
  of UMASK setting.
* initramfs-tools-hook-conf: Remove UMASK setting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
 
90
90
# Do not change these two
91
91
CFLAGS+=$(WARN) $(DEBUG) $(FORTIFY) $(SANITIZE) $(COVERAGE) \
92
 
        $(OPTIMIZE) $(LANGUAGE) $(GNUTLS_CFLAGS) $(AVAHI_CFLAGS) \
93
 
        $(GPGME_CFLAGS) -DVERSION='"$(version)"'
 
92
        $(OPTIMIZE) $(LANGUAGE) -DVERSION='"$(version)"'
94
93
LDFLAGS+=-Xlinker --as-needed $(COVERAGE) $(LINK_FORTIFY) $(foreach flag,$(LINK_FORTIFY_LD),-Xlinker $(flag))
95
94
 
96
95
# Commands to format a DocBook <refentry> document into a manual page
257
256
# -fsanitize=leak because GnuTLS and GPGME both leak memory.
258
257
plugins.d/mandos-client: plugins.d/mandos-client.c
259
258
        $(CC) $(filter-out -fsanitize=leak,$(CFLAGS)) $(strip\
 
259
        ) $(GNUTLS_CFLAGS) $(AVAHI_CFLAGS) $(GPGME_CFLAGS) $(strip\
260
260
                ) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(strip\
261
261
                ) -lrt $(GNUTLS_LIBS) $(AVAHI_LIBS) $(strip\
262
262
                ) $(GPGME_LIBS) $(LOADLIBES) $(LDLIBS) -o $@
396
396
                "$(CONFDIR)/network-hooks.d"
397
397
        install --mode=u=rwx,go=rx \
398
398
                --target-directory=$(LIBDIR)/mandos plugin-runner
 
399
        install --mode=u=rwx,go=rx \
 
400
                --target-directory=$(LIBDIR)/mandos mandos-to-cryptroot-unlock
399
401
        install --mode=u=rwx,go=rx --target-directory=$(PREFIX)/sbin \
400
402
                mandos-keygen
401
403
        install --mode=u=rwx,go=rx \
423
425
                $(INITRAMFSTOOLS)/hooks/mandos
424
426
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
425
427
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos
 
428
        install --mode=u=rw,go=r initramfs-tools-conf \
 
429
                $(INITRAMFSTOOLS)/conf.d/mandos-conf
426
430
        install initramfs-tools-script \
427
431
                $(INITRAMFSTOOLS)/scripts/init-premount/mandos
 
432
        install initramfs-tools-script-stop \
 
433
                $(INITRAMFSTOOLS)/scripts/local-premount/mandos
428
434
        install --mode=u=rw,go=r plugin-runner.conf $(CONFDIR)
429
435
        gzip --best --to-stdout mandos-keygen.8 \
430
436
                > $(MANDIR)/man8/mandos-keygen.8.gz