mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
initial commmit
This commit is contained in:
commit
7e0357ebb1
6 changed files with 81 additions and 0 deletions
16
.SRCINFO
Normal file
16
.SRCINFO
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
pkgbase = mkinitcpio-contactinfo
|
||||
pkgdesc = initcpio hook to show contact information before encrypt your disk
|
||||
pkgver = 0.0.1
|
||||
pkgrel = 1
|
||||
install = proto.install
|
||||
arch = any
|
||||
license = unknown
|
||||
depends = mkinitcpio
|
||||
source = example_message
|
||||
source = contactinfo_install
|
||||
source = contactinfo_hook
|
||||
sha256sums = 78487248ebbf2d04c9e744ba8818c0e2beb0c9d0074d571ca8c2bfc4a31ce86b
|
||||
sha256sums = 97255373c81843640ddbfe9d081887b0e9b1300456bca70b5dfd6f4fc137a3c4
|
||||
sha256sums = 4febe98499d31b066388030566f33b75cbb919dcbf89f7621aee4be719a40edb
|
||||
|
||||
pkgname = mkinitcpio-contactinfo
|
||||
21
PKGBUILD
Normal file
21
PKGBUILD
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Maintainer: metaphy <metaphyman [at] proton [dot] me>
|
||||
pkgname=mkinitcpio-contactinfo
|
||||
pkgver=0.0.1
|
||||
pkgrel=1
|
||||
epoch=
|
||||
pkgdesc="initcpio hook to show contact information before encrypt your disk"
|
||||
arch=("any")
|
||||
license=('unknown')
|
||||
groups=()
|
||||
depends=("mkinitcpio")
|
||||
source=(example_message contactinfo_install contactinfo_hook)
|
||||
noextract=()
|
||||
sha256sums=('78487248ebbf2d04c9e744ba8818c0e2beb0c9d0074d571ca8c2bfc4a31ce86b' '97255373c81843640ddbfe9d081887b0e9b1300456bca70b5dfd6f4fc137a3c4' '4febe98499d31b066388030566f33b75cbb919dcbf89f7621aee4be719a40edb')
|
||||
validpgpkeys=()
|
||||
install=proto.install
|
||||
|
||||
package() {
|
||||
install -Dm0600 example_message "$pkgdir/etc/contactinfo.example"
|
||||
install -Dm0744 contactinfo_hook "$pkgdir/usr/lib/initcpio/hooks/contactinfo"
|
||||
install -Dm0744 contactinfo_install "$pkgdir/usr/lib/initcpio/install/contactinfo"
|
||||
}
|
||||
5
contactinfo_hook
Normal file
5
contactinfo_hook
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
run_hook() {
|
||||
cat /etc/contactinfo
|
||||
}
|
||||
15
contactinfo_install
Normal file
15
contactinfo_install
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
build() {
|
||||
add_dir "/etc/"
|
||||
cat /etc/contactinfo > "${BUILDROOT}"/etc/contactinfo
|
||||
#cp /etc/contactinfo "${BUILDROOT}"/etc/contactinfo
|
||||
add_runscript
|
||||
}
|
||||
|
||||
help ()
|
||||
{
|
||||
cat<<HELPEOF
|
||||
Copy /etc/contactinfo.example to /etc/contactinfo and adjust it to your preferences.
|
||||
HELPEOF
|
||||
}
|
||||
12
example_message
Normal file
12
example_message
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
If found, please contact me.
|
||||
|
||||
This laptop is important to me and contains personal and work data.
|
||||
If you have found it, I would be very grateful if you could return it.
|
||||
|
||||
Reward possible.
|
||||
|
||||
Contact:
|
||||
Email: your@email.com
|
||||
Phone/Signal/WhatsApp: +00 000 000000
|
||||
|
||||
Thank you for your honesty and help.
|
||||
12
proto.install
Normal file
12
proto.install
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
post_install() {
|
||||
echo "Copy /etc/contactinfo.example to /etc/contactinfo and adjust it to your preferences."
|
||||
echo "You must update /etc/mkinitcpio.conf"
|
||||
echo "Add 'contactinfo' to the HOOKS array"
|
||||
echo "Run: mkinitcpio -P"
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
echo "You must update /etc/mkinitcpio.conf"
|
||||
echo "Remove 'contactinfo' from the HOOKS array"
|
||||
echo "Run: mkinitcpio -P"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue