From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1409323-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 0807D158091
	for <garchives@archives.gentoo.org>; Fri, 17 Jun 2022 10:13:19 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id F3FF2E095E;
	Fri, 17 Jun 2022 10:13:17 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id D1039E095E
	for <gentoo-commits@lists.gentoo.org>; Fri, 17 Jun 2022 10:13:17 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 68898341A2F
	for <gentoo-commits@lists.gentoo.org>; Fri, 17 Jun 2022 10:13:16 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A62C37F
	for <gentoo-commits@lists.gentoo.org>; Fri, 17 Jun 2022 10:13:14 +0000 (UTC)
From: "Marek Szuba" <marecki@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" <marecki@gentoo.org>
Message-ID: <1655458363.06e571030c6daf6f9fca2726488d87ee43610b53.marecki@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/incron/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-process/incron/incron-0.5.12_p20171113-r1.ebuild
X-VCS-Directories: sys-process/incron/
X-VCS-Committer: marecki
X-VCS-Committer-Name: Marek Szuba
X-VCS-Revision: 06e571030c6daf6f9fca2726488d87ee43610b53
X-VCS-Branch: master
Date: Fri, 17 Jun 2022 10:13:14 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: f16cda43-96f7-4cc1-84af-c245cd6a3764
X-Archives-Hash: cedcd1d5fcf31bff08fa506bc5e1a333

commit:     06e571030c6daf6f9fca2726488d87ee43610b53
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 17 09:32:34 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Jun 17 09:32:43 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06e57103

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 <AT> gentoo.org>

 .../incron/incron-0.5.12_p20171113-r1.ebuild       | 63 ++++++++++++++++++++++
 1 file changed, 63 insertions(+)

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}
+}