Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=148db11ab47025359ee5fb70b429bd4058272753

commit 148db11ab47025359ee5fb70b429bd4058272753
Author: James Buren <[email protected]>
Date:   Sun Apr 21 12:07:00 2013 -0500

grub2-2.00-9-x86_64
* import install scriptlet which will update GRUB_DISTRIBUTOR
* depend upon frugalware / bash / coreutils / sed

diff --git a/source/base/grub2/FrugalBuild b/source/base/grub2/FrugalBuild
index 5f06c1d..33ffd87 100644
--- a/source/base/grub2/FrugalBuild
+++ b/source/base/grub2/FrugalBuild
@@ -7,10 +7,7 @@ pkgver=2.00
pkgrel=9
pkgdesc="The GNU GRand Unified Bootloader"
url="http://www.gnu.org/software/grub/";
-conflicts=('grub')
-replaces=('grub')
-provides=('grub')
-rodepends=('grub-theme-frugalware')
+rodepends=('grub-theme-frugalware' 'frugalware' 'bash' 'coreutils' 'sed')
depends=('xz' 'bzip2' 'mktemp' 'ncurses' 'lvm2>=2.02.96')
makedepends=('unifont' 'dejavu-ttf')
options=('nostrip')
diff --git a/source/base/grub2/grub b/source/base/grub2/grub
index 050b44b..47f8a80 100644
--- a/source/base/grub2/grub
+++ b/source/base/grub2/grub
@@ -3,7 +3,7 @@ GRUB_SAVEDEFAULT=true
GRUB_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
-GRUB_DISTRIBUTOR="Frugalware 1.8"
+GRUB_DISTRIBUTOR="Frugalware"
GRUB_TERMINAL_INPUT=console
GRUB_TERMINAL_OUTPUT=gfxterm
#GRUB_SERIAL_COMMAND=serial
diff --git a/source/base/grub2/grub2.install b/source/base/grub2/grub2.install
new file mode 100644
index 0000000..fea15e2
--- /dev/null
+++ b/source/base/grub2/grub2.install
@@ -0,0 +1,13 @@
+post_install()
+{
+       local ver
+
+       if [ -f /etc/frugalware-release ]; then
+               ver="$(cat /etc/frugalware-release)"
+               sed -i "s|^GRUB_DISTRIBUTOR=.*\$|GRUB_DISTRIBUTOR=\"$ver\"|" 
/etc/default/grub
+       fi
+}
+
+op=$1
+shift
+$op $*
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to