summaryrefslogtreecommitdiff
path: root/app-admin/verynice
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/verynice
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/verynice')
-rw-r--r--app-admin/verynice/Manifest9
-rw-r--r--app-admin/verynice/files/verynice19
-rw-r--r--app-admin/verynice/files/verynice-1.1-build.patch73
-rw-r--r--app-admin/verynice/files/verynice.service8
-rw-r--r--app-admin/verynice/metadata.xml9
-rw-r--r--app-admin/verynice/verynice-1.1-r2.ebuild32
-rw-r--r--app-admin/verynice/verynice-1.1-r3.ebuild33
7 files changed, 183 insertions, 0 deletions
diff --git a/app-admin/verynice/Manifest b/app-admin/verynice/Manifest
new file mode 100644
index 000000000000..70b797d79c4d
--- /dev/null
+++ b/app-admin/verynice/Manifest
@@ -0,0 +1,9 @@
+AUX verynice 372 SHA256 2d1fa9f143bc792119641f96a6894079e523fa6cbcb55672422f924e7f3cf1f2 SHA512 b65b2f826b29ce19a237eace78518d0b31af0138caae0342c5354341dccd93cb13ffbf8d82acd1a52d0d710e62ae9d4a18a84e479c01c8931f78051daeab7e02 WHIRLPOOL 35d0e97c4ae418b88fd8ee6f52773cfeefd0618066268e6341c0e717554695c3cfea44a8f06fcaf0ff02f5982fbe9e15bfe4a328d31f8da2a0ec027c0bcc6038
+AUX verynice-1.1-build.patch 2525 SHA256 672c404f155a8be7e0ffa91997f25d2a13d16475a4c5821fead89108d3dd82c4 SHA512 8421776550e74a0d409cc3a02e65e96a047571abf0a7d5f0f1c97217978a150711bb7dd68b77abac044b4b7844970bed969151b166f91da20cd36c2c491bdee6 WHIRLPOOL 0bfea97c64dd76096150dc088c70dbf3ed62c25c46447a38aa23d08fcf439813ab04eccbed98daa4178659b6fa1184755bd9c238ea3f3a8d0968af658ba059a8
+AUX verynice.service 158 SHA256 f30efe2dbe6b87e637c458c7d618114b9cf9af5f3d12653de18aae9ff5a079f5 SHA512 03a88cc405c8d6fa18f1e523e6987b1455011cf17ff38f1e937d523b33d88cae839f256811b487ec3141d8b396a15b8af778998d53bf55dd69f6a6a6dbc6a148 WHIRLPOOL 7da0946a0b67425bf7e80b0d660bd5f9f601f86ac1364ccbd324bcfbd361e8721870f6d3112bfd593114cfeab6d6d866f5d648b06846f4f335705bbdd8f4aff2
+DIST verynice-1.1.tar.gz 37576 SHA256 5830fd4ac14ba3677e49159adbb7cd61e3d42d1f0b9aa73e4ed0aa154af6cd8d SHA512 731fa22162bb4f48b943839ccf8ccdc769587e323da11e4a77ad14539a724ffbb89e5f4122e1ab36df3306c507afc958d1125160d34d9cbf55df4dc69e4a0139 WHIRLPOOL ed1b7790aa333497e869830b2aacc3fa2289864e363bef3362ffee115c8afa0eb36b8cc29f255d87b929bb3dec3f8d9e839f30668c4572bccfdfb61f95da07c3
+EBUILD verynice-1.1-r2.ebuild 736 SHA256 b9e993eaed53518bf1f6489dbe249bd9bd276f1dfa40670e28c741f18116086f SHA512 37e77ad6769d2c19a4ab99a46299e154736d13c705e363d7a120c2957b00a638be1da544e2e4708d8d90bfd96057c24119eb8e979c3cb479e2f3e48e2a4ec4c8 WHIRLPOOL 9cdf4f6c4a1abd248c6e69a1d1ae6608405377b598d6f7c3752317153f220b2ec3f014ef2c41c98636db745219bb0e00dbd6dfd7541033e411dfbf5d805b165f
+EBUILD verynice-1.1-r3.ebuild 754 SHA256 4c8710e76495a84aa6c88f0957d60b09cb4eedcd0806547099a1186da80f662d SHA512 0feb88b732d9fa3df7d98e6d23ef34925a6964e9f8b6b9735540dc64c161309c1324b1bdee4230411812fe3d5f81fcdc688c0c84146b1c53b366253c29626512 WHIRLPOOL ad480c9738c8c9a02c35991fb8fa3a6e5aa52a65f6d9b0154d2d7e1d782282c8eb7969fcb8789661d58b7d000e12e6279209afd2824ff6bf45b4167322ad5c26
+MISC ChangeLog 2852 SHA256 e5d22061349d09a387f68ab8902297e9cfa732e4ed3e402ae36a9a856cecc037 SHA512 6ad1fca8df9baee0273af1fe101bb202ac9d21b8f30648d328388255d8520267f15ea98786ebbb66b7acb52f9928dcb79731c7ac5a8b01b486981fd663311c9e WHIRLPOOL 63467c91d453d1ea1dffba7c0a5d54f2bcd0b25e1043c055477eca2ac4bbe6b264efadf83ddeb90e7fbf47cce3130ab2cf93bb1a769f0bcf11a9a03f4b3d179a
+MISC ChangeLog-2015 3149 SHA256 75a73a476bc518e6f9c340de91e2de5e0d10ae5fdd26a0a6afc252e2b9810aac SHA512 03775f2ff4bc4a4f869af79e34932c6d5e97eb8302d9b32b21377bb2bf93d8ee6836944fc65b7a971a79ffe6de27564ef3bb8665834ab3dbd58ed43f11b7d584 WHIRLPOOL b444af9a2853805f67ece6690e9fed95e0d67d25761596b4dd786b726d8cc968af7fb26a40d078162ab1964f3823a210c9590f4c348cf89c2465d926c741e0eb
+MISC metadata.xml 318 SHA256 599a02a95b9b6acbf1de977d70ecef843f89e47d5146771fa6ef4022f45eff82 SHA512 04cee3becd3a20c8f455969ea4c38d7a0843283bafded1af5310fe090159ad2ae0c804fc4893fa88138ad98aa3feda6991624c8a4942b245b64db5eebb3dcf46 WHIRLPOOL d44b2cc71ae157e56bec07d53ef9776834a36b91c054988475e3e44a4a6ebbf9f1260c390937983765a156e9db43228e20c423a0a0fa338692dc36136c39c2f8
diff --git a/app-admin/verynice/files/verynice b/app-admin/verynice/files/verynice
new file mode 100644
index 000000000000..4aa89cf73b2a
--- /dev/null
+++ b/app-admin/verynice/files/verynice
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ after checkroot root
+}
+
+start() {
+ ebegin "Starting verynice"
+ /usr/sbin/verynice -d /var/run/verynice.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping verynice"
+ start-stop-daemon --stop --quiet --pidfile=/var/run/verynice.pid
+ eend $?
+}
diff --git a/app-admin/verynice/files/verynice-1.1-build.patch b/app-admin/verynice/files/verynice-1.1-build.patch
new file mode 100644
index 000000000000..a70202b99300
--- /dev/null
+++ b/app-admin/verynice/files/verynice-1.1-build.patch
@@ -0,0 +1,73 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Wed Dec 26 19:46:44 UTC 2012
+Subject: build system
+
+respect flags, add LDFLAGS to linker line
+fix install rules
+
+--- Makefile
++++ Makefile
+@@ -15,13 +15,15 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+-CC = gcc
++CC ?= gcc
+
+
+ RPM_BUILD_ROOT=
+
+ # PREFIX is usually either /usr or /usr/local
+ PREFIX=/usr/local
++BINDIR=$(PREFIX)/sbin
++ETCDIR=/etc
+ TARGET=linux
+
+
+@@ -32,8 +34,8 @@
+ VERSION=1.1
+
+ #CFLAGS= -I../include/ -O3 -Wimplicit
+-CFLAGS= -I../include/ -g -Wimplicit -DPREFIX=\"$(PREFIX)\" -DTARGET_$(TARGET) -DVERSION=\"$(VERSION)\"
+-LINK = gcc
++CFLAGS += -Wimplicit
++CPPFLAGS = -I../include/ -DPREFIX=\"$(PREFIX)\" -DTARGET_$(TARGET) -DVERSION=\"$(VERSION)\"
+ AG = /home3/sdh4/anagram/ag_unix_dev/ag
+
+
+@@ -55,20 +57,15 @@
+ (cd .. ; tar cvzf verynice-$(VERSION).tar.gz verynice/ )
+
+ install:
+- $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/sbin
+- $(INSTALL) verynice $(RPM_BUILD_ROOT)$(PREFIX)/sbin
+- if [ $(PREFIX) = "/usr" ]; then \
+- mv -f $(RPM_BUILD_ROOT)/etc/verynice.conf $(RPM_BUILD_ROOT)/etc/verynice.conf~ ; \
+- $(INSTALL) verynice.conf $(RPM_BUILD_ROOT)/etc ; \
+- else \
+- $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/etc ; \
+- mv -f $(RPM_BUILD_ROOT)$(PREFIX)/etc/verynice.conf $(RPM_BUILD_ROOT)$(PREFIX)/etc/verynice.conf~ ; \
+- $(INSTALL) -m 644 verynice.conf $(RPM_BUILD_ROOT)$(PREFIX)/etc ; \
+- fi
++ $(INSTALL) -d $(RPM_BUILD_ROOT)$(BINDIR)
++ $(INSTALL) verynice $(RPM_BUILD_ROOT)$(BINDIR)
++ $(INSTALL) -d $(RPM_BUILD_ROOT)$(ETCDIR)
++ $(INSTALL) -m 644 verynice.conf $(RPM_BUILD_ROOT)$(ETCDIR)
+ $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share
+ $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share/doc
+ $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
+- $(INSTALL) -m 644 verynice.html $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
++ $(INSTALL) -d $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)/html
++ $(INSTALL) -m 644 verynice.html $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)/html
+ $(INSTALL) -m 644 README $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
+ $(INSTALL) -m 644 README.SYN $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
+ $(INSTALL) -m 644 COPYING $(RPM_BUILD_ROOT)$(PREFIX)/share/doc/verynice-$(VERSION)
+@@ -95,7 +92,7 @@
+ $(AG) $*
+
+ verynice: verynice.o config.o linklist.o stringstack.o
+- $(LINK) -g -o $@ $^ -lm
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lm
+
+
+
diff --git a/app-admin/verynice/files/verynice.service b/app-admin/verynice/files/verynice.service
new file mode 100644
index 000000000000..e85ef4c895b2
--- /dev/null
+++ b/app-admin/verynice/files/verynice.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=A tool for dynamically adjusting the nice-level of processes
+
+[Service]
+ExecStart=/usr/sbin/verynice
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-admin/verynice/metadata.xml b/app-admin/verynice/metadata.xml
new file mode 100644
index 000000000000..a1dec792eedb
--- /dev/null
+++ b/app-admin/verynice/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ A tool that can dynamically adjust the nice-level of processes under
+ Unix-like operating systems.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-admin/verynice/verynice-1.1-r2.ebuild b/app-admin/verynice/verynice-1.1-r2.ebuild
new file mode 100644
index 000000000000..65f4d5d73eea
--- /dev/null
+++ b/app-admin/verynice/verynice-1.1-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils systemd toolchain-funcs
+
+DESCRIPTION="A tool for dynamically adjusting the nice-level of processes"
+HOMEPAGE="http://thermal.cnde.iastate.edu/~sdh4/verynice/"
+SRC_URI="http://thermal.cnde.iastate.edu/~sdh4/verynice/down/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake RPM_BUILD_ROOT="${D}" PREFIX=/usr
+}
+
+src_install(){
+ emake RPM_BUILD_ROOT="${D}" PREFIX=/usr VERSION=${PVR} install
+ doinitd "${FILESDIR}"/verynice
+ systemd_dounit "${FILESDIR}"/verynice.service
+}
diff --git a/app-admin/verynice/verynice-1.1-r3.ebuild b/app-admin/verynice/verynice-1.1-r3.ebuild
new file mode 100644
index 000000000000..48d766226b46
--- /dev/null
+++ b/app-admin/verynice/verynice-1.1-r3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils systemd toolchain-funcs
+
+DESCRIPTION="A tool for dynamically adjusting the nice-level of processes"
+HOMEPAGE="https://web.archive.org/web/20130621090315/ http://thermal.cnde.iastate.edu/~sdh4/verynice/"
+SRC_URI="http://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ default
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake RPM_BUILD_ROOT="${D}" PREFIX=/usr
+}
+
+src_install(){
+ emake RPM_BUILD_ROOT="${D}" PREFIX=/usr VERSION=${PVR} install
+ doinitd "${FILESDIR}"/verynice
+ systemd_dounit "${FILESDIR}"/verynice.service
+}