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: Fri, 01 Jan 2016 20:01:57
Message-Id: 1451678504.d9c5c2f0541df9a6a61ae93268772b24c71f5f60.polynomial-c@gentoo
1 commit: d9c5c2f0541df9a6a61ae93268772b24c71f5f60
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 20:00:19 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 20:01:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9c5c2f0
7
8 sys-process/at: Bump to version 3.1.18 (bug #568810).
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-process/at/Manifest | 1 +
14 sys-process/at/at-3.1.18.ebuild | 86 +++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 87 insertions(+)
16
17 diff --git a/sys-process/at/Manifest b/sys-process/at/Manifest
18 index 9414db5..4dfad89 100644
19 --- a/sys-process/at/Manifest
20 +++ b/sys-process/at/Manifest
21 @@ -1,2 +1,3 @@
22 DIST at_3.1.14.orig.tar.gz 122865 SHA256 cd092bf05d29c25b286f55a960ce8b8c3c5beb571d86ed8eb1dfb3b61291b3ae SHA512 06c0e66062a4e96a4a86c7a01d4ec93d47a1a40f7bc0649b3ddb1775b47a2d32d5e6ec9f9f4bdd044ed72e8c327f85128b19f7dc5e467d406d2d106a6952f7b2 WHIRLPOOL 3c6ca09e46531a12eda7f99710cf461f6831c3a1fd48d67b24e631362149b760b4906852b3bd5f6c03cfae6ce0f21eb5bd386ec7f8e3e1ea1cf3d960577a6036
23 DIST at_3.1.16.orig.tar.gz 123174 SHA256 cb9af59c6a54edce9536ba629841055409d1f89d8ae26494727a97141fb4d5c1 SHA512 d63132536d01153c4b38499b316c8a7980cd47a75b00fb5edc6e41f24345f97b55b20e5801d50f1bde2f337acc7bdb7e318456c241415e7b7bddee7e51e68ad5 WHIRLPOOL 7ad8a15e53afc915d0cf52b1b42d810876538317665e05232a3b898244558cdb76cad727e2479db3437249e3e63dab2c824c30bb94bd28e6f65edbd5848d2e2c
24 +DIST at_3.1.18.orig.tar.gz 124499 SHA256 dbd5c8cb8edd53ef467363c3af0391c08769f1dbbd4d5002c59a4cd4cac11d52 SHA512 5ec7512663461ffa1922cef0d99c3cc4882defbea7b1ab855b05bb83e9d3817535db73db74413bcc8af005c956032ec3dc7c83ac16fde96bb315094dae654042 WHIRLPOOL ba2c9d09605cc66ce2a01113700d45c3ce37dddbd244928dca836c570450aaf6aceba15c834dca4e844bb27c9a74cc33eac38a1cbe0a1f5bb7c55ee42bd38424
25
26 diff --git a/sys-process/at/at-3.1.18.ebuild b/sys-process/at/at-3.1.18.ebuild
27 new file mode 100644
28 index 0000000..3052626
29 --- /dev/null
30 +++ b/sys-process/at/at-3.1.18.ebuild
31 @@ -0,0 +1,86 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +inherit autotools eutils flag-o-matic pam user systemd
39 +
40 +DESCRIPTION="Queues jobs for later execution"
41 +HOMEPAGE="http://packages.qa.debian.org/a/at.html"
42 +SRC_URI="mirror://debian/pool/main/a/at/${PN}_${PV}.orig.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
47 +IUSE="pam selinux"
48 +
49 +DEPEND="virtual/mta
50 + >=sys-devel/autoconf-2.64
51 + sys-devel/bison
52 + >=sys-devel/flex-2.5.4a
53 + pam? ( virtual/pam )"
54 +RDEPEND="virtual/mta
55 + virtual/logger
56 + selinux? ( sec-policy/selinux-at )"
57 +
58 +S="${WORKDIR}"
59 +
60 +pkg_setup() {
61 + enewgroup at 25
62 + enewuser at 25 -1 /var/spool/at/atjobs at
63 +}
64 +
65 +src_prepare() {
66 + epatch "${FILESDIR}"/${PN}-3.1.8-more-deny.patch
67 + epatch "${FILESDIR}"/${PN}-3.1.14-Makefile.patch
68 + # fix parallel make issues, bug #244884
69 + epatch "${FILESDIR}"/${PN}-3.1.10.2-Makefile.in-parallel-make-fix.patch
70 + epatch "${FILESDIR}"/${PN}-3.1.13-configure.in-fix-PAM-automagick-dep.patch
71 + # Fix parallel make issue (bug #408375)
72 + epatch "${FILESDIR}"/${PN}-3.1.13-parallel-make-fix.patch
73 + epatch "${FILESDIR}"/${PN}-3.1.13-getloadavg.patch
74 +
75 + eautoconf
76 +}
77 +
78 +src_configure() {
79 + use pam || my_conf="--without-pam"
80 + use selinux && my_conf+= "--with-selinux"
81 + econf \
82 + --sysconfdir=/etc/at \
83 + --with-jobdir=/var/spool/at/atjobs \
84 + --with-atspool=/var/spool/at/atspool \
85 + --with-etcdir=/etc/at \
86 + --with-daemon_username=at \
87 + --with-daemon_groupname=at \
88 + ${my_conf}
89 +}
90 +
91 +src_install() {
92 + emake install IROOT="${D}"
93 +
94 + newinitd "${FILESDIR}"/atd.rc8 atd
95 + newconfd "${FILESDIR}"/atd.confd atd
96 + newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
97 +
98 + # Preserve existing .SEQ files (bug #386625)
99 + local seq_file="${ROOT}/var/spool/at/atjobs/.SEQ"
100 + if [ -f "${seq_file}" ] ; then
101 + einfo "Preserving existing .SEQ file (bug #386625)."
102 + cp -p "${seq_file}" "${D}"/var/spool/at/atjobs/ || die
103 + fi
104 +
105 + systemd_dounit "${FILESDIR}/atd.service"
106 +}
107 +
108 +pkg_postinst() {
109 + einfo "Forcing correct permissions on /var/spool/at"
110 + local atspooldir="${ROOT}/var/spool/at"
111 + chown at:at "${atspooldir}/atjobs"
112 + chmod 1770 "${atspooldir}/atjobs"
113 + chown at:at "${atspooldir}/atjobs/.SEQ"
114 + chmod 0600 "${atspooldir}/atjobs/.SEQ"
115 + chown at:at "${atspooldir}/atspool"
116 + chmod 1770 "${atspooldir}/atspool"
117 +}