diff --git a/common/shlibs b/common/shlibs index ee0acecca0..581b3bdb9e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2064,3 +2064,4 @@ libmediaart-2.0.so.0 libmediaart2-1.9.0_1 libgegl-0.3.so.0 gegl3-0.3.0_1 libgegl-npd-0.3.so gegl3-0.3.0_1 libgegl-sc-0.3.so gegl3-0.3.0_1 +libprocps.so.4 procps-ng-3.3.10_8 diff --git a/srcpkgs/ConsoleKit2/files/consolekit/run b/srcpkgs/ConsoleKit2/files/consolekit/run new file mode 100644 index 0000000000..8b992b6539 --- /dev/null +++ b/srcpkgs/ConsoleKit2/files/consolekit/run @@ -0,0 +1,3 @@ +#!/bin/sh +sv check dbus >/dev/null || exit 1 +exec console-kit-daemon --no-daemon diff --git a/srcpkgs/ConsoleKit2/template b/srcpkgs/ConsoleKit2/template index b1383a7b0f..74bd9d987c 100644 --- a/srcpkgs/ConsoleKit2/template +++ b/srcpkgs/ConsoleKit2/template @@ -2,7 +2,7 @@ pkgname=ConsoleKit2 reverts=0.9.3_1 version=0.9.2 -revision=7 +revision=8 patch_args="-Np1" build_pie=yes build_style=gnu-configure @@ -32,6 +32,10 @@ pre_configure() { autoreconf -fi } +post_install() { + vsv consolekit +} + ConsoleKit2-devel_package() { short_desc+=" - development files" depends="dbus-devel ${sourcepkg}>=${version}_${revision}" diff --git a/srcpkgs/lua51-BitOp/template b/srcpkgs/lua51-BitOp/template new file mode 100644 index 0000000000..930b4d68c0 --- /dev/null +++ b/srcpkgs/lua51-BitOp/template @@ -0,0 +1,23 @@ +# Template file for 'lua-BitOp' +pkgname=lua51-BitOp +version=1.0.2 +revision=1 +makedepends="lua51-devel lua51" +hostmakedepends="lua51" +depends="lua51" +short_desc="C extension module for Lua which adds bitwise operations on numbers" +maintainer="Tj Vanderpoel (bougyman) " +license="MIT" +homepage="http://bitop.luajit.org/" +distfiles="${homepage}/download/LuaBitOp-${version}.tar.gz" +checksum=1207c9293dcd52eb9dca6538d1b87352bd510f4e760938f5048433f7f272ce99 +build_style=gnu-makefile +wrksrc="LuaBitOp-${version}" +make_build_args="INCLUDES=-I/usr/include/lua5.1" + +do_install() { + mod_path="${DESTDIR}$(lua5.1 installpath.lua bit)" + lua_path=$(dirname $mod_path) + install -dm0755 "$lua_path" + install -p bit.so "$mod_path" +} diff --git a/srcpkgs/luaposix/template b/srcpkgs/luaposix/template index 15fcc95a84..64dac51bb0 100644 --- a/srcpkgs/luaposix/template +++ b/srcpkgs/luaposix/template @@ -1,11 +1,11 @@ # Template file for 'luaposix' pkgname=luaposix version=5.1.28 -revision=3 +revision=4 lib32disabled=yes wrksrc="${pkgname}-release-v${version}" build_style=gnu-configure -configure_args="--libdir=/usr/lib/lua/5.1 --datadir=/usr/share/lua/5.1" +configure_args="--libdir=/usr/lib/lua/5.2 --datadir=/usr/share/lua/5.2" hostmakedepends="perl lua-devel" makedepends="ncurses-devel lua-devel" depends="lua" diff --git a/srcpkgs/luaposix51/template b/srcpkgs/luaposix51/template new file mode 100644 index 0000000000..75492c880c --- /dev/null +++ b/srcpkgs/luaposix51/template @@ -0,0 +1,22 @@ +# Template file for 'luaposix51' +pkgname=luaposix51 +version=5.1.28 +revision=2 +lib32disabled=yes +wrksrc="luaposix-release-v${version}" +build_style=gnu-configure +configure_args="--libdir=/usr/lib/lua/5.1 --datadir=/usr/share/lua/5.1" +hostmakedepends="perl lua51-devel" +makedepends="ncurses-devel lua51-devel" +depends="lua51 lua51-BitOp" +short_desc="A POSIX library for Lua programming language" +maintainer="Juan RP " +license="GPL-2, LGPL-2.1" +homepage="http://luaforge.net/projects/luaposix/" +distfiles="https://github.com/luaposix/luaposix/archive/release-v${version}.tar.gz" +checksum=d82a322cb93d25ef16ba2cbab79f6fa1d94806249542d771c2c89a5f9cc4345f + +post_install() { + vmkdir usr/share/$pkgname/examples + vcopy "*.lua" usr/share/$pkgname/examples +} diff --git a/srcpkgs/procps-ng-devel b/srcpkgs/procps-ng-devel new file mode 120000 index 0000000000..12eaaf324b --- /dev/null +++ b/srcpkgs/procps-ng-devel @@ -0,0 +1 @@ +procps-ng \ No newline at end of file diff --git a/srcpkgs/procps-ng/template b/srcpkgs/procps-ng/template index a40486ee4e..db250c7fbe 100644 --- a/srcpkgs/procps-ng/template +++ b/srcpkgs/procps-ng/template @@ -1,11 +1,11 @@ # Template file for 'procps-ng' pkgname=procps-ng version=3.3.10 -revision=7 +revision=8 build_pie=yes build_style=gnu-configure configure_args="--exec-prefix=/ --bindir=/usr/bin --sbindir=/usr/bin - --libdir=/usr/lib --disable-static --disable-kill --enable-watch8bit + --libdir=/usr/lib --disable-kill --enable-watch8bit --disable-modern-top $(vopt_with systemd)" hostmakedepends="automake libtool pkg-config gettext-devel" makedepends="ncurses-devel $(vopt_if systemd systemd-devel)" @@ -28,8 +28,15 @@ pre_configure() { } post_install() { vconf ${FILESDIR}/sysctl.conf - # Remove devel and docs. - rm -rf ${DESTDIR}/usr/share/doc \ - ${DESTDIR}/usr/include ${DESTDIR}/usr/lib/pkgconfig - rm -f ${DESTDIR}/usr/lib/*.so +} +procps-ng-devel_package() { + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/share/man/man3 + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } } diff --git a/srcpkgs/ulatencyd/files/subtle.lua b/srcpkgs/ulatencyd/files/subtle.lua new file mode 100644 index 0000000000..70c0120426 --- /dev/null +++ b/srcpkgs/ulatencyd/files/subtle.lua @@ -0,0 +1,30 @@ +--[[ + Copyright 2010,2011,2012 ulatencyd developers + + This file is part of ulatencyd. + + License: GNU General Public License 3 or later +]]-- + +SubtleWM = { + name = "SubtleWM", + re_basename = "subtle", + check = function(self, proc) + local flag = ulatency.new_flag{name="user.ui"} + proc:add_flag(flag) + proc:set_oom_score(-400) + rv = ulatency.filter_rv(ulatency.FILTER_STOP) + return rv + end +} + +AwesomeFix = RunnerFix.new("SubtleWM", {"subtle"}) + +-- on start we have to fix all processes that have descented from kde +local function cleanup_awesome_mess() + cleanup_desktop_mess({"subtle"}) + return false +end + +ulatency.add_timeout(cleanup_awesome_mess, 1000) +ulatency.register_filter(AwesomeUI) diff --git a/srcpkgs/ulatencyd/files/ulatencyd/run b/srcpkgs/ulatencyd/files/ulatencyd/run new file mode 100644 index 0000000000..b33d02d547 --- /dev/null +++ b/srcpkgs/ulatencyd/files/ulatencyd/run @@ -0,0 +1,3 @@ +#!/bin/sh +sv check consolekit >/dev/null || exit 1 +exec ulatencyd 2>&1 diff --git a/srcpkgs/ulatencyd/template b/srcpkgs/ulatencyd/template new file mode 100644 index 0000000000..d0684ba3a8 --- /dev/null +++ b/srcpkgs/ulatencyd/template @@ -0,0 +1,74 @@ +# Template file for 'ulatencyd' +pkgname=ulatencyd +version=0.6.0 +revision=1 +_subrelease=alpha.2.1 +wrksrc="${pkgname}-${version}-${_subrelease}" +build_style=cmake +hostmakedepends="cmake pkg-config" +makedepends="procps-ng-devel glib-devel dbus-glib-devel lua51-devel glibc-devel libxcb-devel" +depends="luaposix51 ConsoleKit2" +short_desc="Daemon to minimize latency on a linux system using cgroups" +maintainer="Andrea Brancaleoni " +license="GPL-3" +homepage="https://github.com/poelzi/${pkgname}" +distfiles="${homepage}/archive/${version}-${_subrelease}.tar.gz" +checksum=efaf0cf814ef36b9d63f6a588482a2f1ac435163ff5e9d8d20ce07de58efbf2e + +configure_args="-DCMAKE_EXE_LINKER_FLAGS=-ldl -DDEVELOP_MODE=false -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSYSTEMD_DIR=''" +conf_files=" +/etc/dbus-1/system.d/org.quamquam.ulatencyd.conf +/etc/ulatencyd/simple.conf +/etc/ulatencyd/cgroups.conf +/etc/ulatencyd/scheduler/20-desktop.lua +/etc/ulatencyd/scheduler/30-single-task.lua +/etc/ulatencyd/scheduler/30-game.lua +/etc/ulatencyd/scheduler/50-video_playback.lua +/etc/ulatencyd/scheduler/99-cleanup.lua +/etc/ulatencyd/scheduler/00-common.lua +/etc/ulatencyd/scheduler/20-one-seat-desktop.lua +/etc/ulatencyd/rules/subtle.lua +/etc/ulatencyd/rules/zz_isolate.lua +/etc/ulatencyd/rules/protectors.lua +/etc/ulatencyd/rules/awesome.lua +/etc/ulatencyd/rules/desktop.lua +/etc/ulatencyd/rules/gnome.lua +/etc/ulatencyd/rules/00-fixers.lua +/etc/ulatencyd/rules/lxde.lua +/etc/ulatencyd/rules/zz_fixers.lua +/etc/ulatencyd/rules/system.lua +/etc/ulatencyd/rules/kde.lua +/etc/ulatencyd/rules/scheduler.lua +/etc/ulatencyd/rules/xfce.lua +/etc/ulatencyd/rules/io.lua +/etc/ulatencyd/ulatencyd.conf +/etc/ulatencyd/simple.d/isolate.conf +/etc/ulatencyd/simple.d/games.conf +/etc/ulatencyd/simple.d/lxde.conf +/etc/ulatencyd/simple.d/applications.conf +/etc/ulatencyd/simple.d/audio.conf +/etc/ulatencyd/simple.d/idle.conf +/etc/ulatencyd/simple.d/sessions.conf +/etc/ulatencyd/simple.d/dbus.conf +/etc/ulatencyd/simple.d/xfce.conf +/etc/ulatencyd/simple.d/cinnamon.conf +/etc/ulatencyd/simple.d/screencasters.conf +/etc/ulatencyd/simple.d/ui.conf +/etc/ulatencyd/simple.d/pantheon.conf +/etc/ulatencyd/simple.d/portage.conf +/etc/ulatencyd/simple.d/fixes.conf +/etc/ulatencyd/simple.d/ubuntu.conf +/etc/ulatencyd/simple.d/bittorrent.conf +/etc/ulatencyd/simple.d/video.conf +/etc/ulatencyd/simple.d/unity.conf +/etc/ulatencyd/simple.d/media.conf" + +post_install() { + vsv ulatencyd + + vinstall ${FILESDIR}/subtle.lua 644 etc/ulatencyd/rules + + vmkdir usr/share + mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share + mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin +}