chiark / gitweb /
rpm: expose preset dir as rpm macro and in systemd.pc
authorLennart Poettering <lennart@poettering.net>
Thu, 13 Sep 2012 20:17:46 +0000 (22:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Sep 2012 20:17:46 +0000 (22:17 +0200)
Makefile.am
src/core/macros.systemd.in
src/core/systemd.pc.in

index be97193b456d8a4f7dedae5709a00cb28fdfdcbf..5674f1019a333d178f3e6ae5df7ae6c9b5f7f821 100644 (file)
@@ -65,6 +65,7 @@ rpmmacrosdir=$(sysconfdir)/rpm
 # Our own, non-special dirs
 pkgsysconfdir=$(sysconfdir)/systemd
 userunitdir=$(prefix)/lib/systemd/user
 # Our own, non-special dirs
 pkgsysconfdir=$(sysconfdir)/systemd
 userunitdir=$(prefix)/lib/systemd/user
+userpresetdir=$(prefix)/lib/systemd/user-preset
 tmpfilesdir=$(prefix)/lib/tmpfiles.d
 sysctldir=$(prefix)/lib/sysctl.d
 usergeneratordir=$(prefix)/lib/systemd/user-generators
 tmpfilesdir=$(prefix)/lib/tmpfiles.d
 sysctldir=$(prefix)/lib/sysctl.d
 usergeneratordir=$(prefix)/lib/systemd/user-generators
@@ -73,6 +74,7 @@ systemgeneratordir=$(rootlibexecdir)/system-generators
 systemshutdowndir=$(rootlibexecdir)/system-shutdown
 systemsleepdir=$(rootlibexecdir)/system-sleep
 systemunitdir=$(rootprefix)/lib/systemd/system
 systemshutdowndir=$(rootlibexecdir)/system-shutdown
 systemsleepdir=$(rootlibexecdir)/system-sleep
 systemunitdir=$(rootprefix)/lib/systemd/system
+systempresetdir=$(rootprefix)/lib/systemd/system-preset
 udevlibexecdir=$(rootprefix)/lib/udev
 udevhomedir = $(udevlibexecdir)
 udevrulesdir = $(udevlibexecdir)/rules.d
 udevlibexecdir=$(rootprefix)/lib/udev
 udevhomedir = $(udevlibexecdir)
 udevrulesdir = $(udevlibexecdir)/rules.d
@@ -3450,6 +3452,8 @@ SED_PROCESS = \
                -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
                -e 's,@systemunitdir\@,$(systemunitdir),g' \
                -e 's,@userunitdir\@,$(userunitdir),g' \
                -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
                -e 's,@systemunitdir\@,$(systemunitdir),g' \
                -e 's,@userunitdir\@,$(userunitdir),g' \
+               -e 's,@systempresetdir\@,$(systempresetdir),g' \
+               -e 's,@userpresetdir\@,$(userpresetdir),g' \
                -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
                -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
                -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
                -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
                -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
                -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
index 86e869307cd033d133409e1dafabc6c9c6c7d823..e521df337d7dd9d75e5cd25b9ffc4e19ec1ecb54 100644 (file)
@@ -20,6 +20,7 @@
 # RPM macros for packages installing systemd unit files
 
 %_unitdir @systemunitdir@
 # RPM macros for packages installing systemd unit files
 
 %_unitdir @systemunitdir@
+%_presetdir @systempresetdir@
 
 %systemd_requires \
 Requires(post): systemd \
 
 %systemd_requires \
 Requires(post): systemd \
index 49f65b2a6502348fa0ac3ccdc1d0f032f256af44..2f49d5df525b5d25a8e86694f41fbd0235b0f997 100644 (file)
@@ -9,7 +9,9 @@ prefix=@prefix@
 exec_prefix=@exec_prefix@
 systemdutildir=@rootlibexecdir@
 systemdsystemunitdir=@systemunitdir@
 exec_prefix=@exec_prefix@
 systemdutildir=@rootlibexecdir@
 systemdsystemunitdir=@systemunitdir@
+systemdsystempresetdir=@systempresetdir@
 systemduserunitdir=@userunitdir@
 systemduserunitdir=@userunitdir@
+systemduserpresetdir=@userpresetdir@
 systemdsystemconfdir=@pkgsysconfdir@/system
 systemduserconfdir=@pkgsysconfdir@/user
 systemdsystemunitpath=${systemdsystemconfdir}:/etc/systemd/system:/run/systemd/system:/usr/local/lib/systemd/system:${systemdsystemunitdir}:/usr/lib/systemd/system:/lib/systemd/system
 systemdsystemconfdir=@pkgsysconfdir@/system
 systemduserconfdir=@pkgsysconfdir@/user
 systemdsystemunitpath=${systemdsystemconfdir}:/etc/systemd/system:/run/systemd/system:/usr/local/lib/systemd/system:${systemdsystemunitdir}:/usr/lib/systemd/system:/lib/systemd/system