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: Mon, 03 Sep 2018 12:39:29
Message-Id: 1535978357.253b83b334121939ee2017309356095d080935cf.polynomial-c@gentoo
1 commit: 253b83b334121939ee2017309356095d080935cf
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 3 12:38:15 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 3 12:39:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=253b83b3
7
8 sys-process/at: Bump to version 3.1.23
9
10 Package-Manager: Portage-2.3.48, Repoman-2.3.10
11
12 sys-process/at/Manifest | 1 +
13 sys-process/at/at-3.1.23.ebuild | 89 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 90 insertions(+)
15
16 diff --git a/sys-process/at/Manifest b/sys-process/at/Manifest
17 index 1ffc8d52d87..2fa904fc7b1 100644
18 --- a/sys-process/at/Manifest
19 +++ b/sys-process/at/Manifest
20 @@ -1,2 +1,3 @@
21 DIST at_3.1.18.orig.tar.gz 124499 BLAKE2B b7c65d33fea3d3345ec7d1eb82652c787cfa86520bdd8ac0329baad5cd19cf85ffefe695e86480d38833abe131da8e9c2ea8685699bcfe8baafb3e2cfa57502e SHA512 5ec7512663461ffa1922cef0d99c3cc4882defbea7b1ab855b05bb83e9d3817535db73db74413bcc8af005c956032ec3dc7c83ac16fde96bb315094dae654042
22 DIST at_3.1.20.orig.tar.gz 127666 BLAKE2B 8fd0350859e59e61c72f6c67c174ce05bb9c6cffa77792ded11be43eb24d6d1cf2f9f32719657b937e5a11ba8eabefa0e94d5254f05ab79a3daa40c30af97bd8 SHA512 20a13512a86f988728f590712f5bf8a23f4dc44f4b42521a4dd4783dc1ba7ac2016ee87b4c2c14f2346a5839168a983d99c3195e947014aea3096a3db16d176f
23 +DIST at_3.1.23.orig.tar.gz 126284 BLAKE2B b2af9dfa4ed87ee93489b98acae6b7eb005d6db7e2401ec7d4d21353af636b232d57e92e4cd6e81f52115aa9d29fadf440809a9d77cb1eb5d40d42ec7fe640b0 SHA512 ee5cf5abf32cf1e89746e427d1cc20005ef49fad47db55512c90042a77e86b2c15f5de029c79573bc86ce4aead6ed2d561b89812510aadbc5763f9288b467cfd
24
25 diff --git a/sys-process/at/at-3.1.23.ebuild b/sys-process/at/at-3.1.23.ebuild
26 new file mode 100644
27 index 00000000000..66481a8ffd5
28 --- /dev/null
29 +++ b/sys-process/at/at-3.1.23.ebuild
30 @@ -0,0 +1,89 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit autotools eutils flag-o-matic pam user systemd
37 +
38 +DESCRIPTION="Queues jobs for later execution"
39 +HOMEPAGE="https://packages.qa.debian.org/a/at.html"
40 +SRC_URI="mirror://debian/pool/main/a/at/${PN}_${PV}.orig.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
45 +IUSE="pam selinux"
46 +
47 +DEPEND="virtual/mta
48 + >=sys-devel/autoconf-2.64
49 + sys-devel/bison
50 + >=sys-devel/flex-2.5.4a
51 + pam? ( virtual/pam )"
52 +RDEPEND="virtual/mta
53 + virtual/logger
54 + selinux? ( sec-policy/selinux-at )"
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/${PN}-3.1.8-more-deny.patch
58 + "${FILESDIR}"/${PN}-3.1.14-Makefile.patch
59 + # fix parallel make issues, bug #244884
60 + "${FILESDIR}"/${PN}-3.1.10.2-Makefile.in-parallel-make-fix.patch
61 + "${FILESDIR}"/${PN}-3.1.13-configure.in-fix-PAM-automagick-dep.patch
62 + # Fix parallel make issue (bug #408375)
63 + "${FILESDIR}"/${PN}-3.1.13-parallel-make-fix.patch
64 + "${FILESDIR}"/${PN}-3.1.13-getloadavg.patch
65 +)
66 +
67 +pkg_setup() {
68 + # Cannot be moved into pkg_preinst!
69 + enewgroup at 25
70 + enewuser at 25 -1 /var/spool/at/atjobs at
71 +}
72 +
73 +src_prepare() {
74 + default
75 + eautoreconf
76 +}
77 +
78 +src_configure() {
79 + local my_conf=(
80 + --sysconfdir=/etc/at
81 + --with-jobdir=/var/spool/at/atjobs
82 + --with-atspool=/var/spool/at/atspool
83 + --with-etcdir=/etc/at
84 + --with-daemon_username=at
85 + --with-daemon_groupname=at
86 + $(usex pam '' --without-pam)
87 + $(use_with selinux)
88 + )
89 + econf ${my_conf[@]}
90 +}
91 +
92 +src_install() {
93 + emake install IROOT="${D}"
94 +
95 + newinitd "${FILESDIR}"/atd.rc8 atd
96 + newconfd "${FILESDIR}"/atd.confd atd
97 + newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
98 +
99 + # Preserve existing .SEQ files (bug #386625)
100 + local seq_file="${EROOT}/var/spool/at/atjobs/.SEQ"
101 + if [ -f "${seq_file}" ] ; then
102 + einfo "Preserving existing .SEQ file (bug #386625)."
103 + cp -p "${seq_file}" "${ED}"/var/spool/at/atjobs/ || die
104 + fi
105 +
106 + systemd_dounit "${FILESDIR}/atd.service"
107 + keepdir /var/spool/at/atspool
108 +}
109 +
110 +pkg_postinst() {
111 + einfo "Forcing correct permissions on /var/spool/at"
112 + local atspooldir="${EROOT}/var/spool/at"
113 + chown at:at "${atspooldir}/atjobs"
114 + chmod 1770 "${atspooldir}/atjobs"
115 + chown at:at "${atspooldir}/atjobs/.SEQ"
116 + chmod 0600 "${atspooldir}/atjobs/.SEQ"
117 + chown at:at "${atspooldir}/atspool"
118 + chmod 1770 "${atspooldir}/atspool"
119 +}