4 equery list $1 | tail -n 1 | sed 's/.*-//'
7 packages="/usr/portage/distfiles"
8 wd="/usr/src/initramfs/builds"
12 busybox_ver="$(version ${busybox})"
14 cryptsetup="cryptsetup"
15 cryptsetup_ver="$(version ${cryptsetup})"
27 tar xf ${packages}/${busybox}-${busybox_ver}.tar.bz2
29 cp ${cur}/busybox_config ${busybox}-${busybox_ver}/.config
30 cd ${busybox}-${busybox_ver}
34 mkdir ${wd}/busybox/bin -p
35 cp _install/bin/busybox ${wd}/busybox/bin
39 tar xf ${packages}/${cryptsetup}-${cryptsetup_ver}.tar.xz
41 cd ${cryptsetup}-${cryptsetup_ver}
43 ./configure --enable-static=yes \
46 --enable-static-cryptsetup \
47 --disable-verity-setup \
48 --disable-cryptsetup-reencrypt \
49 --disable-integritysetup \
52 --with-crypto_backend=kernel
55 make install DESTDIR=${wd}/cryptsetup
59 tar xf ${packages}/${lvm}${lvm_ver}.tgz
65 LIBS="-luuid -lrt -lpthread -lm" \
66 ./configure --prefix=/ \
67 --enable-static_link \
69 --with-snapshots=none \
75 --disable-udev-systemd-background-jobs
78 make install DESTDIR=${wd}/lvm