summaryrefslogtreecommitdiff
path: root/pcr/lilo
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-07-03 10:33:32 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-07-03 10:33:32 -0300
commit8647aee53c2f9f5458e57fe7ac212da40a555594 (patch)
treeb99a8fbc859d18a244ea5ac496083e66ffaa330d /pcr/lilo
parent3a14409a347f3423bf2a4ab847edff625b671e20 (diff)
parent0a5c7083d197551290bc762f4ba90210cb733a5e (diff)
downloadabslibre-8647aee53c2f9f5458e57fe7ac212da40a555594.tar.gz
abslibre-8647aee53c2f9f5458e57fe7ac212da40a555594.tar.bz2
abslibre-8647aee53c2f9f5458e57fe7ac212da40a555594.zip
Merge branch 'master' of vparabola:abslibre
Conflicts: java/not-working/java-bnd/PKGBUILD libre/parabola-keyring/PKGBUILD
Diffstat (limited to 'pcr/lilo')
-rw-r--r--pcr/lilo/PKGBUILD47
-rw-r--r--pcr/lilo/lilo.conf25
-rw-r--r--pcr/lilo/lilo.install5
3 files changed, 77 insertions, 0 deletions
diff --git a/pcr/lilo/PKGBUILD b/pcr/lilo/PKGBUILD
new file mode 100644
index 000000000..10d334b05
--- /dev/null
+++ b/pcr/lilo/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Connor Behan <connor.behan@gmail.com>
+# Contributor: Eric Belanger <eric@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+pkgname=lilo
+pkgver=24.0
+pkgrel=1
+pkgdesc="A bootloader for GNU/Linux (Parabola rebranded)"
+arch=('i686' 'x86_64')
+url="https://alioth.debian.org/projects/lilo/"
+license=('BSD')
+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')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ export LC_ALL=C
+
+ sed -i -e 's/strip lilo.static/strip lilo.static || true/' src/Makefile
+ 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
+
+ # All binaries in /usr/bin
+ mkdir "${pkgdir}"/usr/bin
+ mv "${pkgdir}"/sbin/lilo "${pkgdir}"/usr/bin/
+ mv "${pkgdir}"/usr/sbin/* "${pkgdir}"/usr/bin/
+ rm -rf "${pkgdir}"/sbin
+ rm -rf "${pkgdir}"/usr/sbin
+
+ # Avoid conflict with syslinux
+ mv "${pkgdir}"/usr/bin/keytab-lilo "${pkgdir}"/usr/bin/keytab-lilo.pl
+}
+md5sums=('03d7090835a5675314082847f1ac7910' 'd06b3c4655577ed01fea79ec5743b4b0')
diff --git a/pcr/lilo/lilo.conf b/pcr/lilo/lilo.conf
new file mode 100644
index 000000000..479390df5
--- /dev/null
+++ b/pcr/lilo/lilo.conf
@@ -0,0 +1,25 @@
+#
+# /etc/lilo.conf
+#
+
+boot=/dev/sda
+# This line often fixes L40 errors on bootup
+# disk=/dev/sda bios=0x80
+
+default=parabola
+timeout=50
+lba32
+prompt
+
+image=/boot/vmlinuz-linux-libre
+ label=parabola
+ root=/dev/sda3
+ initrd=/boot/initramfs-linux-libre.img
+ read-only
+
+image=/boot/vmlinuz-linux-libre
+ label=parabola-fallback
+ root=/dev/sda3
+ initrd=/boot/initramfs-linux-libre-fallback.img
+ read-only
+
diff --git a/pcr/lilo/lilo.install b/pcr/lilo/lilo.install
new file mode 100644
index 000000000..7375fddf8
--- /dev/null
+++ b/pcr/lilo/lilo.install
@@ -0,0 +1,5 @@
+post_upgrade() {
+ echo
+ echo "If you use the LILO bootloader, you should run 'lilo' after upgrading."
+ echo
+}