85cc462e1d
* Moved helpers, common and triggers dirs into xbps-src, where they belong. * Renamed the templates dir to srcpkgs, it was so redundant before. * Make it possible to add subpkgs with no restriction in names, for example udev now has a subpkgs called "libgudev". Previously subpkgs were named "${sourcepkg}-${pkgname}". * xbps-src: changed to look for template files in current directory. That means that most arguments from the targets have been removed. * xbps-src: added a reinstall target, to remove + install. * xbps-src: do not overwrite binpkgs by default, skip them. And more that I forgot because it's a mega-commit that I've been working for some days already... --HG-- extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# Template file for 'xbps-casper'
|
|
pkgname=xbps-casper
|
|
version=0.3
|
|
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
|
|
keep_empty_dirs=yes
|
|
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
|
|
}
|