2009-10-08 21:41:22 +02:00
|
|
|
# Template file for 'xbps-casper'
|
|
|
|
pkgname=xbps-casper
|
2012-02-06 11:06:57 +01:00
|
|
|
_localver=0.25 # XBPS package version
|
2011-02-16 12:59:37 +01:00
|
|
|
_distver=1.236 # This should match the upstream (Ubuntu) version
|
|
|
|
version=${_localver}.${_distver}
|
2009-10-08 21:41:22 +02:00
|
|
|
short_desc="Run a live preinstalled system from read-only media"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-02-01 13:14:28 +01:00
|
|
|
license="GPL-2"
|
2009-10-08 21:41:22 +02:00
|
|
|
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
|
|
|
|
conf_files="/etc/casper.conf"
|
|
|
|
|
2011-10-23 17:04:05 +02:00
|
|
|
Add_dependency full udev ">=174" # no path_id anymore
|
2009-10-08 21:41:22 +02:00
|
|
|
Add_dependency full initramfs-tools
|
|
|
|
|
2012-01-30 15:30:41 +01:00
|
|
|
do_install() {
|
2009-10-08 21:41:22 +02:00
|
|
|
# /etc config files
|
2011-10-12 21:57:33 +02:00
|
|
|
vinstall ${FILESDIR}/casper.conf 644 etc
|
2009-10-08 21:41:22 +02:00
|
|
|
|
|
|
|
# Helpers
|
|
|
|
install -d ${DESTDIR}/sbin
|
2011-10-12 21:57:33 +02:00
|
|
|
install -m755 ${FILESDIR}/bin/* ${DESTDIR}/sbin
|
2009-10-08 21:41:22 +02:00
|
|
|
|
|
|
|
# initramfs-tools hooks/scripts
|
|
|
|
initramfsdir=${DESTDIR}/usr/share/initramfs-tools
|
2011-05-20 14:25:04 +02:00
|
|
|
install -d ${initramfsdir}/hooks ${initramfsdir}/scripts/casper-bottom
|
2011-10-12 21:57:33 +02:00
|
|
|
install -m755 ${FILESDIR}/hooks/* ${initramfsdir}/hooks
|
|
|
|
install -m755 ${FILESDIR}/scripts/casper-bottom/* \
|
2009-10-08 21:41:22 +02:00
|
|
|
${initramfsdir}/scripts/casper-bottom
|
2011-10-12 21:57:33 +02:00
|
|
|
install -m644 ${FILESDIR}/scripts/{casper,casper-helpers} \
|
2010-12-18 15:25:54 +01:00
|
|
|
${initramfsdir}/scripts
|
2009-10-08 21:41:22 +02:00
|
|
|
}
|