2008-10-28 04:02:24 +00:00
|
|
|
# Template file for 'initramfs-tools'
|
|
|
|
pkgname=initramfs-tools
|
2011-01-16 11:31:54 +00:00
|
|
|
_localver=0.99.7.1 # This is the XBPS version
|
|
|
|
_distver=0.98.5 # This should match debian version
|
|
|
|
version=${_localver}.${_distver}
|
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>"
|
|
|
|
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
|
2009-12-19 03:48:47 +00:00
|
|
|
space. 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-10-28 04:02:24 +00:00
|
|
|
|
2009-10-17 14:12:12 +00:00
|
|
|
noextract=yes
|
2009-02-15 22:57:15 +00:00
|
|
|
noarch=yes
|
2009-10-17 01:12:48 +00:00
|
|
|
keep_empty_dirs=yes
|
2009-10-08 14:57:13 +00:00
|
|
|
triggers="initramfs-tools"
|
2010-05-06 00:36:18 +00:00
|
|
|
conf_files="
|
|
|
|
/etc/$pkgname/initramfs.conf
|
|
|
|
/etc/$pkgname/update-initramfs.conf
|
|
|
|
/etc/$pkgname/modules"
|
2009-02-25 05:15:20 +00:00
|
|
|
|
|
|
|
Add_dependency full cpio
|
2011-01-11 13:46:44 +00:00
|
|
|
Add_dependency full util-linux
|
2009-02-25 05:15:20 +00:00
|
|
|
Add_dependency full gawk
|
|
|
|
Add_dependency full findutils
|
|
|
|
Add_dependency full sed
|
|
|
|
Add_dependency full grep
|
|
|
|
Add_dependency full gzip
|
2010-02-20 03:06:10 +00:00
|
|
|
Add_dependency full bzip2
|
|
|
|
Add_dependency full xz
|
2009-06-20 16:52:27 +00:00
|
|
|
Add_dependency full udev
|
|
|
|
Add_dependency full module-init-tools
|
2009-10-08 14:00:51 +00:00
|
|
|
Add_dependency full busybox-initramfs
|
2010-02-19 05:44:50 +00:00
|
|
|
Add_dependency full klibc-resume
|
2008-10-28 04:02:24 +00:00
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2009-03-11 05:31:56 +00:00
|
|
|
local etcdir=$DESTDIR/etc/$pkgname
|
2008-10-28 04:02:24 +00:00
|
|
|
|
|
|
|
# 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
|
2009-03-11 05:31:56 +00: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 04:02:24 +00:00
|
|
|
|
|
|
|
# /etc config files
|
2009-10-09 01:11:09 +00:00
|
|
|
install -m 644 $FILESDIR/conf/initramfs.conf $etcdir
|
|
|
|
install -m 644 $FILESDIR/conf/update-initramfs.conf $etcdir
|
2008-10-28 04:02:24 +00:00
|
|
|
|
|
|
|
# Data
|
2009-10-09 01:11:09 +00:00
|
|
|
install -m 755 $FILESDIR/init $DESTDIR/usr/share/$pkgname
|
2008-12-14 04:25:55 +00:00
|
|
|
for f in functions local nfs; do
|
2009-10-09 01:11:09 +00:00
|
|
|
install -m 644 $FILESDIR/scripts/$f \
|
2009-03-11 05:31:56 +00:00
|
|
|
$DESTDIR/usr/share/$pkgname/scripts
|
2008-12-14 04:25:55 +00:00
|
|
|
done
|
2009-10-09 01:11:09 +00:00
|
|
|
install -m 755 $FILESDIR/scripts/init-top/* \
|
2009-03-11 05:31:56 +00:00
|
|
|
$DESTDIR/usr/share/$pkgname/scripts/init-top
|
2009-10-09 01:11:09 +00:00
|
|
|
install -m 755 $FILESDIR/scripts/local-premount/* \
|
2009-03-11 05:31:56 +00:00
|
|
|
$DESTDIR/usr/share/$pkgname/scripts/local-premount
|
2009-10-09 01:11:09 +00:00
|
|
|
install -m 755 $FILESDIR/hooks/* $DESTDIR/usr/share/$pkgname/hooks
|
|
|
|
install -m 644 $FILESDIR/hook-functions $DESTDIR/usr/share/$pkgname
|
|
|
|
install -m 644 $FILESDIR/conf/modules $etcdir
|
2008-10-28 04:02:24 +00:00
|
|
|
|
|
|
|
# Examples
|
2009-10-09 01:11:09 +00:00
|
|
|
install -m 644 $FILESDIR/docs/* $DESTDIR/usr/share/doc/$pkgname/examples
|
2008-10-28 04:02:24 +00:00
|
|
|
|
|
|
|
# Manpages
|
2009-10-09 01:11:09 +00:00
|
|
|
install -m 644 $FILESDIR/*.5 $DESTDIR/usr/share/man/man5
|
|
|
|
install -m 644 $FILESDIR/*.8 $DESTDIR/usr/share/man/man8
|
2008-10-28 04:02:24 +00:00
|
|
|
|
|
|
|
# Scripts
|
2009-10-09 01:11:09 +00:00
|
|
|
install -m 755 $FILESDIR/mkinitramfs $DESTDIR/usr/sbin
|
|
|
|
install -m 755 $FILESDIR/update-initramfs $DESTDIR/usr/sbin
|
2010-11-10 22:22:48 +00:00
|
|
|
install -m 755 $FILESDIR/lsinitramfs $DESTDIR/usr/sbin
|
2010-02-25 03:07:57 +00:00
|
|
|
sed -i -e "s|@VERSION@|${version}|g" $DESTDIR/usr/sbin/update-initramfs
|
2008-10-28 04:02:24 +00:00
|
|
|
}
|