public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dmitry Butskoy <dmitry@butskoy.name>
To: git-commits@fedoraproject.org
Subject: [rpms/newscache] rawhide: Update to 1.3.22
Date: Sat, 24 Oct 2026 17:13:38 GMT	[thread overview]
Message-ID: <179286201838.1.8881706814459694637.rpms-newscache-d233bd1dadda@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/newscache
Branch : rawhide
Commit : d233bd1daddaf86929eeeae832a4d22aec44cf4a
Author : Dmitry Butskoy <dmitry@butskoy.name>
Date   : 2026-10-24T20:13:12+03:00
Stats  : +101/-536 in 10 file(s)
URL    : https://src.fedoraproject.org/rpms/newscache/c/d233bd1daddaf86929eeeae832a4d22aec44cf4a?branch=rawhide

Log:
Update to 1.3.22

---
diff --git a/.gitignore b/.gitignore
index d1c3069..0674feb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 NewsCache-1.2rc6.tar.gz
 socket++-1.12.12.tar.gz
 /socket++-1.12.13.tar.gz
+/NewsCache-1.3.22.tar.gz

diff --git a/newscache-1.2rc6-config.patch b/newscache-1.2rc6-config.patch
deleted file mode 100644
index e6d0d3f..0000000
--- a/newscache-1.2rc6-config.patch
+++ /dev/null
@@ -1,177 +0,0 @@
---- newscache.conf	2005-09-19 20:43:51.000000000 +0400
-+++ newscache.conf.OK	2005-09-19 20:43:02.000000000 +0400
-@@ -67,7 +67,7 @@
- Groupname news
- 
- # Put in here the local newscache administrator
--Admin tom@infosys.tuwien.ac.at
-+Admin root@localhost
- 
- ################################################################
- ## Client-access configuration 
-@@ -128,46 +128,55 @@
-     Authentication unix::::debug
-     # all authenticated clients are able to use the xdebug command
-   }
--  Client .tuwien.ac.at {
--    allow read post
--    # list all, except for alt.* newsgroups, allow users to 
--    # read at.* and to post to at.*
--    List *,!alt.*
--    Read at.*
--    PostTo at.*
--    # allow users to gain additional privileges by
--    # authenticating based on a password file
--    # the format of the file is username:password:read:postto
--    Authentication file:/usr/local/etc/tuwien.pass
--  }
--  Client 192.168.0.0/255.255.0.0 {
--    allow read post
--    # deny access to all newsgroups
--    List !*
--    Read !*
--    PostTo !*
--    # allow users to gain additional privileges by
--    # authenticating using standard passwd semantics
--    # allow to read * and to post to at.* after successful
--    # authentication
--    Authentication unix:*:at.*
--  }
--  Client 192.169.0.0/255.255.0.0 {
--    allow read
--    # deny access to all newsgroups
--    List at.*
--    Read at.*
--    PostTo !*
--    Authentication unix:*:*:*:debug,post
--    # allow users to gain additional privileges by
--    # authenticating using standard passwd semantics
--    # allow to read * and to post to * and can use the xdebug 
--    # command after successful authentication. 
--    # Unauthenticated clients can only read from at.* groups.
--  }
--  Client .aol.com {
--    allow none
--  }
-+#  Client .mydomain.com {
-+#    allow
-+#    List
-+#    Read
-+#    PostTo
-+#    Authentication pam:*:*:*:read,post
-+#    # PAMServicename newscache
-+#  }
-+
-+#  Client .tuwien.ac.at {
-+#    allow read post
-+#    # list all, except for alt.* newsgroups, allow users to 
-+#    # read at.* and to post to at.*
-+#    List *,!alt.*
-+#    Read at.*
-+#    PostTo at.*
-+#    # allow users to gain additional privileges by
-+#    # authenticating based on a password file
-+#    # the format of the file is username:password:read:postto
-+#    Authentication file:/usr/local/etc/tuwien.pass
-+#  }
-+#  Client 192.168.0.0/255.255.0.0 {
-+#    allow read post
-+#    # deny access to all newsgroups
-+#    List !*
-+#    Read !*
-+#    PostTo !*
-+#    # allow users to gain additional privileges by
-+#    # authenticating using standard passwd semantics
-+#    # allow to read * and to post to at.* after successful
-+#    # authentication
-+#    Authentication unix:*:at.*
-+#  }
-+#  Client 192.169.0.0/255.255.0.0 {
-+#    allow read
-+#    # deny access to all newsgroups
-+#    List at.*
-+#    Read at.*
-+#    PostTo !*
-+#    Authentication unix:*:*:*:debug,post
-+#    # allow users to gain additional privileges by
-+#    # authenticating using standard passwd semantics
-+#    # allow to read * and to post to * and can use the xdebug 
-+#    # command after successful authentication. 
-+#    # Unauthenticated clients can only read from at.* groups.
-+#  }
-+#  Client .aol.com {
-+#    allow none
-+#  }
-   Default {
-     allow none
-   }
-@@ -206,29 +215,36 @@
- #   To switch off, prepend the command with not-
- #   Support commands: listgroup, over
- NewsServerList {
--  Server news.tuwien.ac.at nntp {
--    Retries 3
-+  Server news.example.com nntp {
-     Read *
-     PostTo *
-+    Retries 3
-     GroupTimeout 150
--    User joe
--    Password secret
--    BindFrom 192.168.100.1
-     Options cached 
--    Commands not-over
--  }
--  Server news.wu-wien.ac.at nntp {
--    Retries 1
--    Read at.wu-wien.*
--    PostTo .none.
--    GroupTimeout 300
--    BindFrom somehost.tuwien.ac.at
--    Options offline not-setpostflag
--  }
--  NoServer {
--    Read au.*,z-netz.*,maus.*,fido*
--    PostTo au.*
-   }
-+#  Server news.tuwien.ac.at nntp {
-+#    Retries 3
-+#    Read *
-+#    PostTo *
-+#    GroupTimeout 150
-+#    User joe
-+#    Password secret
-+#    BindFrom 192.168.100.1
-+#    Options cached 
-+#    Commands not-over
-+#  }
-+#  Server news.wu-wien.ac.at nntp {
-+#    Retries 1
-+#    Read at.wu-wien.*
-+#    PostTo .none.
-+#    GroupTimeout 300
-+#    BindFrom somehost.tuwien.ac.at
-+#    Options offline not-setpostflag
-+#  }
-+#  NoServer {
-+#    Read au.*,z-netz.*,maus.*,fido*
-+#    PostTo au.*
-+#  }
- }
- 
- ################################################################
-@@ -265,7 +281,7 @@
- # All the log files go here, if syslogd is not being used. This
- # depends on how NewsCache has been configured. By default,
- # NewsCache uses syslogd.
--LogDirectory /home/services/newscache/log
-+#LogDirectory /var/log
- 
- # Log Style
- # All combination of these options are valid:
-@@ -284,4 +300,4 @@
- # Each newsgroup listed in this file will be prefetched, 
- # whenever one of its articles is read by a user or whenever 
- # updatenews is executed.
--PrefetchFile /home/services/newscache/etc/prefetch
-+#PrefetchFile /etc/prefetch

diff --git a/newscache-1.2rc6-gcc43.patch b/newscache-1.2rc6-gcc43.patch
deleted file mode 100644
index ffbcfa8..0000000
--- a/newscache-1.2rc6-gcc43.patch
+++ /dev/null
@@ -1,133 +0,0 @@
-diff -Nrbu NewsCache-1.2rc6/NServer-0.9.1/checks/cArticle.cc NewsCache-1.2rc6-OK/NServer-0.9.1/checks/cArticle.cc
---- NewsCache-1.2rc6/NServer-0.9.1/checks/cArticle.cc	2003-01-21 11:59:28.000000000 +0300
-+++ NewsCache-1.2rc6-OK/NServer-0.9.1/checks/cArticle.cc	2008-02-14 16:27:41.000000000 +0300
-@@ -2,6 +2,7 @@
- #include <fstream>
- #include <string>
- 
-+#include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <unistd.h>
-diff -Nrbu NewsCache-1.2rc6/NServer-0.9.1/checks/cNSError.cc NewsCache-1.2rc6-OK/NServer-0.9.1/checks/cNSError.cc
---- NewsCache-1.2rc6/NServer-0.9.1/checks/cNSError.cc	2003-01-21 11:59:28.000000000 +0300
-+++ NewsCache-1.2rc6-OK/NServer-0.9.1/checks/cNSError.cc	2008-02-14 16:26:30.000000000 +0300
-@@ -4,6 +4,7 @@
- 
- #include <stdio.h>
- #include <string.h>
-+#include <stdlib.h>
- 
- #include "NSError.h"
- 
-diff -Nrbu NewsCache-1.2rc6/NServer-0.9.1/checks/cNewsgroupFilter.cc NewsCache-1.2rc6-OK/NServer-0.9.1/checks/cNewsgroupFilter.cc
---- NewsCache-1.2rc6/NServer-0.9.1/checks/cNewsgroupFilter.cc	2003-01-21 11:59:28.000000000 +0300
-+++ NewsCache-1.2rc6-OK/NServer-0.9.1/checks/cNewsgroupFilter.cc	2008-02-14 16:26:58.000000000 +0300
-@@ -1,5 +1,7 @@
- #include <iostream>
- 
-+#include <stdlib.h>
-+
- #include "NewsgroupFilter.h"
- 
- #define V(x) if(verbose) { x; }
-diff -Nrbu NewsCache-1.2rc6/NServer-0.9.1/checks/cOverviewFmt.cc NewsCache-1.2rc6-OK/NServer-0.9.1/checks/cOverviewFmt.cc
---- NewsCache-1.2rc6/NServer-0.9.1/checks/cOverviewFmt.cc	2003-01-21 11:59:28.000000000 +0300
-+++ NewsCache-1.2rc6-OK/NServer-0.9.1/checks/cOverviewFmt.cc	2008-02-14 16:27:20.000000000 +0300
-@@ -2,6 +2,7 @@
- #include <fstream>
- #include <string>
- 
-+#include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
- #include <unistd.h>
-diff -Nrbu NewsCache-1.2rc6/NServer-0.9.1/readline.cc NewsCache-1.2rc6-OK/NServer-0.9.1/readline.cc
---- NewsCache-1.2rc6/NServer-0.9.1/readline.cc	2003-01-21 11:59:28.000000000 +0300
-+++ NewsCache-1.2rc6-OK/NServer-0.9.1/readline.cc	2008-02-14 16:25:47.000000000 +0300
-@@ -2,6 +2,8 @@
- #include <string>
- #include <iostream>
- 
-+#include <stdlib.h>
-+
- #include "Debug.h"
- #include "readline.h"
- 
-diff -Nrbu NewsCache-1.2rc6/NServer-0.9.1/wildmat.c NewsCache-1.2rc6-OK/NServer-0.9.1/wildmat.c
---- NewsCache-1.2rc6/NServer-0.9.1/wildmat.c	2003-01-21 11:59:28.000000000 +0300
-+++ NewsCache-1.2rc6-OK/NServer-0.9.1/wildmat.c	2008-02-14 16:25:19.000000000 +0300
-@@ -35,6 +35,7 @@
- **  released version unless you have a good test data base to try it out
- **  on.
- */
-+#include <stdlib.h>
- #include <stdio.h>
- #include <sys/types.h>
- //#include "configdata.h"
-diff -Nrbu NewsCache-1.2rc6/NVClasses-0.9.1/NVArray.cc NewsCache-1.2rc6-OK/NVClasses-0.9.1/NVArray.cc
---- NewsCache-1.2rc6/NVClasses-0.9.1/NVArray.cc	2003-02-05 21:19:17.000000000 +0300
-+++ NewsCache-1.2rc6-OK/NVClasses-0.9.1/NVArray.cc	2008-02-14 16:24:33.000000000 +0300
-@@ -6,6 +6,7 @@
- #include <sys/types.h>
- #include <signal.h>
- #include <stdio.h>
-+#include <stdlib.h>
- 
- using namespace std;
- 
-diff -Nrbu NewsCache-1.2rc6/src/NewsCache.cc NewsCache-1.2rc6-OK/src/NewsCache.cc
---- NewsCache-1.2rc6/src/NewsCache.cc	2004-06-28 12:49:25.000000000 +0400
-+++ NewsCache-1.2rc6-OK/src/NewsCache.cc	2008-02-14 16:29:01.000000000 +0300
-@@ -28,6 +28,7 @@
- #include <crypt.h>
- #endif
- #include <ctype.h>
-+#include <stdlib.h>
- #include <unistd.h>
- #include <string.h>
- #include <errno.h>
-diff -Nrbu NewsCache-1.2rc6/src/NewsCacheClean.cc NewsCache-1.2rc6-OK/src/NewsCacheClean.cc
---- NewsCache-1.2rc6/src/NewsCacheClean.cc	2004-09-27 01:45:46.000000000 +0400
-+++ NewsCache-1.2rc6-OK/src/NewsCacheClean.cc	2008-02-14 16:29:35.000000000 +0300
-@@ -37,6 +37,7 @@
- #include <sys/time.h>
- #include <sys/types.h>
- #include <dirent.h>
-+#include <stdlib.h>
- #include <unistd.h>
- #ifdef TIME_WITH_SYS_TIME
- #include <sys/time.h>
-diff -Nrbu NewsCache-1.2rc6/src/cConfig.cc NewsCache-1.2rc6-OK/src/cConfig.cc
---- NewsCache-1.2rc6/src/cConfig.cc	2003-01-21 11:59:29.000000000 +0300
-+++ NewsCache-1.2rc6-OK/src/cConfig.cc	2008-02-14 16:30:29.000000000 +0300
-@@ -1,5 +1,7 @@
- #include <iostream>
- 
-+#include <stdlib.h>
-+
- #include "Logger.h"
- #include "Config.h"
- 
-diff -Nrbu NewsCache-1.2rc6/src/updatenews.cc NewsCache-1.2rc6-OK/src/updatenews.cc
---- NewsCache-1.2rc6/src/updatenews.cc	2004-07-22 13:46:11.000000000 +0400
-+++ NewsCache-1.2rc6-OK/src/updatenews.cc	2008-02-14 16:30:01.000000000 +0300
-@@ -15,6 +15,7 @@
-  * along with this program; if not, write to the Free Software
-  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-  */
-+#include <stdlib.h>
- #include <unistd.h>
- #include <string.h>
- #include <errno.h>
-diff -Nrbu NewsCache-1.2rc6/test/tlock.cc NewsCache-1.2rc6-OK/test/tlock.cc
---- NewsCache-1.2rc6/test/tlock.cc	2003-02-05 21:19:17.000000000 +0300
-+++ NewsCache-1.2rc6-OK/test/tlock.cc	2008-02-14 16:28:07.000000000 +0300
-@@ -16,6 +16,7 @@
-  */
- #include <iostream>
- 
-+#include <stdlib.h>
- #include <stdio.h>
- #include <unistd.h>
- 

diff --git a/newscache-1.3.22-config.patch b/newscache-1.3.22-config.patch
new file mode 100644
index 0000000..bbdb014
--- /dev/null
+++ b/newscache-1.3.22-config.patch
@@ -0,0 +1,26 @@
+--- newscache.conf	2026-10-24 19:57:07.487067683 +0300
++++ newscache.conf-OK	2026-10-24 20:04:46.600686813 +0300
+@@ -71,7 +71,7 @@
+ Groupname news
+ 
+ # Put in here the local newscache administrator
+-Admin tom@infosys.tuwien.ac.at
++Admin root@localhost
+ 
+ ################################################################
+ ## Client-access configuration 
+@@ -332,7 +332,7 @@
+ # All the log files go here, if syslogd is not being used. This
+ # depends on how NewsCache has been configured. By default,
+ # NewsCache uses syslogd.
+-LogDirectory /home/services/newscache/log
++#LogDirectory /var/log
+ 
+ # Log Style
+ # All combination of these options are valid:
+@@ -353,4 +353,4 @@
+ # updatenews is executed. One group per line; a line may also be a
+ # wildmat pattern (de.*) or !pattern to leave groups out. Lines
+ # starting with # are skipped.
+-PrefetchFile /home/services/newscache/etc/prefetch
++#PrefetchFile /etc/prefetch

diff --git a/newscache-glibc.patch b/newscache-glibc.patch
deleted file mode 100644
index f8b8f0b..0000000
--- a/newscache-glibc.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff --git a/too/deep/socket++-1.12.13/socket++/fork.cpp b/too/deep/socket++-1.12.13/socket++/fork.cpp
-index fd8b8a2..fe997e4 100644
---- a/too/deep/socket++-1.12.13/socket++/fork.cpp
-+++ b/too/deep/socket++-1.12.13/socket++/fork.cpp
-@@ -122,13 +122,13 @@ void Fork::ForkProcess::infanticide_reason (pid_t pid, int status)
- 
-   if (WIFSTOPPED (status))
-     cerr << "process " << pid << " gets "
--      << SYS_SIGLIST [WSTOPSIG (status)] << endl;
-+      << strsignal (WSTOPSIG (status)) << endl;
-   else if (WIFEXITED (status))
-     cerr << "process " << pid << " exited with status "
-       << WEXITSTATUS (status) << endl;
-   else if (WIFSIGNALED (status))
-     cerr << "process " << pid << " got "
--      << SYS_SIGLIST [WTERMSIG (status)] << endl;
-+      << strsignal (WTERMSIG (status)) << endl;
- }
- 
- void Fork::ForkProcess::reaper_nohang (int signo)
-diff --git a/too/deep/socket++-1.12.13/socket++/sockstream.cpp b/too/deep/socket++-1.12.13/socket++/sockstream.cpp
-index cf8fa15..1f4a107 100644
---- a/too/deep/socket++-1.12.13/socket++/sockstream.cpp
-+++ b/too/deep/socket++-1.12.13/socket++/sockstream.cpp
-@@ -127,7 +127,7 @@ using namespace std;
- const char* sockerr::errstr () const
- {
- #ifndef WIN32
--  return SYS_ERRLIST [err];
-+  return strerror (err);
- #else
- 	return 0; // TODO
- #endif

diff --git a/newscache.init b/newscache.init
deleted file mode 100644
index 2a375d4..0000000
--- a/newscache.init
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/bin/bash
-#
-# chkconfig: - 95 05
-# description: NewsCache is a free cache server for USENET News.
-# processname: newscache
-# pidfile: /var/run/newscache.pid
-#
-### BEGIN INIT INFO
-# Provides: newscache
-# Required-Start: $local_fs $remote_fs $network $named
-# Required-Stop: $local_fs $remote_fs $network
-# Short-Description: start and stop NewsCache daemon
-# Description: NewsCache is a free cache server for USENET News.
-### END INIT INFO
-
-# Source function library.
-. /etc/init.d/functions
-
-# Get config.
-. /etc/sysconfig/network
-
-# Check that networking is up.
-[ "${NETWORKING}" = "no" ] && exit 1
-
-[ -f /etc/newscache.conf ] || exit 6
-
-
-RETVAL=0
-
-start() {
-	echo -n "Starting NewsCache service: "
-        daemon newscache
-        RETVAL=$?
-        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/newscache
-        echo
-}
-
-stop() {
-	echo -n "Stopping NewsCache service: "
-	killproc newscache
-	RETVAL=$?
-        rm -f /var/lock/subsys/newscache
-	echo
-}
-
-reload() {
-        echo -n "Reloading NewsCache service: "
-        killproc newscache -HUP
-        RETVAL=$?
-	echo
-}
-
-restart() {
-        stop
-        start                                                                   
-}
-
-# See how we were called.
-case "$1" in
-  start)
-	start
-	;;
-  stop)
-	stop
-	;;
-  status)
-	status newscache
-        RETVAL=$?
-	;;
-  reload|force-reload)
-	reload
-	;;
-  restart)
-	restart
-	;;
-  condrestart|try-restart)
-	[ -f /var/lock/subsys/newscache ] && restart
-	;;
-  *)
-	echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
-	exit 3
-	;;
-esac
-
-exit $RETVAL

