2010-11-18 23:44:37 +00:00
|
|
|
SUMMARY = "Delayed job execution and batch processing"
|
|
|
|
DESCRIPTION = "At allows for commands to be run at a particular time. Batch will execute commands when \
|
|
|
|
the system load levels drop to a particular level."
|
2010-09-02 17:04:19 +00:00
|
|
|
SECTION = "base"
|
2010-09-01 04:12:31 +00:00
|
|
|
LICENSE="GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
|
2012-12-01 23:29:05 +00:00
|
|
|
DEPENDS = "flex flex-native \
|
|
|
|
${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
|
|
|
|
|
|
|
|
VIRTUAL-RUNTIME_initscripts ?= "initscripts"
|
|
|
|
RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)} \
|
|
|
|
${VIRTUAL-RUNTIME_initscripts} \
|
|
|
|
"
|
|
|
|
|
2011-08-16 08:32:27 +00:00
|
|
|
PAM_DEPS = "libpam libpam-runtime pam-plugin-env pam-plugin-limits"
|
|
|
|
|
2010-09-02 17:04:19 +00:00
|
|
|
RCONFLICTS_${PN} = "atd"
|
|
|
|
RREPLACES_${PN} = "atd"
|
2012-12-01 23:29:05 +00:00
|
|
|
PR = "r5"
|
2010-09-01 04:12:31 +00:00
|
|
|
|
|
|
|
SRC_URI = "${DEBIAN_MIRROR}/main/a/at/at_${PV}.orig.tar.gz \
|
|
|
|
file://configure.patch \
|
|
|
|
file://use-ldflags.patch \
|
2010-09-02 17:04:19 +00:00
|
|
|
file://fix_parallel_build_error.patch \
|
2010-09-01 04:12:31 +00:00
|
|
|
file://posixtm.c \
|
|
|
|
file://posixtm.h \
|
2010-09-02 17:04:19 +00:00
|
|
|
file://file_replacement_with_gplv2.patch \
|
2011-07-20 02:29:22 +00:00
|
|
|
file://S99at \
|
|
|
|
${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}"
|
|
|
|
|
|
|
|
PAM_SRC_URI = "file://pam.conf.patch \
|
|
|
|
file://configure-add-enable-pam.patch"
|
2010-09-02 17:04:19 +00:00
|
|
|
|
2012-03-14 23:39:08 +00:00
|
|
|
SRC_URI[md5sum] = "1da61af6c29e323abaaf13ee1a8dad79"
|
|
|
|
SRC_URI[sha256sum] = "3a8b90868d615d21a92f4986ea9a823886329af8fae8dd7ab4eed9b273bca072"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2010-09-02 17:04:19 +00:00
|
|
|
EXTRA_OECONF += "ac_cv_path_SENDMAIL=/bin/true \
|
|
|
|
--with-daemon_username=root \
|
|
|
|
--with-daemon_groupname=root \
|
2011-01-26 11:44:15 +00:00
|
|
|
--with-jobdir=/var/spool/at/jobs \
|
2011-07-20 02:29:22 +00:00
|
|
|
--with-atspool=/var/spool/at/spool \
|
|
|
|
${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} "
|
2010-09-02 17:04:19 +00:00
|
|
|
|
|
|
|
inherit autotools
|
2010-09-01 04:12:31 +00:00
|
|
|
|
2012-03-14 23:39:08 +00:00
|
|
|
PARALLEL_MAKE = ""
|
|
|
|
|
2010-09-01 04:12:31 +00:00
|
|
|
do_compile_prepend () {
|
2010-09-02 17:04:19 +00:00
|
|
|
cp -f ${WORKDIR}/posixtm.[ch] ${S}
|
2010-09-01 04:12:31 +00:00
|
|
|
}
|
|
|
|
|
2010-09-02 17:04:19 +00:00
|
|
|
do_install () {
|
2012-08-06 13:35:20 +00:00
|
|
|
oe_runmake -e "IROOT=${D}" install
|
2010-09-02 17:04:19 +00:00
|
|
|
|
|
|
|
install -d ${D}${sysconfdir}/init.d
|
|
|
|
install -d ${D}${sysconfdir}/rcS.d
|
2011-01-26 11:44:15 +00:00
|
|
|
install -m 0755 ${WORKDIR}/S99at ${D}${sysconfdir}/init.d/atd
|
2012-03-14 23:39:08 +00:00
|
|
|
ln -sf ../init.d/atd ${D}${sysconfdir}/rcS.d/S99at
|
2011-07-20 02:29:22 +00:00
|
|
|
|
|
|
|
for feature in ${DISTRO_FEATURES}; do
|
|
|
|
if [ "$feature" = "pam" ]; then
|
2012-04-09 22:06:53 +00:00
|
|
|
install -D -m 0644 ${WORKDIR}/${BP}/pam.conf ${D}${sysconfdir}/pam.d/atd
|
2011-07-20 02:29:22 +00:00
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
2011-01-26 11:44:15 +00:00
|
|
|
}
|