diff options
Diffstat (limited to 'packages/cortexa57-poky-linux/cronie')
11 files changed, 239 insertions, 0 deletions
diff --git a/packages/cortexa57-poky-linux/cronie/cronie-dbg/latest b/packages/cortexa57-poky-linux/cronie/cronie-dbg/latest new file mode 100644 index 00000000000..b8b374d1300 --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie-dbg/latest @@ -0,0 +1,8 @@ +PV = 1.6.1 +PR = r0 +RPROVIDES = +RDEPENDS = +RRECOMMENDS = glibc-dbg libpam-dbg +PKGSIZE = 426360 +FILES = /usr/lib/debug /usr/lib/debug-static /usr/src/debug +FILELIST = /usr/bin/.debug/cronnext /usr/bin/.debug/crontab /usr/sbin/.debug/crond diff --git a/packages/cortexa57-poky-linux/cronie/cronie-dev/latest b/packages/cortexa57-poky-linux/cronie/cronie-dev/latest new file mode 100644 index 00000000000..360241adf63 --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie-dev/latest @@ -0,0 +1,8 @@ +PV = 1.6.1 +PR = r0 +RPROVIDES = +RDEPENDS = +RRECOMMENDS = base-files-dev base-passwd-dev cronie (= 1.6.1-r0) glibc-dev libpam-dev libpam-runtime-dev pam-plugin-access-dev pam-plugin-loginuid-dev shadow-dev shadow-sysroot-dev +PKGSIZE = 0 +FILES = /usr/include /lib/lib*.so /usr/lib/lib*.so /usr/lib/*.la /usr/lib/*.o /usr/lib/pkgconfig /usr/share/pkgconfig /usr/share/aclocal /lib/*.o /usr/lib/cronie/*.la /lib/*.la /usr/lib/cmake /usr/share/cmake +FILELIST = diff --git a/packages/cortexa57-poky-linux/cronie/cronie-doc/latest b/packages/cortexa57-poky-linux/cronie/cronie-doc/latest new file mode 100644 index 00000000000..672bedc440c --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie-doc/latest @@ -0,0 +1,8 @@ +PV = 1.6.1 +PR = r0 +RPROVIDES = +RDEPENDS = +RRECOMMENDS = +PKGSIZE = 30759 +FILES = /usr/share/doc /usr/share/man /usr/share/info /usr/share/gtk-doc /usr/share/gnome/help +FILELIST = /usr/share/man/man1/cronnext.1 /usr/share/man/man1/crontab.1 /usr/share/man/man5/crontab.5 /usr/share/man/man8/cron.8 /usr/share/man/man8/crond.8 diff --git a/packages/cortexa57-poky-linux/cronie/cronie-locale/latest b/packages/cortexa57-poky-linux/cronie/cronie-locale/latest new file mode 100644 index 00000000000..9295dac9aae --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie-locale/latest @@ -0,0 +1,8 @@ +PV = 1.6.1 +PR = r0 +RPROVIDES = +RDEPENDS = +RRECOMMENDS = +PKGSIZE = 0 +FILES = /usr/share/locale +FILELIST = diff --git a/packages/cortexa57-poky-linux/cronie/cronie-src/latest b/packages/cortexa57-poky-linux/cronie/cronie-src/latest new file mode 100644 index 00000000000..0c2adcaf37b --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie-src/latest @@ -0,0 +1,8 @@ +PV = 1.6.1 +PR = r0 +RPROVIDES = +RDEPENDS = +RRECOMMENDS = +PKGSIZE = 183093 +FILES = /usr/src/debug +FILELIST = /usr/src/debug/cronie/1.6.1-r0/cronie_common.c /usr/src/debug/cronie/1.6.1-r0/cronie_common.h /usr/src/debug/cronie/1.6.1-r0/src/bitstring.h /usr/src/debug/cronie/1.6.1-r0/src/cron.c /usr/src/debug/cronie/1.6.1-r0/src/cronnext.c /usr/src/debug/cronie/1.6.1-r0/src/crontab.c /usr/src/debug/cronie/1.6.1-r0/src/database.c /usr/src/debug/cronie/1.6.1-r0/src/do_command.c /usr/src/debug/cronie/1.6.1-r0/src/entry.c /usr/src/debug/cronie/1.6.1-r0/src/env.c /usr/src/debug/cronie/1.6.1-r0/src/funcs.h /usr/src/debug/cronie/1.6.1-r0/src/globals.h /usr/src/debug/cronie/1.6.1-r0/src/job.c /usr/src/debug/cronie/1.6.1-r0/src/misc.c /usr/src/debug/cronie/1.6.1-r0/src/popen.c /usr/src/debug/cronie/1.6.1-r0/src/pw_dup.c /usr/src/debug/cronie/1.6.1-r0/src/security.c /usr/src/debug/cronie/1.6.1-r0/src/structs.h /usr/src/debug/cronie/1.6.1-r0/src/user.c diff --git a/packages/cortexa57-poky-linux/cronie/cronie-staticdev/latest b/packages/cortexa57-poky-linux/cronie/cronie-staticdev/latest new file mode 100644 index 00000000000..faecc4a79f6 --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie-staticdev/latest @@ -0,0 +1,8 @@ +PV = 1.6.1 +PR = r0 +RPROVIDES = +RDEPENDS = cronie-dev (= 1.6.1-r0) +RRECOMMENDS = +PKGSIZE = 0 +FILES = /usr/lib/*.a /lib/*.a /usr/lib/cronie/*.a +FILELIST = diff --git a/packages/cortexa57-poky-linux/cronie/cronie/latest b/packages/cortexa57-poky-linux/cronie/cronie/latest new file mode 100644 index 00000000000..8de002ce8c0 --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie/latest @@ -0,0 +1,8 @@ +PV = 1.6.1 +PR = r0 +RPROVIDES = +RDEPENDS = base-files base-passwd glibc (>= 2.36) libpam (>= 1.5.2) libpam-runtime pam-plugin-access pam-plugin-loginuid shadow +RRECOMMENDS = +PKGSIZE = 205682 +FILES = /usr/bin/* /usr/sbin/* /usr/libexec/* /usr/lib/lib*.so.* /etc /com /var /bin/* /sbin/* /lib/*.so.* /lib/udev /usr/lib/udev /lib/udev /usr/lib/udev /usr/share/cronie /usr/lib/cronie/* /usr/share/pixmaps /usr/share/applications /usr/share/idl /usr/share/omf /usr/share/sounds /usr/lib/bonobo/servers /etc/cron* /lib/systemd/system-preset/98-cronie.preset /lib/systemd/system/crond.service +FILELIST = /etc/cron.deny /etc/crontab /etc/pam.d/crond /etc/sysconfig/crond /lib/systemd/system-preset/98-cronie.preset /lib/systemd/system/crond.service /usr/bin/cronnext /usr/bin/crontab /usr/sbin/crond diff --git a/packages/cortexa57-poky-linux/cronie/cronie/latest.pkg_postinst b/packages/cortexa57-poky-linux/cronie/cronie/latest.pkg_postinst new file mode 100644 index 00000000000..f109db509db --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie/latest.pkg_postinst @@ -0,0 +1,24 @@ +#!/bin/sh +set -e +if systemctl >/dev/null 2>/dev/null; then + OPTS="" + + if [ -n "$D" ]; then + OPTS="--root=$D" + fi + + if [ "enable" = "enable" ]; then + for service in crond.service; do + systemctl ${OPTS} enable "$service" + done + fi + + if [ -z "$D" ]; then + systemctl daemon-reload + systemctl preset crond.service + + if [ "enable" = "enable" ]; then + systemctl --no-block restart crond.service + fi + fi +fi diff --git a/packages/cortexa57-poky-linux/cronie/cronie/latest.pkg_preinst b/packages/cortexa57-poky-linux/cronie/cronie/latest.pkg_preinst new file mode 100644 index 00000000000..bfbd3899030 --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie/latest.pkg_preinst @@ -0,0 +1,142 @@ +#!/bin/sh +set -e +bbnote () { + echo "NOTE: $*" +} +bbwarn () { + echo "WARNING: $*" +} +bbfatal () { + echo "ERROR: $*" + exit 1 +} +perform_groupadd () { + local rootdir="$1" + local opts="$2" + bbnote "cronie: Performing groupadd with [$opts]" + local groupname=`echo "$opts" | awk '{ print $NF }'` + local group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" + if test "x$group_exists" = "x"; then + eval flock -x $rootdir/etc -c \"$PSEUDO groupadd \$opts\" || true + group_exists="`grep "^$groupname:" $rootdir/etc/group || true`" + if test "x$group_exists" = "x"; then + bbfatal "cronie: groupadd command did not succeed." + fi + else + bbnote "cronie: group $groupname already exists, not re-creating it" + fi +} +perform_useradd () { + local rootdir="$1" + local opts="$2" + bbnote "cronie: Performing useradd with [$opts]" + local username=`echo "$opts" | awk '{ print $NF }'` + local user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" + if test "x$user_exists" = "x"; then + eval flock -x $rootdir/etc -c \"$PSEUDO useradd \$opts\" || true + user_exists="`grep "^$username:" $rootdir/etc/passwd || true`" + if test "x$user_exists" = "x"; then + bbfatal "cronie: useradd command did not succeed." + fi + else + bbnote "cronie: user $username already exists, not re-creating it" + fi +} +perform_groupmems () { + local rootdir="$1" + local opts="$2" + bbnote "cronie: Performing groupmems with [$opts]" + local groupname=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-g" || $i == "--group") print $(i+1) }'` + local username=`echo "$opts" | awk '{ for (i = 1; i < NF; i++) if ($i == "-a" || $i == "--add") print $(i+1) }'` + bbnote "cronie: Running groupmems command with group $groupname and user $username" + local mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" + if test "x$mem_exists" = "x"; then + eval flock -x $rootdir/etc -c \"$PSEUDO groupmems \$opts\" || true + mem_exists="`grep "^$groupname:[^:]*:[^:]*:\([^,]*,\)*$username\(,[^,]*\)*$" $rootdir/etc/group || true`" + if test "x$mem_exists" = "x"; then + bbfatal "cronie: groupmems command did not succeed." + fi + else + bbnote "cronie: group $groupname already contains $username, not re-adding it" + fi +} +OPT="" +SYSROOT="" + +if test "x$D" != "x"; then + # Installing into a sysroot + SYSROOT="$D" + OPT="--root $D" + + # Make sure login.defs is there, this is to make debian package backend work + # correctly while doing rootfs. + # The problem here is that if /etc/login.defs is treated as a config file for + # shadow package, then while performing preinsts for packages that depend on + # shadow, there might only be /etc/login.def.dpkg-new there in root filesystem. + if [ ! -e $D/etc/login.defs -a -e $D/etc/login.defs.dpkg-new ]; then + cp $D/etc/login.defs.dpkg-new $D/etc/login.defs + fi + + # user/group lookups should match useradd/groupadd --root + export PSEUDO_PASSWD="$SYSROOT" +fi + +# If we're not doing a special SSTATE/SYSROOT install +# then set the values, otherwise use the environment +if test "x$UA_SYSROOT" = "x"; then + # Installing onto a target + # Add groups and users defined only for this package + GROUPADD_PARAM="--system crontab" + USERADD_PARAM="" + GROUPMEMS_PARAM="" +fi + +# Perform group additions first, since user additions may depend +# on these groups existing +if test "x`echo $GROUPADD_PARAM | tr -d '[:space:]'`" != "x"; then + echo "Running groupadd commands..." + # Invoke multiple instances of groupadd for parameter lists + # separated by ';' + opts=`echo "$GROUPADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` + remaining=`echo "$GROUPADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` + while test "x$opts" != "x"; do + perform_groupadd "$SYSROOT" "$OPT $opts" + if test "x$opts" = "x$remaining"; then + break + fi + opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` + remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` + done +fi + +if test "x`echo $USERADD_PARAM | tr -d '[:space:]'`" != "x"; then + echo "Running useradd commands..." + # Invoke multiple instances of useradd for parameter lists + # separated by ';' + opts=`echo "$USERADD_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` + remaining=`echo "$USERADD_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` + while test "x$opts" != "x"; do + perform_useradd "$SYSROOT" "$OPT $opts" + if test "x$opts" = "x$remaining"; then + break + fi + opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` + remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` + done +fi + +if test "x`echo $GROUPMEMS_PARAM | tr -d '[:space:]'`" != "x"; then + echo "Running groupmems commands..." + # Invoke multiple instances of groupmems for parameter lists + # separated by ';' + opts=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` + remaining=`echo "$GROUPMEMS_PARAM" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` + while test "x$opts" != "x"; do + perform_groupmems "$SYSROOT" "$OPT $opts" + if test "x$opts" = "x$remaining"; then + break + fi + opts=`echo "$remaining" | cut -d ';' -f 1 | sed -e 's#[ \t]*$##'` + remaining=`echo "$remaining" | cut -d ';' -f 2- | sed -e 's#[ \t]*$##'` + done +fi diff --git a/packages/cortexa57-poky-linux/cronie/cronie/latest.pkg_prerm b/packages/cortexa57-poky-linux/cronie/cronie/latest.pkg_prerm new file mode 100644 index 00000000000..ab2eb392b27 --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/cronie/latest.pkg_prerm @@ -0,0 +1,9 @@ +#!/bin/sh +set -e +if systemctl >/dev/null 2>/dev/null; then + if [ -z "$D" ]; then + systemctl stop crond.service + + systemctl disable crond.service + fi +fi diff --git a/packages/cortexa57-poky-linux/cronie/latest b/packages/cortexa57-poky-linux/cronie/latest new file mode 100644 index 00000000000..0e08b36b9bd --- /dev/null +++ b/packages/cortexa57-poky-linux/cronie/latest @@ -0,0 +1,8 @@ +PV = 1.6.1 +PR = r0 +DEPENDS = autoconf-native automake-native base-files base-passwd libpam libtool-cross libtool-native shadow shadow-native shadow-sysroot systemd-systemctl-native virtual/aarch64-poky-linux-compilerlibs virtual/aarch64-poky-linux-gcc virtual/libc +PACKAGES = cronie-src cronie-dbg cronie-staticdev cronie-dev cronie-doc cronie-locale cronie +LAYER = core +LICENSE = ISC & BSD-3-Clause & BSD-2-Clause & GPL-2.0-or-later +CONFIG = pam +SRC_URI = https://github.com/cronie-crond/cronie/releases//download/cronie-1.6.1/cronie-1.6.1.tar.gz file://crond.init file://crontab file://crond.service file://crond_pam_config.patch |