2015-06-24 21:54:11 +00:00
|
|
|
# Template file for 'mkinitcpio'
|
|
|
|
pkgname=mkinitcpio
|
2016-01-24 11:42:57 +00:00
|
|
|
version=19
|
2016-05-14 09:30:03 +00:00
|
|
|
revision=2
|
2015-06-24 21:54:11 +00:00
|
|
|
noarch=yes
|
|
|
|
build_style=gnu-makefile
|
2016-05-14 09:30:03 +00:00
|
|
|
depends="busybox-static bsdtar bash"
|
2015-06-24 21:54:11 +00:00
|
|
|
short_desc="Next generation of initramfs creation"
|
|
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="https://wiki.archlinux.org/index.php/Mkinitcpio"
|
|
|
|
distfiles="https://sources.archlinux.org/other/$pkgname/$pkgname-$version.tar.gz"
|
2016-01-24 11:42:57 +00:00
|
|
|
checksum=7170e7a3d1b9ed21b0961941a327886febe80e62e2dfee6b88359ed72d0da620
|
2015-06-24 21:54:11 +00:00
|
|
|
|
|
|
|
conf_files="/etc/mkinitcpio.conf"
|
|
|
|
|
|
|
|
patch_args="-Np1"
|
|
|
|
|
|
|
|
post_install() {
|
2015-07-14 08:51:24 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/lib/kernel
|
2015-07-14 07:50:36 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/lib/systemd
|
2015-06-24 21:54:11 +00:00
|
|
|
ln -s /usr/bin/busybox.static $DESTDIR/usr/lib/initcpio/busybox
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/kernel-hook-postinst 755 etc/kernel.d/post-install 20-mkinitcpio
|
|
|
|
vinstall ${FILESDIR}/kernel-hook-postrm 755 etc/kernel.d/post-remove 20-mkinitcpio
|
|
|
|
}
|
|
|
|
|
|
|
|
mkinitcpio-udev_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} eudev"
|
|
|
|
short_desc+=" - udev support"
|
2015-06-30 15:57:53 +00:00
|
|
|
noarch=yes
|
2015-06-24 21:54:11 +00:00
|
|
|
pkg_install() {
|
|
|
|
vinstall ${FILESDIR}/udev_hook 644 usr/lib/initcpio/hooks udev
|
|
|
|
vinstall ${FILESDIR}/udev_install 644 usr/lib/initcpio/install udev
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mkinitcpio-lvm2_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} lvm2 thin-provisioning-tools"
|
|
|
|
short_desc+=" - lvm2 support"
|
|
|
|
conf_files="/usr/lib/initcpio/conf/lvm.conf"
|
2015-06-30 15:57:53 +00:00
|
|
|
noarch=yes
|
2015-06-24 21:54:11 +00:00
|
|
|
pkg_install() {
|
|
|
|
vinstall ${FILESDIR}/lvm2_hook 644 usr/lib/initcpio/hooks lvm2
|
|
|
|
vinstall ${FILESDIR}/lvm2_install 644 usr/lib/initcpio/install lvm2
|
|
|
|
for RULES in ${FILESDIR}/*.rules; do
|
|
|
|
vinstall $RULES 644 usr/lib/initcpio/udev $(basename $RULES)
|
|
|
|
done
|
|
|
|
vinstall ${FILESDIR}/lvm.conf 644 usr/lib/initcpio/conf
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mkinitcpio-encrypt_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}
|
|
|
|
${sourcepkg}-lvm2>=${version}_${revision} cryptsetup"
|
|
|
|
short_desc+=" - encrypt support"
|
2015-06-30 15:57:53 +00:00
|
|
|
noarch=yes
|
2015-06-24 21:54:11 +00:00
|
|
|
pkg_install() {
|
|
|
|
vinstall ${FILESDIR}/encrypt_hook 644 usr/lib/initcpio/hooks encrypt
|
|
|
|
vinstall ${FILESDIR}/encrypt_install 644 usr/lib/initcpio/install encrypt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mkinitcpio-mdadm_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} mdadm"
|
|
|
|
short_desc+=" - mdadm support"
|
2015-06-30 15:57:53 +00:00
|
|
|
noarch=yes
|
2015-06-24 21:54:11 +00:00
|
|
|
pkg_install() {
|
|
|
|
vinstall ${FILESDIR}/mdadm_hook 644 usr/lib/initcpio/hooks mdadm
|
|
|
|
vinstall ${FILESDIR}/mdadm_install 644 usr/lib/initcpio/install mdadm
|
|
|
|
vinstall ${FILESDIR}/mdadm_udev_install 644 usr/lib/initcpio/install mdadm_udev
|
|
|
|
}
|
|
|
|
}
|
2015-09-05 10:26:38 +00:00
|
|
|
|
|
|
|
mkinitcpio-xbps_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} xbps"
|
|
|
|
short_desc+=" - xbps support"
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vinstall ${FILESDIR}/xbps_install 644 usr/lib/initcpio/install xbps
|
|
|
|
}
|
|
|
|
}
|