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