Github messages for voidlinux
 help / color / mirror / Atom feed
From: shizonic <shizonic@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: Ananicy-2.2.0
Date: Tue, 01 Dec 2020 10:22:34 +0100	[thread overview]
Message-ID: <20201201092234.h3buH9WoL9BXn5Wkxia2cQsOGHdcCZE-EjHpMh1CH8s@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26859@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

There is an updated pull request by shizonic against master on the void-packages repository

https://github.com/shizonic/void-packages Ananicy
https://github.com/void-linux/void-packages/pull/26859

New package: Ananicy-2.2.0


A patch file from https://github.com/void-linux/void-packages/pull/26859.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-Ananicy-26859.patch --]
[-- Type: text/x-diff, Size: 2672 bytes --]

From 7587737eec62884458d221c0fa7e9927649d1709 Mon Sep 17 00:00:00 2001
From: Toby Merz <realtiaz@gmail.com>
Date: Tue, 1 Dec 2020 10:15:39 +0100
Subject: [PATCH] New package: Ananicy-2.2.0

---
 srcpkgs/Ananicy/files/Ananicy/conf   | 10 ++++++++++
 srcpkgs/Ananicy/files/Ananicy/finish |  3 +++
 srcpkgs/Ananicy/files/Ananicy/run    |  5 +++++
 srcpkgs/Ananicy/template             | 26 ++++++++++++++++++++++++++
 4 files changed, 44 insertions(+)
 create mode 100644 srcpkgs/Ananicy/files/Ananicy/conf
 create mode 100755 srcpkgs/Ananicy/files/Ananicy/finish
 create mode 100755 srcpkgs/Ananicy/files/Ananicy/run
 create mode 100644 srcpkgs/Ananicy/template

diff --git a/srcpkgs/Ananicy/files/Ananicy/conf b/srcpkgs/Ananicy/files/Ananicy/conf
new file mode 100644
index 00000000000..a491d092ce9
--- /dev/null
+++ b/srcpkgs/Ananicy/files/Ananicy/conf
@@ -0,0 +1,10 @@
+Nice=19
+SuccessExitStatus=143
+OOMScoreAdjust=-999
+Restart=always
+CPUAccounting=true
+MemoryHigh=16M
+MemoryMax=64M
+ProtectSystem=true
+ProtectHome=true
+PrivateTmp=yes
diff --git a/srcpkgs/Ananicy/files/Ananicy/finish b/srcpkgs/Ananicy/files/Ananicy/finish
new file mode 100755
index 00000000000..1c7718b3038
--- /dev/null
+++ b/srcpkgs/Ananicy/files/Ananicy/finish
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec >/dev/null 2>&1
+/usr/bin/sysctl -e kernel.sched_autogroup_enabled=1
diff --git a/srcpkgs/Ananicy/files/Ananicy/run b/srcpkgs/Ananicy/files/Ananicy/run
new file mode 100755
index 00000000000..0b87e9e4f3e
--- /dev/null
+++ b/srcpkgs/Ananicy/files/Ananicy/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec >/dev/null 2>&1
+[ -r ./conf ] && . ./conf
+/usr/bin/sysctl -e kernel.sched_autogroup_enabled=0
+exec /usr/bin/ananicy start
diff --git a/srcpkgs/Ananicy/template b/srcpkgs/Ananicy/template
new file mode 100644
index 00000000000..b4f62e9675b
--- /dev/null
+++ b/srcpkgs/Ananicy/template
@@ -0,0 +1,26 @@
+# Template file for 'Ananicy'
+pkgname=Ananicy
+version=2.2.0
+revision=1
+# wrksrc="${pkgname}-${version}"
+build_style=gnu-makefile
+hostmakedepends="util-linux"
+depends="coreutils python3 bash schedtool"
+short_desc="Another auto nice daemon, with community rules support"
+maintainer="shizonic <realtiaz@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Nefelim4ag/Ananicy"
+distfiles="https://github.com/Nefelim4ag/Ananicy/archive/${version}.tar.gz"
+checksum=9c5b08b1216b7c0610d0a77044e2cf112ed24ef62d5cbc0030baf8e01352aa26
+
+do_install() {
+	make install PREFIX="${DESTDIR}"
+
+	# cleanup systemd stuff
+	rm -rf "${DESTDIR:?}/lib"
+	rm -rf "${DESTDIR:?}/usr/lib"
+	rm -rf "${DESTDIR:?}/etc/ananicy.d/00-default/_systemd.rules"
+
+	# install runit service
+	vsv Ananicy
+}

  reply	other threads:[~2020-12-01  9:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-01  9:16 [PR PATCH] " shizonic
2020-12-01  9:22 ` shizonic [this message]
2020-12-01  9:23 ` [PR PATCH] [Updated] " shizonic
2020-12-01  9:28 ` shizonic
2022-04-30  2:14 ` github-actions
2022-05-15  2:12 ` [PR PATCH] [Closed]: " github-actions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201201092234.h3buH9WoL9BXn5Wkxia2cQsOGHdcCZE-EjHpMh1CH8s@z \
    --to=shizonic@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).