summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2009-02-04 20:16:32 +0000
committerThilo Bangert <bangert@gentoo.org>2009-02-04 20:16:32 +0000
commitcae34dac2619c41f4015f637d21dd996031018ad (patch)
tree1f2a74a1b08df2afd6bea56d87da310336db2a91 /sys-process/at
parentVersion bump, patches are upstream (bug #257443). (diff)
downloadgentoo-2-cae34dac2619c41f4015f637d21dd996031018ad.tar.gz
gentoo-2-cae34dac2619c41f4015f637d21dd996031018ad.tar.bz2
gentoo-2-cae34dac2619c41f4015f637d21dd996031018ad.zip
use a working pamd file - force directory permission on spool directory
(Portage version: 2.2_rc20/cvs/Linux 2.6.28-gentoo i686)
Diffstat (limited to 'sys-process/at')
-rw-r--r--sys-process/at/ChangeLog8
-rw-r--r--sys-process/at/at-3.1.10.2-r1.ebuild74
-rw-r--r--sys-process/at/files/at.pamd8
3 files changed, 85 insertions, 5 deletions
diff --git a/sys-process/at/ChangeLog b/sys-process/at/ChangeLog
index d7b9c3004df3..046bacbafbbb 100644
--- a/sys-process/at/ChangeLog
+++ b/sys-process/at/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-process/at
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/at/ChangeLog,v 1.14 2009/01/31 19:13:33 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/at/ChangeLog,v 1.15 2009/02/04 20:16:32 bangert Exp $
+
+*at-3.1.10.2-r1 (04 Feb 2009)
+
+ 04 Feb 2009; Thilo Bangert <bangert@gentoo.org> files/at.pamd,
+ +at-3.1.10.2-r1.ebuild:
+ use a working pamd file - force directory permission on spool directory
*at-3.1.10.2 (31 Jan 2009)
diff --git a/sys-process/at/at-3.1.10.2-r1.ebuild b/sys-process/at/at-3.1.10.2-r1.ebuild
new file mode 100644
index 000000000000..84cc8d9718f0
--- /dev/null
+++ b/sys-process/at/at-3.1.10.2-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/at/at-3.1.10.2-r1.ebuild,v 1.1 2009/02/04 20:16:32 bangert Exp $
+
+inherit eutils flag-o-matic autotools pam
+
+DESCRIPTION="Queues jobs for later execution"
+HOMEPAGE="http://packages.qa.debian.org/a/at.html"
+SRC_URI="mirror://debian/pool/main/a/at/at_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pam"
+
+DEPEND="virtual/mta
+ >=sys-devel/flex-2.5.4a
+ pam? ( virtual/pam )"
+RDEPEND="virtual/mta
+ virtual/logger"
+
+pkg_setup() {
+ enewgroup at 25
+ enewuser at 25 -1 /var/spool/at/atjobs at
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PN}-3.1.8-more-deny.patch
+ epatch "${FILESDIR}"/${PN}-3.1.10.1-Makefile.patch
+ # fix parallel make issues, bug #244884
+ epatch "${FILESDIR}"/${P}-Makefile.in-parallel-make-fix.patch
+ epatch "${FILESDIR}"/${P}-configure.in-fix-PAM-automagick-dep.patch
+
+ # fixing version string shown on "at -V" - bug #252970
+ sed -e "/^VERSION=/s:3\.1\.9:${PV}:" -i "${S}"/configure.in \
+ || die "sed configure.in failed"
+ eautoconf
+}
+
+src_compile() {
+ use pam || my_conf="--without-pam"
+ econf \
+ --sysconfdir=/etc/at \
+ --with-jobdir=/var/spool/at/atjobs \
+ --with-atspool=/var/spool/at/atspool \
+ --with-etcdir=/etc/at \
+ --with-daemon_username=at \
+ --with-daemon_groupname=at \
+ ${my_conf} \
+ || die "configure failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ make install IROOT="${D}" || die
+
+ newinitd "${FILESDIR}"/atd.rc6 atd
+ newpamd "${FILESDIR}"/at.pamd atd
+ prepalldocs
+}
+
+pkg_postinst() {
+ einfo "Forcing correct permissions on /var/spool/at"
+ chown at:at "${ROOT}/var/spool/at/atjobs"
+ chmod 1770 "${ROOT}/var/spool/at/atjobs"
+ chown at:at "${ROOT}/var/spool/at/atjobs/.SEQ"
+ chmod 0600 "${ROOT}/var/spool/at/atjobs/.SEQ"
+ chown at:at "${ROOT}/var/spool/at/atspool"
+ chmod 1770 "${ROOT}/var/spool/at/atspool"
+}
diff --git a/sys-process/at/files/at.pamd b/sys-process/at/files/at.pamd
index 2d5d00e74540..e3b4b72db042 100644
--- a/sys-process/at/files/at.pamd
+++ b/sys-process/at/files/at.pamd
@@ -3,8 +3,8 @@
#
auth required pam_env.so
-@include common-auth
-@include common-account
-@include common-session
-session required pam_limits.so
+auth include system-auth
+account include system-auth
+session required pam_limits.so
+session include system-auth