2015-02-22 13:52:49 +00:00
|
|
|
# Template file for 'runit-swap'
|
|
|
|
pkgname=runit-swap
|
2015-06-02 16:04:48 +00:00
|
|
|
version=1.2.0
|
2015-07-25 18:21:11 +00:00
|
|
|
revision=2
|
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-07-25 18:21:11 +00:00
|
|
|
distfiles="$homepage/archive/v$version.tar.gz"
|
|
|
|
checksum=24e5d7424fb7d195bcc10605353f9c24acec5a42e64a8409ae20ab839cccbda6
|
2015-02-22 13:52:49 +00:00
|
|
|
|
|
|
|
do_install() {
|
2015-06-02 16:04:48 +00:00
|
|
|
vbin runit-swap.sh
|
|
|
|
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
|
|
|
}
|