DeLi(cate) Forum

Full Version: lilo 24.1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

coming from Deli I am running the system with LILO. I managed to build the latest version using the PKGBUILD below.

The install script might need fixing, but I was able to run lilo from the build dir.

This version allows to load kernels bigger than 31 sectors. Useful if you prepare for dual booting etc. (will e.g. boot a Debian 3.16 Kernel)

Code:
pkgname=lilo
pkgver=24.1
pkgrel=1
pkgdesc="A bootloader for Linux"
url="http://lilo.go.dyndns.org"
license=('BSD')
groups=('core')
backup=(etc/lilo.conf)
depends=(coreutils)
makedepends=(bin86,sharutils)
install=lilo.install
source=(http://lilo.alioth.debian.org/ftp/sources/lilo-$pkgver.tar.gz lilo.conf liloconfig)

      

build() {
  cd $startdir/src/$pkgname-$pkgver
  make || return 1
  make ROOT=$startdir/pkg MAN_DIR=/usr/man install
  mkdir -p $startdir/pkg/etc
  cp $startdir/$pkgname.conf $startdir/pkg/etc/
  # install license
  install -D -m644 COPYING $startdir/pkg/usr/share/licenses/$pkgname/license.txt
  install -m 744 ../liloconfig $startdir/pkg/sbin
}
(10-18-2015 10:21 PM)MSW Wrote: [ -> ]Hi there,

coming from Deli I am running the system with LILO. I managed to build the latest version using the PKGBUILD below.

The install script might need fixing, but I was able to run lilo from the build dir.

This version allows to load kernels bigger than 31 sectors. Useful if you prepare for dual booting etc. (will e.g. boot a Debian 3.16 Kernel)

Code:
pkgname=lilo
pkgver=24.1
pkgrel=1
pkgdesc="A bootloader for Linux"
url="http://lilo.go.dyndns.org"
license=('BSD')
groups=('core')
backup=(etc/lilo.conf)
depends=(coreutils)
makedepends=(bin86,sharutils)
install=lilo.install
source=(http://lilo.alioth.debian.org/ftp/sources/lilo-$pkgver.tar.gz lilo.conf liloconfig)

      

build() {
  cd $startdir/src/$pkgname-$pkgver
  make || return 1
  make ROOT=$startdir/pkg MAN_DIR=/usr/man install
  mkdir -p $startdir/pkg/etc
  cp $startdir/$pkgname.conf $startdir/pkg/etc/
  # install license
  install -D -m644 COPYING $startdir/pkg/usr/share/licenses/$pkgname/license.txt
  install -m 744 ../liloconfig $startdir/pkg/sbin
}

Hi MSW.

Thanks for the update. Just a question :] Are you sure the above PKGBUILD works? The entries cannot be separated with comma.

makedepends=(bin86,sharutils)

It could work with space or newline ... gonna look at that.
Ok ... it needed few more tweaks, but it's in the repo now.

The sources are here:
http://delicate-linux.net/0.1/src/lilo/24.1-1/

Please, install the binary package from the repository and re-test.

Thanks in advance.
When I do
Code:
pacman -Syu
it says

Code:
:: Synchronizing package databases...
main                     [################] 100%    1120K    44.0K/s  00:00:25
main-devel               [################] 100%     370K    37.5K/s  00:00:09

Targets: lilo-24.1-1

Total Package Size:   0.1 MB

Proceed with upgrade? [Y/n] Y

:: Retrieving packages from main...
lilo-24.1-1              [################] 100%     133K    66.8K/s  00:00:01

checking package integrity... done.
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
  lilo: /etc/lilo.conf_example: exists in filesystem
  lilo: /usr/sbin/keytab-lilo: exists in filesystem
  lilo: /usr/sbin/lilo-uuid-diskid: exists in filesystem
  lilo: /usr/sbin/liloconfig: exists in filesystem
  lilo: /usr/sbin/mkrescue: exists in filesystem


errors occurred, no packages were upgraded.

Note that these are from the original install. I did not copy files from my build, rather executed from the build-dir.
Reference URL's