summaryrefslogtreecommitdiff
path: root/testing/lilo
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-10 04:43:11 +0000
committerroot <root@rshg047.dnsready.net>2011-04-10 04:43:11 +0000
commit8f6922302486fa1cc1112ff8b3daddb48c3260f2 (patch)
treecdd13036f76c8a9b8efcc83bbaea166cc929a527 /testing/lilo
parentf87ab435eb966ec44eb006c48699e6ee90613286 (diff)
Sun Apr 10 04:43:11 UTC 2011
Diffstat (limited to 'testing/lilo')
-rw-r--r--testing/lilo/PKGBUILD40
-rw-r--r--testing/lilo/lilo.conf28
-rw-r--r--testing/lilo/lilo.install5
3 files changed, 73 insertions, 0 deletions
diff --git a/testing/lilo/PKGBUILD b/testing/lilo/PKGBUILD
new file mode 100644
index 000000000..216f1b91d
--- /dev/null
+++ b/testing/lilo/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 118988 2011-04-09 21:38:07Z tpowa $
+# Maintainer: Eric Belanger <eric@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+pkgname=lilo
+pkgver=23.2
+pkgrel=1
+pkgdesc="A bootloader for Linux"
+arch=('i686' 'x86_64')
+url="https://alioth.debian.org/projects/lilo/"
+license=('BSD')
+# While lilo should stay in the base category,
+# it usually makes no sense if it is installed
+# with pacman -S base, therefore, don't add
+# the base group here.
+#groups=('base')
+backup=('etc/lilo.conf')
+depends=('device-mapper' 'coreutils')
+makedepends=('bin86' 'sharutils')
+optdepends=('perl: to use keytab-lilo')
+install=lilo.install
+options=('!makeflags')
+source=("http://lilo.alioth.debian.org/ftp/sources/${pkgname}-${pkgver}.tar.gz"
+ 'lilo.conf')
+md5sums=('51b9b9db665d3b8724919e3d46054d12'
+ 'a3a4c90bead3f9b8672bd384ff9f8db1')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ export LC_ALL=C
+ make all
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -D -m644 "${srcdir}/lilo.conf" "${pkgdir}/etc/lilo.conf"
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/testing/lilo/lilo.conf b/testing/lilo/lilo.conf
new file mode 100644
index 000000000..0e31e77a5
--- /dev/null
+++ b/testing/lilo/lilo.conf
@@ -0,0 +1,28 @@
+#
+# /etc/lilo.conf
+#
+
+boot=/dev/hda
+# This line often fixes L40 errors on bootup
+# disk=/dev/hda bios=0x80
+
+default=arch
+timeout=50
+lba32
+prompt
+
+image=/boot/vmlinuz26
+ label=arch
+ root=/dev/hda3
+ initrd=/boot/kernel26.img
+ read-only
+
+image=/boot/vmlinuz26
+ label=arch-fallback
+ root=/dev/hda3
+ initrd=/boot/kernel26-fallback.img
+ read-only
+
+#other=/dev/hda1
+# label=dos
+
diff --git a/testing/lilo/lilo.install b/testing/lilo/lilo.install
new file mode 100644
index 000000000..7375fddf8
--- /dev/null
+++ b/testing/lilo/lilo.install
@@ -0,0 +1,5 @@
+post_upgrade() {
+ echo
+ echo "If you use the LILO bootloader, you should run 'lilo' after upgrading."
+ echo
+}