void-packages/srcpkgs/runit-swap/template

27 lines
761 B
Text
Raw Normal View History

2015-02-22 13:52:49 +00:00
# Template file for 'runit-swap'
pkgname=runit-swap
2015-02-22 17:21:47 +00:00
version=1.1.0
2015-02-22 13:52:49 +00:00
revision=1
build_style=meta
2015-02-22 17:21:47 +00:00
depends="runit bash util-linux>=2.26"
2015-02-22 13:52:49 +00:00
hostmakedepends="git"
short_desc="Script to manage swapspaces"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL"
homepage="https://github.com/thypon/runit-swap"
2015-02-22 17:21:47 +00:00
conf_files="/etc/runit-swap.conf"
2015-02-22 13:52:49 +00:00
do_fetch() {
local url="git://github.com/thypon/runit-swap"
msg_normal "Fetching source from $url ...\n"
git clone --branch v${version} ${url} ${pkgname}-${version}
}
do_install() {
2015-02-22 17:21:47 +00:00
vinstall runit-swap.sh 755 usr/sbin
2015-02-22 13:52:49 +00:00
vconf runit-swap.conf
2015-02-22 17:21:47 +00:00
vinstall swap/run 755 etc/sv/runit-swap
vinstall swap/finish 755 etc/sv/runit-swap
vinstall 90-runit-swap.conf 644 usr/lib/modprobe.d
2015-02-22 13:52:49 +00:00
}