27 lines
774 B
Bash
27 lines
774 B
Bash
# Template file for 'runit-swap'
|
|
pkgname=runit-swap
|
|
version=1.3.0
|
|
revision=1
|
|
build_style=meta
|
|
depends="runit bash util-linux>=2.26"
|
|
hostmakedepends="git"
|
|
short_desc="Script to manage swapspaces"
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
license="GPL-3"
|
|
homepage="https://github.com/thypon/runit-swap"
|
|
conf_files="/etc/runit-swap.conf"
|
|
noarch=yes
|
|
distfiles="$homepage/archive/v$version.tar.gz"
|
|
checksum=b16528b70411425ccf2d32c07928be88fd3914fff7da317fc91c9e01068dd389
|
|
|
|
do_install() {
|
|
vbin runit-swap.sh
|
|
vconf runit-swap.conf
|
|
|
|
vinstall swap/run 755 etc/sv/runit-swap
|
|
vinstall swap/finish 755 etc/sv/runit-swap
|
|
ln -s /run/runit/supervise.runit-swap ${PKGDESTDIR}/etc/sv/runit-swap/supervise
|
|
|
|
vinstall 90-runit-swap.conf 644 usr/lib/modprobe.d
|
|
}
|