2008-10-28 04:02:24 +00:00
|
|
|
# Template file for 'initramfs-tools'
|
|
|
|
pkgname=initramfs-tools
|
|
|
|
version=0.92l
|
|
|
|
wrksrc=$pkgname
|
2008-12-15 00:41:36 +00:00
|
|
|
patch_files="$pkgname-xbps.diff"
|
2008-10-28 04:02:24 +00:00
|
|
|
distfiles="
|
2008-10-28 22:57:52 +00:00
|
|
|
http://ftp.de.debian.org/debian/pool/main/i/$pkgname/${pkgname}_${version}.tar.gz"
|
2008-10-28 04:02:24 +00:00
|
|
|
build_style=custom-install
|
|
|
|
short_desc="Tools for generating an initramfs"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
checksum=cb4968ea4ffbdff777c865b0c8e71e49547bd15798ad5077244c3bb302de307e
|
|
|
|
long_desc="
|
|
|
|
This package contains tools to create and boot an initramfs for packaged 2.6
|
|
|
|
Linux kernel. The initramfs is a gzipped cpio archive. At boot time, the
|
|
|
|
kernel unpacks that archive into RAM, mounts and uses it as initial root
|
|
|
|
file system. The mounting of the real root file system occurs in early user
|
|
|
|
space. klibc provides utilities to setup root. Having the root on EVMS, MD,
|
|
|
|
LVM2, LUKS or NFS is also supported. Any boot loader with initrd support is
|
|
|
|
able to load an initramfs archive."
|
|
|
|
|
2008-12-15 00:41:36 +00:00
|
|
|
keep_dirs="/var/lib/$pkgname"
|
|
|
|
config_files="/etc/$pkgname/initramfs.conf /etc/$pkgname/update-initramfs.conf"
|
|
|
|
build_depends="cpio-2.9 util-linux-ng-2.14 klibc-1.5.14
|
|
|
|
module-init-tools-3.5 udev-1.30"
|
2008-10-28 04:02:24 +00:00
|
|
|
run_depends="glibc-2.8 $build_depends"
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
|
|
|
local etcdir=$destdir/etc/$pkgname
|
|
|
|
|
|
|
|
# Required dirs
|
2008-12-14 04:25:55 +00:00
|
|
|
install -d $etcdir/hooks
|
|
|
|
install -d $etcdir/conf.d
|
|
|
|
install -d $etcdir/scripts/init-bottom
|
|
|
|
install -d $etcdir/scripts/init-premount
|
|
|
|
install -d $etcdir/scripts/init-top
|
|
|
|
install -d $etcdir/scripts/local-bottom
|
|
|
|
install -d $etcdir/scripts/local-premount
|
|
|
|
install -d $etcdir/scripts/local-top
|
|
|
|
install -d $etcdir/scripts/nfs-bottom
|
|
|
|
install -d $etcdir/scripts/nfs-premount
|
|
|
|
install -d $etcdir/scripts/nfs-top
|
|
|
|
install -d $destdir/usr/share/$pkgname
|
|
|
|
install -d $destdir/usr/share/$pkgname/conf.d
|
|
|
|
install -d $destdir/usr/share/$pkgname/hooks
|
|
|
|
install -d $destdir/usr/share/$pkgname/hooksconf.d
|
|
|
|
install -d $destdir/usr/share/$pkgname/modules.d
|
|
|
|
install -d $destdir/usr/share/$pkgname/scripts
|
|
|
|
install -d $destdir/usr/share/$pkgname/scripts/init-premount
|
|
|
|
install -d $destdir/usr/share/$pkgname/scripts/init-top
|
|
|
|
install -d $destdir/usr/share/$pkgname/scripts/local-premount
|
|
|
|
install -d $destdir/usr/share/$pkgname/scripts/local-top
|
|
|
|
install -d $destdir/usr/share/doc/$pkgname
|
|
|
|
install -d $destdir/usr/share/doc/$pkgname/examples
|
|
|
|
install -d $destdir/usr/share/man/man5
|
|
|
|
install -d $destdir/usr/share/man/man8
|
|
|
|
install -d $destdir/usr/sbin
|
2008-12-14 23:52:56 +00:00
|
|
|
install -d $destdir/var/lib/$pkgname
|
2008-10-28 04:02:24 +00:00
|
|
|
|
|
|
|
# /etc config files
|
|
|
|
install -m 644 $wrksrc/conf/initramfs.conf $etcdir
|
|
|
|
install -m 644 $wrksrc/conf/update-initramfs.conf $etcdir
|
|
|
|
|
|
|
|
# Data
|
|
|
|
install -m 755 $wrksrc/init $destdir/usr/share/$pkgname
|
2008-12-14 04:25:55 +00:00
|
|
|
for f in functions local nfs; do
|
|
|
|
install -m 644 $wrksrc/scripts/$f \
|
|
|
|
$destdir/usr/share/$pkgname/scripts
|
|
|
|
done
|
2008-10-28 04:02:24 +00:00
|
|
|
install -m 755 $wrksrc/scripts/init-premount/* \
|
|
|
|
$destdir/usr/share/$pkgname/scripts/init-premount
|
|
|
|
install -m 755 $wrksrc/scripts/init-top/* \
|
|
|
|
$destdir/usr/share/$pkgname/scripts/init-top
|
|
|
|
install -m 755 $wrksrc/scripts/local-premount/* \
|
|
|
|
$destdir/usr/share/$pkgname/scripts/local-premount
|
|
|
|
install -m 755 $wrksrc/scripts/local-top/* \
|
|
|
|
$destdir/usr/share/$pkgname/scripts/local-top
|
|
|
|
install -m 755 $wrksrc/hooks/* $destdir/usr/share/$pkgname/hooks
|
|
|
|
install -m 644 $wrksrc/hook-functions $destdir/usr/share/$pkgname
|
2008-12-14 23:52:56 +00:00
|
|
|
install -m 644 $wrksrc/conf/modules $etcdir
|
2008-10-28 04:02:24 +00:00
|
|
|
|
|
|
|
# Examples
|
|
|
|
install -m 644 $wrksrc/docs/* $destdir/usr/share/doc/$pkgname/examples
|
|
|
|
|
|
|
|
# Manpages
|
|
|
|
install -m 644 $wrksrc/*.5 $destdir/usr/share/man/man5
|
|
|
|
install -m 644 $wrksrc/*.8 $destdir/usr/share/man/man8
|
|
|
|
|
|
|
|
# Scripts
|
2008-12-14 04:25:55 +00:00
|
|
|
install -m 755 $wrksrc/mkinitramfs $destdir/usr/sbin
|
|
|
|
install -m 755 $wrksrc/mkinitramfs-kpkg $destdir/usr/sbin
|
2008-10-28 04:02:24 +00:00
|
|
|
install -m 755 $wrksrc/update-initramfs $destdir/usr/sbin
|
|
|
|
}
|