#Packager: George Vlahavas pkgname=lilo pkgver=24.2 pkgrel=3gv source=("lilo-$pkgver.tar.gz" "liloconfig.tar.xz" "setup.liloconfig" "text.lilohelp" "salix.bmp" "lilo.ignore.usable.memory.above.4G.diff.gz") options=('nosrcpack' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "lilo (Linux Loader)" "Generic Boot Loader for Linux ('LInux LOader') by Werner Almesberger." "LILO boots Linux from your hard drive. It can also boot other" "operating systems such as MS-DOS and OS/2, and can even boot DOS from" "the second hard drive. LILO comes with utilities and documentation" "that make it easier to install, such as 'liloconfig' and 'QuickStart'." "NOTE: Installing boot loaders is inherently dangerous. Be sure to have" "some means to boot your system from a different media if you install" "LILO on your hard disk." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/lilo.ignore.usable.memory.above.4G.diff || exit 1 sed -i "s/OPT=-Os/OPT=$CFLAGS/" make.vars make || return 1 make -i install DESTDIR=$startdir/pkg || return 1 # Remove non-Slackware litter: ( cd $startdir/pkg/boot rm -f *.bmp *debian* ) rm -r $startdir/pkg/etc/{initramfs,kernel} # debian liloconfig rm $startdir/pkg/usr/sbin/liloconfig # add a salix logo cp $startdir/src/salix.bmp $startdir/pkg/boot/ chmod 644 $startdir/pkg/boot/salix.bmp # Add Salix's 'liloconfig' utility: ( cd $startdir/src/liloconfig make make install DESTDIR=$startdir/pkg ) # docs rm -rf $startdir/pkg/usr/doc/lilo-$pkgver mkdir -p $startdir/pkg/usr/doc/lilo-$pkgver cp -a CHANGE* COPYING READM* TOOLS TODO doc sample readme \ $startdir/pkg/usr/doc/lilo-$pkgver }