commit 7e0357ebb1dc98ec2f2dc7c60bb82f8a5ed17845 Author: metaphy Date: Sat Feb 21 22:22:04 2026 +0100 initial commmit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..ba32f76a063e9 --- /dev/null +++ b/.SRCINFO @@ -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 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000000000..bf9855c2b905f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: metaphy +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" +} diff --git a/contactinfo_hook b/contactinfo_hook new file mode 100644 index 0000000000000..66ce551f1a892 --- /dev/null +++ b/contactinfo_hook @@ -0,0 +1,5 @@ +#!/bin/sh + +run_hook() { + cat /etc/contactinfo +} diff --git a/contactinfo_install b/contactinfo_install new file mode 100644 index 0000000000000..fb9a822f86fad --- /dev/null +++ b/contactinfo_install @@ -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<