diff --git a/newscache.service b/newscache.service
deleted file mode 100644
index 3f3fe36..0000000
--- a/newscache.service
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=NewsCache cache server for USENET News.
-After=syslog.target network.target
-
-[Service]
-Type=forking
-PIDFile=/var/run/newscache.pid
-ExecStart=/usr/sbin/newscache
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target

diff --git a/newscache.spec b/newscache.spec
index 0ba1927..5cc74c7 100644
--- a/newscache.spec
+++ b/newscache.spec
@@ -1,23 +1,16 @@
-%define srcnamever	NewsCache-1.2rc6
-%define socketver	1.12.13
 
 Name: 		newscache
 Summary: 	Free cache server for USENET News
-Version: 	1.2
-Release: 	0.55.rc6%{?dist}
-# Automatically converted from old format: GPLv2+ - review is highly recommended.
+Version: 	1.3.22
+Release: 	1%{?dist}
 License:	GPL-2.0-or-later
-URL:		https://github.com/hstraub/NewsCache
-Source0: 	http://src.linuxhacker.at/NewsCache/%{srcnamever}.tar.gz
-Source1:	http://src.linuxhacker.at/socket++/socket++-%{socketver}.tar.gz
-Source2:	%{name}.init
-Source3:	%{name}.service
-Patch1:		newscache-1.2rc6-config.patch
-Patch2:		newscache-1.2rc6-gcc43.patch
-Patch3:		socket++-1.12.12-drop_doc.patch
-Patch4:		newscache-glibc.patch
-BuildRequires: make
-BuildRequires: libxcrypt-devel
+URL:		https://github.com/go-while/NewsCache
+Source0: 	https://github.com/go-while/NewsCache/releases/download/%{version}/NewsCache-%{version}.tar.gz
+
+Patch1:		newscache-1.3.22-config.patch
+
+BuildRequires:	make
+BuildRequires:	libxcrypt-devel
 BuildRequires:  gcc-c++
 BuildRequires:	libtool, texinfo, pam-devel
 BuildRequires:	systemd-units
