diff options
author | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-17 16:59:45 +0200 |
---|---|---|
committer | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-17 16:59:45 +0200 |
commit | f7e43c312372cea868637db9c2cb8c43ad9dd80d (patch) | |
tree | 819438a6ba822e16f350c8919d6cb36c65a1434f | |
parent | 459eadb1f56ef094435c70121858593fb9d8eee5 (diff) |
all files of our logo of mkinitcpio-paralogo from github to parabola git!
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rwxr-xr-x | etc/paralogo.conf | 3 | ||||
-rwxr-xr-x | hook/paralogo | 7 | ||||
-rwxr-xr-x | install/paralogo | 17 | ||||
-rw-r--r-- | license | 9 | ||||
-rw-r--r-- | mkinitcpio-paralogo.install | 12 | ||||
-rwxr-xr-x | share/paralogo | 11 | ||||
-rwxr-xr-x | share/paralogo2 | 19 | ||||
-rwxr-xr-x | systemd/paralogo.service | 12 |
10 files changed, 138 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..6a23d56 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Aurélien DESBRIÈRES <aurelien@hackers.camp> + +pkgname=mkinitcpio-paralogo +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Add colored Parabola Linux ASCII art logo to early boot process" +arch=('any') +url="https://github.com/XL04D/mkinitcpio-paralogo" +depends=('mkinitcpio') +makedepends=('git') +license=('GPL') +install=mkinitcpio-paralogo.install +source=('git://github.com/XL04D/mkinitcpio-paralogo.git') +backup=('etc/paralogo.conf') + +pkgver() { + cd mkinitcpio-paralogo/ + + if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then + echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")" + else + echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")" + fi +} + +package() { + cd mkinitcpio-paralogo/ + + # install install script and unit file + install -D -m0644 install/paralogo ${pkgdir}/usr/lib/initcpio/install/paralogo + install -D -m0644 systemd/paralogo.service ${pkgdir}/usr/lib/systemd/system/paralogo.service + + # install hook for plain old script based initramfs + install -D -m0755 hook/paralogo ${pkgdir}/usr/lib/initcpio/hooks/paralogo + + # install config + install -D -m0644 etc/paralogo.conf ${pkgdir}/etc/paralogo.conf + + # install logos + install -D -m0644 share/paralogo ${pkgdir}/usr/share/paralogo/paralogo + install -D -m0644 share/paralogo2 ${pkgdir}/usr/share/paralogo/paralogo2 +} + +sha256sums=('SKIP') diff --git a/README.md b/README.md new file mode 100644 index 0000000..6fb375d --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +mkinitcpio-paralogo +=================== + +Had the Parabola logo to your system on start diff --git a/etc/paralogo.conf b/etc/paralogo.conf new file mode 100755 index 0000000..ec8c09a --- /dev/null +++ b/etc/paralogo.conf @@ -0,0 +1,3 @@ +# ASCII Parabola Logo on bootup + +PARALOGO="paralogo" diff --git a/hook/paralogo b/hook/paralogo new file mode 100755 index 0000000..a56ab0a --- /dev/null +++ b/hook/paralogo @@ -0,0 +1,7 @@ +#!/bin/sh + +run_earlyhook() { + source /etc/paralogo.conf + cd /usr/share/paralogo/ + cat "${PARALOGO}" +} diff --git a/install/paralogo b/install/paralogo new file mode 100755 index 0000000..e927966 --- /dev/null +++ b/install/paralogo @@ -0,0 +1,17 @@ +#!/bin/sh + +build() { + source /etc/paralogo.conf + add_file /etc/paralogo.conf + add_file "/usr/share/paralogo/${PARALOGO}" + if add_systemd_unit paralogo.service 2>/dev/null; then + add_symlink "/usr/lib/systemd/system/sysinit.target.wants/paralogo.service" "../paralogo.service" + else + add_runscript + systemctl enable paralogo.service + fi +} + +help() { + echo "This hook adds an Parabola Linux logo to the boot process." +} @@ -0,0 +1,9 @@ + mkinitcpio-paralogo is to had Parabola GNU / Linux-libre logo on boot system. + Aurélien DESBRIÈRES aurelien(at)hackers(dot)camp + + It is a fork (rewrited/rebranded for Parabola GNU / Linux-libre) + of https://aur.archlinux.org/packages/mkinitcpio-archlogo + which is GPL. + + See https://www.gnu.org/licenses/gpl + diff --git a/mkinitcpio-paralogo.install b/mkinitcpio-paralogo.install new file mode 100644 index 0000000..608a2ad --- /dev/null +++ b/mkinitcpio-paralogo.install @@ -0,0 +1,12 @@ +#!/bin/sh + +post_install() { + echo " > Now add 'paralogo' to your HOOKS array in /etc/mkinitcpio.conf" + echo " > and rebuild initial ramdisk with # 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 +} diff --git a/share/paralogo b/share/paralogo new file mode 100755 index 0000000..1e55d1e --- /dev/null +++ b/share/paralogo @@ -0,0 +1,11 @@ + + [1;34m# ##[1;34m ____ _ _ + [1;34m# # ####[1;34m / _ \ __ _ _ __ ___ _| |_ ___ | | __ _ + [1;34m# # ######[1;34m | |_) / _` | '__/ _ ` | '_ \ / _ \| |/ _` | + [1;34m## #####[1;34m | __| (_| | | | (_| | |_| | |_| | | (_| | + [1;34m# #####[1;34m | | \__,_|_| \___,_|_,__/ \___/|_|\__,_| + [1;34m####[1;34m |_| + [1;34m###[1;34m + [1;34m###[1;34m + [1;34m##[1;34m Make it simple and flexible. + [1;34m#[0m diff --git a/share/paralogo2 b/share/paralogo2 new file mode 100755 index 0000000..60f5e0a --- /dev/null +++ b/share/paralogo2 @@ -0,0 +1,19 @@ + +[1;34m # +[1;34m ### +[1;34m ##### +[1;34m ###### +[1;34m ; #####; +[1;34m +##.##### [1;37mArchLinux +[1;34m +########## [1;37mKeep it Simple, Stupid. :P +[1;34m ######[0;34m#####[1;34m##; +[1;34m ###[0;34m############[1;34m+ +[1;34m #[0;34m###### ####### +[0;34m .######; ;###;`". +[0;34m .#######; ;#####. +[0;34m #########. .########` +[0;34m ######' '###### +[0;34m ;#### ####; +[0;34m ##' '## +[0;34m #' `#[0m + diff --git a/systemd/paralogo.service b/systemd/paralogo.service new file mode 100755 index 0000000..e0c3e42 --- /dev/null +++ b/systemd/paralogo.service @@ -0,0 +1,12 @@ +[Unit] +Description=Paralogo +DefaultDependencies=no +Before=sysinit.target + +[Service] +Type=oneshot +RemainAfterExit=yes +StandardOutput=tty +EnvironmentFile=/etc/paralogo.conf +WorkingDirectory=/usr/share/paralogo +ExecStart=/usr/bin/cat "${PARALOGO}" |