diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2018-12-05 16:40:46 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-05 22:30:19 +0000 |
commit | 9661c03d684578d1f000ec9cd3c550e9aef78551 (patch) | |
tree | 2cdc8d868dc1dc0f1b9f15c33532b37a5efa6194 /meta/recipes-extended/at/at_3.1.23.bb | |
parent | 8a0fb932e975c63ce5db2a95cb7cc1c3c33967db (diff) | |
download | poky-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.bb | 78 |
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 @@ | |||
1 | SUMMARY = "Delayed job execution and batch processing" | ||
2 | HOMEPAGE = "http://blog.calhariz.com/" | ||
3 | DESCRIPTION = "At allows for commands to be run at a particular time. Batch will execute commands when \ | ||
4 | the system load levels drop to a particular level." | ||
5 | SECTION = "base" | ||
6 | LICENSE = "GPLv2+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4" | ||
8 | DEPENDS = "flex flex-native bison-native \ | ||
9 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
10 | |||
11 | PACKAGECONFIG ?= "\ | ||
12 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ | ||
13 | " | ||
14 | |||
15 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux," | ||
16 | |||
17 | RDEPENDS_${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)} \ | ||
18 | " | ||
19 | |||
20 | PAM_DEPS = "libpam libpam-runtime pam-plugin-env pam-plugin-limits" | ||
21 | |||
22 | RCONFLICTS_${PN} = "atd" | ||
23 | RREPLACES_${PN} = "atd" | ||
24 | |||
25 | SRC_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 | |||
37 | PAM_SRC_URI = "file://pam.conf.patch \ | ||
38 | file://configure-add-enable-pam.patch" | ||
39 | |||
40 | SRC_URI[md5sum] = "1cec945506b5ddf1d776c92c315fc581" | ||
41 | SRC_URI[sha256sum] = "97450aa954aaa8a70218cc8e61a33df9fee9f86527e9f861de302fb7a3c81710" | ||
42 | |||
43 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/at/" | ||
44 | |||
45 | EXTRA_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 | |||
52 | inherit autotools-brokensep systemd update-rc.d | ||
53 | |||
54 | INITSCRIPT_NAME = "atd" | ||
55 | INITSCRIPT_PARAMS = "defaults" | ||
56 | |||
57 | SYSTEMD_SERVICE_${PN} = "atd.service" | ||
58 | |||
59 | copy_sources() { | ||
60 | cp -f ${WORKDIR}/posixtm.[ch] ${S} | ||
61 | } | ||
62 | do_patch[postfuncs] += "copy_sources" | ||
63 | |||
64 | do_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 | } | ||