26 lines
1.1 KiB
Bash
26 lines
1.1 KiB
Bash
# Template file for 'dracut-crypt-ssh'
|
|
pkgname=dracut-crypt-ssh
|
|
version=1.0.6
|
|
revision=2
|
|
build_style=gnu-configure
|
|
conf_files="/etc/dracut.conf.d/crypt-ssh.conf"
|
|
hostmakedepends="dracut"
|
|
makedepends="libblkid-devel"
|
|
depends="dracut dracut-network dropbear openssh"
|
|
short_desc="A new initramfs infrastructure - enter LUKS passphrase remotely"
|
|
maintainer="tastytea <tastytea@tastytea.de>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=003465a2c04ff142140a24e4984691da07e26b32345b62fd4ba1b17179884749
|
|
|
|
pre_configure() {
|
|
sed -i '111s/^/#/' configure
|
|
sed -i 's/gcc -lblkid/gcc -lblkid $(CFLAGS)/' modules/60crypt-ssh/helper/Makefile
|
|
sed -i 's/gcc/$(CC)/' modules/60crypt-ssh/helper/Makefile
|
|
sed -i "s|CFLAGS=|CFLAGS=${CFLAGS} ${LDFLAGS} |" modules/60crypt-ssh/helper/Makefile
|
|
sed -i 's|/lib64/libnss_files.so.2||' modules/60crypt-ssh/module-setup.sh
|
|
sed -i '107s|$|\n [ -f /lib/libnss_files.so.2 ] \&\& dracut_install /lib/libnss_files.so.2|' \
|
|
modules/60crypt-ssh/module-setup.sh
|
|
}
|