initial halevt exheres

for/master
Daniel Mierswa 2009-09-01 03:10:47 +02:00
parent a52359eaa0
commit ed3b7cf041
3 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Copyright 2009 Daniel Mierswa <impulze@impulze.org>
# 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 )

View File

@ -0,0 +1,15 @@
Upstream: Mailed
Source: Daniel Mierswa <impulze@impulze.org>
Reason: EOF needs <cstdio>
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 <getopt.h>
#endif
+#include <cstdio>
#include <iostream>
using namespace std;

View File

@ -0,0 +1,61 @@
# Copyright 2009 Daniel Mierswa <impulze@impulze.org>
# 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 <<EOF
#!/sbin/runscript
# Copyright 2009 Daniel Mierswa <impulze@impulze.org>
# 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
}