public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jochen Schmitt <Jochen@herr-schmitt.de>
To: git-commits@fedoraproject.org
Subject: [rpms/inn] epel10.3: Use tmpfiles.d to create /var/run/news
Date: Wed, 26 Aug 2026 08:54:18 GMT	[thread overview]
Message-ID: <178773445802.1.13766207613245387054.rpms-inn-41239c60a83d@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/inn
            Branch : epel10.3
            Commit : 41239c60a83db28e1a8f599b073c5c751c4f9a9a
            Author : Jochen Schmitt <Jochen@herr-schmitt.de>
            Date   : 2011-10-05T18:21:54+02:00
            Stats  : +16/-6 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/inn/c/41239c60a83db28e1a8f599b073c5c751c4f9a9a?branch=epel10.3

            Log:
            Use tmpfiles.d to create /var/run/news
Clean up SPEC file

---
diff --git a/inn.spec b/inn.spec
index 502e328..39dd403 100644
--- a/inn.spec
+++ b/inn.spec
@@ -1,7 +1,7 @@
 Summary: The InterNetNews system, an Usenet news server
 Name: inn
 Version: 2.5.2
-Release: 16%{?dist}
+Release: 17%{?dist}
 #see LICENSE file for details
 License: GPLv2+ and BSD and MIT and Public Domain
 Group: System Environment/Daemons
@@ -145,7 +145,6 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 make # %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT%{_libdir}
 mkdir -p $RPM_BUILD_ROOT%{_sharedstatedir}/news/http
 make install DESTDIR=$RPM_BUILD_ROOT
@@ -206,8 +205,12 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
 # Documentation is installed via rpm %%doc directive
 rm -rf $RPM_BUILD_ROOT/usr/doc/
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+# Use tmpfiles.d to create /var/run/news
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
+cat <<EOF >$RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/inn.conf
+D %{_localstatedir}/run/news 0755 news news -
+EOF
+install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/run/news
 
 %post
 su -m news -c '/usr/libexec/news/makedbz -i -o'
@@ -218,6 +221,8 @@ touch /var/log/news/news.crit
 touch /var/log/news/news.err
 chown -R news:news /var/log/news*
 
+systemd-tmpfiles --create %{_sysconfdir}/tmpfiles.d/inn.conf
+
 if [ $1 -eq 1 ]; then
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
 fi
@@ -298,6 +303,9 @@ fi
 %{_sysconfdir}/cron.daily/inn-cron-expire
 %{_unitdir}/innd.service
 %defattr(-,news,news,-)
+# tmpfile.d files
+%config(noreplace) %attr(-,root,root) %{_sysconfdir}/tmpfiles.d/inn.conf
+%ghost %dir %{_localstatedir}/run/news
 # /etc/news config files
 %dir %{_sysconfdir}/news
 %config(noreplace) %{_sysconfdir}/news/passwd.nntp
@@ -518,6 +526,10 @@ fi
 %{_mandir}/man1/inews*
 
 %changelog
+* Wed Oct  5 2011 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.2-17
+- Use tmpfiles.d to create /var/run/news
+- Clean up SPEC file 
+
 * Mon Sep 19 2011 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.2-16
 - Set PATH for user news to more resticted values
 

diff --git a/innd.service b/innd.service
index 56d5903..59183f3 100644
--- a/innd.service
+++ b/innd.service
@@ -8,8 +8,6 @@ User=news
 PermissionsStartOnly=true
 PIDFile=/run/news/innd.pid
 Type=forking
-ExecStartPre=/bin/mkdir -p /run/news
-ExecStartPre=/bin/chown -f news:news /run/news
 ExecStart=/usr/libexec/news/rc.news
 ExecStop=/bin/su -m  news -c '/usr/libexec/news/rc.news stop'
 KillMode=control-group

                 reply	other threads:[~2026-08-26  8:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178773445802.1.13766207613245387054.rpms-inn-41239c60a83d@fedoraproject.org \
    --to=jochen@herr-schmitt.de \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox