move burg-emu to apps; burg-bzr & burg-themes to core;

This commit is contained in:
Drake 2010-12-23 05:29:06 +00:00
parent 9e8f578d0f
commit d816717eba
15 changed files with 0 additions and 413 deletions

View File

@ -1,27 +0,0 @@
#! /bin/sh -e
########################################################
# This script generates a memtest86+ entry on grub.cfg #
# if memtest is installed on the system. #
########################################################
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
. ${libdir}/burg/burg-mkconfig_lib
MEMTEST86_IMAGE="/boot/memtest86+/memtest.bin"
CLASS="--class memtest86 --class gnu --class tool"
if [ -e $MEMTEST86_IMAGE ] && is_path_readable_by_grub $MEMTEST86_IMAGE; then
# image exists, create menu entry
echo "Found memtest86+ image: $MEMTEST86_IMAGE" >&2
cat << EOF
menuentry "Memory test (memtest86+)" $CLASS {
EOF
prepare_grub_to_access_device `${grub_probe} --target=device $MEMTEST86_IMAGE` | sed -e "s/^/ /"
cat << EOF
linux16 (\$root)`make_system_path_relative_to_its_root $MEMTEST86_IMAGE`
}
EOF
fi

View File

@ -1,75 +0,0 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=burg-bzr
pkgver=1844
pkgrel=1
pkgdesc="A brand-new boot loader based on GRUB."
url="https://launchpad.net/burg"
license="GPL3"
arch=('i686' 'x86_64')
depends=('ruby' 'python' 'gettext' 'freetype2' 'sdl' 'ncurses')
optdepends=('os-prober' 'memtest86+')
makedepends=('bzr')
changelog=burg.Changelog
provides=('burg')
md5sums=('c8c2e6b5aa0799fbcbc286c2b77b32c2'
'fa7e08137c8736c0b90375f09beaa101'
'990eba4f3cb1808c97c2972de6957a3c'
'06dbd97a27ce89edd49a5f974679b012')
source=('burg.default' 'arch-burg-detection-folding.patch' '20_memtest86+' 'update-burg')
install='burg.install'
_bzrmod=burg
_bzrtrunk=lp:${_bzrmod}
build() {
cd $srcdir/
msg "Connecting to the server...."
if [ ! -d ./${_bzrmod} ]; then
bzr branch ${_bzrtrunk} -r ${pkgver}
else
cd ${_bzrmod} && bzr pull -r ${pkgver}
fi
msg "BZR checkout done or server timeout"
cd "${srcdir}/${_bzrmod}"
# some random patches to facilitate automatic creation of grub.cfg
patch -Np1 -i ${srcdir}/arch-burg-detection-folding.patch
cd "${srcdir}/${_bzrmod}"
## Archlinux changed default /usr/bin/python to 3.1.2, need to use /usr/bin/python2 instead
sed -i 's|python|python2|' ${srcdir}/${_bzrmod}/autogen.sh
./autogen.sh || return 1
rm -rf $srcdir/$_bzrmod-build
msg "Creating build directory..."
mkdir $srcdir/$_bzrmod-build
msg "Starting make..."
cd $srcdir/$_bzrmod-build
$srcdir/$_bzrmod/configure --prefix=/usr --bindir=/bin \
--sbindir=/sbin --mandir=/usr/share/man \
--infodir=/usr/share/info --sysconfdir=/etc || return 1
make || return 1
make install DESTDIR=$pkgdir || return 1
# install /etc/default/burg(needed config file)
install -Dm644 ${srcdir}/burg.default ${pkgdir}/etc/default/burg
# install update-burg script
install -Dm755 ${srcdir}/update-burg ${pkgdir}/sbin/update-burg
# install memtest config detection
install -Dm755 ${srcdir}/20_memtest86+ ${pkgdir}/etc/burg.d/20_memtest86+
}

View File

@ -1,59 +0,0 @@
--- orig/util/grub.d/10_linux.in 2010-11-01 14:41:38.000000000 -0600
+++ new/util/grub.d/10_linux.in 2010-11-01 15:54:26.796667850 -0600
@@ -51,7 +51,7 @@
|| ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" ; then
LINUX_ROOT_DEVICE=${GRUB_DEVICE}
else
- LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
+ LINUX_ROOT_DEVICE="/dev/disk/by-uuid/${GRUB_DEVICE_UUID}"
fi
linux_entry ()
@@ -62,10 +62,8 @@
args="$4"
if ${recovery} ; then
title="$(gettext_quoted "%s, with Linux %s (recovery mode)")"
- auth_option=${AUTH_RESCUE}
else
title="$(gettext_quoted "%s, with Linux %s")"
- auth_option=${AUTH_NORMAL}
fi
printf "menuentry '${title}' ${CLASS} --group group_main ${auth_option}{\n" "${os}" "${version}"
save_default_entry | sed -e "s/^/\t/"
@@ -104,7 +102,7 @@
EOF
}
-list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
+list=`for i in /boot/vmlinu[xz]* /vmlinu[xz]* ; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
done`
prepare_boot_cache=
@@ -116,14 +114,12 @@
dirname=`dirname $linux`
rel_dirname=`make_system_path_relative_to_its_root $dirname`
version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
- alt_version=`echo $version | sed -e "s,\.old$,,g"`
+ base_init=`echo $basename | sed -e "s,vmlinuz,kernel,g"`
+ alt_version="${base_init}-fallback"
linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
initrd=
- for i in "initrd.img-${version}" "initrd-${version}.img" \
- "initrd-${version}" "initramfs-${version}.img" \
- "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
- "initrd-${alt_version}" "initramfs-${alt_version}.img"; do
+ for i in "${base_init}.img"; do
if test -e "${dirname}/${i}" ; then
initrd="$i"
break
@@ -138,6 +134,9 @@
linux_entry "${OS}" "${version}" false \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
+ initrd="${alt_version}.img"
+ linux_entry "${OS}" "${version} Fallback" false \
+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
if [ "x${GRUB_DISABLE_LINUX_RECOVERY}" != "xtrue" ]; then
linux_entry "${OS}" "${version}" true \
"single ${GRUB_CMDLINE_LINUX}"

View File

@ -1,23 +0,0 @@
2010-09-24 cruznick <cruznick@archlinux.us>
*PKGBUILD Changelog 0.1
Well I have implemented some fixes
so that it could be posible too
run without any more fixing.
10_linux script fixed:
now folding for Archlinux boot
entries is working (Thanks to fsckd for the help)
20_memtest86+ for memtest config:
Script added so now if you have
memtest86+ you can run it from burg
Also added os-prober and memtest86+
as optional depends
Hope you like this PKGBUILD

View File

@ -1,49 +0,0 @@
# If you change this file, run 'burg-mkconfig -o /boot/burg/burg.cfg' afterwards to update
# /boot/burg/burg.cfg.
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Arch`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
# In the boot menu, use hotkey 'r' to popup a resolution selection menu.
GRUB_GFXMODE=saved
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
# GRUB_THEME's value can be 'saved' or a specific BURG theme name, you can also
# set it to the pathname of a GRUB2 theme file.
# In the boot menu, use hotkey 't' to popup a theme selection menu
GRUB_THEME=saved
# GRUB_FOLD's value can be 'saved', 'true' or 'false'.
# In the boot menu, use hotkey 'F7' to show the full list, 'f' to toggle
# between folding modes.
GRUB_FOLD=saved
# Add user with burg-adduser, then use GRUB_USERS to config authentication.
# The following example means user1 can boot Ubuntu, no password is needed to
# boot Windows, user1 amd user2 can boot other OS. Superusers can boot any OS
# and use hotkeys like `c' to enter console mode.
#GRUB_USERS="*=user1,user2:ubuntu=user1:windows="
# For a complete list of supported variables, refer to this wiki page:
# http://code.google.com/p/burg/wiki/ConfigurationVariables

View File

@ -1,14 +0,0 @@
post_install() {
echo -e "\033[0;31m IMPORTANT"
echo -e "\033[0;0m Run \033[0;32m 'burg-install /dev/sda' \033[0;0m as root for installing in MBR"
echo -e "\033[0;0m Run \033[0;32m 'burg-mkconfig -o /boot/burg/burg.cfg' \033[0;0m as root for generating burg.cfg"
echo -e "\033[0;0m Also you can run \033[0;32m 'update-burg' \033[0;0m as root for generating burg.cfg"
}
post_upgrade() {
post_install
}

View File

@ -1,2 +0,0 @@
#!/bin/sh -e
exec burg-mkconfig -o /boot/burg/burg.cfg "$@"

View File

@ -1,51 +0,0 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=burg-emu
pkgver=1844
pkgrel=1
pkgdesc="A brand-new boot loader based on GRUB.(emu)"
url="https://launchpad.net/burg"
license="GPL3"
arch=('i686' 'x86_64')
depends=('ruby' 'python' 'gettext' 'freetype2' 'sdl' 'ncurses' )
makedepends=('bzr')
optdepens=('burg-bzr')
provides=('burg-emu')
install='burg-emu.install'
_bzrmod=burg
_bzrtrunk=lp:${_bzrmod}
build() {
cd $srcdir/
msg "Connecting to the server...."
if [ ! -d ./${_bzrmod} ]; then
bzr branch ${_bzrtrunk} -r ${pkgver}
else
cd ${_bzrmod} && bzr pull -r ${pkgver}
fi
msg "BZR checkout done or server timeout"
cd "${srcdir}/${_bzrmod}"
## Archlinux changed default /usr/bin/python to 3.1.2, need to use /usr/bin/python2 instead
sed -i 's|python|python2|' ${srcdir}/${_bzrmod}/autogen.sh
./autogen.sh || return 1
}
package() {
provides=('burg-emu')
install='burg-emu.install'
msg "Removing old build directory..."
rm -rf $srcdir/$_bzrmod-emu-build
msg "Creating build directory..."
mkdir $srcdir/$_bzrmod-emu-build
cd $srcdir/$_bzrmod-emu-build
$srcdir/$_bzrmod/configure --with-platform=emu --disable-grub-emu-usb --prefix=/opt/burg-emu || return 1
make || return 1
make install DESTDIR=$pkgdir || return 11
}

View File

@ -1,12 +0,0 @@
post_install() {
echo -e "\033[0;31m IMPORTANT"
echo -e "\033[0;0m Run \033[0;32m '/opt/burg-emu/bin/burg-emu' \033[0;0m as root to set burg look"
echo -e "\033[0;0m In burg-emu press \033[0;32m 'h' \033[0;0m for a list of shortcuts"
}
post_upgrade() {
post_install
}

View File

@ -1,42 +0,0 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=burg-themes
pkgver=20100623
pkgrel=2
pkgdesc="Themes for Burg Bootloader"
arch=('any')
url="https://launchpad.net/burg"
license=('GPL')
depends=('zip' 'unzip')
backup=('boot/burg/gui.cfg' 'boot/burg/burgenv' )
source=(http://burg.googlecode.com/files/burg-theme-$pkgver.zip
add-chakra-class.patch
large_chakra.png
grey_chakra.png
small_chakra.png)
md5sums=('dffc236d8766e575982b9310d9d02ee1'
'3322ad1e3544c53efb1f612e14100a08'
'd2ea7d992b299e0a791ec61456deb97f'
'7571a9950ce4fb656e0452d4f69c60e8'
'bd2e482a45d84a771a30045e5de3a8a0')
install='burg-themes.install'
package() {
mkdir -p $pkgdir/boot/burg
unzip burg-theme-$pkgver.zip -d $pkgdir/boot/burg
msg "Applying patch..."
cd $pkgdir/boot/burg
msg "Adding Chakra icons..."
patch -Np1 -i $srcdir/add-chakra-class.patch || return 1
cd themes/icons
cp $srcdir/large_chakra.png $srcdir/grey_chakra.png $srcdir/small_chakra.png .
}

View File

@ -1,44 +0,0 @@
diff -Naur burg-theme-20100623-orig/themes/icons/grey burg-theme-20100623/themes/icons/grey
--- burg-theme-20100623-orig/themes/icons/grey 2010-05-04 20:32:56.000000000 +0000
+++ burg-theme-20100623/themes/icons/grey 2010-11-25 19:20:49.770001484 +0000
@@ -22,6 +22,7 @@
-zenix { image = "$$/grey_zenix.png" }
-molinux { image = "$$/grey_molinux.png" }
-image { image = "$$/grey_unknown.png" }
+ -chakra { image = "$$/grey_chakra.png" }
}
-include "../custom/icon_grey"
diff -Naur burg-theme-20100623-orig/themes/icons/hover burg-theme-20100623/themes/icons/hover
--- burg-theme-20100623-orig/themes/icons/hover 2010-05-05 00:07:48.000000000 +0000
+++ burg-theme-20100623/themes/icons/hover 2010-11-25 19:21:12.506668152 +0000
@@ -22,6 +22,7 @@
-zenix { image = "$$/grey_zenix.png:$$/large_zenix.png" }
-molinux { image = "$$/grey_molinux.png:$$/large_molinux.png" }
-image { image = "$$/grey_unknown.png:$$/large_unknown.png" }
+ -chakra { image = "$$/grey_chakra.png:$$/large_chakra.png" }
}
-include "../custom/icon_hover"
diff -Naur burg-theme-20100623-orig/themes/icons/large burg-theme-20100623/themes/icons/large
--- burg-theme-20100623-orig/themes/icons/large 2010-05-06 02:30:08.000000000 +0000
+++ burg-theme-20100623/themes/icons/large 2010-11-25 19:21:31.963334820 +0000
@@ -22,6 +22,7 @@
-zenix { image = "$$/large_zenix.png" }
-molinux { image = "$$/large_molinux.png" }
-image { image = "$$/large_unknown.png" }
+ -chakra { image = "$$/large_chakra.png" }
}
-include "../custom/icon_large"
diff -Naur burg-theme-20100623-orig/themes/icons/small burg-theme-20100623/themes/icons/small
--- burg-theme-20100623-orig/themes/icons/small 2010-05-06 02:30:14.000000000 +0000
+++ burg-theme-20100623/themes/icons/small 2010-11-25 19:21:54.213334819 +0000
@@ -22,6 +22,7 @@
-zenix { image = "$$/small_zenix.png" }
-molinux { image = "$$/small_molinux.png" }
-image { image = "$$/small_unknown.png" }
+ -chakra { image = "$$/small_chakra.png" }
}
-include "../custom/icon_small"

View File

@ -1,15 +0,0 @@
pre_instal(){
mv /boot/burg/burgenv /boot/burg/burgenv.pacsave
}
post_install() {
echo -e "\033[0;31m IMPORTANT"
echo -e "\033[0;0m Run \033[0;32m 'burg-mkconfig -o /boot/burg/burg.cfg' \033[0;0m as root for generating and/or updating burg.cfg"
}
post_upgrade() {
post_install
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB