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