=== modified file 'Makefile' --- Makefile 2016-03-19 03:19:04 +0000 +++ Makefile 2016-03-19 03:51:23 +0000 @@ -75,6 +75,7 @@ ## SYSTEMD=$(DESTDIR)$(shell pkg-config systemd --variable=systemdsystemunitdir) +TMPFILES=$(DESTDIR)$(shell pkg-config systemd --variable=tmpfilesdir) GNUTLS_CFLAGS=$(shell pkg-config --cflags-only-I gnutls) GNUTLS_LIBS=$(shell pkg-config --libs gnutls) @@ -337,6 +338,10 @@ elif install --directory --mode=u=rwx $(STATEDIR); then \ chown -- $(USER):$(GROUP) $(STATEDIR) || :; \ fi + if [ "$(TMPFILES)" != "$(DESTDIR)" -a -d "$(TMPFILES)" ]; then \ + install --mode=u=rwx,go=r tmpfiles.d-mandos.conf \ + $(TMPFILES)/mandos.conf; \ + fi install --mode=u=rwx,go=rx mandos $(PREFIX)/sbin/mandos install --mode=u=rwx,go=rx --target-directory=$(PREFIX)/sbin \ mandos-ctl === modified file 'TODO' --- TODO 2016-03-19 03:48:56 +0000 +++ TODO 2016-03-19 03:51:23 +0000 @@ -67,12 +67,12 @@ ** TODO Remove D-Bus interfaces with old domain name :2: ** TODO Remove old string_to_delta format :2: ** TODO http://0pointer.de/blog/projects/stateless.html -*** tmpfiles snippet to create /var/lib/mandos with right user+perms *** File in /usr/lib/sysusers.d to create user+group "_mandos" ** TODO Error handling on error parsing config files ** TODO init.d script error handling ** TODO D-Bus server properties; address, port, interface, etc. :2: -** TODO [#C] In Python 3.3, use shlex.quote() instead of re.escape() +** Python 3 :2: +*** TODO [#C] In Python 3.3, use shlex.quote() instead of re.escape() * mandos-ctl *** Handle "no D-Bus server" and/or "no Mandos server found" better === added file 'tmpfiles.d-mandos.conf' --- tmpfiles.d-mandos.conf 1970-01-01 00:00:00 +0000 +++ tmpfiles.d-mandos.conf 2016-03-19 03:51:23 +0000 @@ -0,0 +1,1 @@ +d /var/lib/mandos 700 _mandos _mandos