@@ -37,49 +30,68 @@ bandwidth consumption or the IO load caused by news clients.
 
 
 %prep
-%setup -q -n %{srcnamever} -a 1
+%setup -q -n NewsCache-%{version}
 
 cp etc/newscache.conf-dist newscache.conf
 %patch -P1 -p0
-%patch -P2 -p1
 
-#  to satisfy g++ >= 8.0
-sed -i 's/^main/int main/' configure.in
 
-#  place socket++ source at least 2 level deeper,
-#  to avoid autotools inheritance with the newscache sources...
-mkdir -p too/deep
-mv socket++-%{socketver} too/deep
+cat >%{name}.service <<'EOF'
+[Unit]
+Description=NewsCache caching news server
+After=syslog.target network.target remote-fs.target
 
-pushd too/deep/socket++-%{socketver}
-%patch -P3 -p1
-popd
+[Service]
+Type=forking
+ExecStart=/usr/sbin/newscache
+PIDFile=/var/run/newscache.pid
+ExecReload=/bin/kill -HUP $MAINPID
 
-%patch -P4 -p1
+[Install]
+WantedBy=multi-user.target
+EOF
 
-# Create a sysusers.d config file
-cat >newscache.sysusers.conf <<EOF
-u news - 'News user' /etc/news -
+
+cat >newscacheclean.service <<'EOF'
+[Unit]
+Description=NewsCache spool cleanup
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/newscacheclean
 EOF
 
