From a99b39ad81e938830e41d98afeaac05e01e55140 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sun, 22 Feb 2015 14:52:49 +0100 Subject: [PATCH] New package: runit-swap-1.0.0 --- srcpkgs/runit-swap/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/runit-swap/template diff --git a/srcpkgs/runit-swap/template b/srcpkgs/runit-swap/template new file mode 100644 index 00000000000..dd79a43722f --- /dev/null +++ b/srcpkgs/runit-swap/template @@ -0,0 +1,25 @@ +# Template file for 'runit-swap' +pkgname=runit-swap +version=1.0.0 +revision=1 +build_style=meta +depends="runit util-linux>=2.26" +hostmakedepends="git" +short_desc="Script to manage swapspaces" +maintainer="Andrea Brancaleoni " +license="GPL" +homepage="https://github.com/thypon/runit-swap" + +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 744 usr/sbin + vconf runit-swap.conf + vinstall swap/run 744 etc/sv/swap + vinstall swap/finish 744 etc/sv/swap + vinstall 90-runit-swap.conf 644 etc/modprobe.d/ +}