summaryrefslogtreecommitdiff
path: root/nonsystemd
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-01-01 08:23:20 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2020-01-01 08:58:59 -0500
commit795cd872e25df235d666d1a15e0b29e448ae0006 (patch)
tree14057db9013a9e105ed4ca047c736633a92388b3 /nonsystemd
parent2d147b1706fae26a9163da0494a11555bcf9da44 (diff)
downloadabslibre-795cd872e25df235d666d1a15e0b29e448ae0006.tar.gz
abslibre-795cd872e25df235d666d1a15e0b29e448ae0006.tar.bz2
abslibre-795cd872e25df235d666d1a15e0b29e448ae0006.zip
[mkinitcpio-paralogo]: re-work for nonsystemd
Diffstat (limited to 'nonsystemd')
-rw-r--r--nonsystemd/mkinitcpio-paralogo/PKGBUILD43
-rw-r--r--nonsystemd/mkinitcpio-paralogo/mkinitcpio-paralogo.install13
2 files changed, 56 insertions, 0 deletions
diff --git a/nonsystemd/mkinitcpio-paralogo/PKGBUILD b/nonsystemd/mkinitcpio-paralogo/PKGBUILD
new file mode 100644
index 000000000..2aa0b4835
--- /dev/null
+++ b/nonsystemd/mkinitcpio-paralogo/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+pkgname=mkinitcpio-paralogo
+pkgver=0.0.2
+pkgrel=1
+pkgdesc="Add colored Parabola Linux ASCII art logo to early boot process"
+arch=('any')
+url=https://git.parabola.nu/mkinitcpio-paralogo.git/
+license=('GPL')
+
+depends=('mkinitcpio')
+makedepends=('git')
+backup=('etc/paralogo.conf')
+install=mkinitcpio-paralogo.install
+source=(git+https://git.parabola.nu/mkinitcpio-paralogo.git#tag=${pkgver})
+
+sha256sums=('SKIP')
+
+
+package()
+{
+ cd "${srcdir}"/mkinitcpio-paralogo/
+
+ # install hook for plain old script based initramfs
+ install -m0755 -d "${pkgdir}"/usr/lib/initcpio/hooks/
+ install -m0755 hook/paralogo "${pkgdir}"/usr/lib/initcpio/hooks/
+
+ # install config
+ install -m0755 -d "${pkgdir}"/etc/
+ install -m0644 etc/paralogo.conf "${pkgdir}"/etc/
+
+ # install logos
+ install -m0755 -d "${pkgdir}"/usr/share/paralogo/
+ install -m0644 share/paralogo "${pkgdir}"/usr/share/paralogo/
+ install -m0644 share/paralogo2 "${pkgdir}"/usr/share/paralogo/
+ install -m0644 share/paralogo3 "${pkgdir}"/usr/share/paralogo/
+ install -m0644 share/paralogo4 "${pkgdir}"/usr/share/paralogo/
+ install -m0644 share/paralogo5 "${pkgdir}"/usr/share/paralogo/
+
+ # install README
+ install -m0755 -d "${pkgdir}"/usr/share/doc/paralogo/
+ install -m0644 README.md "${pkgdir}"/usr/share/doc/paralogo/
+}
diff --git a/nonsystemd/mkinitcpio-paralogo/mkinitcpio-paralogo.install b/nonsystemd/mkinitcpio-paralogo/mkinitcpio-paralogo.install
new file mode 100644
index 000000000..12ce4e570
--- /dev/null
+++ b/nonsystemd/mkinitcpio-paralogo/mkinitcpio-paralogo.install
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+post_install() {
+ echo " > Now add 'paralogo' to your HOOKS array in /etc/mkinitcpio.conf"
+ echo " > and rebuild initial ramdisk for your kernel(s)"
+ echo " > e.g. # mkinitcpio -p linux-libre"
+ echo " > You can put your own artwork in /usr/share/paralogo/ and select"
+ echo " > a non-default one in /etc/paralogo.conf."
+}
+
+post_remove() {
+ sed -i "/^HOOKS=/s/paralogo//" /etc/mkinitcpio.conf
+}