summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/distro/slugos-packages.conf1
-rw-r--r--packages/altboot/altboot_0.0.0.bb70
-rw-r--r--packages/altboot/files/akita/altboot-2.4.cfg4
-rw-r--r--packages/altboot/files/akita/altboot-2.6.cfg4
-rw-r--r--packages/altboot/files/altboot.func72
-rw-r--r--packages/altboot/files/c7x0/altboot-2.4.cfg4
-rw-r--r--packages/altboot/files/c7x0/altboot-2.6.cfg4
-rw-r--r--packages/altboot/files/collie/altboot-2.4.cfg4
-rw-r--r--packages/altboot/files/init.altboot72
-rw-r--r--packages/altboot/files/poodle/altboot-2.4.cfg4
-rw-r--r--packages/altboot/files/spitz/altboot-2.6.cfg4
-rw-r--r--packages/altboot/files/tosa/altboot-2.4.cfg4
-rw-r--r--packages/poboxserver/files/OpenPOBox-1.25.diff6
-rw-r--r--packages/poboxserver/poboxserver_1.2.5.bb24
-rw-r--r--packages/xdpyinfo/xdpyinfo_1.0.1.bb3
-rw-r--r--packages/xev/xev_1.0.1.bb3
-rw-r--r--packages/xhost/xhost_1.0.0.bb3
-rw-r--r--packages/xlibs/libfontenc_1.0.1.bb8
-rw-r--r--packages/xlibs/libice_X11R7.0-1.0.0.bb9
-rw-r--r--packages/xlibs/liblbxutil_1.0.0.bb12
-rw-r--r--packages/xlibs/libsm_X11R7.0-1.0.0.bb9
-rw-r--r--packages/xlibs/libx11_X11R7.0-1.0.0.bb9
-rw-r--r--packages/xlibs/libxau_1.0.0.bb8
-rw-r--r--packages/xlibs/libxaw_X11R7.0-1.0.1.bb9
-rw-r--r--packages/xlibs/libxcomposite_X11R7.0-0.2.2.2.bb11
-rw-r--r--packages/xlibs/libxcursor_1.1.5.2.bb11
-rw-r--r--packages/xlibs/libxdamage_1.0.2.2.bb9
-rw-r--r--packages/xlibs/libxdmcp_1.0.0.bb9
-rw-r--r--packages/xlibs/libxext_1.0.0.bb10
-rw-r--r--packages/xlibs/libxfixes_3.0.1.2.bb9
-rw-r--r--packages/xlibs/libxfont_X11R7.0-1.0.0.bb9
-rw-r--r--packages/xlibs/libxft_2.1.8.2.bb12
-rw-r--r--packages/xlibs/libxi_X11R7.0-1.0.0.bb9
-rw-r--r--packages/xlibs/libxinerama_X11R7.0-1.0.1.bb9
-rw-r--r--packages/xlibs/libxkbfile_1.0.1.bb8
-rw-r--r--packages/xlibs/libxkbui_1.0.1.bb7
-rw-r--r--packages/xlibs/libxmu_1.0.0.bb11
-rw-r--r--packages/xlibs/libxp_1.0.0.bb9
-rw-r--r--packages/xlibs/libxpm_3.5.4.2.bb5
-rw-r--r--packages/xlibs/libxrandr_1.1.0.2.bb9
-rw-r--r--packages/xlibs/libxrender_0.9.0.2.bb9
-rw-r--r--packages/xlibs/libxres_X11R7.0-1.0.0.bb9
-rw-r--r--packages/xlibs/libxss_1.0.1.bb9
-rw-r--r--packages/xlibs/libxt_1.0.0.bb9
-rw-r--r--packages/xlibs/libxtst_1.0.1.bb9
-rw-r--r--packages/xlibs/libxv_X11R7.0-1.0.1.bb9
-rw-r--r--packages/xlibs/libxxf86dga_1.0.0.bb5
-rw-r--r--packages/xlibs/libxxf86misc_1.0.0.bb9
-rw-r--r--packages/xlibs/libxxf86vm_1.0.0.bb8
-rw-r--r--packages/xlibs/util-macros_1.0.1.bb10
-rw-r--r--packages/xlibs/xorg-xlibs.inc9
-rw-r--r--packages/xlibs/xtrans_1.0.0.bb8
-rw-r--r--packages/xmodmap/xmodmap_1.0.0.bb3
-rw-r--r--packages/xorg-data/data-common.inc3
-rw-r--r--packages/xorg-fonts/font-common.inc3
-rw-r--r--packages/xrandr/xrandr_1.0.1.bb4
-rw-r--r--packages/xrdb/xrdb_1.0.1.bb4
-rw-r--r--packages/xset/xset_1.0.1.bb3
58 files changed, 288 insertions, 332 deletions
diff --git a/conf/distro/slugos-packages.conf b/conf/distro/slugos-packages.conf
index 87ca470069..784bc5d8fd 100644
--- a/conf/distro/slugos-packages.conf
+++ b/conf/distro/slugos-packages.conf
@@ -41,6 +41,7 @@ ${PKGDIR}/packages/dbus/*.bb \
${PKGDIR}/packages/devio/*.bb \
${PKGDIR}/packages/device-mapper/*.bb \
${PKGDIR}/packages/devlabel/*.bb \
+${PKGDIR}/packages/dhcp/*.bb \
${PKGDIR}/packages/didiwiki/*.bb \
${PKGDIR}/packages/diffstat/*.bb \
${PKGDIR}/packages/diffutils/*.bb \
diff --git a/packages/altboot/altboot_0.0.0.bb b/packages/altboot/altboot_0.0.0.bb
index 3bda946415..2935dedc30 100644
--- a/packages/altboot/altboot_0.0.0.bb
+++ b/packages/altboot/altboot_0.0.0.bb
@@ -1,17 +1,35 @@
-DESCRIPTION = "A text-based bootmanager allowing a Zaurus to boot from SD, CF, USB-Storage and NFS. \
-Tested machines: Collie, Poodle, Akita, Spitz, C7x0, Tosa, Borzoi"
-SECTION = "base"
-PRIORITY = "optional"
-MAINTAINER = "Matthias 'CoreDump' Hentges <oe@hentges.net>"
+#
+# Copyright Matthias Hentges <devel@hentges.net> (c) 2006
+# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
+#
+# Filename: altboot_0.0.0.bb
+# Date: 07-May-06
+
+DESCRIPTION = "The altboot bootmanager"
+MAINTAINER = "Matthias 'CoreDump' Hentges <oe@hentges.net>"
+HOMEPAGE = "http://www.hentges.net/misc/openzaurus/index.shtml"
LICENSE = "GPL"
-IGNORE_STRIP_ERRORS = "1"
-RRECOMMENDS = "e2fsprogs-e2fsck dosfstools"
-RRECOMMENDS_append_akita = " kexec-tools"
-RRECOMMENDS_append_spitz = " kexec-tools"
-RRECOMMENDS_append_c7x0 = " kexec-tools"
+######################################################################################
+
+RRECOMMENDS_${PN} = "e2fsprogs-e2fsck dosfstools"
+RRECOMMENDS_${PN}_append_akita = " kexec-tools"
+RRECOMMENDS_${PN}_append_spitz = " kexec-tools"
+RRECOMMENDS_${PN}_append_c7x0 = " kexec-tools"
+
+RDEPENDS_${PN} = "${PN}-conf"
+
+######################################################################################
+
+PR = "r42"
-PR = "r41"
+######################################################################################
+
+PACKAGES = "${PN}-conf ${PN}-doc ${PN}"
+
+PACKAGE_ARCH_${PN} = all
+PACKAGE_ARCH_${PN}-doc = all
+PACKAGE_ARCH_${PN}-conf = "${MACHINE}"
SRC_URI = "file://altboot-menu \
file://altboot.rc \
@@ -20,37 +38,51 @@ SRC_URI = "file://altboot-menu \
file://altboot*.cfg \
file://beep.raw"
-# S = "${WORKDIR}/files"
-
+# S = "${WORKDIR}/altboot/"
+
+######################################################################################
+
+FILES_${PN}-conf = "/etc/altboot*.cfg"
+
+######################################################################################
+
do_install() {
install -d ${D}/sbin
install -d ${D}/etc/altboot-menu
install -d ${D}/etc/altboot-menu/Advanced
install -d ${D}/etc/altboot.rc
install -d ${D}/usr/share/doc/altboot
- install -d ${D}/usr/share/sounds
-
+ install -d ${D}/usr/share/sounds
+
install -m 0644 ${WORKDIR}/beep.raw ${D}/usr/share/sounds
install -m 0644 ${WORKDIR}/altboot*.cfg ${D}/etc
install -m 0644 ${WORKDIR}/altboot.func ${D}/etc
-# install -m 0644 ${WORKDIR}/docs/altboot/*.txt ${D}/usr/share/doc/altboot
- install -m 0755 ${WORKDIR}/init.altboot ${D}/sbin
+ install -m 0755 ${WORKDIR}/init.altboot ${D}/sbin
+
install -m 0755 ${WORKDIR}/altboot-menu/*-* ${D}/etc/altboot-menu
+
install -m 0755 ${WORKDIR}/altboot-menu/Advanced/*-* ${D}/etc/altboot-menu/Advanced
+
install -m 0755 ${WORKDIR}/altboot.rc/*.sh ${D}/etc/altboot.rc
install -m 0644 ${WORKDIR}/altboot.rc/*.txt ${D}/etc/altboot.rc
}
+######################################################################################
+
do_configure() {
cat ${WORKDIR}/init.altboot | sed "s/^VERSION=.*/VERSION=\"0.0.0 Developer Snapshot (${DATE})\"/" > ${WORKDIR}/init.altboot_
mv ${WORKDIR}/init.altboot_ ${WORKDIR}/init.altboot
}
+######################################################################################
-pkg_postinst() {
+pkg_postinst_${PN}() {
update-alternatives --install /sbin/init init /sbin/init.altboot 55
}
-pkg_postrm() {
+######################################################################################
+
+pkg_postrm_${PN}() {
update-alternatives --remove init /sbin/init.altboot
}
+
diff --git a/packages/altboot/files/akita/altboot-2.4.cfg b/packages/altboot/files/akita/altboot-2.4.cfg
index 8c404d4768..4ea84ce32d 100644
--- a/packages/altboot/files/akita/altboot-2.4.cfg
+++ b/packages/altboot/files/akita/altboot-2.4.cfg
@@ -1,3 +1,7 @@
+#
+# Altboot machine configuration for: Akita / Kernel 2.4
+#
+
# Handled by /sbin/init.altboot
# Allow booting images from SD or CF instead of booting
# the ROM.
diff --git a/packages/altboot/files/akita/altboot-2.6.cfg b/packages/altboot/files/akita/altboot-2.6.cfg
index c763f8b953..66b68d1e5c 100644
--- a/packages/altboot/files/akita/altboot-2.6.cfg
+++ b/packages/altboot/files/akita/altboot-2.6.cfg
@@ -1,3 +1,7 @@
+#
+# Altboot machine configuration for: Akita / Kernel 2.6
+#
+
# Handled by /sbin/init.altboot
# Allow booting images from SD or CF instead of booting
# the ROM.
diff --git a/packages/altboot/files/altboot.func b/packages/altboot/files/altboot.func
index 13ee515d6a..98c38b40ef 100644
--- a/packages/altboot/files/altboot.func
+++ b/packages/altboot/files/altboot.func
@@ -43,14 +43,14 @@ check_target() {
if test "$AUTOBOOT" != "yes"
then
- read junk < /dev/tty1
+ read junk < "$OUT_TTY"
else
if test -e /etc/.altboot-real-or-loop.last
then
junk="`cat /etc/.altboot-real-or-loop.last`"
- test -z "$junk" && read junk < /dev/tty1 || echo "$junk (autoboot)"
+ test -z "$junk" && read junk < "$OUT_TTY" || echo "$junk (autoboot)"
else
- read junk < /dev/tty1
+ read junk < "$OUT_TTY"
fi
fi
@@ -62,18 +62,18 @@ check_target() {
done
case "$ans" in
- 1) pivot_realfs "$1" "$2">/dev/tty0;;
- 2) pivot_image "$1" "$2">/dev/tty0;;
+ 1) pivot_realfs "$1" "$2">"$OUT_TTY";;
+ 2) pivot_image "$1" "$2">"$OUT_TTY";;
esac
exit 0
fi
# Boot a real filesystem
- test "$real_fs_found" = 1 && pivot_realfs "$1" >/dev/tty0
+ test "$real_fs_found" = 1 && pivot_realfs "$1" >"$OUT_TTY"
# Boot a loop-image
- test "$image_found" = 1 && pivot_image "$1" >/dev/tty0
+ test "$image_found" = 1 && pivot_image "$1" >"$OUT_TTY"
if test "$real_fs_found" != 1 -a "$image_found" != 1
then
@@ -133,14 +133,14 @@ pivot_image() {
echo -en "Please choose one of the above: "
if test "$AUTOBOOT" != "yes"
then
- read junk < /dev/tty1
+ read junk < "$OUT_TTY"
else
if test -e /etc/.altboot-loopimage.last
then
junk="`cat /etc/.altboot-loopimage.last`"
- test -z "$junk" && read junk < /dev/tty1 || echo "$junk (autoboot)"
+ test -z "$junk" && read junk < "$OUT_TTY" || echo "$junk (autoboot)"
else
- read junk < /dev/tty1
+ read junk < "$OUT_TTY"
fi
fi
@@ -229,7 +229,7 @@ do_pivot(){
do
new_mpt="`echo "$mpt" | sed -n "s/\/media\/ROM//p"`"
- echo "Moving mountpoint [$mpt] -> [$new_mpt]" >/dev/tty0 2>&1
+ echo "Moving mountpoint [$mpt] -> [$new_mpt]" >"$OUT_TTY" 2>&1
! test -d "$new_mpt" && mkdir -p "$new_mpt"
/bin/busybox mount -o move "$mpt" "$new_mpt"
@@ -239,7 +239,7 @@ do_pivot(){
boot_new_rootfs_splash
echo "Calling INIT"
- exec /usr/sbin/chroot . $REAL_INIT $2 >/dev/tty0 2>&1
+ exec /usr/sbin/chroot . $REAL_INIT $2 >"$OUT_TTY" 2>&1
#exec /usr/sbin/chroot . /sbin/init $2 >/dev/tty0 2>&1
else
echo "FAILED"
@@ -331,7 +331,7 @@ image_conf(){
# This functions configures the master password for altboot if none is set
set_password() {
mount -o remount,rw /
- if test -z "$MASTER_PASSWORD"
+ if test -z "$MASTER_PASSWORD" -a "$ENABLE_DEBUG" != yes
then
echo -e "\nAltboot is a boot-manager which allows to boot from SD,\nCF, USB-Storage and NFS"
echo -e "\nFor security reasons altboot requires a password\nto boot into init=/bin/sh."
@@ -341,17 +341,17 @@ set_password() {
do
echo -en "\nNew password: "
- stty -echo </dev/tty0 >/dev/tty0 2>&1
- read junk1 < /dev/tty0
- stty echo </dev/tty0 >/dev/tty0 2>&1
+ stty -echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
+ read junk1 < "$OUT_TTY"
+ stty echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
if ! test -z "$junk1"
then
echo -en "\nRepeat: "
- stty -echo </dev/tty0 >/dev/tty0 2>&1
- read junk2 < /dev/tty0
- stty echo </dev/tty0 >/dev/tty0 2>&1
+ stty -echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
+ read junk2 < "$OUT_TTY"
+ stty echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
echo ""
if test "$junk1" = "$junk2"
@@ -391,9 +391,9 @@ verify_master_pw() {
do
let cnt=$cnt+$auth_timeout
echo -n "Password: "
- stty -echo </dev/tty0 >/dev/tty0 2>&1
- read junk < /dev/tty0
- stty echo </dev/tty0 >/dev/tty0 2>&1
+ stty -echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
+ read junk < "$OUT_TTY"
+ stty echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
if test "`echo "$junk" | md5sum | awk '{print $1}'`" = "$MASTER_PASSWORD"
then
@@ -458,11 +458,11 @@ init_rootfs(){
# echo -n "Mounting rootfs rw..."
mount -o remount,rw / || die "mount -o remount,rw / failed"
- mount | grep -q "/proc " >/dev/null 2>&1 || mount proc -t proc /proc >/dev/tty0 2>&1
+ mount | grep -q "/proc " >/dev/null 2>&1 || mount proc -t proc /proc >"$OUT_TTY" 2>&1
if ( uname -r | grep -q "2.6." )
then
- mount | grep -q "/sys " >/dev/null 2>&1 || mount sys -t sysfs /sys >/dev/tty0 2>&1
+ mount | grep -q "/sys " >/dev/null 2>&1 || mount sys -t sysfs /sys >"$OUT_TTY" 2>&1
fi
/etc/init.d/devices start || die "FAILED"
@@ -493,13 +493,13 @@ mount_sd(){
check_fs "$SD_DEVICE"
- echo -n "Mounting $SD_MOUNTPOINT..." >/dev/tty0
+ echo -n "Mounting $SD_MOUNTPOINT..." >"$OUT_TTY"
if test "$1" = ingore_errors
then
- /bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT >/dev/null 2>&1 && echo ok >/dev/tty0 || echo "Could not mount SD card"
+ /bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT >/dev/null 2>&1 && echo ok >"$OUT_TTY" || echo "Could not mount SD card"
else
- /bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT >/dev/null 2>&1 && echo ok >/dev/tty0|| die "/bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT failed"
+ /bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT >/dev/null 2>&1 && echo ok >"$OUT_TTY"|| die "/bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT failed"
fi
fi
echo ""
@@ -562,16 +562,16 @@ show_menu() {
echo -e "\nPress <ENTER> to return to the menu"
read junk
- test "$junk" = x && exec /bin/sh || exec /sbin/init.altboot -force</dev/tty0 >/dev/tty0 2>&1
+ test "$junk" = x && exec /bin/sh || exec /sbin/init.altboot -force<"$OUT_TTY" >"$OUT_TTY" 2>&1
}
mdie() {
- echo -e "${C_RED}ERROR:${C_RESET}${C_WHITE} $1${C_RESET}" >/dev/tty0
+ echo -e "${C_RED}ERROR:${C_RESET}${C_WHITE} $1${C_RESET}" >"$OUT_TTY"
echo -e "\nPress <ENTER> to return to the menu"
read junk
- test "$junk" = x && exec /bin/sh || exec /sbin/init.altboot -force</dev/tty0 >/dev/tty0 2>&1
+ test "$junk" = x && exec /bin/sh || exec /sbin/init.altboot -force<"$OUT_TTY" >"$OUT_TTY" 2>&1
}
# $1: uniq name, $2 identifier, $3 value
@@ -583,8 +583,7 @@ set_pref() {
#echo "[$1] [$2] [$3]"
#export "${data_name}"="`eval echo -e \\$${data_name} | sed "s/\#\#\#/\#\#\#\\n/g"|sed s/^\ // | sed s/^$data_id.*//`"
- export "${data_name}"="`eval echo -e \\$${data_name} `
-$data_id##$data_value###"
+ export "${data_name}"="`eval echo -e \\$${data_name} `$data_id##$data_value###"
}
@@ -613,8 +612,9 @@ get_pref() {
data_out="$3"
data_list="`eval echo -e \\$${data_name}`"
- data_value="`echo "$data_list"| sed "s/\#\#\#/\\n/g"|sed s/^\ // | grep "^$data_id##" | sed -n "s/.*\#\(.*\)$/\1/p"`"
-
+ #data_value="`echo "$data_list"| sed "s/\#\#\#/\\n/g"|sed s/^\ // | grep "^$data_id##" | sed -n "s/.*\#\(.*\)$/\1/p"`"
+ #data_value="`echo "$data_list"| sed "s/\#\#\#/\\n/g"|sed s/^\ // | sed -n "/^$data_id/s/.*\#\(.*\)$/\1/p"`"
+ data_value="`echo "$data_list"| sed "s/\#\#\#/\\n/g" | sed -n "s/^\ //;/^$data_id\#/s/.*\#\(.*\)$/\1/p"`"
# echo "WERT: [$data_value]"
export "${data_out}"="$data_value"
@@ -622,7 +622,7 @@ get_pref() {
}
debug_echo() {
- test "$ENABLE_DEBUG" = "yes" && echo -e "${C_YELLOW}DEBUG:${C_RESET}${C_WHITE} $1 ${C_RESET}" >/dev/tty0 2>&1
+ test "$ENABLE_DEBUG" = "yes" && echo -e "${C_YELLOW}DEBUG:${C_RESET}${C_WHITE} $1 ${C_RESET}" >"$OUT_TTY" 2>&1
}
start_networking() {
@@ -749,7 +749,7 @@ start_networking() {
echo "Restarting udhcpc for [$WLAN_NIC]"
killall udhcpc
- udhcpc -i "$WLAN_NIC" -H `cat /etc/hostname` >/dev/tty1 2>&1
+ udhcpc -i "$WLAN_NIC" -H `cat /etc/hostname` >"$OUT_TTY" 2>&1
fi
if test "$NW_TYPE" = "USB"
diff --git a/packages/altboot/files/c7x0/altboot-2.4.cfg b/packages/altboot/files/c7x0/altboot-2.4.cfg
index 32956e7f71..557730fa9f 100644
--- a/packages/altboot/files/c7x0/altboot-2.4.cfg
+++ b/packages/altboot/files/c7x0/altboot-2.4.cfg
@@ -1,3 +1,7 @@
+#
+# Altboot machine configuration for: C7x0 / Kernel 2.4
+#
+
# Handled by /sbin/init.altboot
# Allow booting images from SD or CF instead of booting
# the ROM.
diff --git a/packages/altboot/files/c7x0/altboot-2.6.cfg b/packages/altboot/files/c7x0/altboot-2.6.cfg
index c077659d0b..71c4c29dc2 100644
--- a/packages/altboot/files/c7x0/altboot-2.6.cfg
+++ b/packages/altboot/files/c7x0/altboot-2.6.cfg
@@ -1,3 +1,7 @@
+#
+# Altboot machine configuration for: c7x0 / Kernel 2.6
+#
+
# Handled by /sbin/init.altboot
# Allow booting images from SD or CF instead of booting
# the ROM.
diff --git a/packages/altboot/files/collie/altboot-2.4.cfg b/packages/altboot/files/collie/altboot-2.4.cfg
index bc0f9ca054..702902c9d0 100644
--- a/packages/altboot/files/collie/altboot-2.4.cfg
+++ b/packages/altboot/files/collie/altboot-2.4.cfg
@@ -1,4 +1,8 @@
#
+# Altboot machine configuration for: Collie / Kernel 2.4
+#
+
+#
# Handled by /sbin/init.altboot
# Allow booting images from SD or CF instead of booting
# the ROM.
diff --git a/packages/altboot/files/init.altboot b/packages/altboot/files/init.altboot
index 3dc7c60240..08ba81e962 100644
--- a/packages/altboot/files/init.altboot
+++ b/packages/altboot/files/init.altboot
@@ -17,6 +17,8 @@ REAL_INIT="/sbin/init.sysvinit"
INIT_RUNLEVEL="`cat /etc/inittab | sed -n "/^id\:/s/id\:\([0-9]\)\:.*$/\1/p"`"
test -z "$INIT_RUNLEVEL" && INIT_RUNLEVEL=5
+OUT_TTY="`tty`" ; test -z "$OUT_TTY" && OUT_TTY="/dev/tty1"
+
case "`uname -r`" in
2.6*) ALTBOOT_CFG_FILE="/etc/altboot-2.6.cfg";;
2.4*) ALTBOOT_CFG_FILE="/etc/altboot-2.4.cfg";;
@@ -24,7 +26,7 @@ case "`uname -r`" in
ALTBOOT_CFG_FILE="/etc/altboot-2.6.cfg";;
esac
-test -e "$ALTBOOT_CFG_FILE" && . "$ALTBOOT_CFG_FILE" || echo "WARNING: No $ALTBOOT_CFG_FILE found! Check your installation of Altboot!" > /dev/tty1
+test -e "$ALTBOOT_CFG_FILE" && . "$ALTBOOT_CFG_FILE" || echo "WARNING: No $ALTBOOT_CFG_FILE found! Check your installation of Altboot!" > "$OUT_TTY"
C_RED="\033[31m"
C_YELLOW="\033[33m"
@@ -34,8 +36,8 @@ C_RESET="\033[0m"
die() {
- echo -e "${C_RED}ERROR: $1${C_RESET}" >/dev/tty0
- exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1
+ echo -e "${C_RED}ERROR: $1${C_RESET}" >"$OUT_TTY"
+ exec $SH_SHELL <"$OUT_TTY" >"$OUT_TTY" 2>&1
}
debug_shell() {
@@ -178,8 +180,8 @@ run_timer() {
test -z "$key_ints" && key_ints="`cat /proc/interrupts | grep -i corgikbd`";;
esac
- stty -echo </dev/tty0 >/dev/tty0 2>&1
- echo -en "\n\nPlease press any key to launch altboot." > /dev/tty1
+ stty -echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
+ echo -en "\n\nPlease press any key to launch altboot." > "$OUT_TTY"
test -z "$TIMEOUT" && TIMEOUT="3"
@@ -196,10 +198,10 @@ run_timer() {
if test "$key_ints_now" != "$key_ints" -o -z "$key_ints_now"
then
launch_altboot=yes
- stty echo </dev/tty0 >/dev/tty0 2>&1
+ stty echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
break
fi
- echo -n "." >/dev/tty1
+ echo -n "." >"$OUT_TTY"
let cnt=$cnt+1
done
@@ -233,22 +235,22 @@ launch_selection() {
# The selected menu-item points to a directory
if test "$type" = DIR
then
- show_sub_menu /etc/altboot-menu/$file >/dev/tty0
- wait_for_input >/dev/tty0
- launch_selection /etc/altboot-menu >/dev/tty0
+ show_sub_menu /etc/altboot-menu/$file >"$OUT_TTY"
+ wait_for_input >"$OUT_TTY"
+ launch_selection /etc/altboot-menu >"$OUT_TTY"
fi
if test "$type" = MAIN
then
- show_sub_menu /etc/altboot-menu >/dev/tty0
- wait_for_input >/dev/tty0
- launch_selection /etc/altboot-menu >/dev/tty0
+ show_sub_menu /etc/altboot-menu >"$OUT_TTY"
+ wait_for_input >"$OUT_TTY"
+ launch_selection /etc/altboot-menu >"$OUT_TTY"
fi
- . $1/$file run "$file" >/dev/tty0
- die "WARNING: Using failsafe shell" >/dev/tty0
+ . $1/$file run "$file" >"$OUT_TTY"
+ die "WARNING: Using failsafe shell" >"$OUT_TTY"
;;
esac
@@ -273,13 +275,13 @@ wait_for_input() {
if ! (readlink /bin/sh | grep -q bash)
then
# This filters an "<ENTER>" from the user as "any key"
- ( while :; do read x< /dev/tty0 2>&1; done; ) > /dev/null 2>&1 &
+ ( while :; do read x< "$OUT_TTY" 2>&1; done; ) > /dev/null 2>&1 &
sleep 1; kill $! >/dev/null 2>&1
fi
- echo -n "Please choose one of the above [$last_selection]: " </dev/tty0 > /dev/tty0 2>&1
- stty echo </dev/tty0 >/dev/tty0 2>&1
- read junk< /dev/tty0 2>&1
+ echo -n "Please choose one of the above [$last_selection]: " <"$OUT_TTY" > "$OUT_TTY" 2>&1
+ stty echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
+ read junk< "$OUT_TTY" 2>&1
# This filters other chars the user may have used
@@ -323,7 +325,7 @@ fi
if test -f /proc/cmdline -a "`ps ax|wc -l|tr -d " "`" -gt 30 -a "$1" != "-force"
then
- echo "altboot: Using real init [$REAL_INIT] [$*] [`ps ax|wc -l|tr -d " "`] *" >/dev/tty1
+ echo "altboot: Using real init [$REAL_INIT] [$*] [`ps ax|wc -l|tr -d " "`] *" >"$OUT_TTY"
exec $REAL_INIT $*
# exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1
exit 0
@@ -331,7 +333,7 @@ else
# Boot original init if altboot is turned off
if test "$ENABLE_ALTBOOT" != "yes"
then
- echo "altboot: Using real init [$REAL_INIT] **" >/dev/tty1
+ echo "altboot: Using real init [$REAL_INIT] **" >"$OUT_TTY"
exec $REAL_INIT $INIT_RUNLEVEL
exit 0
fi
@@ -342,22 +344,22 @@ else
for file in $RC_FILES
do
- . /etc/altboot.rc/$file >/dev/tty1 2>&1 || echo "/etc/altboot.rc/$file failed!"
+ . /etc/altboot.rc/$file >"$OUT_TTY" 2>&1 || echo "/etc/altboot.rc/$file failed!"
done
# Make sure altboots master password is set
- set_password >/dev/tty0
+ set_password >"$OUT_TTY"
- test "$ASK_PW_ON_BOOT" = "yes" && verify_master_pw >/dev/tty0
+ test "$ASK_PW_ON_BOOT" = "yes" && verify_master_pw >"$OUT_TTY"
# When started with -force, always print the menu
echo "$*" | grep -q -- "-force" && TIMEOUT=0
# This timeout works by reading /proc/interrupts to see if the keyboard interrupt
# increases while the timer is running. A TIMEOUT of 0 will always launch altboot.
- run_timer >/dev/tty1
+ run_timer >"$OUT_TTY"
- echo "" >/dev/tty0
+ echo "" >"$OUT_TTY"
if test "$launch_altboot" != yes
@@ -366,40 +368,40 @@ else
last_selection="`cat /etc/altboot.conf`" >/dev/null 2>&1
test -z "$last_selection" && last_selection="1"
- echo "Booting last selection: [$last_selection]" >/dev/tty0
+ echo "Booting last selection: [$last_selection]" >"$OUT_TTY"
# Set up the wanna-be array of available menu entries and their numbers
show_menu /etc/altboot-menu >/dev/null
junk="$last_selection"
- launch_selection /etc/altboot-menu >/dev/tty0
+ launch_selection /etc/altboot-menu >"$OUT_TTY"
fi
# Anything after this point will never be reached if $launch_altboot != yes
# Show the altboot menu
- stty -echo </dev/tty0 >/dev/tty0 2>&1
- show_menu /etc/altboot-menu >/dev/tty0
+ stty -echo <"$OUT_TTY" >"$OUT_TTY" 2>&1
+ show_menu /etc/altboot-menu >"$OUT_TTY"
# Load last selection for use as default if <ENTER> is pressed at the prompt
last_selection="`cat /etc/altboot.conf`" >/dev/null 2>&1
test -z "$last_selection" && last_selection="1"
# Ask the user which menu-item to use
- wait_for_input >/dev/tty0
+ wait_for_input >"$OUT_TTY"
# This should _never_ happen.
if test -z "$junk"
then
- echo "WARNING: Trying failsafe mode" >/dev/tty0
- mount -o remount,rw / >/dev/tty0 2>&1
+ echo "WARNING: Trying failsafe mode" >"$OUT_TTY"
+ mount -o remount,rw / >"$OUT_TTY" 2>&1
echo "Dumping environment to /altboot.env"
echo "$CURRENT_ENV" > /altboot.env
- mount -o remount,ro / >/dev/tty0 2>&1
+ mount -o remount,ro / >"$OUT_TTY" 2>&1
junk=1
fi
- launch_selection /etc/altboot-menu >/dev/tty0
+ launch_selection /etc/altboot-menu >"$OUT_TTY"
# Uhoh, something went terribly wrong if we reach this point!
die "WARNING: Failsafe fall-through activated. Spawning emergency shell"
diff --git a/packages/altboot/files/poodle/altboot-2.4.cfg b/packages/altboot/files/poodle/altboot-2.4.cfg
index c5bd17050c..1bce54015c 100644
--- a/packages/altboot/files/poodle/altboot-2.4.cfg
+++ b/packages/altboot/files/poodle/altboot-2.4.cfg
@@ -1,4 +1,8 @@
#
+# Altboot machine configuration for: Poodle / Kernel 2.4
+#
+
+#
# Handled by /sbin/init.altboot
# Allow booting images from SD or CF instead of booting
# the ROM.
diff --git a/packages/altboot/files/spitz/altboot-2.6.cfg b/packages/altboot/files/spitz/altboot-2.6.cfg
index 2254a35552..a8da33463d 100644
--- a/packages/altboot/files/spitz/altboot-2.6.cfg
+++ b/packages/altboot/files/spitz/altboot-2.6.cfg
@@ -1,3 +1,7 @@
+#
+# Altboot machine configuration for: Spitz / Kernel 2.6
+#
+
# Handled by /sbin/init.altboot
# Allow booting images from SD or CF instead of booting
# the ROM.
diff --git a/packages/altboot/files/tosa/altboot-2.4.cfg b/packages/altboot/files/tosa/altboot-2.4.cfg
index c463ca0a43..f84e2d57b9 100644
--- a/packages/altboot/files/tosa/altboot-2.4.cfg
+++ b/packages/altboot/files/tosa/altboot-2.4.cfg
@@ -1,3 +1,7 @@
+#
+# Altboot machine configuration for: Tosa / Kernel 2.4
+#
+
# Handled by /sbin/init.altboot
# Allow booting images from SD or CF instead of booting
# the ROM.
diff --git a/packages/poboxserver/files/OpenPOBox-1.25.diff b/packages/poboxserver/files/OpenPOBox-1.25.diff
index 127c1d3e37..d3add6d79c 100644
--- a/packages/poboxserver/files/OpenPOBox-1.25.diff
+++ b/packages/poboxserver/files/OpenPOBox-1.25.diff
@@ -1,12 +1,11 @@
diff -ur OpenPOBox.orig/asearch/Makefile OpenPOBox/asearch/Makefile
--- OpenPOBox.orig/asearch/Makefile 2001-07-23 16:18:15.000000000 +0900
+++ OpenPOBox/asearch/Makefile 2003-06-14 17:52:12.668859200 +0900
-@@ -2,7 +2,7 @@
+@@ -2,7 +2,6 @@
# $Date: 2004/09/28 03:42:40 $
# $Revision: 1.6 $
#
-CC = gcc
-+CC = arm-linux-gcc
CFLAGS = -Xcpluscomm
WTANGLE = perl ../wtangle/wtangle
@@ -25,12 +24,11 @@ diff -ur OpenPOBox.orig/romakana/rklist OpenPOBox/romakana/rklist
diff -ur OpenPOBox.orig/server/Makefile.in OpenPOBox/server/Makefile.in
--- OpenPOBox.orig/server/Makefile.in 2002-02-19 09:37:10.000000000 +0900
+++ OpenPOBox/server/Makefile.in 2003-06-14 17:52:12.678873600 +0900
-@@ -10,7 +10,7 @@
+@@ -10,7 +10,6 @@
# CFLAGS = -DUNIX @CFLAGS@ -Xcpluscomm \
# -I../asearch -I../romakana -I../include -g
-CC = gcc
-+CC = arm-linux-gcc
CFLAGS = -DUNIX @CFLAGS@ \
-I/usr/local/include -I/usr/local/lib/glib/include \
-I@prefix@/include \
diff --git a/packages/poboxserver/poboxserver_1.2.5.bb b/packages/poboxserver/poboxserver_1.2.5.bb
index 042923a66b..7ed58776a5 100644
--- a/packages/poboxserver/poboxserver_1.2.5.bb
+++ b/packages/poboxserver/poboxserver_1.2.5.bb
@@ -2,6 +2,8 @@ DESCRIPTION = "OpenPOBox is an open source implementation of a 'Predictive Opera
SECTION = "libs/inputmethods"
LICENSE = "GPL"
DEPENDS = "perl-native ruby-native"
+# DEPENDS += "nkf-native"
+PR = "r1"
BROKEN = "1"
@@ -10,7 +12,27 @@ SRC_URI = "http://pitecan.com/OpenPOBox/dist/pobox-${PV}.tgz \
file://OpenPOBox-1.25.diff;patch=1"
S = "${WORKDIR}/OpenPOBox"
-inherit autotools
+inherit autotools update-rc.d
+
+FILES_${PN} = "${palmtopdir}/pobox/* ${sysconfdir}/init.d/pbserver"
+
+INITSCRIPT_NAME = "pbserver"
+INITSCRIPT_PARAMS = "start 99 5 . stop 01 0 ."
EXTRA_OECONF = "--enable-lookup"
PARALLEL_MAKE = ""
+
+do_compile() {
+ oe_runmake
+ cp ${S}/dict/data/fugodic ${WORKDIR}/pbserver/fugodic.txt
+ oe_runmake -C ${WORKDIR}/pbserver dic
+}
+
+do_install() {
+ install -d ${D}${palmtopdir}/pobox/
+ install -m 0755 ${S}/server/pbserver ${D}${palmtopdir}/pobox/
+ install -m 0644 ${WORKDIR}/pbserver/staticdic ${D}${palmtopdir}/pobox/
+ install -m 0644 ${WORKDIR}/pbserver/learndic ${D}${palmtopdir}/pobox/
+ install -d ${D}${sysconfdir}/init.d/
+ install -m 0755 ${WORKDIR}/pbserver/pbserver.sh ${D}${sysconfdir}/init.d/pbserver
+}
diff --git a/packages/xdpyinfo/xdpyinfo_1.0.1.bb b/packages/xdpyinfo/xdpyinfo_1.0.1.bb
index 41d9807551..a8972e18ab 100644
--- a/packages/xdpyinfo/xdpyinfo_1.0.1.bb
+++ b/packages/xdpyinfo/xdpyinfo_1.0.1.bb
@@ -3,8 +3,9 @@ DEPENDS = "libx11 libxext libxtst"
DESCRIPTION = "X display information utility"
SECTION = "x11/base"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/xdpyinfo-1.0.1.tar.bz2 \
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-X11R7.0-1.0.1.tar.bz2 \
file://disable-xkb.patch;patch=1"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
EXTRA_OECONF = "--disable-xkb"
diff --git a/packages/xev/xev_1.0.1.bb b/packages/xev/xev_1.0.1.bb
index 4f00093a37..2d0f79b046 100644
--- a/packages/xev/xev_1.0.1.bb
+++ b/packages/xev/xev_1.0.1.bb
@@ -5,7 +5,8 @@ MAINTAINER = "Justin Patrin <papercrane@reversefold.com>"
SECTION = "x11/base"
DEPENDS = "libx11 libxau"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-${PV}.tar.bz2 \
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-X11R7.0-${PV}.tar.bz2 \
file://diet-x11.patch;patch=1"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
inherit autotools
diff --git a/packages/xhost/xhost_1.0.0.bb b/packages/xhost/xhost_1.0.0.bb
index baacf25564..220de1b535 100644
--- a/packages/xhost/xhost_1.0.0.bb
+++ b/packages/xhost/xhost_1.0.0.bb
@@ -4,6 +4,7 @@ DESCRIPTION = "server access control program for X"
MAINTAINER = "Rene Wagner <rw@handhelds.org>"
SECTION = "x11/base"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-${PV}.tar.bz2"
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-X11R7.0-${PV}.tar.bz2"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
inherit autotools pkgconfig
diff --git a/packages/xlibs/libfontenc_1.0.1.bb b/packages/xlibs/libfontenc_1.0.1.bb
index 3d56bca223..02883c4d26 100644
--- a/packages/xlibs/libfontenc_1.0.1.bb
+++ b/packages/xlibs/libfontenc_1.0.1.bb
@@ -6,10 +6,6 @@ LICENSE = "BSD-X"
DEPENDS = "zlib xproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/${PN}-${PV}.tar.bz2"
+XORG_PN = "${PN}"
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xlibs/libice_X11R7.0-1.0.0.bb b/packages/xlibs/libice_X11R7.0-1.0.0.bb
index 251188b1c2..cd5c2d372f 100644
--- a/packages/xlibs/libice_X11R7.0-1.0.0.bb
+++ b/packages/xlibs/libice_X11R7.0-1.0.0.bb
@@ -7,11 +7,6 @@ LICENSE= "MIT"
DEPENDS = "libx11 util-macros"
PROVIDES = "ice"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libICE-${PV}.tar.bz2"
-S = "${WORKDIR}/libICE-${PV}"
+XORG_PN = "libICE"
-inherit autotools pkgconfig
-
-do_stage () {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xlibs/liblbxutil_1.0.0.bb b/packages/xlibs/liblbxutil_1.0.0.bb
index 4edaa71ba4..36837c23e4 100644
--- a/packages/xlibs/liblbxutil_1.0.0.bb
+++ b/packages/xlibs/liblbxutil_1.0.0.bb
@@ -6,14 +6,12 @@ LICENSE = "GPL"
DEPENDS = "xextproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/${PN}-${PV}.tar.bz2 \
- file://mkg3states.patch;patch=1"
+XORG_PN = "${PN}"
+
+include xorg-xlibs.inc
-inherit autotools pkgconfig
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/${PN}-X11R7.0-${PV}.tar.bz2 \
+ file://mkg3states.patch;patch=1"
export CC_FOR_BUILD = "${BUILD_CC}"
export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libsm_X11R7.0-1.0.0.bb b/packages/xlibs/libsm_X11R7.0-1.0.0.bb
index d102f7db7a..bf96271ba6 100644
--- a/packages/xlibs/libsm_X11R7.0-1.0.0.bb
+++ b/packages/xlibs/libsm_X11R7.0-1.0.0.bb
@@ -7,11 +7,6 @@ LICENSE = "MIT-X"
DEPENDS = "libx11 libice util-macros"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libSM-${PV}.tar.bz2"
-S = "${WORKDIR}/libSM-${PV}"
+XORG_PN = "libSM"
-inherit autotools pkgconfig
-
-do_stage () {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xlibs/libx11_X11R7.0-1.0.0.bb b/packages/xlibs/libx11_X11R7.0-1.0.0.bb
index d5be287341..ac9d87292a 100644
--- a/packages/xlibs/libx11_X11R7.0-1.0.0.bb
+++ b/packages/xlibs/libx11_X11R7.0-1.0.0.bb
@@ -9,10 +9,9 @@ PROVIDES = "x11"
FILES_${PN} += "${datadir}/X11/XKeysymDB ${datadir}/X11/XErrorDB"
FILES_${PN}-locale += "${datadir}/X11/locale"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libX11-${PV}.tar.bz2"
-S = "${WORKDIR}/libX11-${PV}"
+XORG_PN = "libX11"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
@@ -24,7 +23,3 @@ do_compile() {
rm -f ${STAGING_INCDIR}/X11/Xlib.h
oe_runmake
}
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxau_1.0.0.bb b/packages/xlibs/libxau_1.0.0.bb
index 828d4ebd3d..f64be68583 100644
--- a/packages/xlibs/libxau_1.0.0.bb
+++ b/packages/xlibs/libxau_1.0.0.bb
@@ -7,11 +7,7 @@ LICENSE= "MIT"
DEPENDS = "xproto util-macros"
PROVIDES = "xau"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXau-${PV}.tar.bz2"
-S = "${WORKDIR}/libXau-${PV}"
+XORG_PN = "libXau"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxaw_X11R7.0-1.0.1.bb b/packages/xlibs/libxaw_X11R7.0-1.0.1.bb
index 4d3c6acdbd..03ac373f77 100644
--- a/packages/xlibs/libxaw_X11R7.0-1.0.1.bb
+++ b/packages/xlibs/libxaw_X11R7.0-1.0.1.bb
@@ -7,14 +7,9 @@ LICENSE = "MIT"
DEPENDS = "xproto libx11 libxt libxmu libxpm"
PROVIDES = "xaw"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXaw-${PV}.tar.bz2"
-S = "${WORKDIR}/libXaw-${PV}"
+XORG_PN = "libXaw"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
# FIXME: libXaw needs a full x11, not diet
BROKEN = "1"
-
-do_stage () {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxcomposite_X11R7.0-0.2.2.2.bb b/packages/xlibs/libxcomposite_X11R7.0-0.2.2.2.bb
index 57eef74aa3..c26f12e5c9 100644
--- a/packages/xlibs/libxcomposite_X11R7.0-0.2.2.2.bb
+++ b/packages/xlibs/libxcomposite_X11R7.0-0.2.2.2.bb
@@ -6,12 +6,9 @@ LICENSE= "BSD-X"
DEPENDS = "libx11 compositeproto xextproto libxfixes"
PROVIDES = "xcomposite"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXcomposite-${PV}.tar.bz2 \
- file://change-include-order.patch;patch=1"
-S = "${WORKDIR}/libXcomposite-${PV}"
+XORG_PN = "libXcomposite"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
-do_stage() {
- autotools_stage_all
-}
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXcomposite-X11R7.0-${PV}.tar.bz2 \
+ file://change-include-order.patch;patch=1"
diff --git a/packages/xlibs/libxcursor_1.1.5.2.bb b/packages/xlibs/libxcursor_1.1.5.2.bb
index d20b52d0f0..9aed134fbb 100644
--- a/packages/xlibs/libxcursor_1.1.5.2.bb
+++ b/packages/xlibs/libxcursor_1.1.5.2.bb
@@ -6,13 +6,8 @@ LICENSE= "BSD-X"
DEPENDS = "libxfixes"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXcursor-${PV}.tar.bz2"
-S = "${WORKDIR}/libXcursor-${PV}"
+XORG_PN = "libXcursor"
-FILES_${PN} += "${libdir}/libXcursor.so"
-
-inherit autotools pkgconfig
+include xorg-xlibs.inc
-do_stage() {
- autotools_stage_all
-}
+FILES_${PN} += "${libdir}/libXcursor.so"
diff --git a/packages/xlibs/libxdamage_1.0.2.2.bb b/packages/xlibs/libxdamage_1.0.2.2.bb
index 572df1d190..acea09c7bd 100644
--- a/packages/xlibs/libxdamage_1.0.2.2.bb
+++ b/packages/xlibs/libxdamage_1.0.2.2.bb
@@ -6,11 +6,6 @@ LICENSE= "BSD-X"
DEPENDS = "libx11 damageproto libxfixes xproto"
PROVIDES = "xdamage"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXdamage-${PV}.tar.bz2"
-S = "${WORKDIR}/libXdamage-${PV}"
+XORG_PN = "libXdamage"
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xlibs/libxdmcp_1.0.0.bb b/packages/xlibs/libxdmcp_1.0.0.bb
index 4ba746369f..5ea8cdd513 100644
--- a/packages/xlibs/libxdmcp_1.0.0.bb
+++ b/packages/xlibs/libxdmcp_1.0.0.bb
@@ -7,11 +7,6 @@ LICENSE= "MIT"
DEPENDS = "xproto util-macros"
PROVIDES = "xdmcp"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXdmcp-${PV}.tar.bz2"
-S = "${WORKDIR}/libXdmcp-${PV}"
+XORG_PN = "libXdmcp"
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xlibs/libxext_1.0.0.bb b/packages/xlibs/libxext_1.0.0.bb
index 1c15f819b6..1c4a21280e 100644
--- a/packages/xlibs/libxext_1.0.0.bb
+++ b/packages/xlibs/libxext_1.0.0.bb
@@ -7,13 +7,9 @@ LICENSE= "MIT"
DEPENDS = "xproto libx11 xextproto util-macros"
PROVIDES = "xext"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXext-${PV}.tar.bz2"
-S = "${WORKDIR}/libXext-${PV}"
+EXTRA_OECONF="--enable-malloc0returnsnull"
-inherit autotools pkgconfig
+XORG_PN = "libXext"
-EXTRA_OECONF="--enable-malloc0returnsnull"
+include xorg-xlibs.inc
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxfixes_3.0.1.2.bb b/packages/xlibs/libxfixes_3.0.1.2.bb
index ea898d723b..b22da223f5 100644
--- a/packages/xlibs/libxfixes_3.0.1.2.bb
+++ b/packages/xlibs/libxfixes_3.0.1.2.bb
@@ -5,11 +5,6 @@ LICENSE= "BSD-X"
DEPENDS = "libx11 fixesproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXfixes-${PV}.tar.bz2"
-S = "${WORKDIR}/libXfixes-${PV}"
+XORG_PN = "libXfixes"
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xlibs/libxfont_X11R7.0-1.0.0.bb b/packages/xlibs/libxfont_X11R7.0-1.0.0.bb
index c4614e8d78..aff0e55e21 100644
--- a/packages/xlibs/libxfont_X11R7.0-1.0.0.bb
+++ b/packages/xlibs/libxfont_X11R7.0-1.0.0.bb
@@ -7,11 +7,6 @@ LICENSE = "BSD-X"
DEPENDS = "xproto xtrans zlib fontcacheproto fontsproto libfontenc freetype"
PROVIDES = "xfont"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXfont-${PV}.tar.bz2"
-S = "${WORKDIR}/libXfont-${PV}"
+XORG_PN = "libXfont"
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xlibs/libxft_2.1.8.2.bb b/packages/xlibs/libxft_2.1.8.2.bb
index d97049d935..f1b6456740 100644
--- a/packages/xlibs/libxft_2.1.8.2.bb
+++ b/packages/xlibs/libxft_2.1.8.2.bb
@@ -5,20 +5,16 @@ SECTION = "x11/libs"
DEPENDS = "libx11 xproto libxrender freetype fontconfig"
PROVIDES = "xft"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXft-${PV}.tar.bz2"
-S = "${WORKDIR}/libXft-${PV}"
+
+XORG_PN = "libXft"
+
+include xorg-xlibs.inc
FILES_${PN} = ${libdir}/lib*.so.*
FILES_${PN}-dev = ${includedir} ${libdir}/lib*.so ${libdir}/*.la \
${libdir}/*.a ${libdir}/pkgconfig \
${datadir}/aclocal ${bindir} ${sbindir}
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
-
python do_package() {
if bb.data.getVar('DEBIAN_NAMES', d, 1):
bb.data.setVar('PKG_${PN}', 'libxft2', d)
diff --git a/packages/xlibs/libxi_X11R7.0-1.0.0.bb b/packages/xlibs/libxi_X11R7.0-1.0.0.bb
index e771e60cda..fa63e588f3 100644
--- a/packages/xlibs/libxi_X11R7.0-1.0.0.bb
+++ b/packages/xlibs/libxi_X11R7.0-1.0.0.bb
@@ -5,13 +5,8 @@ LICENSE = "MIT-X"
DEPENDS = "xproto libx11 xextproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXi-${PV}.tar.bz2"
-S = "${WORKDIR}/libXi-${PV}"
+XORG_PN = "libXi"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxinerama_X11R7.0-1.0.1.bb b/packages/xlibs/libxinerama_X11R7.0-1.0.1.bb
index 26b746d465..09a4f564f5 100644
--- a/packages/xlibs/libxinerama_X11R7.0-1.0.1.bb
+++ b/packages/xlibs/libxinerama_X11R7.0-1.0.1.bb
@@ -7,13 +7,8 @@ LICENSE = "MIT"
DEPENDS = "xineramaproto xproto libx11 libxext"
PROVIDES = "xinerama"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXinerama-${PV}.tar.bz2"
-S = "${WORKDIR}/libXinerama-${PV}"
+XORG_PN = "libXinerama"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxkbfile_1.0.1.bb b/packages/xlibs/libxkbfile_1.0.1.bb
index deae8278c5..5cbc9a1150 100644
--- a/packages/xlibs/libxkbfile_1.0.1.bb
+++ b/packages/xlibs/libxkbfile_1.0.1.bb
@@ -6,10 +6,6 @@ LICENSE = "GPL"
DEPENDS = "libx11"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/${PN}-${PV}.tar.bz2"
+XORG_PN = "${PN}"
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xlibs/libxkbui_1.0.1.bb b/packages/xlibs/libxkbui_1.0.1.bb
index b1ce4f4c11..ded3da66f3 100644
--- a/packages/xlibs/libxkbui_1.0.1.bb
+++ b/packages/xlibs/libxkbui_1.0.1.bb
@@ -6,10 +6,7 @@ LICENSE = "GPL"
DEPENDS = "libx11 libxt libxkbfile kbproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/${PN}-${PV}.tar.bz2"
+XORG_PN = "${PN}"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxmu_1.0.0.bb b/packages/xlibs/libxmu_1.0.0.bb
index e404ff527d..1693e5d0d5 100644
--- a/packages/xlibs/libxmu_1.0.0.bb
+++ b/packages/xlibs/libxmu_1.0.0.bb
@@ -7,8 +7,9 @@ LICENSE = "MIT"
DEPENDS = "libxt libxext util-macros"
PROVIDES = "xmu"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXmu-${PV}.tar.bz2"
-S = "${WORKDIR}/libXmu-${PV}"
+XORG_PN = "libXmu"
+
+include xorg-xlibs.inc
PACKAGES =+ "libxmuu libxmuu-dev"
@@ -16,9 +17,3 @@ FILES_libxmuu = "${libdir}/libXmuu.so.*"
FILES_libxmuu-dev = "${libdir}/libXmuu.so"
LEAD_SONAME = "libXmu"
-
-inherit autotools pkgconfig
-
-do_stage () {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxp_1.0.0.bb b/packages/xlibs/libxp_1.0.0.bb
index c8547cf783..15653f1390 100644
--- a/packages/xlibs/libxp_1.0.0.bb
+++ b/packages/xlibs/libxp_1.0.0.bb
@@ -5,14 +5,9 @@ LICENSE = "MIT"
DEPENDS = "libx11 libxext xextproto libxau printproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXp-${PV}.tar.bz2"
-S = "${WORKDIR}/libXp-${PV}"
+XORG_PN = "libXp"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions"
EXTRA_OECONF="--enable-malloc0returnsnull"
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxpm_3.5.4.2.bb b/packages/xlibs/libxpm_3.5.4.2.bb
index 0f2b8a94a1..c88bd3f6bc 100644
--- a/packages/xlibs/libxpm_3.5.4.2.bb
+++ b/packages/xlibs/libxpm_3.5.4.2.bb
@@ -7,10 +7,9 @@ PR = "r1"
DEPENDS = "xproto libx11 util-macros"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXpm-${PV}.tar.bz2"
-S = "${WORKDIR}/libXpm-${PV}"
+XORG_PN = "libXpm"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
do_stage () {
install -m 0644 ${S}/include/X11/xpm.h ${STAGING_INCDIR}/X11/xpm.h
diff --git a/packages/xlibs/libxrandr_1.1.0.2.bb b/packages/xlibs/libxrandr_1.1.0.2.bb
index 81787ad871..3081f4ab86 100644
--- a/packages/xlibs/libxrandr_1.1.0.2.bb
+++ b/packages/xlibs/libxrandr_1.1.0.2.bb
@@ -5,13 +5,8 @@ LICENSE = "BSD-X"
DEPENDS = "randrproto libx11 libxrender libxext"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXrandr-${PV}.tar.bz2"
-S = "${WORKDIR}/libXrandr-${PV}"
+XORG_PN = "libXrandr"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxrender_0.9.0.2.bb b/packages/xlibs/libxrender_0.9.0.2.bb
index fdaa9f4eb9..1cff60983a 100644
--- a/packages/xlibs/libxrender_0.9.0.2.bb
+++ b/packages/xlibs/libxrender_0.9.0.2.bb
@@ -5,13 +5,8 @@ LICENSE = "BSD"
DEPENDS = "renderproto libx11"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXrender-${PV}.tar.bz2"
-S = "${WORKDIR}/libXrender-${PV}"
+XORG_PN = "libXrender"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxres_X11R7.0-1.0.0.bb b/packages/xlibs/libxres_X11R7.0-1.0.0.bb
index 69f20fc8f4..a9806f57b1 100644
--- a/packages/xlibs/libxres_X11R7.0-1.0.0.bb
+++ b/packages/xlibs/libxres_X11R7.0-1.0.0.bb
@@ -6,13 +6,8 @@ LICENSE = "X-MIT"
DEPENDS = "libx11 xextproto libxext resourceproto"
PROVIDES = "xres"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXres-${PV}.tar.bz2"
-S = "${WORKDIR}/libXres-${PV}"
+XORG_PN = "libXres"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxss_1.0.1.bb b/packages/xlibs/libxss_1.0.1.bb
index 54abc86a23..fa6cb61ec7 100644
--- a/packages/xlibs/libxss_1.0.1.bb
+++ b/packages/xlibs/libxss_1.0.1.bb
@@ -7,14 +7,9 @@ DEPENDS = "libx11 libxext xextproto scrnsaverproto"
PROVIDES = "libxss"
RREPLACES = "libxss"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXScrnSaver-${PV}.tar.bz2"
-S = "${WORKDIR}/libXScrnSaver-${PV}"
+XORG_PN = "libXscrnSaver"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
#CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions"
EXTRA_OECONF="--enable-malloc0returnsnull"
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxt_1.0.0.bb b/packages/xlibs/libxt_1.0.0.bb
index be1b4c94e9..606de5f31c 100644
--- a/packages/xlibs/libxt_1.0.0.bb
+++ b/packages/xlibs/libxt_1.0.0.bb
@@ -7,10 +7,9 @@ LICENSE = "X-MIT"
DEPENDS = "libx11 libsm util-macros kbproto"
PROVIDES = "xt"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXt-X11R7.0-${PV}.tar.bz2"
-S = "${WORKDIR}/libXt-X11R7.0-${PV}"
+XORG_PN = "libXt"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull --disable-install-makestrs --disable-xkb"
@@ -21,7 +20,3 @@ do_compile() {
)
oe_runmake
}
-
-do_stage () {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxtst_1.0.1.bb b/packages/xlibs/libxtst_1.0.1.bb
index 89c7b6607a..1355142ffd 100644
--- a/packages/xlibs/libxtst_1.0.1.bb
+++ b/packages/xlibs/libxtst_1.0.1.bb
@@ -7,11 +7,6 @@ LICENSE = "GPL"
DEPENDS = "libx11 libxext recordproto xextproto inputproto"
PROVIDES = "xtst"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXtst-${PV}.tar.bz2"
-S = "${WORKDIR}/libXtst-${PV}"
+XORG_PN = "libXtst"
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xlibs/libxv_X11R7.0-1.0.1.bb b/packages/xlibs/libxv_X11R7.0-1.0.1.bb
index 12b480dedc..2d5c6aeb17 100644
--- a/packages/xlibs/libxv_X11R7.0-1.0.1.bb
+++ b/packages/xlibs/libxv_X11R7.0-1.0.1.bb
@@ -5,13 +5,8 @@ LICENSE = "GPL"
DEPENDS = "libx11 libxext xextproto videoproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXv-${PV}.tar.bz2"
-S = "${WORKDIR}/libXv-${PV}"
+XORG_PN = "libXv"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
-
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxxf86dga_1.0.0.bb b/packages/xlibs/libxxf86dga_1.0.0.bb
index 46ab999c5f..82e784789f 100644
--- a/packages/xlibs/libxxf86dga_1.0.0.bb
+++ b/packages/xlibs/libxxf86dga_1.0.0.bb
@@ -4,10 +4,9 @@ LICENSE = "XFree86"
DEPENDS = "libx11 libxext xf86dgaproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXxf86dga-${PV}.tar.bz2"
-S = "${WORKDIR}/libXxf86dga-${PV}"
+XORG_PN = "libXxf86dga"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
diff --git a/packages/xlibs/libxxf86misc_1.0.0.bb b/packages/xlibs/libxxf86misc_1.0.0.bb
index dfb65af2bc..5d5badb7a1 100644
--- a/packages/xlibs/libxxf86misc_1.0.0.bb
+++ b/packages/xlibs/libxxf86misc_1.0.0.bb
@@ -1,16 +1,11 @@
DESCRIPTION = "Xxf86vm extension library."
SECTION = "x11/libs"
LICENSE = "MIT"
-
DEPENDS = "libx11 libxext xf86miscproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXxf86misc-${PV}.tar.bz2"
-S = "${WORKDIR}/libXxf86misc-${PV}"
+XORG_PN = "libXxf86misc"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/libxxf86vm_1.0.0.bb b/packages/xlibs/libxxf86vm_1.0.0.bb
index a5df50e566..47a319c28e 100644
--- a/packages/xlibs/libxxf86vm_1.0.0.bb
+++ b/packages/xlibs/libxxf86vm_1.0.0.bb
@@ -4,13 +4,9 @@ LICENSE = "MIT"
DEPENDS = "libx11 libxext xf86vidmodeproto"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/libXxf86vm-${PV}.tar.bz2"
-S = "${WORKDIR}/libXxf86vm-${PV}"
+XORG_PN = "libXxf86vm"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
EXTRA_OECONF="--enable-malloc0returnsnull"
-do_stage() {
- autotools_stage_all
-}
diff --git a/packages/xlibs/util-macros_1.0.1.bb b/packages/xlibs/util-macros_1.0.1.bb
index c019e94780..6b009a7ea7 100644
--- a/packages/xlibs/util-macros_1.0.1.bb
+++ b/packages/xlibs/util-macros_1.0.1.bb
@@ -3,12 +3,8 @@ SECTION = "x11/libs"
LICENSE= "Xorg"
#MAINTAINER = ""
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/util/${PN}-X11R7.0-${PV}.tar.bz2"
-
-S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
+XORG_PN = "${PN}"
-inherit autotools pkgconfig
+include xorg-xlibs.inc
-do_stage () {
- autotools_stage_all
-}
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/util/${PN}-X11R7.0-${PV}.tar.bz2"
diff --git a/packages/xlibs/xorg-xlibs.inc b/packages/xlibs/xorg-xlibs.inc
new file mode 100644
index 0000000000..1a89d35363
--- /dev/null
+++ b/packages/xlibs/xorg-xlibs.inc
@@ -0,0 +1,9 @@
+XORG_PV = "${@['X11R7.0-${PV}','${PV}'][bb.data.getVar('PV', d, 1)[0:8]=='X11R7.0-']}"
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/${XORG_PN}-${XORG_PV}.tar.bz2"
+S = "${WORKDIR}/${XORG_PN}-${XORG_PV}"
+
+inherit autotools pkgconfig
+
+do_stage() {
+ autotools_stage_all
+}
diff --git a/packages/xlibs/xtrans_1.0.0.bb b/packages/xlibs/xtrans_1.0.0.bb
index 79503126f2..b6933bf615 100644
--- a/packages/xlibs/xtrans_1.0.0.bb
+++ b/packages/xlibs/xtrans_1.0.0.bb
@@ -4,10 +4,6 @@ DESCRIPTION = "network API translation layer to \
insulate X applications and libraries from OS \
network vageries."
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/lib/${PN}-${PV}.tar.bz2"
+XORG_PN = "${PN}"
-inherit autotools pkgconfig
-
-do_stage() {
- autotools_stage_all
-}
+include xorg-xlibs.inc
diff --git a/packages/xmodmap/xmodmap_1.0.0.bb b/packages/xmodmap/xmodmap_1.0.0.bb
index 57140361b4..d65c84bb71 100644
--- a/packages/xmodmap/xmodmap_1.0.0.bb
+++ b/packages/xmodmap/xmodmap_1.0.0.bb
@@ -5,6 +5,7 @@ SECTION = "x11/base"
DEPENDS = "libx11"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/xmodmap-1.0.0.tar.bz2"
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-X11R7.0-1.0.0.tar.bz2"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
inherit autotools pkgconfig
diff --git a/packages/xorg-data/data-common.inc b/packages/xorg-data/data-common.inc
index 4d01e474c7..47dc922500 100644
--- a/packages/xorg-data/data-common.inc
+++ b/packages/xorg-data/data-common.inc
@@ -2,7 +2,8 @@ DESCRIPTION = "X data files"
SECTION = "x11/data"
LICENSE= "MIT-X"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/data/${PN}-${PV}.tar.bz2"
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/data/${PN}-X11R7.0-${PV}.tar.bz2"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
inherit autotools pkgconfig
diff --git a/packages/xorg-fonts/font-common.inc b/packages/xorg-fonts/font-common.inc
index 0acd27406a..37d478bdc6 100644
--- a/packages/xorg-fonts/font-common.inc
+++ b/packages/xorg-fonts/font-common.inc
@@ -2,7 +2,8 @@ DESCRIPTION = "X font files"
SECTION = "x11/fonts"
LICENSE= "MIT-X"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/font/${PN}-${PV}.tar.bz2"
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/font/${PN}-X11R7.0-${PV}.tar.bz2"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
FONT_DIR = "${datadir}/share/fonts"
DEPENDS = "encodings mkfontscale mkfontdir"
diff --git a/packages/xrandr/xrandr_1.0.1.bb b/packages/xrandr/xrandr_1.0.1.bb
index 51f8f1c196..db750c8b97 100644
--- a/packages/xrandr/xrandr_1.0.1.bb
+++ b/packages/xrandr/xrandr_1.0.1.bb
@@ -3,7 +3,7 @@ DEPENDS = "libxrandr libx11 libxext"
DESCRIPTION = "X Resize and Rotate extension command."
SECTION = "x11/base"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/xrandr-1.0.1.tar.bz2"
-S = "${WORKDIR}/${PN}-${PV}"
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-X11R7.0-1.0.1.tar.bz2"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
inherit autotools pkgconfig
diff --git a/packages/xrdb/xrdb_1.0.1.bb b/packages/xrdb/xrdb_1.0.1.bb
index 7d6b588dd1..5703556a33 100644
--- a/packages/xrdb/xrdb_1.0.1.bb
+++ b/packages/xrdb/xrdb_1.0.1.bb
@@ -5,7 +5,7 @@ SECTION = "x11/base"
LICENSE = "xrdb"
PR = "r0"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/xrdb-1.0.1.tar.bz2"
-S = "${WORKDIR}/${PN}-${PV}"
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-X11R7.0-1.0.1.tar.bz2"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
inherit autotools pkgconfig
diff --git a/packages/xset/xset_1.0.1.bb b/packages/xset/xset_1.0.1.bb
index 793e6d420b..55f3a0de21 100644
--- a/packages/xset/xset_1.0.1.bb
+++ b/packages/xset/xset_1.0.1.bb
@@ -8,8 +8,9 @@ CFLAGS += "-D_GNU_SOURCE"
SECTION = "x11/base"
-SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-${PV}.tar.bz2 \
+SRC_URI = "${XORG_MIRROR}/X11R7.0/src/app/${PN}-X11R7.0-${PV}.tar.bz2 \
file://disable-xkb.patch;patch=1"
+S = "${WORKDIR}/${PN}-X11R7.0-${PV}"
EXTRA_OECONF = "--disable-xkb"