diff options
author | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-21 16:08:33 +0200 |
---|---|---|
committer | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-06-21 16:08:33 +0200 |
commit | 6d8b2a16e195942855b237c8643bb91f20916d0e (patch) | |
tree | 29e7e2ed00a76eca7122b45d65e0c790721423ca /pcr/mkinitcpio-paralogo | |
parent | 943c3f40acbc61f940763d6c71cf011da56fc34d (diff) |
mkinitcpio-paralogo for paralogo5
Diffstat (limited to 'pcr/mkinitcpio-paralogo')
-rw-r--r-- | pcr/mkinitcpio-paralogo/PKGBUILD | 6 | ||||
-rw-r--r-- | pcr/mkinitcpio-paralogo/PKGBUILD.save | 48 | ||||
-rwxr-xr-x | pcr/mkinitcpio-paralogo/install/paralogo | 18 | ||||
-rw-r--r-- | pcr/mkinitcpio-paralogo/mkinitcpio-paralogo.install | 11 | ||||
-rw-r--r--[-rwxr-xr-x] | pcr/mkinitcpio-paralogo/share/paralogo3 | 11 | ||||
-rw-r--r-- | pcr/mkinitcpio-paralogo/share/paralogo5 | 13 |
6 files changed, 75 insertions, 32 deletions
diff --git a/pcr/mkinitcpio-paralogo/PKGBUILD b/pcr/mkinitcpio-paralogo/PKGBUILD index 3b84ed56e..ceac1c9d2 100644 --- a/pcr/mkinitcpio-paralogo/PKGBUILD +++ b/pcr/mkinitcpio-paralogo/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Aurélien DESBRIÈRES <aurelien@hackers.camp> pkgname=mkinitcpio-paralogo -pkgver=0.r21.g650857a +pkgver=0.0.1 pkgrel=1 pkgdesc="Add colored Parabola Linux ASCII art logo to early boot process" arch=('any') @@ -41,10 +41,8 @@ package() { install -D -m0644 share/paralogo2 ${pkgdir}/usr/share/paralogo/paralogo2 install -D -m0644 share/paralogo3 ${pkgdir}/usr/share/paralogo/paralogo3 install -D -m0644 share/paralogo4 ${pkgdir}/usr/share/paralogo/paralogo4 + install -D -m0644 share/paralogo5 ${pkgdir}/usr/share/paralogo/paralogo5 } sha256sums=('SKIP') -sha256sums=('SKIP') -sha256sums=('SKIP') -sha256sums=('SKIP') diff --git a/pcr/mkinitcpio-paralogo/PKGBUILD.save b/pcr/mkinitcpio-paralogo/PKGBUILD.save new file mode 100644 index 000000000..c2feb71c3 --- /dev/null +++ b/pcr/mkinitcpio-paralogo/PKGBUILD.save @@ -0,0 +1,48 @@ +# 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 + install -D -m0644 share/paralogo3 ${pkgdir}/usr/share/paralogo/paralogo3 + install -D -m0644 share/paralogo4 ${pkgdir}/usr/share/paralogo/paralogo4 + install -D -m0644 share/paralogo4 ${pkgdir}/usr/share/paralogo/paralogo5 + +} + +sha256sums=('SKIP') diff --git a/pcr/mkinitcpio-paralogo/install/paralogo b/pcr/mkinitcpio-paralogo/install/paralogo index d1f5d2118..9c28941d5 100755 --- a/pcr/mkinitcpio-paralogo/install/paralogo +++ b/pcr/mkinitcpio-paralogo/install/paralogo @@ -6,24 +6,12 @@ build() { 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 + fi add_runscript systemctl enable paralogo.service - fi + + fi } -#mkinitcpio() { -# source /etc/mkinitcpio.conf -# add_text /etc/mkinitcpio.conf -# if add_text paralogo 2>/dev/null; then -# add_text sed -e 's|^_d_hooks=.*|_d_hooks=/etc/mkinitcpio.conf:HOOK="paralogo"' -# add_runscript -# mkinitcpio -p linux-libre -# else -# add_runscript -# mkinitcpio -p linux-libre -# fi -#} - help() { echo "This hook adds an Parabola Linux logo to the boot process." diff --git a/pcr/mkinitcpio-paralogo/mkinitcpio-paralogo.install b/pcr/mkinitcpio-paralogo/mkinitcpio-paralogo.install index 1c93b4b20..608a2ad24 100644 --- a/pcr/mkinitcpio-paralogo/mkinitcpio-paralogo.install +++ b/pcr/mkinitcpio-paralogo/mkinitcpio-paralogo.install @@ -1,15 +1,12 @@ #!/bin/sh post_install() { - sed -e "/^HOOKS=/s/paralogo//" /etc/mkinitcpio.conf - mkinitcpio -p linux-libre -# 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." + 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 - mkinitcpio -p linux-libre } diff --git a/pcr/mkinitcpio-paralogo/share/paralogo3 b/pcr/mkinitcpio-paralogo/share/paralogo3 index bda356c22..c1f256cd9 100755..100644 --- a/pcr/mkinitcpio-paralogo/share/paralogo3 +++ b/pcr/mkinitcpio-paralogo/share/paralogo3 @@ -2,12 +2,11 @@ ███ ██ ███ ██ ████ ██ ███ ███ ████ ███ -███ ███ ██ ███████ ███ ███ ███████ ███████ █████ ████ ███████ - ████ ██ ███ ███ ███ ██ ████ ███ ████ ██ ████ ██ ███ ███ ███ - █████ ████ ████ ███ ███ ████ ███ ███████ ██ ████ ███ ████ - ████ ███ ███ ███ ███ ███ ███ ██ ███ ███ ███ ███ ███ - ███ ███ ████ ████ ███ ████ ████ ██ ███ ███ ███ ████ ████ - ████ ████ ████ ███ ████ ████ █████ █████ █████ ████ ████ +███ ███ ██ ██████ ██████ ██████ ███████ █████ ████ █████ + ████ ██ ███ ██ ███ ██ ████ ██ ████ ██ ████ ██ ███ ███ ██ + ████ ███ ███ ███ ███ ██ ███ ██ ███ ███ ███ ███ ██ + ███ ███ ████ ████ ███ ███ ████ ██ ███ ███ ███ ███ ███ + ████ ████ ████ ███ ████ ███ █████ █████ █████ ████ ███ diff --git a/pcr/mkinitcpio-paralogo/share/paralogo5 b/pcr/mkinitcpio-paralogo/share/paralogo5 new file mode 100644 index 000000000..7216de2f2 --- /dev/null +++ b/pcr/mkinitcpio-paralogo/share/paralogo5 @@ -0,0 +1,13 @@ + [1;34m + ████ + ██ ██ ██ ██ + ██ ██ ██ ██ + ██ ██ ████ ████ ████ █████ ███ ██ ████ + ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ + ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ + ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ + ██ ██ ██ ██ ██ ██ ██████ ███ ██ ██ ██ + + + Parabola equals software freedom plus all power to the users + [0m
\ No newline at end of file |