2008-10-28 05:02:24 +01:00
|
|
|
# Template file for 'initramfs-tools'
|
|
|
|
pkgname=initramfs-tools
|
2009-03-07 07:27:06 +01:00
|
|
|
version=0.93
|
2008-12-15 01:41:36 +01:00
|
|
|
patch_files="$pkgname-xbps.diff"
|
2008-10-28 05:02:24 +01:00
|
|
|
distfiles="
|
2008-10-28 23:57:52 +01:00
|
|
|
http://ftp.de.debian.org/debian/pool/main/i/$pkgname/${pkgname}_${version}.tar.gz"
|
2008-10-28 05:02:24 +01:00
|
|
|
build_style=custom-install
|
|
|
|
short_desc="Tools for generating an initramfs"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2009-03-07 07:27:06 +01:00
|
|
|
checksum=1d56acc8dd64504d1e383a9e671179979369624323814ea691bceaa3560e0ec7
|
2008-10-28 05:02:24 +01:00
|
|
|
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."
|
|
|
|
|
2009-02-15 23:57:15 +01:00
|
|
|
noarch=yes
|
2008-12-15 01:41:36 +01:00
|
|
|
keep_dirs="/var/lib/$pkgname"
|
2009-03-01 00:19:28 +01:00
|
|
|
conf_files="/etc/$pkgname/initramfs.conf /etc/$pkgname/update-initramfs.conf
|
|
|
|
/etc/$pkgname/modules"
|
2009-02-25 06:15:20 +01:00
|
|
|
|
|
|
|
Add_dependency full glibc
|
|
|
|
Add_dependency full cpio
|
|
|
|
Add_dependency full util-linux-ng
|
2009-03-08 04:15:11 +01:00
|
|
|
Add_dependency build klibc
|
|
|
|
Add_dependency run klibc-utils
|
|
|
|
Add_dependency full klibc-udev
|
|
|
|
Add_dependency full klibc-module-init-tools
|
2009-02-25 06:15:20 +01:00
|
|
|
Add_dependency full gawk
|
|
|
|
Add_dependency full findutils
|
|
|
|
Add_dependency full sed
|
|
|
|
Add_dependency full grep
|
|
|
|
Add_dependency full gzip
|
2008-10-28 05:02:24 +01:00
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2009-03-11 06:31:56 +01:00
|
|
|
local etcdir=$DESTDIR/etc/$pkgname
|
2008-10-28 05:02:24 +01:00
|
|
|
|
|
|
|
# Required dirs
|
2008-12-14 05:25:55 +01: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
|
2009-03-11 06:31:56 +01:00
|
|
|
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
|
|
|
|
install -d $DESTDIR/var/lib/$pkgname
|
2008-10-28 05:02:24 +01:00
|
|
|
|
|
|
|
# /etc config files
|
|
|
|
install -m 644 $wrksrc/conf/initramfs.conf $etcdir
|
|
|
|
install -m 644 $wrksrc/conf/update-initramfs.conf $etcdir
|
|
|
|
|
|
|
|
# Data
|
2009-03-11 06:31:56 +01:00
|
|
|
install -m 755 $wrksrc/init $DESTDIR/usr/share/$pkgname
|
2008-12-14 05:25:55 +01:00
|
|
|
for f in functions local nfs; do
|
|
|
|
install -m 644 $wrksrc/scripts/$f \
|
2009-03-11 06:31:56 +01:00
|
|
|
$DESTDIR/usr/share/$pkgname/scripts
|
2008-12-14 05:25:55 +01:00
|
|
|
done
|
2008-10-28 05:02:24 +01:00
|
|
|
install -m 755 $wrksrc/scripts/init-premount/* \
|
2009-03-11 06:31:56 +01:00
|
|
|
$DESTDIR/usr/share/$pkgname/scripts/init-premount
|
2008-10-28 05:02:24 +01:00
|
|
|
install -m 755 $wrksrc/scripts/init-top/* \
|
2009-03-11 06:31:56 +01:00
|
|
|
$DESTDIR/usr/share/$pkgname/scripts/init-top
|
2008-10-28 05:02:24 +01:00
|
|
|
install -m 755 $wrksrc/scripts/local-premount/* \
|
2009-03-11 06:31:56 +01:00
|
|
|
$DESTDIR/usr/share/$pkgname/scripts/local-premount
|
|
|
|
install -m 755 $wrksrc/hooks/* $DESTDIR/usr/share/$pkgname/hooks
|
|
|
|
install -m 644 $wrksrc/hook-functions $DESTDIR/usr/share/$pkgname
|
2008-12-15 00:52:56 +01:00
|
|
|
install -m 644 $wrksrc/conf/modules $etcdir
|
2008-10-28 05:02:24 +01:00
|
|
|
|
|
|
|
# Examples
|
2009-03-11 06:31:56 +01:00
|
|
|
install -m 644 $wrksrc/docs/* $DESTDIR/usr/share/doc/$pkgname/examples
|
2008-10-28 05:02:24 +01:00
|
|
|
|
|
|
|
# Manpages
|
2009-03-11 06:31:56 +01:00
|
|
|
install -m 644 $wrksrc/*.5 $DESTDIR/usr/share/man/man5
|
|
|
|
install -m 644 $wrksrc/*.8 $DESTDIR/usr/share/man/man8
|
2008-10-28 05:02:24 +01:00
|
|
|
|
|
|
|
# Scripts
|
2009-03-11 06:31:56 +01:00
|
|
|
install -m 755 $wrksrc/mkinitramfs $DESTDIR/usr/sbin
|
|
|
|
install -m 755 $wrksrc/mkinitramfs-kpkg $DESTDIR/usr/sbin
|
|
|
|
install -m 755 $wrksrc/update-initramfs $DESTDIR/usr/sbin
|
2008-10-28 05:02:24 +01:00
|
|
|
}
|