summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD35
-rw-r--r--ananicy-runit.install5
-rw-r--r--ananicy.finish3
-rw-r--r--ananicy.run3
-rw-r--r--ananicy.start3
6 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..715ba68ff69
--- /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 00000000000..755daae62b5
--- /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 00000000000..c6816a69d76
--- /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 00000000000..28dbd7a3db7
--- /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 00000000000..4e282f18e7a
--- /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 00000000000..19a4fc3e1bc
--- /dev/null
+++ b/ananicy.start
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /sbin/sysctl -e kernel.sched_autogroup_enabled=0