runit-swap: fix Travis CI warnings
This commit is contained in:
parent
72574f4e54
commit
042eed6258
@ -1,34 +1,30 @@
|
|||||||
# Template file for 'runit-swap'
|
# Template file for 'runit-swap'
|
||||||
pkgname=runit-swap
|
pkgname=runit-swap
|
||||||
version=1.1.0
|
version=1.1.0
|
||||||
revision=2
|
revision=3
|
||||||
build_style=meta
|
build_style=meta
|
||||||
depends="runit bash util-linux>=2.26"
|
depends="runit bash util-linux>=2.26"
|
||||||
hostmakedepends="git"
|
hostmakedepends="git"
|
||||||
short_desc="Script to manage swapspaces"
|
short_desc="Script to manage swapspaces"
|
||||||
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
||||||
license="GPL"
|
license="GPL-3"
|
||||||
homepage="https://github.com/thypon/runit-swap"
|
homepage="https://github.com/thypon/runit-swap"
|
||||||
conf_files="/etc/runit-swap.conf"
|
conf_files="/etc/runit-swap.conf"
|
||||||
|
noarch=yes
|
||||||
|
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
local url="git://github.com/thypon/runit-swap"
|
local url="git://github.com/thypon/runit-swap"
|
||||||
msg_normal "Fetching source from $url ...\n"
|
msg_normal "Fetching source from $url ...\n"
|
||||||
git clone --branch v${version} ${url} ${pkgname}-${version}
|
git clone --branch v${version} ${url} ${pkgname}-${version}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vinstall runit-swap.sh 755 usr/sbin
|
vinstall runit-swap.sh 755 usr/sbin
|
||||||
vconf runit-swap.conf
|
vconf runit-swap.conf
|
||||||
|
|
||||||
vinstall swap/run 755 etc/sv/runit-swap
|
vinstall swap/run 755 etc/sv/runit-swap
|
||||||
vinstall swap/finish 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
|
||||||
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
|
vinstall 90-runit-swap.conf 644 usr/lib/modprobe.d
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user