sys-process/at: Bump to version 3.2.1
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 15 Oct 2019 11:12:44 +0000 (13:12 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 15 Oct 2019 11:14:19 +0000 (13:14 +0200)
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-process/at/Manifest
sys-process/at/at-3.2.1.ebuild [new file with mode: 0644]

index 2fa904fc7b1b5933823e2b15a81ff6eb41d70149..3d56327b047831f9d86d42fa4011af84a7e0c487 100644 (file)
@@ -1,3 +1,4 @@
 DIST at_3.1.18.orig.tar.gz 124499 BLAKE2B b7c65d33fea3d3345ec7d1eb82652c787cfa86520bdd8ac0329baad5cd19cf85ffefe695e86480d38833abe131da8e9c2ea8685699bcfe8baafb3e2cfa57502e SHA512 5ec7512663461ffa1922cef0d99c3cc4882defbea7b1ab855b05bb83e9d3817535db73db74413bcc8af005c956032ec3dc7c83ac16fde96bb315094dae654042
 DIST at_3.1.20.orig.tar.gz 127666 BLAKE2B 8fd0350859e59e61c72f6c67c174ce05bb9c6cffa77792ded11be43eb24d6d1cf2f9f32719657b937e5a11ba8eabefa0e94d5254f05ab79a3daa40c30af97bd8 SHA512 20a13512a86f988728f590712f5bf8a23f4dc44f4b42521a4dd4783dc1ba7ac2016ee87b4c2c14f2346a5839168a983d99c3195e947014aea3096a3db16d176f
 DIST at_3.1.23.orig.tar.gz 126284 BLAKE2B b2af9dfa4ed87ee93489b98acae6b7eb005d6db7e2401ec7d4d21353af636b232d57e92e4cd6e81f52115aa9d29fadf440809a9d77cb1eb5d40d42ec7fe640b0 SHA512 ee5cf5abf32cf1e89746e427d1cc20005ef49fad47db55512c90042a77e86b2c15f5de029c79573bc86ce4aead6ed2d561b89812510aadbc5763f9288b467cfd
+DIST at_3.2.1.orig.tar.gz 127577 BLAKE2B 4e8f4aa889075dcede894062b2926afd7892ef15d4ca5bf855b699d1dab9f49a56fd5bd8da376b178032e70cdef72eba2a7d9d6da577982773351633ce85d003 SHA512 8109b2acf220ffc14ea78e7d5671507e8cad41a163c1d7f96de18aae05c8617071c6306e04446450190f492a65ca31f51ed040fba5719b67625a58f738fc9c9e
diff --git a/sys-process/at/at-3.2.1.ebuild b/sys-process/at/at-3.2.1.ebuild
new file mode 100644 (file)
index 0000000..21c91df
--- /dev/null
@@ -0,0 +1,92 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools eutils flag-o-matic pam user systemd
+
+MY_P="${PN}_${PV}"
+
+DESCRIPTION="Queues jobs for later execution"
+HOMEPAGE="http://blog.calhariz.com/tag/at https://packages.qa.debian.org/a/at.html"
+SRC_URI="http://software.calhariz.com/at/${MY_P}.orig.tar.gz
+       mirror://debian/pool/main/a/at/${MY_P}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pam selinux"
+
+DEPEND="virtual/mta
+       >=sys-devel/autoconf-2.64
+       sys-devel/bison
+       >=sys-devel/flex-2.5.4a
+       pam? ( sys-libs/pam )"
+RDEPEND="virtual/mta
+       virtual/logger
+       selinux? ( sec-policy/selinux-at )"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.1.8-more-deny.patch
+       "${FILESDIR}"/${PN}-3.1.14-Makefile.patch
+       # fix parallel make issues, bug #244884
+       "${FILESDIR}"/${PN}-3.1.10.2-Makefile.in-parallel-make-fix.patch
+       "${FILESDIR}"/${PN}-3.1.13-configure.in-fix-PAM-automagick-dep.patch
+       # Fix parallel make issue (bug #408375)
+       "${FILESDIR}"/${PN}-3.1.13-parallel-make-fix.patch
+       "${FILESDIR}"/${PN}-3.1.13-getloadavg.patch
+)
+
+pkg_setup() {
+       # Cannot be moved into pkg_preinst!
+       enewgroup at 25
+       enewuser at 25 -1 /var/spool/at/atjobs at
+}
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       local my_conf=(
+               --sysconfdir="${EPREFIX}"/etc/at
+               --with-jobdir="${EPREFIX}"/var/spool/at/atjobs
+               --with-atspool="${EPREFIX}"/var/spool/at/atspool
+               --with-etcdir="${EPREFIX}"/etc/at
+               --with-daemon_username=at
+               --with-daemon_groupname=at
+               $(usex pam '' --without-pam)
+               $(use_with selinux)
+       )
+       econf ${my_conf[@]}
+}
+
+src_install() {
+       emake install IROOT="${D}"
+
+       newinitd "${FILESDIR}"/atd.rc8 atd
+       newconfd "${FILESDIR}"/atd.confd atd
+       newpamd "${FILESDIR}"/at.pamd-3.1.13-r1 atd
+
+       # Preserve existing .SEQ files (bug #386625)
+       local seq_file="${EROOT}/var/spool/at/atjobs/.SEQ"
+       if [[ -f "${seq_file}" ]] ; then
+               einfo "Preserving existing .SEQ file (bug #386625)."
+               cp -p "${seq_file}" "${ED}"/var/spool/at/atjobs/ || die
+       fi
+
+       systemd_dounit "${FILESDIR}/atd.service"
+       keepdir /var/spool/at/atspool
+}
+
+pkg_postinst() {
+       einfo "Forcing correct permissions on /var/spool/at"
+       local atspooldir="${EROOT}/var/spool/at"
+       chown at:at "${atspooldir}/atjobs"
+       chmod 1770  "${atspooldir}/atjobs"
+       chown at:at "${atspooldir}/atjobs/.SEQ"
+       chmod 0600  "${atspooldir}/atjobs/.SEQ"
+       chown at:at "${atspooldir}/atspool"
+       chmod 1770  "${atspooldir}/atspool"
+}