diff --git a/srcpkgs/kernel-snapshot/INSTALL b/srcpkgs/kernel-snapshot/INSTALL deleted file mode 100644 index 41dce1f6bb0..00000000000 --- a/srcpkgs/kernel-snapshot/INSTALL +++ /dev/null @@ -1,14 +0,0 @@ -# -# This script builds the required initramfs. -# -_KVER="3.0.0-rc6" - -case "${ACTION}" in -post) - if [ ! -f var/lib/initramfs-tools/${_KVER} ]; then - update-initramfs -c -t -k ${_KVER} - else - update-initramfs -u -t -k ${_KVER} - fi - ;; -esac diff --git a/srcpkgs/kernel-snapshot/REMOVE b/srcpkgs/kernel-snapshot/REMOVE deleted file mode 100644 index 5d3ec42320b..00000000000 --- a/srcpkgs/kernel-snapshot/REMOVE +++ /dev/null @@ -1,10 +0,0 @@ -# -# This script removes the initramfs. -# -_KVER="3.0.0-rc6" - -case "${ACTION}" in -post) - update-initramfs -d -t -k ${_KVER} - ;; -esac diff --git a/srcpkgs/kernel-snapshot/template b/srcpkgs/kernel-snapshot/template index 1b476ad0163..d333d5564f2 100644 --- a/srcpkgs/kernel-snapshot/template +++ b/srcpkgs/kernel-snapshot/template @@ -3,11 +3,11 @@ . ${XBPS_SRCPKGDIR}/kernel/template # Reset some stuff. -unset revision triggers build_depends run_depends +unset revision # Override required vars. pkgname=kernel-snapshot -#revision=1 +revision=1 _kernel_headers_revision=${revision} _kernel_snapshot=yes _kernel_ver=3.0 @@ -31,9 +31,5 @@ if [ -n "$revision" ]; then _kernver="${_kernver}_${revision}" fi -Add_dependency run linux-firmware -Add_dependency run initramfs-tools -Add_dependency build xz -Add_dependency build coreutils -Add_dependency build perl ">=0" -Add_dependency full module-init-tools +# Kernel hooks support. +kernel_hooks_version="${_kernver}"