From a99b39ad81e938830e41d98afeaac05e01e55140 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sun, 22 Feb 2015 14:52:49 +0100 Subject: [PATCH 1/4] 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/ +} From 065e016993a92ea7a1702f73b2e53c8ffa6bf294 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sun, 22 Feb 2015 18:21:47 +0100 Subject: [PATCH 2/4] runit-swap: update to 1.1.0 --- srcpkgs/runit-swap/template | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/srcpkgs/runit-swap/template b/srcpkgs/runit-swap/template index dd79a43722f..8ab9542235b 100644 --- a/srcpkgs/runit-swap/template +++ b/srcpkgs/runit-swap/template @@ -1,14 +1,15 @@ # Template file for 'runit-swap' pkgname=runit-swap -version=1.0.0 +version=1.1.0 revision=1 build_style=meta -depends="runit util-linux>=2.26" +depends="runit bash util-linux>=2.26" hostmakedepends="git" short_desc="Script to manage swapspaces" maintainer="Andrea Brancaleoni " license="GPL" homepage="https://github.com/thypon/runit-swap" +conf_files="/etc/runit-swap.conf" do_fetch() { local url="git://github.com/thypon/runit-swap" @@ -17,9 +18,9 @@ do_fetch() { } do_install() { - vinstall runit-swap.sh 744 usr/sbin + vinstall runit-swap.sh 755 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/ + vinstall swap/run 755 etc/sv/runit-swap + vinstall swap/finish 755 etc/sv/runit-swap + vinstall 90-runit-swap.conf 644 usr/lib/modprobe.d } From 72574f4e545dcabec4555d69c9a88e98a259c166 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Mon, 23 Feb 2015 18:54:47 +0000 Subject: [PATCH 3/4] runit-swap: create supervise symlink --- srcpkgs/runit-swap/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/runit-swap/template b/srcpkgs/runit-swap/template index 8ab9542235b..c036f350344 100644 --- a/srcpkgs/runit-swap/template +++ b/srcpkgs/runit-swap/template @@ -1,7 +1,7 @@ # Template file for 'runit-swap' pkgname=runit-swap version=1.1.0 -revision=1 +revision=2 build_style=meta depends="runit bash util-linux>=2.26" hostmakedepends="git" @@ -20,7 +20,15 @@ do_fetch() { 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 + # this code was adapted from _vsv function in "common/environment/setup/install.sh" + ln -s /run/runit/supervise.runit-swap ${PKGDESTDIR}/etc/sv/runit-swap/supervise + if [ -r ${PKGDESTDIR}/etc/sv/runit-swap/log/run ]; then + chmod 755 ${PKGDESTDIR}/etc/sv/runit-swap/log/run + ln -s /run/runit/supervise.runit-swap-log ${PKGDESTDIR}/etc/sv/runit-swap/log/supervise + fi + vinstall 90-runit-swap.conf 644 usr/lib/modprobe.d } From 042eed6258f93d2b13c16f0f48219210fa3eaf53 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sat, 28 Feb 2015 12:14:11 +0000 Subject: [PATCH 4/4] runit-swap: fix Travis CI warnings --- srcpkgs/runit-swap/template | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/srcpkgs/runit-swap/template b/srcpkgs/runit-swap/template index c036f350344..49a222cc594 100644 --- a/srcpkgs/runit-swap/template +++ b/srcpkgs/runit-swap/template @@ -1,34 +1,30 @@ # Template file for 'runit-swap' pkgname=runit-swap version=1.1.0 -revision=2 +revision=3 build_style=meta depends="runit bash util-linux>=2.26" hostmakedepends="git" short_desc="Script to manage swapspaces" maintainer="Andrea Brancaleoni " -license="GPL" +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} + 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 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 - # this code was adapted from _vsv function in "common/environment/setup/install.sh" - ln -s /run/runit/supervise.runit-swap ${PKGDESTDIR}/etc/sv/runit-swap/supervise - if [ -r ${PKGDESTDIR}/etc/sv/runit-swap/log/run ]; then - chmod 755 ${PKGDESTDIR}/etc/sv/runit-swap/log/run - ln -s /run/runit/supervise.runit-swap-log ${PKGDESTDIR}/etc/sv/runit-swap/log/supervise - fi + 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 + vinstall 90-runit-swap.conf 644 usr/lib/modprobe.d }