[inn] Using of %{_tmpfilesdir} instaead of %{_sysconfdir}/tmpfiles.d/
Jochen Schmitt
s4504kr at fedoraproject.org
Fri Jan 25 16:24:06 UTC 2013
commit 54e5f20a8a9325f9d0b59bcd1c94373299da836e
Author: Jochen Schmitt <Jochen at herr-schmitt.de>
Date: Fri Jan 25 17:23:54 2013 +0100
Using of %{_tmpfilesdir} instaead of %{_sysconfdir}/tmpfiles.d/
- Disable SMP build due an SMP-related issue
- Rework for the systemd timers. They will been enabled and started after install
inn-2.5.3-smp.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
inn.spec | 24 ++++++++++++++++--------
innd-expire.timer | 3 +++
innd-nntpsend.timer | 3 +++
innd-rnews.timer | 3 +++
5 files changed, 67 insertions(+), 8 deletions(-)
---
diff --git a/inn-2.5.3-smp.patch b/inn-2.5.3-smp.patch
new file mode 100644
index 0000000..345ec3e
--- /dev/null
+++ b/inn-2.5.3-smp.patch
@@ -0,0 +1,42 @@
+diff -up inn-2.5.3/backends/Makefile.smp inn-2.5.3/backends/Makefile
+--- inn-2.5.3/backends/Makefile.smp 2013-01-24 10:30:27.228231136 +0100
++++ inn-2.5.3/backends/Makefile 2013-01-24 10:31:10.483027197 +0100
+@@ -71,7 +71,7 @@ profiled:
+
+ ## Compilation rules.
+
+-BOTH = $(LIBSTORAGE) $(LIBHIST) $(LIBSTORAGE) $(LIBINN)
++BOTH = $(LIBSTORAGE) $(LIBHIST) $(LIBINN)
+
+ LINK = $(LIBLD) $(LDFLAGS) -o $@
+ INNLIBS = $(LIBINN) $(LIBS)
+diff -up inn-2.5.3/frontends/Makefile.smp inn-2.5.3/frontends/Makefile
+--- inn-2.5.3/frontends/Makefile.smp 2013-01-23 20:10:03.252485228 +0100
++++ inn-2.5.3/frontends/Makefile 2013-01-23 20:10:03.250485362 +0100
+@@ -85,7 +85,7 @@ ovdb_init: ovdb_init.o $(BOTH) ; $(
+ ovdb_monitor: ovdb_monitor.o $(BOTH) ; $(LINK) ovdb_monitor.o $(STORELIBS)
+ ovdb_server: ovdb_server.o $(BOTH) ; $(LINK) ovdb_server.o $(STORELIBS)
+ ovdb_stat: ovdb_stat.o $(BOTH) ; $(LINK) ovdb_stat.o $(STORELIBS)
+-rnews: rnews.o $(LIBINN) ; $(LINK) rnews.o -pie $(STORELIBS)
++rnews: rnews.o $(BOTH) ; $(LINK) rnews.o -pie $(STORELIBS)
+ sm: sm.o $(BOTH) ; $(LINK) sm.o $(STORELIBS)
+
+ ovdb_init.o: ovdb_init.c
+diff -up inn-2.5.3/innfeed/Makefile.smp inn-2.5.3/innfeed/Makefile
+--- inn-2.5.3/innfeed/Makefile.smp 2013-01-23 20:10:03.288482810 +0100
++++ inn-2.5.3/innfeed/Makefile 2013-01-23 20:10:03.286482944 +0100
+@@ -54,9 +54,13 @@ $(FIXSCRIPT):
+
+ INNFEEDLIBS = $(LIBSTORAGE) $(LIBHIST) $(LIBINN) $(STORAGE_LIBS) $(LIBS)
+
+-config_y.c config_y.h: configfile.y
++y.tab.c y.tab.h: configfile.y
+ $(YACC) -d $?
++
++config_y.h: y.tab.h
+ mv y.tab.h config_y.h
++
++config_y.c: y.tab.c
+ mv y.tab.c config_y.c
+
+ config_l.c: configfile.l
diff --git a/inn.spec b/inn.spec
index 77dd038..e8abe9f 100644
--- a/inn.spec
+++ b/inn.spec
@@ -144,7 +144,7 @@ export CFLAGS="$CFLAGS -fpic"
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
-make %{?_smp_mflags}
+make # %{?_smp_mflags}
%install
mkdir -p $RPM_BUILD_ROOT%{_libdir}
@@ -227,9 +227,14 @@ touch /var/log/news/news.err
chown -R news:news /var/log/news*
%systemd_post innd.service
-%systemd_post innd-expire.service
-%systemd_post innd-nntpsend.service
-%systemd_post innd-rnews.service
+
+systemctl enable innd-expire.timer >/dev/null
+systemctl enable innd-nntpsend.timer >/dev/null
+systemctl enable innd-rnews.timer >/dev/null
+
+systemctl start innd-expire.timer
+systemctl start innd-nntpsend.timer
+systemctl start innd-rnews.timer
%post libs -p /sbin/ldconfig
@@ -282,10 +287,11 @@ if [ -f /etc/syslog.conf ]; then
fi
%preun
+%systemd_preun innd-expire.timer
+%systemd_preun innd-nntpsend.timer
+%systemd_preun innd-rnews.timer
%systemd_preun innd.service
-%systemd_preun innd-expire.service
-%systemd_preun innd-nntpsend.service
-%systemd_preun innd-rnews.service
+
if [ $1 = 0 ]; then
if [ -f /var/lib/news/history.dir ]; then
rm -f /var/lib/news/history.*
@@ -543,7 +549,9 @@ fi
%changelog
* Wed Jan 23 2013 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.3-7
-- using of %%{_tmpfilesdir} instaead of %%{_sysconfdir}/tmpfiles.d/
+- Using of %%{_tmpfilesdir} instaead of %%{_sysconfdir}/tmpfiles.d/
+- Disable SMP build due an SMP-related issue
+- Rework for the systemd timers. They will been enabled and started after install
* Tue Jan 22 2013 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.3-6
- Fix some issues with the systemd timer units
diff --git a/innd-expire.timer b/innd-expire.timer
index dbac016..06922f3 100644
--- a/innd-expire.timer
+++ b/innd-expire.timer
@@ -3,3 +3,6 @@ Description=Inetnet News Daemon Exp
[Timer]
OnUnitActiveSec=1d
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file
diff --git a/innd-nntpsend.timer b/innd-nntpsend.timer
index ab6f064..3f8c746 100644
--- a/innd-nntpsend.timer
+++ b/innd-nntpsend.timer
@@ -3,3 +3,6 @@ Description=Inetnet News Daemon NNTP Send
[Timer]
OnUnitActiveSec=1h
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file
diff --git a/innd-rnews.timer b/innd-rnews.timer
index 1fdac21..72a7fe7 100644
--- a/innd-rnews.timer
+++ b/innd-rnews.timer
@@ -3,3 +3,6 @@ Description=Inetnet News Daemon Receiving News
[Timer]
OnUnitActiveSec=1h
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file
More information about the scm-commits
mailing list