[kgb-bot/f18] Create two missing directories (/var/run/kgb-bot and /etc/kgb-bot/kgb.conf.d) and %ghost the /var/lo

averi averi at fedoraproject.org
Thu May 23 17:18:54 UTC 2013


commit 131a64ca1ee2130becebeb8d11771c21d91c8f9f
Author: Andrea Veri <av at gnome.org>
Date:   Thu May 23 18:51:04 2013 +0200

    Create two missing directories (/var/run/kgb-bot and /etc/kgb-bot/kgb.conf.d) and %ghost the /var/log/kgb-bot.log file.

 kgb-bot.spec |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/kgb-bot.spec b/kgb-bot.spec
index e06ba55..eeadd17 100644
--- a/kgb-bot.spec
+++ b/kgb-bot.spec
@@ -151,6 +151,17 @@ make %{?_smp_mflags}
 %install
 ./Build install --installdirs vendor --destdir $RPM_BUILD_ROOT
 
+# Create a /var/run/kgb-bot directory.
+mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/run/%{name}
+
+# Create an /etc/kgb-bot/kgb.conf.d directory, it's included on the default
+# kgb.conf configuration file.
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/kgb.conf.d
+
+# Create a /var/log/kgb-bot.log file, it'll be %ghosted later.
+mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/log
+touch $RPM_BUILD_ROOT/%{_localstatedir}/log/%{name}.log
+
 %if 0%{?fedora} >= 15
 %{__install} -Dp -m0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/%{name}.service
 %else


More information about the scm-commits mailing list