Merge pull request #1010 from thypon/master

New package: runit-swap-1.0.0
This commit is contained in:
Juan RP 2015-03-01 19:39:51 +01:00
commit 2b85bf5e97
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# Template file for 'runit-swap'
pkgname=runit-swap
version=1.1.0
revision=3
build_style=meta
depends="runit bash util-linux>=2.26"
hostmakedepends="git"
short_desc="Script to manage swapspaces"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="https://github.com/thypon/runit-swap"
conf_files="/etc/runit-swap.conf"
noarch=yes
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() {
vinstall runit-swap.sh 755 usr/sbin
vconf runit-swap.conf
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
vinstall 90-runit-swap.conf 644 usr/lib/modprobe.d
}