2009-10-08 19:41:22 +00:00
|
|
|
# Template file for 'xbps-casper'
|
|
|
|
pkgname=xbps-casper
|
2011-10-17 16:08:35 +00:00
|
|
|
_localver=0.19 # XBPS package version
|
2011-02-16 11:59:37 +00:00
|
|
|
_distver=1.236 # This should match the upstream (Ubuntu) version
|
|
|
|
version=${_localver}.${_distver}
|
2009-10-08 19:41:22 +00: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 01:12:48 +00:00
|
|
|
keep_empty_dirs=yes
|
2009-10-08 19:41:22 +00:00
|
|
|
conf_files="/etc/casper.conf"
|
|
|
|
|
|
|
|
Add_dependency full initramfs-tools
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
# /etc config files
|
2011-10-12 19:57:33 +00:00
|
|
|
vinstall ${FILESDIR}/casper.conf 644 etc
|
2009-10-08 19:41:22 +00:00
|
|
|
|
|
|
|
# Helpers
|
|
|
|
install -d ${DESTDIR}/sbin
|
2011-10-12 19:57:33 +00:00
|
|
|
install -m755 ${FILESDIR}/bin/* ${DESTDIR}/sbin
|
2009-10-08 19:41:22 +00:00
|
|
|
|
|
|
|
# initramfs-tools hooks/scripts
|
|
|
|
initramfsdir=${DESTDIR}/usr/share/initramfs-tools
|
2011-05-20 12:25:04 +00:00
|
|
|
install -d ${initramfsdir}/hooks ${initramfsdir}/scripts/casper-bottom
|
2011-10-12 19:57:33 +00:00
|
|
|
install -m755 ${FILESDIR}/hooks/* ${initramfsdir}/hooks
|
|
|
|
install -m755 ${FILESDIR}/scripts/casper-bottom/* \
|
2009-10-08 19:41:22 +00:00
|
|
|
${initramfsdir}/scripts/casper-bottom
|
2011-10-12 19:57:33 +00:00
|
|
|
install -m644 ${FILESDIR}/scripts/{casper,casper-helpers} \
|
2010-12-18 14:25:54 +00:00
|
|
|
${initramfsdir}/scripts
|
2009-10-08 19:41:22 +00:00
|
|
|
}
|