1 |
commit: 15a3889f8d8c3d268c7f035bdd6f61e47fb1dda5 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 11:38:58 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 11:40:20 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15a3889f |
7 |
|
8 |
sys-process/at: Revbump to EAPI-6 and fixed init script shebang |
9 |
|
10 |
bug #573846 |
11 |
|
12 |
Package-Manager: portage-2.2.28 |
13 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
14 |
|
15 |
sys-process/at/at-3.1.18-r1.ebuild | 90 +++++++++++++++++++++++++++ |
16 |
sys-process/at/files/at-3.1.8-more-deny.patch | 4 +- |
17 |
sys-process/at/files/atd.rc8 | 4 +- |
18 |
3 files changed, 94 insertions(+), 4 deletions(-) |
19 |
|
20 |
diff --git a/sys-process/at/at-3.1.18-r1.ebuild b/sys-process/at/at-3.1.18-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 0000000..6ddf368 |
23 |
--- /dev/null |
24 |
+++ b/sys-process/at/at-3.1.18-r1.ebuild |
25 |
@@ -0,0 +1,90 @@ |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI=6 |
31 |
+ |
32 |
+inherit autotools eutils flag-o-matic pam user systemd |
33 |
+ |
34 |
+DESCRIPTION="Queues jobs for later execution" |
35 |
+HOMEPAGE="http://packages.qa.debian.org/a/at.html" |
36 |
+SRC_URI="mirror://debian/pool/main/a/at/${PN}_${PV}.orig.tar.gz" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
41 |
+IUSE="pam selinux" |
42 |
+ |
43 |
+DEPEND="virtual/mta |
44 |
+ >=sys-devel/autoconf-2.64 |
45 |
+ sys-devel/bison |
46 |
+ >=sys-devel/flex-2.5.4a |
47 |
+ pam? ( virtual/pam )" |
48 |
+RDEPEND="virtual/mta |
49 |
+ virtual/logger |
50 |
+ selinux? ( sec-policy/selinux-at )" |
51 |
+ |
52 |
+S="${WORKDIR}" |
53 |
+ |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}"/${PN}-3.1.8-more-deny.patch |
56 |
+ "${FILESDIR}"/${PN}-3.1.14-Makefile.patch |
57 |
+ # fix parallel make issues, bug #244884 |
58 |
+ "${FILESDIR}"/${PN}-3.1.10.2-Makefile.in-parallel-make-fix.patch |
59 |
+ "${FILESDIR}"/${PN}-3.1.13-configure.in-fix-PAM-automagick-dep.patch |
60 |
+ # Fix parallel make issue (bug #408375) |
61 |
+ "${FILESDIR}"/${PN}-3.1.13-parallel-make-fix.patch |
62 |
+ "${FILESDIR}"/${PN}-3.1.13-getloadavg.patch |
63 |
+) |
64 |
+ |
65 |
+pkg_setup() { |
66 |
+ enewgroup at 25 |
67 |
+ enewuser at 25 -1 /var/spool/at/atjobs at |
68 |
+} |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ eautoconf |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ local myconf=() |
77 |
+ use pam || my_conf+=( --without-pam ) |
78 |
+ use selinux && my_conf+=( --with-selinux ) |
79 |
+ econf \ |
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 |
+ ${my_conf[@]} |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ emake install IROOT="${D}" |
91 |
+ |
92 |
+ newinitd "${FILESDIR}"/atd.rc8 atd |
93 |
+ newconfd "${FILESDIR}"/atd.confd atd |
94 |
+ newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd |
95 |
+ |
96 |
+ # Preserve existing .SEQ files (bug #386625) |
97 |
+ local seq_file="${ROOT}/var/spool/at/atjobs/.SEQ" |
98 |
+ if [ -f "${seq_file}" ] ; then |
99 |
+ einfo "Preserving existing .SEQ file (bug #386625)." |
100 |
+ cp -p "${seq_file}" "${D}"/var/spool/at/atjobs/ || die |
101 |
+ fi |
102 |
+ |
103 |
+ systemd_dounit "${FILESDIR}/atd.service" |
104 |
+} |
105 |
+ |
106 |
+pkg_postinst() { |
107 |
+ einfo "Forcing correct permissions on /var/spool/at" |
108 |
+ local atspooldir="${ROOT}/var/spool/at" |
109 |
+ chown at:at "${atspooldir}/atjobs" |
110 |
+ chmod 1770 "${atspooldir}/atjobs" |
111 |
+ chown at:at "${atspooldir}/atjobs/.SEQ" |
112 |
+ chmod 0600 "${atspooldir}/atjobs/.SEQ" |
113 |
+ chown at:at "${atspooldir}/atspool" |
114 |
+ chmod 1770 "${atspooldir}/atspool" |
115 |
+} |
116 |
|
117 |
diff --git a/sys-process/at/files/at-3.1.8-more-deny.patch b/sys-process/at/files/at-3.1.8-more-deny.patch |
118 |
index 006713b..0a9a7eb 100644 |
119 |
--- a/sys-process/at/files/at-3.1.8-more-deny.patch |
120 |
+++ b/sys-process/at/files/at-3.1.8-more-deny.patch |
121 |
@@ -1,5 +1,5 @@ |
122 |
---- at.deny |
123 |
-+++ at.deny |
124 |
+--- a/at.deny |
125 |
++++ b/at.deny |
126 |
@@ -10,6 +10,8 @@ |
127 |
lp |
128 |
mail |
129 |
|
130 |
diff --git a/sys-process/at/files/atd.rc8 b/sys-process/at/files/atd.rc8 |
131 |
index 1b01d93..59cfd3d 100644 |
132 |
--- a/sys-process/at/files/atd.rc8 |
133 |
+++ b/sys-process/at/files/atd.rc8 |
134 |
@@ -1,5 +1,5 @@ |
135 |
-#!/sbin/runscript |
136 |
-# Copyright 1999-2014 Gentoo Foundation |
137 |
+#!/sbin/openrc-run |
138 |
+# Copyright 1999-2016 Gentoo Foundation |
139 |
# Distributed under the terms of the GNU General Public License v2 |
140 |
# $Id$ |