2009-10-08 21:41:22 +02:00
|
|
|
# Template file for 'xbps-casper'
|
|
|
|
pkgname=xbps-casper
|
2009-12-19 05:44:28 +01:00
|
|
|
version=0.4.0
|
2009-10-08 21:41:22 +02:00
|
|
|
build_style=custom-install
|
|
|
|
short_desc="Run a live preinstalled system from read-only media"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
checksum=b31983b27630b3ef99f68bd8382851a7963542c944b625bdbfd2f2ff301a02d3
|
|
|
|
long_desc="
|
|
|
|
$pkgname is a modified version of Ubuntu's casper, that is able
|
|
|
|
to run a live pre-installed system from read-only media."
|
|
|
|
|
|
|
|
noextract=yes
|
|
|
|
noarch=yes
|
2009-10-17 03:12:48 +02:00
|
|
|
keep_empty_dirs=yes
|
2009-10-08 21:41:22 +02:00
|
|
|
conf_files="/etc/casper.conf"
|
|
|
|
|
|
|
|
Add_dependency full initramfs-tools
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
# /etc config files
|
|
|
|
install -d ${DESTDIR}/etc
|
|
|
|
install -m 644 ${FILESDIR}/casper.conf ${DESTDIR}/etc
|
|
|
|
|
|
|
|
# Helpers
|
|
|
|
install -d ${DESTDIR}/sbin
|
|
|
|
install -m 755 ${FILESDIR}/bin/* ${DESTDIR}/sbin
|
|
|
|
|
|
|
|
# initramfs-tools hooks/scripts
|
|
|
|
initramfsdir=${DESTDIR}/usr/share/initramfs-tools
|
|
|
|
install -d ${initramfsdir}/hooks ${initramfsdir}/scripts/casper-bottom \
|
|
|
|
${initramfsdir}/conf.d
|
|
|
|
install -m 755 ${FILESDIR}/hooks/* ${initramfsdir}/hooks
|
|
|
|
install -m 755 ${FILESDIR}/scripts/casper-bottom/* \
|
|
|
|
${initramfsdir}/scripts/casper-bottom
|
|
|
|
install -m 644 ${FILESDIR}/scripts/casper* ${initramfsdir}/scripts
|
|
|
|
install -m 644 ${FILESDIR}/conf.d/* ${initramfsdir}/conf.d
|
|
|
|
}
|