From 1faf951b76b10726dcc435d4930b59b9449ca4dd Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Oct 13 2019 19:47:31 +0000 Subject: Orphaned for 6+ weeks --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 5b45094..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -fsniper-1.3.1.tar.gz diff --git a/0001-Fix-an-error-message.patch b/0001-Fix-an-error-message.patch deleted file mode 100644 index 70c9460..0000000 --- a/0001-Fix-an-error-message.patch +++ /dev/null @@ -1,26 +0,0 @@ -From d15abeb19d1692698e0ec8a9f4a764a210e57a2b Mon Sep 17 00:00:00 2001 -From: Jakub Hrozek -Date: Tue, 3 Dec 2013 10:50:29 +0100 -Subject: [PATCH] Fix an error message - -This patch fixes https://bugzilla.redhat.com/show_bug.cgi?id=1037073 ---- - src/handle_event.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/handle_event.c b/src/handle_event.c -index 22f35f10ea3a6083c2ef933f794b529b8879a1ed..cac004b76917c192ad9bf8801062d701e4dc18c6 100644 ---- a/src/handle_event.c -+++ b/src/handle_event.c -@@ -313,7 +313,7 @@ void handle_event(struct inotify_event* event, int writefd) - if (sysret == 127) - { - temp = malloc(27 + strlen(handler->value) + 20 + 1); -- sprintf("Could not execute handler \"%s\", trying next one.\n", handler->value); -+ sprintf(temp, "Could not execute handler \"%s\", trying next one.\n", handler->value); - write_out(writefd, temp); - - free(temp); --- -1.8.4.2 - diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5204a84 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Orphaned for 6+ weeks diff --git a/fsniper-umask.patch b/fsniper-umask.patch deleted file mode 100644 index 39aecaa..0000000 --- a/fsniper-umask.patch +++ /dev/null @@ -1,18 +0,0 @@ -X-Git-Url: http://code.l3ib.org/?p=fsniper.git;a=blobdiff_plain;f=src%2Fmain.c;fp=src%2Fmain.c;h=cd49dffebe4b4c728b62c28c1381c4fb6f5ad87d;hp=03a8d701d6f9802ba346b591429e58741ca53479;hb=82cb0b46c48485fd4f6231ce3169c7be87d1ea07;hpb=2bbeb5d6e6b55bb9692c043fcdbeab15d9723c9e - -diff --git a/src/main.c b/src/main.c -index 03a8d70..cd49dff 100644 ---- a/src/main.c -+++ b/src/main.c -@@ -153,7 +153,10 @@ char *get_pid_filename() - void write_pid_file(char *pidfilename) - { - FILE *pidfile; -+ mode_t umask_old; -+ umask_old = umask(0177); - pidfile = fopen(pidfilename, "w"); -+ umask(umask_old); - fprintf(pidfile, "%d", getpid()); - fclose(pidfile); - } - diff --git a/fsniper-wait3.patch b/fsniper-wait3.patch deleted file mode 100644 index 802da04..0000000 --- a/fsniper-wait3.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur fsniper-1.3.1/src/main.c fsniper_new-1.3.1/src/main.c ---- fsniper-1.3.1/src/main.c 2008-10-18 19:30:37.000000000 +0200 -+++ fsniper_new-1.3.1/src/main.c 2016-09-27 09:49:54.689836092 +0200 -@@ -190,7 +190,7 @@ - /* handler for reaping children after the fork is done. */ - void handle_child_signal() - { -- union wait status; -+ int status; - while (wait3(&status, WNOHANG, 0) > 0) {} - } - diff --git a/fsniper.conf b/fsniper.conf deleted file mode 100644 index 422f88f..0000000 --- a/fsniper.conf +++ /dev/null @@ -1,39 +0,0 @@ -# the amount of time, in seconds, to wait before trying the handler -# again. If not specified, it defaults to 300, which is 5 minutes. -# delay_time 300 -# -# the number of repeats it should try before giving up. This can -# be 0, meaning infinite retries. -# delay_repeats 0 -# -# An example of watch section follows -watch { -# -# # watch the ~/drop directory for new files -# ~/drop { -# # matches any mimetype beginning with image/ -# image/* { -# # %% is replaced with the filename of the new file -# handler = echo found an image: %% -# } -# -# # matches any file ending with .extension -# *.extension { -# # the filename is added to the end of the handler line if %% is not present -# handler = echo glob handler 1: -# # the second handler will be run if the first exits with a return code of 1 -# handler = echo glob handler 2: %% -# } -# -# # run handlers on files that match this regex -# /.*regex.*/ { -# handler = echo regex handler -# } -# -# # generic handler to catch files that nothing else did -# * { -# handler = mv %% ~/downloads/ -# } -# } -# -} diff --git a/fsniper.service b/fsniper.service deleted file mode 100644 index f06aaaa..0000000 --- a/fsniper.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Fsniper New Files in Directory Monitor And Script Runner - -[Service] -User=fsniper -Type=forking -ExecStart=/usr/bin/fsniper --daemon /etc/fsniper.conf - -[Install] -WantedBy=multi-user.target diff --git a/fsniper.spec b/fsniper.spec deleted file mode 100644 index 1709673..0000000 --- a/fsniper.spec +++ /dev/null @@ -1,196 +0,0 @@ -Name: fsniper -Version: 1.3.1 -Release: 25%{?dist} -Summary: A tool that monitors directories for new files and invokes scripts on them - -License: GPLv3+ -URL: https://github.com/l3ib/fsniper -Source0: http://projects.l3ib.org/fsniper/files/fsniper-%{version}.tar.gz -Source1: fsniper.service -Source2: fsniper.conf -Source3: fsniper.sysconfig - -# Fix umask permissions - http://bugs.l3ib.org/index.php?do=details&task_id=21 -Patch1: fsniper-umask.patch -Patch2: 0001-Fix-an-error-message.patch -Patch3: fsniper-wait3.patch - -BuildRequires: gcc -BuildRequires: file-devel -BuildRequires: pcre-devel -BuildRequires: systemd-units - -Requires(post): systemd-units systemd-sysv -Requires(preun): systemd-units -Requires(postun): systemd-units -Requires(pre): /usr/sbin/useradd /usr/sbin/groupadd - -%define servicename fsniper.service -%define fsdir %{_localstatedir}/lib/%{name} - -%description -fsniper is a tool that monitors a given set of directories for new -files. Then, based on the new file's type or name, it invokes a script to -be run (any executable via the shell) on that file. Common uses include -making a single drop directory for all things from a webbrowser etc, and -having semi-intelligent scripts figure out what to do with those files. You -write the scripts yourself. - - -%prep -%setup -q -%patch1 -p1 -b .umask -%patch2 -p1 -b .errmessage -%patch3 -p1 -b .wait3 - - -%build -%configure -make %{?_smp_mflags} - - -%install -mkdir -p $RPM_BUILD_ROOT%{_unitdir} -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig -mkdir -p $RPM_BUILD_ROOT%{fsdir} - -make install DESTDIR=$RPM_BUILD_ROOT - -install -pm 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/%{servicename} -install -pm 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fsniper.conf -install -pm 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/fsniper -install -pm 0644 doc/doc.txt $RPM_BUILD_ROOT%{docdir} - - -%files -%{_bindir}/fsniper -%{_unitdir}/%{servicename} -%attr(-,%{name},%{name}) %dir %{fsdir}/ -%config(noreplace) %{_sysconfdir}/fsniper.conf -%config(noreplace) %{_sysconfdir}/sysconfig/fsniper -%doc AUTHORS COPYING README -%doc doc/doc.txt doc/keyvalcfg.txt example.conf - -%pre -if [ $1 = 1 ]; then - getent group %{name} >/dev/null || groupadd -r %{name} - getent passwd %{name} >/dev/null || \ - useradd -r -g %{name} -d %{_localstatedir}/lib/%{name} -s /sbin/nologin \ - -c "%{name} user" %{name} - exit 0 -fi - -%post -if [ $1 -eq 1 ] ; then - # Initial installation - /bin/systemctl daemon-reload >/dev/null 2>&1 || : -fi - -%preun -if [ $1 -eq 0 ] ; then - # Package removal, not upgrade - /bin/systemctl --no-reload disable %{servicename} > /dev/null 2>&1 || : - /bin/systemctl stop %{servicename} > /dev/null 2>&1 || : -fi - -%postun -/bin/systemctl daemon-reload >/dev/null 2>&1 || : -if [ $1 -ge 1 ] ; then - # Package upgrade, not uninstall - /bin/systemctl try-restart %{servicename} >/dev/null 2>&1 || : -fi - -%triggerun -- fsniper < 1.0-2 -# Save the current service runlevel info -# User must manually run systemd-sysv-convert --apply fsniper -# to migrate them to systemd targets -/usr/bin/systemd-sysv-convert --save fsniper >/dev/null 2>&1 ||: - -# If the package is allowed to autostart: -/bin/systemctl --no-reload enable %{servicename} >/dev/null 2>&1 ||: - -# Run these because the SysV package being removed won't do them -/sbin/chkconfig --del fsniper >/dev/null 2>&1 || : -/bin/systemctl try-restart %{servicename} >/dev/null 2>&1 || : - -%changelog -* Thu Jul 25 2019 Fedora Release Engineering - 1.3.1-25 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Jan 31 2019 Fedora Release Engineering - 1.3.1-24 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 1.3.1-23 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 1.3.1-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Aug 02 2017 Fedora Release Engineering - 1.3.1-21 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Sun Jul 30 2017 Filipe Rosset - 1.3.1-20 -- Rebuilt to fix FTBFS #rhbz 1423584 plus spec cleanup - -* Wed Jul 26 2017 Fedora Release Engineering - 1.3.1-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 1.3.1-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Feb 03 2016 Fedora Release Engineering - 1.3.1-17 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 1.3.1-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Aug 16 2014 Fedora Release Engineering - 1.3.1-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 1.3.1-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Tue Dec 03 2013 Jakub Hrozek - 1.3.1-13 -- Fix -Wformat-security warning (rhbz #1037073) - -* Sat Aug 03 2013 Fedora Release Engineering - 1.3.1-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Feb 13 2013 Fedora Release Engineering - 1.3.1-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Thu Jul 19 2012 Fedora Release Engineering - 1.3.1-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Fri Feb 10 2012 Petr Pisar - 1.3.1-9 -- Rebuild against PCRE 8.30 - -* Fri Jan 13 2012 Fedora Release Engineering - 1.3.1-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Mon Jan 02 2012 Jakub Hrozek 1.3.1-7 -- systemd support -- fix the upstream URL. The source0 URL stays the same until upstream - releases a new version - -* Tue Feb 08 2011 Fedora Release Engineering - 1.3.1-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Fri Jul 24 2009 Fedora Release Engineering - 1.3.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Tue Feb 24 2009 Fedora Release Engineering - 1.3.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Mon Jan 12 2009 Jakub Hrozek 1.3.1-3 -- apply the correct patch from upstream VCS (Manuel Wolfshant) - -* Wed Oct 22 2008 Jakub Hrozek 1.3.1-2 -- issues found during review (#467627): -- add link to upstream bugtracker for patch -- exit with 0 after useradd - -* Sun Oct 19 2008 Jakub Hrozek 1.3.1-1 -- Initial packaging - diff --git a/fsniper.sysconfig b/fsniper.sysconfig deleted file mode 100644 index cbda4bb..0000000 --- a/fsniper.sysconfig +++ /dev/null @@ -1 +0,0 @@ -USER=fsniper diff --git a/sources b/sources deleted file mode 100644 index 643079a..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -62f30bb4b00f9499499d83a30281f10f fsniper-1.3.1.tar.gz