public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/at/
Date: Tue,  6 Dec 2022 20:41:52 +0000 (UTC)	[thread overview]
Message-ID: <1670359117.a8d6872e7b4be3d7fefa636de3282be86446c24e.sam@gentoo> (raw)

commit:     a8d6872e7b4be3d7fefa636de3282be86446c24e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  6 20:38:37 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec  6 20:38:37 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8d6872e

sys-process/at: allow app-alternatives/lex, app-alternatives/yacc

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/at/at-3.2.5-r1.ebuild | 98 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 98 insertions(+)

diff --git a/sys-process/at/at-3.2.5-r1.ebuild b/sys-process/at/at-3.2.5-r1.ebuild
new file mode 100644
index 000000000000..c04c4703b4cf
--- /dev/null
+++ b/sys-process/at/at-3.2.5-r1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools pam systemd
+
+MY_P="${PN}_${PV}"
+
+DESCRIPTION="Queues jobs for later execution"
+HOMEPAGE="http://blog.calhariz.com/index.php/tag/at https://packages.qa.debian.org/a/at.html"
+SRC_URI="http://software.calhariz.com/at/${MY_P}.orig.tar.gz
+	mirror://debian/pool/main/a/at/${MY_P}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="pam selinux"
+
+DEPEND="
+	acct-group/at
+	acct-user/at
+	virtual/mta
+	pam? ( sys-libs/pam )
+	selinux? ( sys-libs/libselinux )
+"
+RDEPEND="${DEPEND}
+	virtual/mta
+	virtual/logger
+	selinux? ( sec-policy/selinux-at )
+"
+BDEPEND="
+	app-alternatives/lex
+	app-alternatives/yacc
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-3.1.8-more-deny.patch
+	"${FILESDIR}"/${PN}-3.1.14-Makefile.patch
+	# fix parallel make issues, bug #244884
+	"${FILESDIR}"/${PN}-3.1.10.2-Makefile.in-parallel-make-fix.patch
+	"${FILESDIR}"/${PN}-3.1.13-configure.in-fix-PAM-automagick-dep.patch
+	# Fix parallel make issue (bug #408375)
+	"${FILESDIR}"/${PN}-3.1.13-parallel-make-fix.patch
+)
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	local myeconfargs=(
+		--sysconfdir="${EPREFIX}"/etc/at
+		--with-jobdir="${EPREFIX}"/var/spool/at/atjobs
+		--with-atspool="${EPREFIX}"/var/spool/at/atspool
+		--with-etcdir="${EPREFIX}"/etc/at
+		--with-daemon_username=at
+		--with-daemon_groupname=at
+		$(usex pam '' --without-pam)
+		$(use_with selinux)
+	)
+	econf ${myeconfargs[@]}
+}
+
+src_install() {
+	default
+
+	newinitd "${FILESDIR}"/atd.rc9 atd
+	newconfd "${FILESDIR}"/atd.confd atd
+
+	if use pam ; then
+		newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
+	fi
+
+	systemd_dounit "${FILESDIR}/atd.service"
+	keepdir /var/spool/at/atspool
+}
+
+pkg_preinst() {
+	# Preserve existing .SEQ files (bug #386625)
+	local seq_file="${EROOT}/var/spool/at/atjobs/.SEQ"
+	if [[ -f "${seq_file}" ]] ; then
+		einfo "Preserving existing .SEQ file (bug #386625)."
+		cp -p "${seq_file}" "${ED}"/var/spool/at/atjobs/ || die
+	fi
+}
+
+pkg_postinst() {
+	einfo "Forcing correct permissions on /var/spool/at"
+	local atspooldir="${EROOT}/var/spool/at"
+	chown at:at "${atspooldir}/atjobs"
+	chmod 1770  "${atspooldir}/atjobs"
+	chown at:at "${atspooldir}/atjobs/.SEQ"
+	chmod 0600  "${atspooldir}/atjobs/.SEQ"
+	chown at:at "${atspooldir}/atspool"
+	chmod 1770  "${atspooldir}/atspool"
+}


             reply	other threads:[~2022-12-06 20:41 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-06 20:41 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-08 12:28 [gentoo-commits] repo/gentoo:master commit in: sys-process/at/ Sam James
2024-01-08 12:03 Sam James
2023-12-19 17:01 Arthur Zamarin
2023-12-18  7:10 Joonas Niilola
2023-12-18  1:09 Sam James
2023-12-18  0:11 Sam James
2023-12-18  0:11 Sam James
2023-12-18  0:11 Sam James
2023-12-18  0:11 Sam James
2023-09-25  7:02 Arthur Zamarin
2023-02-09 15:53 Joonas Niilola
2022-10-15 15:34 Sam James
2022-10-15 15:34 Sam James
2022-09-23  6:58 Arthur Zamarin
2022-09-23  5:41 Arthur Zamarin
2022-09-23  5:41 Arthur Zamarin
2022-09-23  2:19 Sam James
2022-09-23  2:19 Sam James
2022-09-23  2:18 Sam James
2022-09-23  1:35 Sam James
2022-09-23  1:27 Sam James
2022-03-27 14:00 Yixun Lan
2022-02-06 12:41 Lars Wendler
2022-01-30  0:16 Lars Wendler
2021-12-03 19:35 Sam James
2021-09-03  1:53 Sam James
2021-07-15 11:30 Lars Wendler
2021-05-06 10:01 Sam James
2021-05-05 16:09 Sergei Trofimovich
2021-05-04 22:54 Sam James
2021-05-04 19:16 Sam James
2021-05-04 19:16 Sam James
2021-05-04 19:13 Sam James
2021-05-04  7:03 Agostino Sarubbo
2021-04-26  7:30 Lars Wendler
2021-04-25 22:27 Lars Wendler
2021-04-16 10:25 David Seifert
2021-01-23 22:42 Mikle Kolyada
2020-08-30 20:40 Steve Arnold
2020-08-19 11:56 Lars Wendler
2019-11-27 13:45 Lars Wendler
2019-11-27 12:57 Mikle Kolyada
2019-11-14 11:55 Agostino Sarubbo
2019-10-17 11:43 Agostino Sarubbo
2019-10-17 10:32 Agostino Sarubbo
2019-10-17 10:29 Agostino Sarubbo
2019-10-17 10:25 Agostino Sarubbo
2019-10-17  9:53 Agostino Sarubbo
2019-10-16 20:46 Sergei Trofimovich
2019-10-15 11:14 Lars Wendler
2019-10-15 11:14 Lars Wendler
2019-10-12 21:36 Mikle Kolyada
2018-09-03 12:39 Lars Wendler
2017-12-20 17:41 Anthony G. Basile
2017-08-22 21:41 Michał Górny
2016-08-17  3:34 Jeroen Roovers
2016-07-08 14:49 Markus Meier
2016-07-04 11:55 Tobias Klausmann
2016-07-02 12:24 Lars Wendler
2016-04-28 11:40 Lars Wendler
2016-01-01 20:01 Lars Wendler
2016-01-01 20:01 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1670359117.a8d6872e7b4be3d7fefa636de3282be86446c24e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox