Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/at/
Date: Sun, 06 Feb 2022 12:41:04
Message-Id: 1644151243.20ba6967f4b6140675074d5d8e004526cea43c7e.polynomial-c@gentoo
1 commit: 20ba6967f4b6140675074d5d8e004526cea43c7e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 5 19:00:46 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 12:40:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20ba6967
7
8 sys-process/at: Bump to version 3.2.5
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 sys-process/at/Manifest | 1 +
13 sys-process/at/at-3.2.5.ebuild | 97 ++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 98 insertions(+)
15
16 diff --git a/sys-process/at/Manifest b/sys-process/at/Manifest
17 index 570181492682..d35a168605b6 100644
18 --- a/sys-process/at/Manifest
19 +++ b/sys-process/at/Manifest
20 @@ -1,2 +1,3 @@
21 DIST at_3.2.2.orig.tar.gz 127677 BLAKE2B f4b0e1cd09d1e679d0bcc287462300827d12663927dce1534a74bd4ecd670f903a81cd6147c03b0e55192655c2a99250c27ad0e9892342d91b0279210fb79a64 SHA512 e6f5aeddd89438aadff627d654ebc821a0b0e1a600ebaacc8a5fd3ec2c7c716f593757d00501311736d28f6d4276899667d6901d70836af208ff7d181b5b680f
22 DIST at_3.2.4.orig.tar.gz 132124 BLAKE2B cd5a0c70d3a72bd6667166f17442dcc1a59371e0527ba7da79375e49dc5f8558ef62bface0517b5205ac32e280e88efb12cfe493982a06b9716dd68331bcad01 SHA512 e1d3a1394e90686d4f99784aa3b49fccfda137f0cfb69b3369cff4bce8bda745c8bbf5ca9b8e0863a927eda1b16652562294ff0d4eafa11d121de8de321156a2
23 +DIST at_3.2.5.orig.tar.gz 132660 BLAKE2B 30cd8e53aff8176ceea62f2a34c0cc0706b35fc187c2da58f86ec6ca4cec4701bfab9d932949d57b9750a18841d315d7c9a4289691f209c899598991f6541a32 SHA512 542e8948bbdc1d06934070cbfe242688b541ef6342c6b0351255f8b9d7a3ed915a9304b5cf5442dfc15845b3d2b926ebecbfc5bccd204519d0a2775b27f8139c
24
25 diff --git a/sys-process/at/at-3.2.5.ebuild b/sys-process/at/at-3.2.5.ebuild
26 new file mode 100644
27 index 000000000000..413b02bb81e8
28 --- /dev/null
29 +++ b/sys-process/at/at-3.2.5.ebuild
30 @@ -0,0 +1,97 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit autotools pam systemd
37 +
38 +MY_P="${PN}_${PV}"
39 +
40 +DESCRIPTION="Queues jobs for later execution"
41 +HOMEPAGE="http://blog.calhariz.com/index.php/tag/at https://packages.qa.debian.org/a/at.html"
42 +SRC_URI="http://software.calhariz.com/at/${MY_P}.orig.tar.gz
43 + mirror://debian/pool/main/a/at/${MY_P}.orig.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
48 +IUSE="pam selinux"
49 +
50 +DEPEND="
51 + acct-group/at
52 + acct-user/at
53 + virtual/mta
54 + pam? ( sys-libs/pam )
55 + selinux? ( sys-libs/libselinux )
56 +"
57 +RDEPEND="${DEPEND}
58 + virtual/mta
59 + virtual/logger
60 + selinux? ( sec-policy/selinux-at )
61 +"
62 +BDEPEND="
63 + >=sys-devel/autoconf-2.64
64 + sys-devel/bison
65 + >=sys-devel/flex-2.5.4a
66 +"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${PN}-3.1.8-more-deny.patch
70 + "${FILESDIR}"/${PN}-3.1.14-Makefile.patch
71 + # fix parallel make issues, bug #244884
72 + "${FILESDIR}"/${PN}-3.1.10.2-Makefile.in-parallel-make-fix.patch
73 + "${FILESDIR}"/${PN}-3.1.13-configure.in-fix-PAM-automagick-dep.patch
74 + # Fix parallel make issue (bug #408375)
75 + "${FILESDIR}"/${PN}-3.1.13-parallel-make-fix.patch
76 +)
77 +
78 +src_prepare() {
79 + default
80 + eautoreconf
81 +}
82 +
83 +src_configure() {
84 + local myeconfargs=(
85 + --sysconfdir="${EPREFIX}"/etc/at
86 + --with-jobdir="${EPREFIX}"/var/spool/at/atjobs
87 + --with-atspool="${EPREFIX}"/var/spool/at/atspool
88 + --with-etcdir="${EPREFIX}"/etc/at
89 + --with-daemon_username=at
90 + --with-daemon_groupname=at
91 + $(usex pam '' --without-pam)
92 + $(use_with selinux)
93 + )
94 + econf ${myeconfargs[@]}
95 +}
96 +
97 +src_install() {
98 + default
99 +
100 + newinitd "${FILESDIR}"/atd.rc9 atd
101 + newconfd "${FILESDIR}"/atd.confd atd
102 +
103 + if use pam ; then
104 + newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
105 + fi
106 +
107 + # Preserve existing .SEQ files (bug #386625)
108 + local seq_file="${EROOT}/var/spool/at/atjobs/.SEQ"
109 + if [[ -f "${seq_file}" ]] ; then
110 + einfo "Preserving existing .SEQ file (bug #386625)."
111 + cp -p "${seq_file}" "${ED}"/var/spool/at/atjobs/ || die
112 + fi
113 +
114 + systemd_dounit "${FILESDIR}/atd.service"
115 + keepdir /var/spool/at/atspool
116 +}
117 +
118 +pkg_postinst() {
119 + einfo "Forcing correct permissions on /var/spool/at"
120 + local atspooldir="${EROOT}/var/spool/at"
121 + chown at:at "${atspooldir}/atjobs"
122 + chmod 1770 "${atspooldir}/atjobs"
123 + chown at:at "${atspooldir}/atjobs/.SEQ"
124 + chmod 0600 "${atspooldir}/atjobs/.SEQ"
125 + chown at:at "${atspooldir}/atspool"
126 + chmod 1770 "${atspooldir}/atspool"
127 +}