void-packages/srcpkgs/runit-swap/template

27 lines
774 B
Bash
Raw Normal View History

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