[Pkg-systemd-maintainers] Bug#719634: Bug#719634: Bug#719634: dh-systemd: Support of /usr/lib/systemd/system

Michael Biebl biebl at debian.org
Wed Aug 14 13:38:33 BST 2013


Am 14.08.2013 09:36, schrieb Vincent Bernat:

> You were pretty clear. :) I was just mentioning the fact that this will
> add some tiny additional work to maintainers when upstream are providing
> systemd service files in /usr/lib intead of /lib. We'll see if this is
> something common in the future or not, no need to deal with this right
> now.

Upstreams shouldn't hard-code this directory but rather make this
configurable.

systemd even ships a configure.ac snippet for that, hoping to achieve
some consistency among projects
See section "Installing Systemd Service Files":

PKG_PROG_PKG_CONFIG
AC_ARG_WITH([systemdsystemunitdir],
        AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for
systemd service files]),
        [], [with_systemdsystemunitdir=$($PKG_CONFIG
--variable=systemdsystemunitdir systemd)])
if test "x$with_systemdsystemunitdir" != xno; then
        AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
fi
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a
"x$with_systemdsystemunitdir" != xno ])


You can then build-depend on either systemd, to get the default
directory from systemd.pc, or add
--with-systemdsystemunitdir=/lib/sytemd/system to your configure flags
in debian/rules as I e.g. do in my packages, e.g. rsyslog [2], if you
want to avoid the systemd build-dependency.

hth,
Michael

[1]
http://www.freedesktop.org/software/systemd/man/daemon.html#Installing%20Systemd%20Service%20Files
[2]
http://anonscm.debian.org/gitweb/?p=collab-maint/rsyslog.git;a=blob;f=debian/rules;h=0d6b48b503e9f5355e04366ced669682f8b6c3b0;hb=HEAD#l41
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20130814/62a6767b/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list