diff options
author | Vincent Grande | 2021-01-21 10:48:19 -0500 |
---|---|---|
committer | Vincent Grande | 2021-01-21 10:48:19 -0500 |
commit | 3811795c77b8117b774dc147a61992a0c03563b0 (patch) | |
tree | c2cc5a74fdfe06e83d002b0d4afdb5341a599b77 | |
download | aur-3811795c77b8117b774dc147a61992a0c03563b0.tar.gz |
initial upload
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | ananicy-runit.install | 5 | ||||
-rw-r--r-- | ananicy.finish | 3 | ||||
-rw-r--r-- | ananicy.run | 3 | ||||
-rw-r--r-- | ananicy.start | 3 |
6 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..715ba68ff698 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = ananicy-runit + pkgdesc = Ananicy - is Another auto nice daemon, with community rules support + pkgver = 2.2.0.r55.g5559e01 + pkgrel = 1 + url = https://github.com/Nefelim4ag/Ananicy + install = ananicy-runit.install + arch = any + license = BSD + makedepends = git + makedepends = make + depends = ananicy + depends = runit + depends = bash + depends = schedtool + source = ananicy.finish + source = ananicy.run + source = ananicy.start + b2sums = SKIP + b2sums = SKIP + b2sums = SKIP + +pkgname = ananicy-runit + install = ananicy-runit.install + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..755daae62b51 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Vincent Grande <shoober420@gmail.com> +# Contributor: Eli Schwartz <eschwartz@archlinux.org> +# Contributor: Timofey Titovets <nefelim4ag@gmail.com> +# Contributor: linuxer <linuxer@artixlinux.org> + +pkgname=ananicy-runit +_alias=ananicy +pkgver=2.2.0.r55.g5559e01 +pkgrel=1 +pkgdesc="Ananicy - is Another auto nice daemon, with community rules support" +arch=('any') +url="https://github.com/Nefelim4ag/Ananicy" +license=('BSD') +depends=('ananicy' 'runit' 'bash' 'schedtool') +makedepends=('git' 'make') +source=("ananicy.finish" + "ananicy.run" + "ananicy.start") +b2sums=('SKIP' + 'SKIP' + 'SKIP') +install=$pkgname.install + +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + mkdir -p "$pkgdir/etc/runit/sv/$_alias" + cp "ananicy.finish" $pkgdir/etc/runit/sv/$_alias/finish + cp "ananicy.run" $pkgdir/etc/runit/sv/$_alias/run + cp "ananicy.start" $pkgdir/etc/runit/sv/$_alias/start + install=ananicy-runit.install +} diff --git a/ananicy-runit.install b/ananicy-runit.install new file mode 100644 index 000000000000..c6816a69d765 --- /dev/null +++ b/ananicy-runit.install @@ -0,0 +1,5 @@ +post_install() { + echo "To enable:" + echo "\$ sudo sv up ananicy" + echo "Configs in /etc/ananicy.d/" +} diff --git a/ananicy.finish b/ananicy.finish new file mode 100644 index 000000000000..28dbd7a3db7d --- /dev/null +++ b/ananicy.finish @@ -0,0 +1,3 @@ +#!/bin/sh + +exec /sbin/sysctl -e kernel.sched_autogroup_enabled=1 diff --git a/ananicy.run b/ananicy.run new file mode 100644 index 000000000000..4e282f18e7af --- /dev/null +++ b/ananicy.run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec /usr/bin/ananicy start diff --git a/ananicy.start b/ananicy.start new file mode 100644 index 000000000000..19a4fc3e1bc6 --- /dev/null +++ b/ananicy.start @@ -0,0 +1,3 @@ +#!/bin/sh + +exec /sbin/sysctl -e kernel.sched_autogroup_enabled=0 |