public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/inn] epel10: Change /var/run/news to /run/news
@ 2026-08-26 8:06 Jochen Schmitt
0 siblings, 0 replies; only message in thread
From: Jochen Schmitt @ 2026-08-26 8:06 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/inn
Branch : epel10
Commit : b721e358f6036e63ac4aa0e9bbbf306135fcfe12
Author : Jochen Schmitt <Jochen@herr-schmitt.de>
Date : 2011-05-31T19:56:16+02:00
Stats : +68/-15 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/inn/c/b721e358f6036e63ac4aa0e9bbbf306135fcfe12?branch=epel10
Log:
Change /var/run/news to /run/news
---
diff --git a/inn-2.5.2-docrun.patch b/inn-2.5.2-docrun.patch
new file mode 100644
index 0000000..8a0ca60
--- /dev/null
+++ b/inn-2.5.2-docrun.patch
@@ -0,0 +1,48 @@
+diff -up inn-2.5.2/doc/FAQ.docrun inn-2.5.2/doc/FAQ
+--- inn-2.5.2/doc/FAQ.docrun 2011-05-31 19:40:51.246525680 +0200
++++ inn-2.5.2/doc/FAQ 2011-05-31 19:41:32.173525676 +0200
+@@ -988,7 +988,7 @@ pathetc: /usr/local/news/etc
+ pathfilter: /usr/local/news/bin/filter /etc/news/filter
+ pathhttp: /usr/local/news/log /var/log/news
+ pathlog: /usr/local/news/log /var/log/news
+-pathrun: /usr/local/news/run /var/run/news
++pathrun: /usr/local/news/run /run/news
+ pathtmp: /usr/local/news/tmp /var/spool/news/incoming/tmp
+ pathspool: /usr/local/news/spool /var/spool/news
+ patharchive: /usr/local/news/spool/archive /var/spool/news/archive
+@@ -1006,7 +1006,7 @@ pathetc: /usr/local/news/etc
+ pathfilter: /usr/local/news/bin/filter /usr/lib/news/bin/filter
+ pathhttp: /usr/local/news/log /var/log/news
+ pathlog: /usr/local/news/log /var/log/news
+-pathrun: /usr/local/news/run /var/run/news
++pathrun: /usr/local/news/run /run/news
+ pathtmp: /usr/local/news/tmp /var/lib/news/tmp
+ pathspool: /usr/local/news/spool /var/spool/news
+ patharchive: /usr/local/news/spool/archive /var/spool/news/archive
+@@ -1024,7 +1024,7 @@ pathetc: /usr/local/news/etc
+ pathfilter: /usr/local/news/bin/filter /usr/lib/news/bin/filter
+ pathhttp: /usr/local/news/log /var/log/news
+ pathlog: /usr/local/news/log /var/log/news
+-pathrun: /usr/local/news/run /var/run/news
++pathrun: /usr/local/news/run /run/news
+ pathtmp: /usr/local/news/tmp /usr/tmp
+ pathspool: /usr/local/news/spool /var/spool/news
+ patharchive: /usr/local/news/spool/archive /var/spool/news/archive
+diff -up inn-2.5.2/doc/man/innfeed.1.docrun inn-2.5.2/doc/man/innfeed.1
+--- inn-2.5.2/doc/man/innfeed.1.docrun 2011-05-31 19:41:45.972525674 +0200
++++ inn-2.5.2/doc/man/innfeed.1 2011-05-31 19:42:30.722525668 +0200
+@@ -127,12 +127,12 @@ will close the file and open the new fil
+ .PP
+ .RS
+ .nf
+-innfeed -p /var/run/news/innfeed.pid my-funnel-file &
++innfeed -p /run/news/innfeed.pid my-funnel-file &
+ while true; do
+ sleep 43200
+ rm -f my-funnel-file
+ ctlinnd flush funnel-file-site
+- kill -ALRM `cat /var/run/news/innfeed.pid`
++ kill -ALRM `cat /run/news/innfeed.pid`
+ done
+ .fi
+ .RE
diff --git a/inn.spec b/inn.spec
index 53b5af2..53de4a0 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: 6%{?dist}
+Release: 7%{?dist}
#see LICENSE file for details
License: GPLv2+ and BSD and MIT and Public Domain
Group: System Environment/Daemons
@@ -25,6 +25,7 @@ Patch15: inn-shared.patch
Patch16: inn-2.5.2-hdr.patch
patch17: inn-2.5.2-pconf.patch
Patch18: inn-2.5.2-smp.patch
+Patch19: inn-2.5.2-docrun.patch
BuildRequires: python db4-devel byacc krb5-devel pam-devel e2fsprogs-devel perl
BuildRequires: perl(ExtUtils::Embed) flex
Requires(pre): shadow-utils
@@ -106,6 +107,7 @@ exit 0
%patch16 -p1 -b .hdr
%patch17 -p1 -b .pfix
%patch18 -p1 -b .smp
+%patch19 -p1 -b .docrun
perl -pi -e 's/LOCK_READ/LLOCK_READ/' `find . -type f`
perl -pi -e 's/LOCK_WRITE/LLOCK_WRITE/' `find . -type f`
@@ -123,7 +125,7 @@ export CFLAGS="$CFLAGS -fpic"
%configure --bindir=%{_libexecdir}/news \
--sysconfdir=%{_sysconfdir}/news --exec-prefix=%{_libexecdir}/news \
--with-log-dir=/var/log/news --with-spool-dir=/var/spool/news\
- --with-db-dir=%{_sharedstatedir}/news --with-run-dir=/var/run/news \
+ --with-db-dir=%{_sharedstatedir}/news --with-run-dir=/run/news \
--with-etc-dir=%{_sysconfdir}/news --with-tmp-dir=%{_sharedstatedir}/news/tmp \
--with-perl --enable-shared --enable-uucp-rnews \
--with-libperl-dir=%{perl_vendorlib} \
@@ -478,7 +480,7 @@ fi
%dir /var/spool/news/overview
%dir /var/log/news/OLD
%dir %{_sharedstatedir}/news/tmp
-%ghost %dir /var/run/news
+%ghost %dir /run/news
%defattr(-,root,root,-)
%{_mandir}/man1/c*.1.gz
%{_mandir}/man1/f*.1.gz
@@ -515,6 +517,9 @@ fi
%{_mandir}/man1/inews*
%changelog
+* Tue May 31 2011 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.2-7
+- Change /var/run/news to /run/news
+
* Mon May 30 2011 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.2-6
- Create /var/run/news in innd.init (#708627)
- This release is not SMP compilant
diff --git a/innd.init b/innd.init
index 5fa4fa6..ab8ba51 100644
--- a/innd.init
+++ b/innd.init
@@ -8,7 +8,7 @@
# set up properly though, so be sure to read /usr/share/doc/inn* \
# before trying.
# processname: innd
-# pidfile: /var/run/news/innd.pid
+# pidfile: /run/news/innd.pid
### BEGIN INIT INFO
# Provides: innd
@@ -44,9 +44,9 @@ start() {
# INN uses too many un-checked shell scripts
unset LANG
unset LC_COLLATE
- # create /var/run/news in tmpfs
- mkdir -p /var/run/news
- chown news:news /var/run/news
+ # create /run/news in tmpfs
+ mkdir -p /run/news
+ chown news:news /run/news
daemon --user news /usr/libexec/news/rc.news
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/innd
@@ -54,7 +54,7 @@ start() {
}
stop() {
- if [ -f /var/run/news/innd.pid ]; then
+ if [ -f /run/news/innd.pid ]; then
echo -n $"Stopping INND service (gently): "
if "${NEWSBIN}/ctlinnd" -s -t 60 throttle shutting down &&
sleep 30 &&
@@ -71,28 +71,28 @@ stop() {
killproc innd
fi
RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/run/news/innd.pid
+ [ $RETVAL -eq 0 ] && rm -f /run/news/innd.pid
echo
fi
- if [ -f /var/run/news/innwatch.pid ]; then
+ if [ -f /run/news/innwatch.pid ]; then
echo -n $"Stopping INNWatch service: "
killproc innwatch -9
RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/run/news/innwatch.pid
+ [ $RETVAL -eq 0 ] && rm -f /run/news/innwatch.pid
echo
fi
- if [ -f /var/run/news/innfeed.pid ]; then
+ if [ -f /run/news/innfeed.pid ]; then
echo -n $"Stopping INNFeed service: "
killproc innfeed -9
RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/run/news/innfeed.pid
+ [ $RETVAL -eq 0 ] && rm -f /run/news/innfeed.pid
echo
fi
- if [ -f /var/run/news/actived.pid ]; then
+ if [ -f /run/news/actived.pid ]; then
echo -n $"Stopping INN actived service: "
killproc actived -9
RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/run/news/actived.pid
+ [ $RETVAL -eq 0 ] && rm -f /run/news/actived.pid
echo
fi
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/innd /var/lock/news/*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-26 8:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 8:06 [rpms/inn] epel10: Change /var/run/news to /run/news Jochen Schmitt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox