summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/at/at_3.1.23.bb
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2018-12-05 16:40:46 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-05 22:30:19 +0000
commit9661c03d684578d1f000ec9cd3c550e9aef78551 (patch)
tree2cdc8d868dc1dc0f1b9f15c33532b37a5efa6194 /meta/recipes-extended/at/at_3.1.23.bb
parent8a0fb932e975c63ce5db2a95cb7cc1c3c33967db (diff)
downloadpoky-9661c03d684578d1f000ec9cd3c550e9aef78551.tar.gz
at: upgrade to 3.1.23
The following patches are rebased. fix_parallel_build_error.patch pam.conf.patch (From OE-Core rev: 30fa97ec4c9d0553f1566bc26a6949e93cb6da90) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/at/at_3.1.23.bb')
-rw-r--r--meta/recipes-extended/at/at_3.1.23.bb78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-extended/at/at_3.1.23.bb b/meta/recipes-extended/at/at_3.1.23.bb
new file mode 100644
index 0000000000..b74882d342
--- /dev/null
+++ b/meta/recipes-extended/at/at_3.1.23.bb
@@ -0,0 +1,78 @@
1SUMMARY = "Delayed job execution and batch processing"
2HOMEPAGE = "http://blog.calhariz.com/"
3DESCRIPTION = "At allows for commands to be run at a particular time. Batch will execute commands when \
4the system load levels drop to a particular level."
5SECTION = "base"
6LICENSE = "GPLv2+"
7LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
8DEPENDS = "flex flex-native bison-native \
9 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
10
11PACKAGECONFIG ?= "\
12 ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
13"
14
15PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux,"
16
17RDEPENDS_${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)} \
18"
19
20PAM_DEPS = "libpam libpam-runtime pam-plugin-env pam-plugin-limits"
21
22RCONFLICTS_${PN} = "atd"
23RREPLACES_${PN} = "atd"
24
25SRC_URI = "http://snapshot.debian.org/archive/debian/20180825T090248Z/pool/main/a/${BPN}/${BPN}_${PV}.orig.tar.gz \
26 file://fix_parallel_build_error.patch \
27 file://posixtm.c \
28 file://posixtm.h \
29 file://file_replacement_with_gplv2.patch \
30 file://atd.init \
31 file://atd.service \
32 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \
33 file://makefile-fix-parallel.patch \
34 file://0001-remove-glibc-assumption.patch \
35 "
36
37PAM_SRC_URI = "file://pam.conf.patch \
38 file://configure-add-enable-pam.patch"
39
40SRC_URI[md5sum] = "1cec945506b5ddf1d776c92c315fc581"
41SRC_URI[sha256sum] = "97450aa954aaa8a70218cc8e61a33df9fee9f86527e9f861de302fb7a3c81710"
42
43UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/at/"
44
45EXTRA_OECONF += "ac_cv_path_SENDMAIL=/bin/true \
46 --with-daemon_username=root \
47 --with-daemon_groupname=root \
48 --with-jobdir=/var/spool/at/jobs \
49 --with-atspool=/var/spool/at/spool \
50 ac_cv_header_security_pam_appl_h=${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} "
51
52inherit autotools-brokensep systemd update-rc.d
53
54INITSCRIPT_NAME = "atd"
55INITSCRIPT_PARAMS = "defaults"
56
57SYSTEMD_SERVICE_${PN} = "atd.service"
58
59copy_sources() {
60 cp -f ${WORKDIR}/posixtm.[ch] ${S}
61}
62do_patch[postfuncs] += "copy_sources"
63
64do_install () {
65 oe_runmake -e "IROOT=${D}" install
66
67 install -d ${D}${sysconfdir}/init.d
68 install -m 0755 ${WORKDIR}/atd.init ${D}${sysconfdir}/init.d/atd
69
70 # install systemd unit files
71 install -d ${D}${systemd_unitdir}/system
72 install -m 0644 ${WORKDIR}/atd.service ${D}${systemd_unitdir}/system
73 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/atd.service
74
75 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
76 install -D -m 0644 ${WORKDIR}/${BP}/pam.conf ${D}${sysconfdir}/pam.d/atd
77 fi
78}