You are not logged in.

#1 2007-04-08 13:04:05

fancris3
Member
Registered: 2007-03-18
Posts: 67

gfxboot more questions

1.Search in aur don't find gfxboot, why?
2.I make this PKGBUILD

# Contributor: fancris3 <fancris3 at aol.com>
pkgname=gfxboot
pkgver=3.3.24
pkgrel=1
arch=('i686' 'x86_64')
license=('unknown')
install=('gfxboot.install')
pkgdesc="Graphical Boot Logo"
url="www.opensuse.org"
depends=('perl-html-parser' 'freetype2' 'cpio' 'nasm')
makedepends=('rpmextract')
archs=('i686')
source=(http://ftp.opensuse.org/pub/opensuse/distribution/SL-OSS-factory/\
inst-source/suse/src/${pkgname}-${pkgver}-4.src.rpm child11024.jpg)

build() {
  rpmextract.sh ${pkgname}-${pkgver}-4.src.rpm
  tar -jxf ${pkgname}-${pkgver}.tar.bz2
  cd ${pkgname}-${pkgver}
  tar -jxf ../SuSE.tar.bz2
  tar -jxf ../Zen.tar.bz2
  tar -jxf ../SLES.tar.bz2
  tar -jxf ../NLD.tar.bz2
  cp $startdir/src/child11024.jpg themes/
  sed -i "s|cp -a|cp -dPR|g" Makefile
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Comment " sed -i "s|cp -a|cp -dPR|g" Makefile" and check permissions for /usr/share/gfxboot/themes/*
It's my mistake or is fakeroot bug ?
3.It's ok to do something like this in gfxboot.install ?

. /etc/rc.conf
. /etc/rc.d/functions

_build() {
  cp -r /usr/share/gfxboot /tmp
  cp /tmp/gfxboot/themes/child11024.jpg /tmp/gfxboot/themes/SuSE/back-boot.jpg
  make -C /tmp/gfxboot/themes/SuSE 2>/dev/null

}

_copy() {
  mkdir /boot/grub
  cp /tmp/gfxboot/themes/SuSE/boot/message /boot/grub/message >/dev/null
}

post_install() {
  stat_busy "build message"
  _build &>/dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
   stat_done
   fi

  stat_busy "cp message to /boot/grub/message"
  _copy >/dev/null 
    if [ $? -gt 0 ]; then
      stat_fail
    else
      stat_done
    fi
}

post_upgrade() {
 post_install $1
}

post_remove() {
  status "uninstall gfxboot"
  printhl "Please remove /boot/grub/message"
}

op=$1
shift

$op $*

I need some help here, because stat_busy don't appear

Last edited by fancris3 (2007-04-08 13:05:36)

Offline

Board footer

Powered by FluxBB