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-28 12:14:11 +00:00
|
|
|
revision=3
|
2015-02-22 13:52:49 +00:00
|
|
|
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>"
|
2015-02-28 12:14:11 +00:00
|
|
|
license="GPL-3"
|
2015-02-22 13:52:49 +00:00
|
|
|
homepage="https://github.com/thypon/runit-swap"
|
2015-02-22 17:21:47 +00:00
|
|
|
conf_files="/etc/runit-swap.conf"
|
2015-02-28 12:14:11 +00:00
|
|
|
noarch=yes
|
2015-02-22 13:52:49 +00:00
|
|
|
|
|
|
|
do_fetch() {
|
2015-02-28 12:14:11 +00: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 13:52:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2015-02-28 12:14:11 +00:00
|
|
|
vinstall runit-swap.sh 755 usr/sbin
|
|
|
|
vconf runit-swap.conf
|
2015-02-23 18:54:47 +00:00
|
|
|
|
2015-02-28 12:14:11 +00: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 18:54:47 +00:00
|
|
|
|
2015-02-28 12:14:11 +00:00
|
|
|
vinstall 90-runit-swap.conf 644 usr/lib/modprobe.d
|
2015-02-22 13:52:49 +00:00
|
|
|
}
|