Add things for network luks unlock
This commit is contained in:
18
src/mkinitcpio-utils/.SRCINFO
Normal file
18
src/mkinitcpio-utils/.SRCINFO
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Fri Oct 21 11:26:27 UTC 2016
|
||||
pkgbase = mkinitcpio-utils
|
||||
pkgdesc = Collection of Archlinux mkinitcpio utilities performing various tasks
|
||||
pkgver = 0.0.3
|
||||
pkgrel = 3
|
||||
url = https://github.com/grazzolini/mkinitcpio-utils
|
||||
changelog = ChangeLog
|
||||
arch = any
|
||||
license = BSD
|
||||
depends = cryptsetup
|
||||
optdepends = mkinitcpio-dropbear: Allow the encryptssh hook to unlock a root container remotely using dropbear
|
||||
optdepends = mkinitcpio-tinyssh: Allow the encryptssh hook to unlock a root container remotely using tinyssh
|
||||
source = mkinitcpio-utils-0.0.3.tar.gz::https://github.com/grazzolini/mkinitcpio-utils/archive/v0.0.3.tar.gz
|
||||
sha512sums = 9d454006978f23abca61be71523454670b94ea6d8e08eeab2e61fc81da3e3f5e8ec2b053fb0a6f986ce673d8521aa2a5b5fe5f37d4dffc4e27fde1b238437470
|
||||
|
||||
pkgname = mkinitcpio-utils
|
||||
|
6
src/mkinitcpio-utils/.gitignore
vendored
Normal file
6
src/mkinitcpio-utils/.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
v*.tar.gz
|
||||
mkinitcpio-utils-*-any.pkg.tar.xz
|
||||
mkinitcpio-utils-*.tar.gz
|
||||
develop.*
|
||||
src/*
|
||||
pkg/*
|
11
src/mkinitcpio-utils/ChangeLog
Normal file
11
src/mkinitcpio-utils/ChangeLog
Normal file
@@ -0,0 +1,11 @@
|
||||
2015-08-11 Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
|
||||
* 0.0.2 :
|
||||
- Got rid of TMPDIR juggling by using BUILDROOT directly.
|
||||
- Changed the root home dir to /root.
|
||||
|
||||
2015-07-22 Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
|
||||
* 0.0.1 :
|
||||
- Initial release.
|
||||
- Provide the encryptssh hook and the cryptsetup_shell as it is on the original dropbear_initrd_encrypt package.
|
23
src/mkinitcpio-utils/PKGBUILD
Normal file
23
src/mkinitcpio-utils/PKGBUILD
Normal file
@@ -0,0 +1,23 @@
|
||||
# Maintainer: Giancarlo Razzolini <grazzolini@gmail.com>
|
||||
pkgname=mkinitcpio-utils
|
||||
pkgver=0.0.3
|
||||
pkgrel=3
|
||||
pkgdesc="Collection of Archlinux mkinitcpio utilities performing various tasks"
|
||||
arch=('any')
|
||||
url="https://github.com/grazzolini/mkinitcpio-utils"
|
||||
license=('BSD')
|
||||
depends=('cryptsetup')
|
||||
optdepends=('mkinitcpio-dropbear: Allow the encryptssh hook to unlock a root container remotely using dropbear'
|
||||
'mkinitcpio-tinyssh: Allow the encryptssh hook to unlock a root container remotely using tinyssh')
|
||||
#install=$pkgname.install
|
||||
changelog='ChangeLog'
|
||||
source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('9d454006978f23abca61be71523454670b94ea6d8e08eeab2e61fc81da3e3f5e8ec2b053fb0a6f986ce673d8521aa2a5b5fe5f37d4dffc4e27fde1b238437470')
|
||||
|
||||
package() {
|
||||
install -Dm755 "$srcdir/$pkgname-$pkgver/utils/shells/cryptsetup_shell" "$pkgdir/usr/share/$pkgname/utils/shells/cryptsetup_shell"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/README.md" "$pkgdir/usr/share/$pkgname/README.md"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/initcpio/hooks/encryptssh" "$pkgdir/usr/lib/initcpio/hooks/encryptssh"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/initcpio/install/encryptssh" "$pkgdir/usr/lib/initcpio/install/encryptssh"
|
||||
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
20
src/mkinitcpio-utils/mkinitcpio-utils.install
Normal file
20
src/mkinitcpio-utils/mkinitcpio-utils.install
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
post_install() {
|
||||
cat<<INSTALLEOF
|
||||
This package provides a series of utilities meant to be used with mkinitcpio.
|
||||
As of this version, it provides the encryptssh hook and the cryptsetup_shell,
|
||||
to be used in conjunction with mkinitcpio-dropbear or mkinitcpio-tinyssh.
|
||||
INSTALLEOF
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
cat<<REMOVEEOF
|
||||
Remove any hook(s) from this package that were inserted in your mkinitcpio.conf
|
||||
and rebuild the initramfs.
|
||||
REMOVEEOF
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
Reference in New Issue
Block a user