From ed3b7cf041e838748fa7ebdde04999aa69bb2d05 Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Tue, 1 Sep 2009 03:10:47 +0200 Subject: [PATCH] initial halevt exheres --- .../BoolStuff/BoolStuff-0.1.12.exheres-0 | 21 +++++++ .../files/BoolStuff-0.1.12-missing_EOF.patch | 15 +++++ .../sys-apps/halevt/halevt-0.1.4.exheres-0 | 61 +++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 packages/dev-libs/BoolStuff/BoolStuff-0.1.12.exheres-0 create mode 100644 packages/dev-libs/BoolStuff/files/BoolStuff-0.1.12-missing_EOF.patch create mode 100644 packages/sys-apps/halevt/halevt-0.1.4.exheres-0 diff --git a/packages/dev-libs/BoolStuff/BoolStuff-0.1.12.exheres-0 b/packages/dev-libs/BoolStuff/BoolStuff-0.1.12.exheres-0 new file mode 100644 index 0000000..b14921e --- /dev/null +++ b/packages/dev-libs/BoolStuff/BoolStuff-0.1.12.exheres-0 @@ -0,0 +1,21 @@ +# Copyright 2009 Daniel Mierswa +# Distributed under the terms of the GNU General Public License, v2 or later + +SUMMARY="A C++ library that supports a few operations on boolean expression binary trees." +HOMEPAGE="http://sarrazip.com/dev/boolstuff.html" +DOWNLOADS="http://sarrazip.com/dev/boolstuff-${PV}.tar.gz" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +WORK="${WORKBASE}/boolstuff-${PV}" + +DEPENDENCIES=" + build: + dev-lang/perl +" + +DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/${PN}"-0.1.12-missing_EOF.patch ) + diff --git a/packages/dev-libs/BoolStuff/files/BoolStuff-0.1.12-missing_EOF.patch b/packages/dev-libs/BoolStuff/files/BoolStuff-0.1.12-missing_EOF.patch new file mode 100644 index 0000000..73caad5 --- /dev/null +++ b/packages/dev-libs/BoolStuff/files/BoolStuff-0.1.12-missing_EOF.patch @@ -0,0 +1,15 @@ +Upstream: Mailed +Source: Daniel Mierswa +Reason: EOF needs + +diff -Naur boolstuff-0.1.12.orig/src/commands/booldnf.cpp boolstuff-0.1.12/src/commands/booldnf.cpp +--- boolstuff-0.1.12.orig/src/commands/booldnf.cpp 2008-10-08 05:52:15.000000000 +0200 ++++ boolstuff-0.1.12/src/commands/booldnf.cpp 2009-09-01 02:45:29.000000000 +0200 +@@ -32,6 +32,7 @@ + #include + #endif + ++#include + #include + + using namespace std; diff --git a/packages/sys-apps/halevt/halevt-0.1.4.exheres-0 b/packages/sys-apps/halevt/halevt-0.1.4.exheres-0 new file mode 100644 index 0000000..0ba0417 --- /dev/null +++ b/packages/sys-apps/halevt/halevt-0.1.4.exheres-0 @@ -0,0 +1,61 @@ +# Copyright 2009 Daniel Mierswa +# Distributed under the terms of the GNU General Public License, v2 or later + +DESCRIPTION="A daemon that executes arbitrary commands when a device with +certain properties is added to the system and when device properties change." +HOMEPAGE="http://www.nongnu.org/halevt/" +DOWNLOADS="mirror://savannah/halevt/${PNV}.tar.gz" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +DEPENDENCIES=" + build: + dev-util/pkg-config + build+run: + dev-libs/BoolStuff + dev-libs/dbus-glib + dev-libs/libxml2 + sys-apps/dbus + sys-apps/hal +" + +DEFAULT_SRC_CONFIGURE_PARAMS=( + --enable-default-user=root + --enable-default-group=plugdev + --localstatedir=/var +) + +src_install() { + default + + keepdir /var/{lib,run}/halevt + + insinto /etc/halevt + doins *.xml + + hereinitd halevt < +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need hald +} + +start() { + ebegin "Starting halevt" + start-stop-daemon --start --exec /usr/bin/halevt --pidfile /var/run/halevt/halevt.pid + eend $? +} + +stop() { + ebegin "Stopping Automounter" + start-stop-daemon --stop --pidfile /var/run/halevt/halevt.pid + eend $? +} +EOF +} +