diff options
author | Sergey Lapin <slapin@ossfans.org> | 2010-03-22 18:13:56 +0300 |
---|---|---|
committer | Sergey Lapin <slapin@ossfans.org> | 2010-03-22 18:13:56 +0300 |
commit | 3937c88166a493900a694ea8fe53b860f4099d83 (patch) | |
tree | 57597245b6efd4cf27c1f4c9ff21c0515e530c15 /recipes/busybox | |
parent | df2ace6d59e22b42e50bcf4e8a9c92b580602c2e (diff) | |
parent | 3510d2ed15a4b477aa7af802a839e11a87b981ed (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/busybox')
-rw-r--r-- | recipes/busybox/busybox-1.15.3/0000-wget-no-check-certificate.patch | 12 | ||||
-rw-r--r-- | recipes/busybox/busybox.inc | 28 | ||||
-rw-r--r-- | recipes/busybox/busybox_1.11.3.bb | 4 | ||||
-rw-r--r-- | recipes/busybox/busybox_1.13.2.bb | 4 | ||||
-rw-r--r-- | recipes/busybox/busybox_1.14.3.bb | 6 | ||||
-rw-r--r-- | recipes/busybox/busybox_1.15.3.bb | 5 | ||||
-rw-r--r-- | recipes/busybox/busybox_1.2.1.bb | 7 | ||||
-rw-r--r-- | recipes/busybox/busybox_1.2.2.bb | 7 | ||||
-rw-r--r-- | recipes/busybox/busybox_1.3.1.bb | 6 | ||||
-rw-r--r-- | recipes/busybox/busybox_1.7.2.bb | 4 | ||||
-rw-r--r-- | recipes/busybox/busybox_1.9.2.bb | 4 | ||||
-rw-r--r-- | recipes/busybox/files/hipox/hwclock.sh | 63 | ||||
-rw-r--r-- | recipes/busybox/files/hipox/syslog.conf | 9 | ||||
-rw-r--r-- | recipes/busybox/files/hwclock.sh | 10 |
14 files changed, 144 insertions, 25 deletions
diff --git a/recipes/busybox/busybox-1.15.3/0000-wget-no-check-certificate.patch b/recipes/busybox/busybox-1.15.3/0000-wget-no-check-certificate.patch new file mode 100644 index 0000000000..c737f172b1 --- /dev/null +++ b/recipes/busybox/busybox-1.15.3/0000-wget-no-check-certificate.patch @@ -0,0 +1,12 @@ +diff --git a/networking/wget.c b/networking/wget.c +index 9d813dc..09edd67 100644 +--- a/networking/wget.c ++++ b/networking/wget.c +@@ -546,6 +546,7 @@ int wget_main(int argc UNUSED_PARAM, char **argv) + "passive-ftp\0" No_argument "\xff" + "header\0" Required_argument "\xfe" + "post-data\0" Required_argument "\xfd" ++ "no-check-certificate\0" No_argument "\xfc" + ; + #endif + diff --git a/recipes/busybox/busybox.inc b/recipes/busybox/busybox.inc index 519fcd6f39..1ee263ad90 100644 --- a/recipes/busybox/busybox.inc +++ b/recipes/busybox/busybox.inc @@ -7,14 +7,13 @@ functionality and behave very much like their GNU counterparts. BusyBox \ provides a fairly complete POSIX environment for any small or embedded \ system." HOMEPAGE = "http://www.busybox.net" -LICENSE = "GPL" +LICENSE = "GPLv2" SECTION = "base" PRIORITY = "required" -INC_PR = "r24" +INC_PR = "r26" SRC_URI = "\ - http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ file://busybox-cron \ file://busybox-httpd \ file://busybox-udhcpd \ @@ -40,7 +39,7 @@ PACKAGES =+ "${PN}-mountall ${PN}-httpd ${PN}-syslog ${PN}-udhcpd" # listed in the NEEDED field. RRECOMMENDS += "libgcc" -FILES_${PN}-mountall = "${sysconfdir}/default/mountall" +FILES_${PN}-mountall = "${sysconfdir}/default/mountall.${PN}" RDEPENDS_${PN} += "${PN}-mountall" # Make busybox recommend busybox-syslog for those images that expect it @@ -55,7 +54,7 @@ FILES_${PN} += "${datadir}/udhcpc" INITSCRIPT_PACKAGES = "${PN}-httpd ${PN}-syslog ${PN}-udhcpd" INITSCRIPT_NAME_${PN}-httpd = "busybox-httpd" INITSCRIPT_NAME_${PN}-syslog = "syslog" -INITSCRIPT_NAME_${PN}-udhcpd = "busybox-udhcpd" +INITSCRIPT_NAME_${PN}-udhcpd = "busybox-udhcpd" CONFFILES_${PN}-syslog = "${sysconfdir}/syslog.conf" # This disables the syslog startup links in slugos (see slugos-init) @@ -97,7 +96,11 @@ do_install () { # Install /bin/busybox, and the /bin/sh link so the postinst script # can run. Let update-alternatives handle the rest. install -d ${D}${base_bindir} - install -m 0755 ${S}/busybox ${D}${base_bindir} + if grep -q "CONFIG_FEATURE_SUID=y" ${WORKDIR}/defconfig; then + install -m 4755 ${S}/busybox ${D}${base_bindir} + else + install -m 0755 ${S}/busybox ${D}${base_bindir} + fi ln -sf busybox ${D}${base_bindir}/sh if grep -q "CONFIG_SYSLOGD=y" ${WORKDIR}/defconfig; then @@ -125,7 +128,7 @@ do_install () { fi if grep "CONFIG_FEATURE_MOUNT_FSTAB=y" ${WORKDIR}/defconfig; then install -d ${D}${sysconfdir}/default - install -m 644 ${WORKDIR}/mountall ${D}${sysconfdir}/default/ + install -m 644 ${WORKDIR}/mountall ${D}${sysconfdir}/default/mountall.${PN} fi install -m 0644 ${S}/busybox.links ${D}${sysconfdir} @@ -137,11 +140,18 @@ pkg_postinst_${PN} () { # (update-alternatives have no problem replacing links later anyway) test -n 2> /dev/null || alias test='busybox test' if test "x$D" = "x"; then while read link; do if test ! -h "$link"; then case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; /*) to="/bin/busybox";; esac; busybox ln -s $to $link; fi; done </etc/busybox.links; fi - + # This adds the links, remember that this has to work when building an image too, hence the $D while read link; do case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; /*) to="/bin/busybox";; esac; bn=`basename $link`; update-alternatives --install $link $bn $to 50; done <$D/etc/busybox.links } +pkg_postinst_${PN}-mountall () { + update-alternatives --install ${sysconfdir}/default/mountall default_mountall mountall.${PN} 50 +} +pkg_prerm_${PN}-mountall () { + update-alternatives --remove default_mountall mountall.${PN} +} + pkg_prerm_${PN} () { # This is so you can make busybox commit suicide - removing busybox with no other packages # providing its files, this will make update-alternatives work, but the update-rc.d part @@ -167,7 +177,7 @@ pkg_prerm_${PN} () { /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; - /*) to="/bin/busybox";; + /*) to="/bin/busybox";; esac bn=`basename $link` sh /usr/bin/update-alternatives --remove $bn $to diff --git a/recipes/busybox/busybox_1.11.3.bb b/recipes/busybox/busybox_1.11.3.bb index 0ec753f951..838e1bd54f 100644 --- a/recipes/busybox/busybox_1.11.3.bb +++ b/recipes/busybox/busybox_1.11.3.bb @@ -2,7 +2,7 @@ require busybox.inc PR = "${INC_PR}.1" SRC_URI = "\ - http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ + http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ \ file://udhcpscript.patch;patch=1 \ file://B921600.patch;patch=1 \ @@ -23,6 +23,8 @@ SRC_URI = "\ file://mdev \ file://mdev.conf \ " +SRC_URI[tarball.md5sum] = "4355ad8bb57ce3b39ad827566c1a6da3" +SRC_URI[tarball.sha256sum] = "6d35fda668988c06f8c22e6e20fe6951ec83108169df6b8c0bad99872577c784" EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}" diff --git a/recipes/busybox/busybox_1.13.2.bb b/recipes/busybox/busybox_1.13.2.bb index 18d49ba45a..d22819e7d4 100644 --- a/recipes/busybox/busybox_1.13.2.bb +++ b/recipes/busybox/busybox_1.13.2.bb @@ -2,7 +2,7 @@ require busybox.inc PR = "${INC_PR}.1" SRC_URI = "\ - http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ + http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://busybox-1.13.2-awk.patch;patch=1 \ file://busybox-1.13.2-depmod.patch;patch=1 \ file://busybox-1.13.2-init.patch;patch=1 \ @@ -36,6 +36,8 @@ SRC_URI = "\ file://mdev \ file://mdev.conf \ " +SRC_URI[tarball.md5sum] = "9e2a604d18bef219a5a6bf3acf78b9e1" +SRC_URI[tarball.sha256sum] = "927774408bd982dd246fb716bb2e646ab0708ce321b42c5e271dc98c1f5d1dc8" EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}" diff --git a/recipes/busybox/busybox_1.14.3.bb b/recipes/busybox/busybox_1.14.3.bb index 8d45e1e880..d714310368 100644 --- a/recipes/busybox/busybox_1.14.3.bb +++ b/recipes/busybox/busybox_1.14.3.bb @@ -4,7 +4,7 @@ PR = "${INC_PR}.0" DEFAULT_PREFERENCE = "-1" SRC_URI = "\ - http://www.busybox.net/downloads/busybox-${PV}.tar.gz;name=tarball \ + http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ \ file://udhcpscript.patch;patch=1 \ file://udhcpc-fix-nfsroot.patch;patch=1 \ @@ -27,8 +27,8 @@ SRC_URI = "\ file://mdev.conf \ " -SRC_URI[tarball.md5sum] = "dfb197b8de260ff284f7222ed23614fe" -SRC_URI[tarball.sha256sum] = "b5a0c76d414cca97fb21622a5d09fa5a58f59890f5c9ce4f8b851c4e8b73a163" +SRC_URI[tarball.md5sum] = "d170bf5f97a41aec3a505eab690d5699" +SRC_URI[tarball.sha256sum] = "e94df4f9063a1951b4e94e76148ed80e921737a89d97bc2c310a2a8927982e90" EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}" diff --git a/recipes/busybox/busybox_1.15.3.bb b/recipes/busybox/busybox_1.15.3.bb index 3f8e40c6ec..1e1aa1e32a 100644 --- a/recipes/busybox/busybox_1.15.3.bb +++ b/recipes/busybox/busybox_1.15.3.bb @@ -2,13 +2,14 @@ require busybox.inc PR = "${INC_PR}.0" SRC_URI = "\ - http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ + http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ \ file://udhcpscript.patch;patch=1 \ file://udhcpc-fix-nfsroot.patch;patch=1 \ file://B921600.patch;patch=1 \ file://get_header_tar.patch;patch=1 \ file://busybox-appletlib-dependency.patch;patch=1 \ + file://0000-wget-no-check-certificate.patch;patch=1 \ file://find-touchscreen.sh \ file://busybox-cron \ file://busybox-httpd \ @@ -24,6 +25,8 @@ SRC_URI = "\ file://mdev \ file://mdev.conf \ " +SRC_URI[tarball.md5sum] = "6059ac9456de6fb18dc8ee4cd0ec9240" +SRC_URI[tarball.sha256sum] = "d74020ad2cc5a4dcc5109c44dbd0e22582d6ce42954b0f1ff29763c8c0ff03cb" EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}" diff --git a/recipes/busybox/busybox_1.2.1.bb b/recipes/busybox/busybox_1.2.1.bb index 3630a4662b..037584a198 100644 --- a/recipes/busybox/busybox_1.2.1.bb +++ b/recipes/busybox/busybox_1.2.1.bb @@ -2,9 +2,14 @@ require busybox.inc PR = "${INC_PR}.1" -SRC_URI += "file://wget-long-options.patch;patch=1 \ +SRC_URI += "\ + http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ + \ + file://wget-long-options.patch;patch=1 \ file://df_rootfs.patch;patch=1 \ file://defconfig" +SRC_URI[tarball.md5sum] = "362b3dc0f2023ddfda901dc1f1a74391" +SRC_URI[tarball.sha256sum] = "c6f955c7feafdb7c40645b3dc4c4a3c945477a2429633eef7b2a34ef01827410" SRC_URI_append_avr32 = " file://install-should-unlink-dest-if-it-exists.patch;patch=1" do_configure () { diff --git a/recipes/busybox/busybox_1.2.2.bb b/recipes/busybox/busybox_1.2.2.bb index 43a15d0f57..c160635998 100644 --- a/recipes/busybox/busybox_1.2.2.bb +++ b/recipes/busybox/busybox_1.2.2.bb @@ -4,8 +4,13 @@ PR = "${INC_PR}.1" DEFAULT_PREFERENCE = "-1" -SRC_URI = "file://wget-long-options.patch;patch=1 \ +SRC_URI = "\ + http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ + \ + file://wget-long-options.patch;patch=1 \ file://defconfig" +SRC_URI[tarball.md5sum] = "ae8a4c65b9464c8ece3483a3d3b9544c" +SRC_URI[tarball.sha256sum] = "4de9fb2bb018e381e64199b38d90cb25e71366c37a8995e9ab5ed206ebcb972f" do_configure () { install -m 0644 ${WORKDIR}/defconfig ${S}/.config.oe diff --git a/recipes/busybox/busybox_1.3.1.bb b/recipes/busybox/busybox_1.3.1.bb index e0fd63bf5f..a6a79c9327 100644 --- a/recipes/busybox/busybox_1.3.1.bb +++ b/recipes/busybox/busybox_1.3.1.bb @@ -4,7 +4,11 @@ PR = "${INC_PR}.1" DEFAULT_PREFERENCE = "-1" -SRC_URI = "file://defconfig" +SRC_URI = "\ + http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ + file://defconfig" +SRC_URI[tarball.md5sum] = "571531cfa83726947ccb566de017ad4f" +SRC_URI[tarball.sha256sum] = "5bf9ead9cca99620d2e56ddf79fdf5fb306fd7f30087b5556e0956e3b1948206" do_configure () { install -m 0644 ${WORKDIR}/defconfig ${S}/.config.oe diff --git a/recipes/busybox/busybox_1.7.2.bb b/recipes/busybox/busybox_1.7.2.bb index 8ce081f82f..4bfd5e6d53 100644 --- a/recipes/busybox/busybox_1.7.2.bb +++ b/recipes/busybox/busybox_1.7.2.bb @@ -1,7 +1,7 @@ require busybox.inc PR = "${INC_PR}.1" -SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ +SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://busybox-cron \ file://busybox-httpd \ file://busybox-udhcpd \ @@ -15,6 +15,8 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ file://busybox-appletlib-dependency.patch;patch=1 \ file://umount.busybox \ file://run_parts.c" +SRC_URI[tarball.md5sum] = "c91ec9756e2000073a9dd8fa9fc3f89e" +SRC_URI[tarball.sha256sum] = "83c4cc813124a43f13e2ebb83cea9da9909d63891b824bf4bc7006f0567db7cf" SRC_URI += "http://busybox.net/downloads/fixes-1.7.2/busybox-1.7.2-ash.patch;patch=1 \ http://busybox.net/downloads/fixes-1.7.2/busybox-1.7.2-iptun.patch;patch=1 \ diff --git a/recipes/busybox/busybox_1.9.2.bb b/recipes/busybox/busybox_1.9.2.bb index cd9b6ab7a3..5e8e65a314 100644 --- a/recipes/busybox/busybox_1.9.2.bb +++ b/recipes/busybox/busybox_1.9.2.bb @@ -1,7 +1,7 @@ require busybox.inc PR = "${INC_PR}.1" -SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ +SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://udhcpscript.patch;patch=1 \ file://adduser-longops.patch;patch=1 \ file://sort-z-nul.patch;patch=1;status=upstream \ @@ -18,6 +18,8 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \ file://syslog.conf \ file://umount.busybox \ file://defconfig" +SRC_URI[tarball.md5sum] = "7e26c56012dd5811251c2f87786b9a77" +SRC_URI[tarball.sha256sum] = "a14ca1104242953672807f5b5223de5615c237a27140f36d625b3067daaf11dc" EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX}" diff --git a/recipes/busybox/files/hipox/hwclock.sh b/recipes/busybox/files/hipox/hwclock.sh new file mode 100644 index 0000000000..47e4c8d44e --- /dev/null +++ b/recipes/busybox/files/hipox/hwclock.sh @@ -0,0 +1,63 @@ +#!/bin/sh +# hwclock.sh Set system clock to hardware clock, according to the UTC +# setting in /etc/default/rcS (see also rcS(5)). +# (hipox machine version) +# +# WARNING: If your hardware clock is not in UTC/GMT, this script +# must know the local time zone. This information is +# stored in /etc/localtime. This might be a problem if +# your /etc/localtime is a symlink to something in +# /usr/share/zoneinfo AND /usr isn't in the root +# partition! The workaround is to define TZ either +# in /etc/default/rcS, or in the proper place below. + +[ ! -x /sbin/hwclock ] && exit 0 + +. /etc/default/rcS + +[ "$UTC" = yes ] && UTC=--utc || UTC=--localtime + +case "$1" in + start) + if [ "$VERBOSE" != no ] + then + echo "System time was `date`." + echo "Setting the System Clock using the Hardware Clock as reference..." + fi + + if [ "$HWCLOCKACCESS" != no ] + then + if [ -z "$TZ" ] + then + hwclock -s $UTC;# --hctosys + else + TZ="$TZ" hwclock -s $UTC;# --hctosys + fi + fi + + if [ "$VERBOSE" != no ] + then + echo "System Clock set. System local time is now `date`." + fi + ;; + stop|restart|reload|force-reload) + # + # At hipox machine we do not update the Hardware Clock + # with the System Clock time to avoid needless increase + # of the RTC epoch counter. + # + exit 0 + ;; + show) + if [ "$HWCLOCKACCESS" != no ] + then + hwclock -r $UTC;# --show + fi + ;; + *) + echo "Usage: hwclock.sh {start|stop|show|reload|restart}" >&2 + echo " start sets kernel (system) clock from hardware (RTC) clock" >&2 + echo " stop and reload set hardware (RTC) clock from kernel (system) clock" >&2 + exit 1 + ;; +esac diff --git a/recipes/busybox/files/hipox/syslog.conf b/recipes/busybox/files/hipox/syslog.conf new file mode 100644 index 0000000000..b45cd459d4 --- /dev/null +++ b/recipes/busybox/files/hipox/syslog.conf @@ -0,0 +1,9 @@ +DESTINATION="file" # log destinations (buffer file remote) +MARKINT=20 # interval between --mark-- entries [min] +REDUCE=no # reduced-size logging +BUFFERSIZE=64 # buffer: size of circular buffer [kByte] +LOGFILE=/var/log/messages # file: where to log +ROTATESIZE=64 # file: rotate log if grown beyond X [kByte] (busybox 1.2+) +ROTATEGENS=1 # file: keep X generations of rotated logs (busybox 1.2+) +REMOTE=loghost:514 # remote: where to log +FOREGROUND=no # run in foreground (don't use!) diff --git a/recipes/busybox/files/hwclock.sh b/recipes/busybox/files/hwclock.sh index 6c0af3422c..f9c9f9f2c2 100644 --- a/recipes/busybox/files/hwclock.sh +++ b/recipes/busybox/files/hwclock.sh @@ -14,7 +14,7 @@ . /etc/default/rcS -[ "$UTC" = yes ] && UTC=--utc || UTC=--localtime +[ "$UTC" = yes ] && UTC=-u || UTC=-l case "$1" in start) @@ -28,9 +28,9 @@ case "$1" in then if [ -z "$TZ" ] then - hwclock -s $UTC;# --hctosys + hwclock -s $UTC else - TZ="$TZ" hwclock -s $UTC;# --hctosys + TZ="$TZ" hwclock -s $UTC fi fi @@ -53,7 +53,7 @@ case "$1" in fi if [ "$HWCLOCKACCESS" != no ] then - hwclock -w $UTC;# --systohc + hwclock -w $UTC fi if [ "$VERBOSE" != no ] then @@ -64,7 +64,7 @@ case "$1" in show) if [ "$HWCLOCKACCESS" != no ] then - hwclock -r $UTC;# --show + hwclock -r $UTC fi ;; *) |