diff options
Diffstat (limited to 'app-misc/fsniper')
-rw-r--r-- | app-misc/fsniper/Manifest | 6 | ||||
-rw-r--r-- | app-misc/fsniper/files/fsniper-1.3.1-format-security.patch | 26 | ||||
-rw-r--r-- | app-misc/fsniper/files/fsniper-1.3.1-umask.patch | 18 | ||||
-rw-r--r-- | app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch | 15 | ||||
-rw-r--r-- | app-misc/fsniper/fsniper-1.3.1-r2.ebuild | 38 | ||||
-rw-r--r-- | app-misc/fsniper/metadata.xml | 11 |
6 files changed, 114 insertions, 0 deletions
diff --git a/app-misc/fsniper/Manifest b/app-misc/fsniper/Manifest new file mode 100644 index 000000000000..afebcc477c23 --- /dev/null +++ b/app-misc/fsniper/Manifest @@ -0,0 +1,6 @@ +AUX fsniper-1.3.1-format-security.patch 992 BLAKE2B 80076b40a7a45196790b7d647a344b8edd75a2eaf625d81d08c77aa920c97f0abd828ccd6988b7c5384437e1beb0f0d49b183052ec18f1cb29dd975693a2fea5 SHA512 1956600123b92f76b1cf94a3867e5671c08876e5d16e211141725ab81f95a0b4ea48bc9f80e3f55bb658055c43cc3b0df42870ee53301adf5db7d5310e39092b +AUX fsniper-1.3.1-umask.patch 663 BLAKE2B c40d6bee00d3481a1f7c3b03d225e3fbc5d9fb6b1990f613b16bebdb9cd66496e875f96aa927a6ad0229181295f6be41c51fd50f5c6f547e283ed732fa9bb89d SHA512 8532ff2624355fb4e3057442190416b02c9c8f03629ab23def757e122e411673a1826c5a6e8495007e38258bb453fa88af516a6e6b9dd56e8fc8a6a991cf371d +AUX fsniper-1.3.1-waitpid.patch 374 BLAKE2B bed80e71fa3b52ccf2b62e208077c16f601156d165fca74c5da698693a185134cef98b07521e7103d8ab17826c77921dbbea196c193b04009e8a09dabd13dc4c SHA512 f38ab368b2e7abb1a46a047cca66ecbbff6d63e4239a96b9f04e1774d88719dff79a16c347f0ee13c06137f10a4f5773e7088ebdeafa782e1e0488674f41b00c +DIST fsniper-1.3.1.tar.gz 282700 BLAKE2B 6c22e72e41489aa84b618892713c24cba41b8cccfe6e8eb5ddc498ca83836b179f7e602f311b6375027fd23678fdc5bb6ff5b9c6e5f2cf0c7f0488365543bcc3 SHA512 285b56ca239fb9c2c0319c8c5d24e368cda89d547bae25f69b528167c6fa5ebaab31f7fa178cb6b02735168043150605724ac14cc65e7347c6e49e2dc1e5ba87 +EBUILD fsniper-1.3.1-r2.ebuild 656 BLAKE2B c6386c590dfe6b2d41dfc6e3b3bd011bf95e6ca8f746d04116bf12ff6f529e0f2b8e1221e80b3c5412629f63850714825eaa30e45dafe4438ddde98f7643a08d SHA512 9506739bf2c87f5bc26a226f22f2b7668fcb6ad7d1b49e860f430ff01b80e89b46b52ed83290c57e4b781e23b09a1cf8a0cbae3ace7d5e8fbca6c90e6849d8d7 +MISC metadata.xml 352 BLAKE2B a11595cf78c603a0340dcfc8277c1b3f9d5fcdd45adf9d2b3c0eeea000d8e3057af641ac69a497bcf1e6795ff7c2f27eda24d13e207eec7f48d35a38f5689cb5 SHA512 03ad4670d0169a04bf038deca3fbe594d487168ef110914541a74c4f97f958bf112411143dfa7c22856f65e37a645ec6ab4be038aa3108d15416c3a264723da9 diff --git a/app-misc/fsniper/files/fsniper-1.3.1-format-security.patch b/app-misc/fsniper/files/fsniper-1.3.1-format-security.patch new file mode 100644 index 000000000000..70c9460f97d2 --- /dev/null +++ b/app-misc/fsniper/files/fsniper-1.3.1-format-security.patch @@ -0,0 +1,26 @@ +From d15abeb19d1692698e0ec8a9f4a764a210e57a2b Mon Sep 17 00:00:00 2001 +From: Jakub Hrozek <jhrozek@redhat.com> +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/app-misc/fsniper/files/fsniper-1.3.1-umask.patch b/app-misc/fsniper/files/fsniper-1.3.1-umask.patch new file mode 100644 index 000000000000..39aecaa3e0d1 --- /dev/null +++ b/app-misc/fsniper/files/fsniper-1.3.1-umask.patch @@ -0,0 +1,18 @@ +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/app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch b/app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch new file mode 100644 index 000000000000..1363c4cbf73f --- /dev/null +++ b/app-misc/fsniper/files/fsniper-1.3.1-waitpid.patch @@ -0,0 +1,15 @@ +Replace obsolete wait3 by waitpid + +--- a/src/main.c ++++ b/src/main.c +@@ -193,8 +193,8 @@ + /* handler for reaping children after the fork is done. */ + void handle_child_signal() + { +- union wait status; +- while (wait3(&status, WNOHANG, 0) > 0) {} ++ int status; ++ while (waitpid(-1, &status, WNOHANG) > 0) {} + } + + /* handler for HUP. reloads the config file. */ diff --git a/app-misc/fsniper/fsniper-1.3.1-r2.ebuild b/app-misc/fsniper/fsniper-1.3.1-r2.ebuild new file mode 100644 index 000000000000..7b845d7f9bf8 --- /dev/null +++ b/app-misc/fsniper/fsniper-1.3.1-r2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="Monitors a given set of directories for new files" +HOMEPAGE="https://github.com/l3ib/fsniper" +SRC_URI="http://projects.l3ib.org/${PN}/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +DEPEND=" + dev-libs/libpcre + sys-apps/file" + +RDEPEND=" + ${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-format-security.patch + "${FILESDIR}"/${P}-umask.patch + "${FILESDIR}"/${P}-waitpid.patch +) + +DOCS=( AUTHORS COPYING NEWS README example.conf ) + +src_prepare() { + default + eautoreconf +} + +src_install() { + default +} diff --git a/app-misc/fsniper/metadata.xml b/app-misc/fsniper/metadata.xml new file mode 100644 index 000000000000..c1c4c23f9f38 --- /dev/null +++ b/app-misc/fsniper/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> + <upstream> + <remote-id type="github">l3ib/fsniper</remote-id> + </upstream> +</pkgmetadata> |