Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/at: at-3.1.13-r1.ebuild ChangeLog
Date: Tue, 10 Jan 2012 02:19:22
Message-Id: 20120110021912.7A49C2004C@flycatcher.gentoo.org
1 robbat2 12/01/10 02:19:12
2
3 Modified: ChangeLog
4 Added: at-3.1.13-r1.ebuild
5 Log:
6 Bug #343537: refactor pam.d/atd to use system-services stack.
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.32 sys-process/at/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/at/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/at/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/at/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-process/at/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -p -w -b -B -u -u -r1.31 -r1.32
23 --- ChangeLog 31 Oct 2011 01:17:19 -0000 1.31
24 +++ ChangeLog 10 Jan 2012 02:19:12 -0000 1.32
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-process/at
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-process/at/ChangeLog,v 1.31 2011/10/31 01:17:19 polynomial-c Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-process/at/ChangeLog,v 1.32 2012/01/10 02:19:12 robbat2 Exp $
31 +
32 +*at-3.1.13-r1 (10 Jan 2012)
33 +
34 + 10 Jan 2012; Robin H. Johnson <robbat2@g.o> +at-3.1.13-r1.ebuild,
35 + +files/at.pamd-3.1.13-r1:
36 + Bug #343537: refactor pam.d/atd to use system-services stack.
37
38 31 Oct 2011; Lars Wendler <polynomial-c@g.o> at-3.1.10.2-r1.ebuild,
39 at-3.1.10.2-r2.ebuild, at-3.1.13.ebuild:
40
41
42
43 1.1 sys-process/at/at-3.1.13-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/at/at-3.1.13-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/at/at-3.1.13-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: at-3.1.13-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-process/at/at-3.1.13-r1.ebuild,v 1.1 2012/01/10 02:19:12 robbat2 Exp $
53
54 EAPI=4
55
56 inherit autotools eutils flag-o-matic pam
57
58 DESCRIPTION="Queues jobs for later execution"
59 HOMEPAGE="http://packages.qa.debian.org/a/at.html"
60 SRC_URI="mirror://debian/pool/main/a/at/${PN}_${PV}.orig.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
65 IUSE="pam"
66
67 DEPEND="virtual/mta
68 >=sys-devel/autoconf-2.64
69 >=sys-devel/flex-2.5.4a
70 pam? ( virtual/pam )"
71 RDEPEND="virtual/mta
72 virtual/logger"
73
74 pkg_setup() {
75 enewgroup at 25
76 enewuser at 25 -1 /var/spool/at/atjobs at
77 }
78
79 src_prepare() {
80 epatch "${FILESDIR}"/${PN}-3.1.8-more-deny.patch
81 epatch "${FILESDIR}"/${PN}-3.1.13-Makefile.patch
82 # fix parallel make issues, bug #244884
83 epatch "${FILESDIR}"/${PN}-3.1.10.2-Makefile.in-parallel-make-fix.patch
84 epatch "${FILESDIR}"/${P}-configure.in-fix-PAM-automagick-dep.patch
85
86 eautoconf
87 }
88
89 src_configure() {
90 use pam || my_conf="--without-pam"
91 econf \
92 --sysconfdir=/etc/at \
93 --with-jobdir=/var/spool/at/atjobs \
94 --with-atspool=/var/spool/at/atspool \
95 --with-etcdir=/etc/at \
96 --with-daemon_username=at \
97 --with-daemon_groupname=at \
98 ${my_conf}
99 }
100
101 src_install() {
102 make install IROOT="${D}" || die
103
104 newinitd "${FILESDIR}"/atd.rc6 atd
105 newconfd "${FILESDIR}"/atd.confd atd
106 newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
107
108 # Preserve existing .SEQ files (bug #386625)
109 local seq_file="${ROOT}/var/spool/at/atjobs/.SEQ"
110 if [ -f "${seq_file}" ] ; then
111 einfo "Preserving existing .SEQ file (bug #386625)."
112 cp -p "${seq_file}" "${D}"/var/spool/at/atjobs/ || die
113 fi
114 }
115
116 pkg_postinst() {
117 einfo "Forcing correct permissions on /var/spool/at"
118 chown at:at "${ROOT}/var/spool/at/atjobs"
119 chmod 1770 "${ROOT}/var/spool/at/atjobs"
120 chown at:at "${ROOT}/var/spool/at/atjobs/.SEQ"
121 chmod 0600 "${ROOT}/var/spool/at/atjobs/.SEQ"
122 chown at:at "${ROOT}/var/spool/at/atspool"
123 chmod 1770 "${ROOT}/var/spool/at/atspool"
124 }