From 45e0892ed5dc24a2578edf90f925779aa501c08d Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 18 Sep 2016 18:53:51 +0200 Subject: [PATCH] New package: dracut-crypt-ssh-1.0.3 Closes: #4796 [via git-merge-pr] --- srcpkgs/dracut-crypt-ssh/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/dracut-crypt-ssh/template diff --git a/srcpkgs/dracut-crypt-ssh/template b/srcpkgs/dracut-crypt-ssh/template new file mode 100644 index 00000000000..e13b78645f1 --- /dev/null +++ b/srcpkgs/dracut-crypt-ssh/template @@ -0,0 +1,25 @@ +# Template file for 'dracut-crypt-ssh' +pkgname=dracut-crypt-ssh +version=1.0.3 +revision=1 +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 " +license="GPL-2" +homepage="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=158d293a1f4dc9e47bd4b390879dca084b5705cc21daf2743f3020dffefd966b + +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 +}