-%build
 
-# socket++ is a library from the same site as NewScache.
-# While it is used by newscache only, there is no reason
-# to ship it separately.
+cat >newscacheclean.timer <<'EOF'
+[Unit]
+Description=Daily NewsCache spool cleanup
 
-pushd too/deep/socket++-%{socketver}
-./autogen
-%configure --enable-static --disable-shared
-make %{?_smp_mflags}
-popd
+[Timer]
+OnCalendar=daily
+RandomizedDelaySec=3hours
+Persistent=true
+
+[Install]
+WantedBy=timers.target
+EOF
 
 
-SOCKDIR=$PWD/too/deep/socket++-%{socketver}
-export CPPFLAGS=-I$SOCKDIR
-export LDFLAGS=-L$SOCKDIR/socket++/.libs 
+#  sysusers.d config file
+cat >newscache.sysusers.conf <<EOF
+u news - 'News user' /var/cache/newscache -
+EOF
+
+#  pam.d config file
+cat >newscache.pam <<EOF
+#%PAM-1.0
+auth    include		password-auth
+account include		password-auth
+
+EOF
+
+
+%build
 
-./autogen
 %configure --with-pam
 make %{?_smp_mflags}
 
@@ -95,71 +107,54 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/newscache.auth-dist
 # info stuff is too obsolete
 rm -f $RPM_BUILD_ROOT%{_infodir}/*
 
-install -d $RPM_BUILD_ROOT%{_localstatedir}/cache/newscache
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
-install -m644 -p newscache.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
+install -p -m644 newscache.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
 
-#install -d $RPM_BUILD_ROOT%{_initrddir}
-#install -m755 -p %SOURCE2 $RPM_BUILD_ROOT%{_initrddir}/%{name}
+install -d $RPM_BUILD_ROOT%{_localstatedir}/cache/newscache
+install -d $RPM_BUILD_ROOT%{_sysusersdir}
+install -p -m644 newscache.sysusers.conf $RPM_BUILD_ROOT%{_sysusersdir}/%{name}.conf
 
 install -d $RPM_BUILD_ROOT%{_unitdir}
-install -p -m644 %SOURCE3 $RPM_BUILD_ROOT%{_unitdir}/%{name}.service
+install -p -m644 %{name}.service newscacheclean.service newscacheclean.timer $RPM_BUILD_ROOT%{_unitdir}/
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
-pushd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
-cat <<EOF >%{name}
-#%PAM-1.0
-auth    include		password-auth
-account include		password-auth
-
-EOF
-popd
-
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
-pushd $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily
-cat <<EOF >%{name}
-#!/bin/bash
-/usr/sbin/newscacheclean
-
-EOF
-chmod 755 %{name}
-popd
-
-install -m0644 -D newscache.sysusers.conf %{buildroot}%{_sysusersdir}/newscache.conf
-
-
+install -p -m644 newscache.pam $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/%{name}
 
 
 %post
 %systemd_post %{name}.service
+%systemd_post newscacheclean.timer
 
 
 %preun
 %systemd_preun %{name}.service
+%systemd_preun newscacheclean.timer
 
 
 %postun
 %systemd_postun_with_restart %{name}.service
+%systemd_postun newscacheclean.timer
 
 
 
 %files
 %attr(755,news,news) %dir %{_localstatedir}/cache/newscache
+%{_sysusersdir}/newscache.conf
 %config(noreplace) %{_sysconfdir}/%{name}.conf
 %config(noreplace) %{_sysconfdir}/pam.d/*
-%config(noreplace) %{_sysconfdir}/cron.daily/*
-#%config(noreplace) %{_initrddir}/*
-%{_unitdir}/%{name}.service
+%{_unitdir}/*
 %{_bindir}/*
 %{_sbindir}/*
-%doc AUTHORS COPYING NEWS README THANKS TODO
+%doc AUTHORS COPYING NEWS README README.md THANKS
 %doc doc/newscache*.txt etc/*-dist
 %{_mandir}/*/*
-%{_sysusersdir}/newscache.conf
 
 
 %changelog
+* Sat Oct 24 2026 Dmitry Butskoy <Dmitry@Butskoy.name> - 1.3.22-1
+- Upgrade to 1.3.22
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-0.55.rc6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 
@@ -269,7 +264,7 @@ install -m0644 -D newscache.sysusers.conf %{buildroot}%{_sysusersdir}/newscache.
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-0.20.rc6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-* Sat Aug  8 2013 Dmitry Butskoy <Dmitry@Butskoy.name> - 1.2-0.19.rc6
+* Thu Aug  8 2013 Dmitry Butskoy <Dmitry@Butskoy.name> - 1.2-0.19.rc6
 - update socket++ to 1.12.13
 - fix socket++ autotool stuff
 - avoid building socket++ docs (seems broken with makeinfo >= 5.0)
@@ -355,7 +350,7 @@ install -m0644 -D newscache.sysusers.conf %{buildroot}%{_sysusersdir}/newscache.
 - update the runlevel information
 - New upstream version 1.2rc5
 
-* Tue Jul 22 2004 Herbert Straub <herbert@linuxhacker.at>
+* Thu Jul 22 2004 Herbert Straub <herbert@linuxhacker.at>
 - Updated to version 1.2rc4
 
 * Tue Mar 18 2003 Carles Arjona <nospammer@bigfoot.com>

diff --git a/socket++-1.12.12-drop_doc.patch b/socket++-1.12.12-drop_doc.patch
deleted file mode 100644
index d304d70..0000000
--- a/socket++-1.12.12-drop_doc.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff -Nrbu socket++-1.12.12/Makefile.am socket++-1.12.12-OK/Makefile.am
---- socket++-1.12.12/Makefile.am	2002-11-25 15:31:56.000000000 +0300
-+++ socket++-1.12.12-OK/Makefile.am	2013-08-07 18:58:47.987284499 +0400
-@@ -1,2 +1,2 @@
--SUBDIRS = socket++ doc
-+SUBDIRS = socket++
- 
-diff -Nrbu socket++-1.12.12/configure.in socket++-1.12.12-OK/configure.in
---- socket++-1.12.12/configure.in	2004-09-30 17:00:14.000000000 +0400
-+++ socket++-1.12.12-OK/configure.in	2013-08-07 18:58:29.305331077 +0400
-@@ -190,4 +190,4 @@
- dnl check for system
- 
- dnl generate output files
--AC_OUTPUT(Makefile socket++/Makefile doc/Makefile test/Makefile)
-+AC_OUTPUT(Makefile socket++/Makefile test/Makefile)

diff --git a/sources b/sources
index 3f5b3eb..a401e9c 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-a7b33314cd7701564b4947ab8615dcc2  NewsCache-1.2rc6.tar.gz
-9ba9955b4d1051d9eb68d1081263c629  socket++-1.12.13.tar.gz
+SHA512 (NewsCache-1.3.22.tar.gz) = d9c5b4b9b02a12978229f12f6b25fae7ccb383af4dadcea2b9dcd3f12a98d6e9d00d2e97d386f1dad2f6e4fb992e2303baf0e777ada1896dabaae4e577e4d8c2

                 reply	other threads:[~2026-10-24 17:13 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=179286201838.1.8881706814459694637.rpms-newscache-d233bd1dadda@fedoraproject.org \
    --to=dmitry@butskoy.name \
    --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