diff options
author | Marek Szuba <marecki@gentoo.org> | 2022-06-17 10:32:34 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2022-06-17 10:32:43 +0100 |
commit | 06e571030c6daf6f9fca2726488d87ee43610b53 (patch) | |
tree | 85a978fcaee5d507caa89bb5c46a4e0386e52e43 /sys-process/incron | |
parent | sys-process/incron: rename 0.5.12_p20191114-r1 to 0.5.12_p20171113 (diff) | |
download | gentoo-06e571030c6daf6f9fca2726488d87ee43610b53.tar.gz gentoo-06e571030c6daf6f9fca2726488d87ee43610b53.tar.bz2 gentoo-06e571030c6daf6f9fca2726488d87ee43610b53.zip |
sys-process/incron: make sure /etc/incron.d is kept
Also bump EAPI to 8 and try to make incron Prefix-friendly.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sys-process/incron')
-rw-r--r-- | sys-process/incron/incron-0.5.12_p20171113-r1.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/sys-process/incron/incron-0.5.12_p20171113-r1.ebuild b/sys-process/incron/incron-0.5.12_p20171113-r1.ebuild new file mode 100644 index 000000000000..9186cf6302b8 --- /dev/null +++ b/sys-process/incron/incron-0.5.12_p20171113-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic linux-info systemd toolchain-funcs + +COMMIT="1eedfbc9b318372efd119fd17f4abdbde561a53d" +S="${WORKDIR}/${PN}-${COMMIT}" + +DESCRIPTION="inotify based cron daemon" +HOMEPAGE="https://incron.aiken.cz/" +SRC_URI="https://github.com/ar-/incron/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~riscv ~x86" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.12-use-execl-instead-system.patch + "${FILESDIR}"/${PN}-0.5.12-issue25.patch +) + +DOCS=( CHANGELOG README TODO ) + +# < 2.6.18 => INOTIFY, >= 2.6.18 => INOTIFY_USER +# It should be ok to expect at least 2.6.18 +CONFIG_CHECK="~INOTIFY_USER" + +src_prepare() { + default + + sed -i \ + -e '/$(INSTALL) -m 0644 incron.conf $(DESTDIR)$(INITDIR)/d' \ + Makefile \ + || die +} + +src_compile() { + # code is not C++17 ready + append-cxxflags -std=c++14 + + emake CXX="$(tc-getCXX)" +} + +src_install() { + emake DESTDIR="${ED}" PREFIX=/usr DOCDIR=/usr/share/doc/${PF} install + einstalldocs + + newinitd "${FILESDIR}"/${PN}d-r1.init ${PN}d + newconfd "${FILESDIR}"/${PN}d.conf ${PN}d + systemd_dounit "${FILESDIR}"/${PN}d.service + + insinto /etc + doins "${FILESDIR}"/${PN}.conf + touch \ + "${ED}"/etc/${PN}.allow \ + "${ED}"/etc/${PN}.deny \ + || die + + keepdir /etc/${PN}.d + keepdir /var/spool/${PN} +} |