public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/incron] epel8: Merge remote-tracking branch 'origin/rawhide' into epel8
@ 2026-11-12 2:02 Kevin Fenzi
0 siblings, 0 replies; only message in thread
From: Kevin Fenzi @ 2026-11-12 2:02 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/incron
Branch : epel8
Commit : fcf902f2fe2f9b25b97dbd4bc380f7a1356dc1b4
Author : Kevin Fenzi <kevin@scrye.com>
Date : 2026-11-11T17:52:34-08:00
Stats : +213/-27 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/incron/c/fcf902f2fe2f9b25b97dbd4bc380f7a1356dc1b4?branch=epel8
Log:
Merge remote-tracking branch 'origin/rawhide' into epel8
---
diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644
index e69de29..0000000
--- a/.cvsignore
+++ /dev/null
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..436082e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+incron-0.5.9.tar.bz2
+/incron-0.5.10.tar.bz2
+/0.5.12.tar.gz
diff --git a/Makefile b/Makefile
deleted file mode 100644
index a8b30f6..0000000
--- a/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-# Makefile for source rpm: incron
-# $Id$
-NAME := incron
-SPECFILE = $(firstword $(wildcard *.spec))
-
-define find-makefile-common
-for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
-endef
-
-MAKEFILE_COMMON := $(shell $(find-makefile-common))
-
-ifeq ($(MAKEFILE_COMMON),)
-# attept a checkout
-define checkout-makefile-common
-test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
-endef
-
-MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
-endif
-
-include $(MAKEFILE_COMMON)
diff --git a/incron-0.5.12-nonroot-config.patch b/incron-0.5.12-nonroot-config.patch
new file mode 100644
index 0000000..72e2ccb
--- /dev/null
+++ b/incron-0.5.12-nonroot-config.patch
@@ -0,0 +1,13 @@
+diff --color -Nur incron-0.5.12.orig/ict-main.cpp incron-0.5.12/ict-main.cpp
+--- incron-0.5.12.orig/ict-main.cpp 2015-02-09 01:03:19.000000000 -0800
++++ incron-0.5.12/ict-main.cpp 2026-11-10 14:25:35.257418702 -0800
+@@ -502,7 +502,8 @@
+ std::string cfg(INCRON_CONFIG);
+ if (AppArgs::GetOption("config", cfg)) {
+ if (uid != 0) {
+- fprintf(stderr, "insufficient privileges to use custom configuration (will use default)\n");
++ fprintf(stderr, "insufficient privileges to use custom configuration.\n");
++ return 1;
+ }
+ else if (euidaccess(cfg.c_str(), R_OK) != 0) {
+ perror("cannot read configuration file (will use default)");
diff --git a/incron-gcc44.patch b/incron-gcc44.patch
new file mode 100644
index 0000000..d616850
--- /dev/null
+++ b/incron-gcc44.patch
@@ -0,0 +1,56 @@
+diff -up incron-0.5.8/appargs.cpp.orig incron-0.5.8/appargs.cpp
+--- incron-0.5.8/appargs.cpp.orig 2009-02-25 11:10:59.000000000 +0100
++++ incron-0.5.8/appargs.cpp 2009-02-25 11:11:11.000000000 +0100
+@@ -21,6 +21,7 @@
+
+
+ #include <cstring>
++#include <cstdio>
+
+ #include "strtok.h"
+
+diff -up incron-0.5.8/appinst.h.orig incron-0.5.8/appinst.h
+--- incron-0.5.8/appinst.h.orig 2008-12-29 17:31:09.000000000 +0100
++++ incron-0.5.8/appinst.h 2009-02-25 11:10:23.000000000 +0100
+@@ -23,6 +23,7 @@
+
+
+ #include <string>
++#include <cstdio>
+
+
+ #define APPLOCK_BASEDIR "/var/run"
+diff -up incron-0.5.8/incroncfg.cpp.orig incron-0.5.8/incroncfg.cpp
+--- incron-0.5.8/incroncfg.cpp.orig 2008-12-29 17:31:09.000000000 +0100
++++ incron-0.5.8/incroncfg.cpp 2009-02-25 11:10:23.000000000 +0100
+@@ -181,7 +181,7 @@ bool IncronCfg::ParseLine(const char* s,
+
+ bool IncronCfg::IsComment(const char* s)
+ {
+- char* sx = strchr(s, '#');
++ const char* sx = strchr(s, '#');
+ if (sx == NULL)
+ return false;
+
+diff -up incron-0.5.8/incroncfg.h.orig incron-0.5.8/incroncfg.h
+--- incron-0.5.8/incroncfg.h.orig 2008-12-29 17:31:09.000000000 +0100
++++ incron-0.5.8/incroncfg.h 2009-02-25 11:10:23.000000000 +0100
+@@ -19,6 +19,7 @@
+
+
+ #include <cstring>
++#include <cstdio>
+ #include <map>
+
+ /// Configuration class.
+diff -up incron-0.5.8/inotify-cxx.h.orig incron-0.5.8/inotify-cxx.h
+--- incron-0.5.8/inotify-cxx.h.orig 2008-12-29 17:31:09.000000000 +0100
++++ incron-0.5.8/inotify-cxx.h 2009-02-25 11:10:23.000000000 +0100
+@@ -28,6 +28,7 @@
+
+ #include <stdint.h>
+ #include <string>
++#include <cstdio>
+ #include <deque>
+ #include <map>
+
diff --git a/incron-gcc47.patch b/incron-gcc47.patch
new file mode 100644
index 0000000..216cf2f
--- /dev/null
+++ b/incron-gcc47.patch
@@ -0,0 +1,10 @@
+--- icd-main.cpp~ 2009-06-21 15:27:24.000000000 -0500
++++ icd-main.cpp 2012-02-16 10:31:28.852199163 -0600
+@@ -24,6 +24,7 @@
+ #include <sys/poll.h>
+ #include <sys/stat.h>
+ #include <cstring>
++#include <unistd.h>
+
+ #include "inotify-cxx.h"
+ #include "appinst.h"
diff --git a/incron.spec b/incron.spec
index 00986f1..a106b97 100644
--- a/incron.spec
+++ b/incron.spec
@@ -1,9 +1,10 @@
Summary: Inotify cron system
Name: incron
Version: 0.5.12
-Release: 12%{?dist}
+Release: 31%{?dist}
-License: GPLv2
+# Automatically converted from old format: GPLv2 - review is highly recommended.
+License: GPL-2.0-only
URL: https://github.com/ar-/incron
Source0: https://github.com/ar-/%{name}/archive/%{version}.tar.gz
Source1: incrond.service
@@ -11,9 +12,12 @@ Patch0: incron-0.5.10-gcc.patch
Patch1: incron-0.5.12-prevent-zombies.patch
# https://github.com/ar-/incron/pull/56
Patch2: 56.patch
+# Non root users should not be allowed to pass their own config
+Patch3: incron-0.5.12-nonroot-config.patch
BuildRequires: systemd
BuildRequires: gcc-c++
+BuildRequires: make
Requires(post): systemd-units
Requires(preun): systemd-units
@@ -28,12 +32,13 @@ filesystem events rather than time periods.
%prep
%setup -q
-%patch0 -p1 -b .gcc
-%patch1 -p1
-%patch2 -p1
+%patch -P0 -p1 -b .gcc
+%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
%build
-make %{?_smp_mflags} CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
+make %{?_smp_mflags} CXXFLAGS="%{optflags} -std=c++14" LDFLAGS="%{__global_ldflags}"
%install
#install files manually since source Makefile tries to do it as root
@@ -71,6 +76,64 @@ make install-man MANPATH="%{buildroot}%{_mandir}" INSTALL="install -D -p"
%dir %{_sysconfdir}/%{name}.d
%changelog
+* Tue Nov 10 2026 Kevin Fenzi <kevin@scrye.com> - 0.5.12-31
+- Add Patch to stop non root users using their own config. Fixes rhbz#2568586
+
+* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-30
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
+
+* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-29
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
+
+* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-28
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
+
+* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-27
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+
+* Mon Jul 29 2024 Miroslav Suchý <msuchy@redhat.com> - 0.5.12-26
+- convert license to SPDX
+
+* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-25
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+
+* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-24
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-23
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-22
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
+
+* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-21
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+
+* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-20
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
+
+* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-19
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
+* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-18
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
+* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.12-17
+- Rebuilt for updated systemd-rpm-macros
+ See https://pagure.io/fesco/issue/2583.
+
+* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-16
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+
+* Tue Jul 28 2020 Jeff Law <law@redhat.com> - 0.5.12-15
+- Force C++14 as this code is not C++17 ready
+
+* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-14
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-13
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.12-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
diff --git a/incrond.init b/incrond.init
new file mode 100644
index 0000000..5d32381
--- /dev/null
+++ b/incrond.init
@@ -0,0 +1,62 @@
+#!/bin/bash
+#
+# incrond This shell script enables the incrond daemon
+#
+# Author: Ruben Kerkhof <ruben@rubenkerkhof.com>
+#
+# chkconfig: - 97 03
+#
+# description: This is a daemon which works like cron, but handles filesystem events
+# instead of time periods.
+# and can send notifications via mail, dbus or syslog.
+# processname: incrond
+# pidfile: /var/run/incrond.pid
+
+# source function library
+. /etc/rc.d/init.d/functions
+
+RETVAL=0
+
+start() {
+ echo -n $"Starting incrond: "
+ daemon incrond
+ RETVAL=$?
+ echo
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/incrond
+}
+
+stop() {
+ echo -n $"Stopping incrond: "
+ killproc incrond
+ echo
+ [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/incrond
+}
+
+restart() {
+ stop
+ start
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart|force-reload|reload)
+ restart
+ ;;
+ condrestart)
+ [ -f /var/lock/subsys/incrond ] && restart
+ ;;
+ status)
+ status incrond
+ RETVAL=$?
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
+ exit 1
+esac
+
+exit $RETVAL
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-12 2:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 2:02 [rpms/incron] epel8: Merge remote-tracking branch 'origin/rawhide' into epel8 Kevin Fenzi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox