diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-11-19 17:45:28 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-11-19 17:45:28 +0100 |
commit | e6636bd5d6280d92996bd70b744e8a29e54c7e18 (patch) | |
tree | 014989bddcbc22c7a8d4dafa7b78f3e55b184718 /gentoo/sys-apps/hal/files | |
parent | 4b7471734323c7cb5bdc129857c94041418c81b5 (diff) | |
download | tde-packaging-e6636bd5d6280d92996bd70b744e8a29e54c7e18.tar.gz tde-packaging-e6636bd5d6280d92996bd70b744e8a29e54c7e18.zip |
Gentoo: Initial import of an ebuilds tree
from Fat-Zer's (Alexander Golubev) repository.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'gentoo/sys-apps/hal/files')
-rw-r--r-- | gentoo/sys-apps/hal/files/0.5.14-hald.conf | 6 | ||||
-rw-r--r-- | gentoo/sys-apps/hal/files/0.5.14-hald.rc.1 | 39 | ||||
-rw-r--r-- | gentoo/sys-apps/hal/files/hal-0.5.14-fix-glib-includes-in-addons.patch | 143 | ||||
-rw-r--r-- | gentoo/sys-apps/hal/files/hal-0.5.14-fix-gtk-doc-automake.patch | 11 | ||||
-rw-r--r-- | gentoo/sys-apps/hal/files/hal-0.5.14-gentoo-patches-5.tar.bz2 | bin | 0 -> 6494 bytes | |||
-rw-r--r-- | gentoo/sys-apps/hal/files/hal-unmount.dev | 17 |
6 files changed, 216 insertions, 0 deletions
diff --git a/gentoo/sys-apps/hal/files/0.5.14-hald.conf b/gentoo/sys-apps/hal/files/0.5.14-hald.conf new file mode 100644 index 000000000..941005a4b --- /dev/null +++ b/gentoo/sys-apps/hal/files/0.5.14-hald.conf @@ -0,0 +1,6 @@ +# /etc/conf.d/hald + +# Should HAL be verbose to syslog? Useful for debugging +HALD_VERBOSE="no" + +# vim: ft=gentoo-conf-d diff --git a/gentoo/sys-apps/hal/files/0.5.14-hald.rc.1 b/gentoo/sys-apps/hal/files/0.5.14-hald.rc.1 new file mode 100644 index 000000000..2bd99fed9 --- /dev/null +++ b/gentoo/sys-apps/hal/files/0.5.14-hald.rc.1 @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/files/Attic/0.5.14-hald.rc.1,v 1.2 2011/09/18 09:08:28 ssuominen dead $ + +depend() { + use logger acpid + need dbus + after coldplug dns nscd +} + +start() { + [ -z "${HALD_VERBOSE}" ] && HALD_VERBOSE="no" + ebegin "Starting Hardware Abstraction Layer daemon" + +# REAL_ROOT=`mount -fv / | cut -d' ' -f1` +# TEST_ROOT=`cat /proc/mounts | cut -d' ' -f1 | head -n 2 | tail -n 1` + +# if [ ! -e ${TEST_ROOT} ]; then +# echo "You need a ${TEST_ROOT} that points to your ${REAL_ROOT}" +# echo "See http://bugs.gentoo.org/show_bug.cgi?id=175243" +# echo "Quick fix is: ln -s ${REAL_ROOT} ${TEST_ROOT}" +# eend 2 +# fi + + if [ -f /proc/acpi/event ]; then + chgrp haldaemon /proc/acpi/event + chmod 440 /proc/acpi/event + fi + + start-stop-daemon --start -q --exec /usr/sbin/hald -- --use-syslog --verbose=${HALD_VERBOSE} + eend $? +} + +stop() { + ebegin "Stopping Hardware Abstraction Layer daemon" + start-stop-daemon --stop -q --pidfile /var/run/hald.pid + eend $? +} diff --git a/gentoo/sys-apps/hal/files/hal-0.5.14-fix-glib-includes-in-addons.patch b/gentoo/sys-apps/hal/files/hal-0.5.14-fix-glib-includes-in-addons.patch new file mode 100644 index 000000000..7d797188a --- /dev/null +++ b/gentoo/sys-apps/hal/files/hal-0.5.14-fix-glib-includes-in-addons.patch @@ -0,0 +1,143 @@ +--- ./hald/linux/addons/addon-acpi-buttons-toshiba.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-acpi-buttons-toshiba.c 2012-11-29 04:47:18.000000000 +0300 +@@ -40,7 +40,7 @@ + #include <string.h> + #include <unistd.h> + +-#include <glib/gmain.h> ++#include <glib.h> + + #include "libhal/libhal.h" + #include "../../logger.h" +--- ./hald/linux/addons/addon-storage.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-storage.c 2012-11-29 04:47:52.000000000 +0300 +@@ -39,7 +39,7 @@ + #include <string.h> + #include <sys/ioctl.h> + #include <unistd.h> +-#include <glib/gmain.h> ++#include <glib.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + +--- ./hald/linux/addons/addon-dell-backlight.cpp.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-dell-backlight.cpp 2012-11-29 04:46:51.000000000 +0300 +@@ -29,7 +29,7 @@ + + #include <string.h> + +-#include <glib/gmain.h> ++#include <glib.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + +--- ./hald/linux/addons/addon-imac-backlight.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-imac-backlight.c 2012-11-29 04:47:34.000000000 +0300 +@@ -29,7 +29,7 @@ + #include <stdlib.h> + #include <sys/io.h> + +-#include <glib/gmain.h> ++#include <glib.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + +--- ./hald/linux/addons/addon-ipw-killswitch.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-ipw-killswitch.c 2012-11-29 04:48:16.000000000 +0300 +@@ -36,8 +36,6 @@ + #include <unistd.h> + + #include <glib.h> +-#include <glib/gmain.h> +-#include <glib/gstdio.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + +--- ./hald/linux/addons/addon-rfkill-killswitch.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-rfkill-killswitch.c 2012-11-29 04:47:12.000000000 +0300 +@@ -36,8 +36,6 @@ + #include <unistd.h> + + #include <glib.h> +-#include <glib/gmain.h> +-#include <glib/gstdio.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + +--- ./hald/linux/addons/addon-usb-csr.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-usb-csr.c 2012-11-29 04:47:55.000000000 +0300 +@@ -29,7 +29,7 @@ + #include <string.h> + #include <usb.h> + +-#include <glib/gmain.h> ++#include <glib.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + +--- ./hald/linux/addons/addon-input.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-input.c 2012-11-29 05:00:31.000000000 +0300 +@@ -41,8 +41,7 @@ + #else + #include <linux/input.h> + #endif +-#include <glib/gmain.h> +-#include <glib/gprintf.h> ++#include <glib.h> + #include <dbus/dbus-glib-lowlevel.h> + + #include "libhal/libhal.h" +--- ./hald/linux/addons/addon-omap-backlight.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-omap-backlight.c 2012-11-29 04:47:38.000000000 +0300 +@@ -41,7 +41,7 @@ + #include <fcntl.h> + #include <unistd.h> + +-#include <glib/gmain.h> ++#include <glib.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + +--- ./hald/linux/addons/addon-macbookpro-backlight.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-macbookpro-backlight.c 2012-11-29 04:47:43.000000000 +0300 +@@ -39,7 +39,7 @@ + #include <pci/pci.h> + #include <unistd.h> + +-#include <glib/gmain.h> ++#include <glib.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + +--- ./hald/linux/addons/addon-leds.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-leds.c 2012-11-29 04:47:25.000000000 +0300 +@@ -36,8 +36,6 @@ + #include <unistd.h> + + #include <glib.h> +-#include <glib/gmain.h> +-#include <glib/gstdio.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + +--- ./hald/linux/addons/addon-cpufreq.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-cpufreq.c 2012-11-29 04:48:01.000000000 +0300 +@@ -32,7 +32,6 @@ + #include <unistd.h> + #include <signal.h> + #include <getopt.h> +-#include <glib/gprintf.h> + + #include "addon-cpufreq.h" + #include "addon-cpufreq-userspace.h" +--- ./hald/linux/addons/addon-generic-backlight.c.orig 2009-08-24 16:42:30.000000000 +0400 ++++ ./hald/linux/addons/addon-generic-backlight.c 2012-11-29 05:11:49.000000000 +0300 +@@ -35,7 +35,7 @@ + #include <sys/stat.h> + #include <unistd.h> + +-#include <glib/gmain.h> ++#include <glib.h> + #include <dbus/dbus-glib.h> + #include <dbus/dbus-glib-lowlevel.h> + diff --git a/gentoo/sys-apps/hal/files/hal-0.5.14-fix-gtk-doc-automake.patch b/gentoo/sys-apps/hal/files/hal-0.5.14-fix-gtk-doc-automake.patch new file mode 100644 index 000000000..30beb341a --- /dev/null +++ b/gentoo/sys-apps/hal/files/hal-0.5.14-fix-gtk-doc-automake.patch @@ -0,0 +1,11 @@ +--- configure.inorig 2012-11-29 19:37:25.000000000 +0300 ++++ configure.in 2012-11-29 19:37:35.000000000 +0300 +@@ -10,6 +10,8 @@ + AC_INIT(hal, 0.5.14, david@fubar.dk) + AM_INIT_AUTOMAKE([gnu 1.9]) + AM_MAINTAINER_MODE ++AC_CONFIG_MACRO_DIR([.]) ++m4_include([gtk-doc.m4]) + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + + glib_module="glib-2.0 >= 2.10.0 gobject-2.0 > 2.10.0 dbus-glib-1 >= 0.61" diff --git a/gentoo/sys-apps/hal/files/hal-0.5.14-gentoo-patches-5.tar.bz2 b/gentoo/sys-apps/hal/files/hal-0.5.14-gentoo-patches-5.tar.bz2 Binary files differnew file mode 100644 index 000000000..917905b3f --- /dev/null +++ b/gentoo/sys-apps/hal/files/hal-0.5.14-gentoo-patches-5.tar.bz2 diff --git a/gentoo/sys-apps/hal/files/hal-unmount.dev b/gentoo/sys-apps/hal/files/hal-unmount.dev new file mode 100644 index 000000000..04d1fa81b --- /dev/null +++ b/gentoo/sys-apps/hal/files/hal-unmount.dev @@ -0,0 +1,17 @@ +#!/bin/sh + +# sanity check. DEVNAME should start with a / +[ "$DEVNAME" != "${DEVNAME#/}" ] || exit 0 + +# Lazily unmount drives which are removed, but still mounted +if [ "$ACTION" = remove ] \ + && (grep -q "^$DEVNAME" /proc/mounts || grep -q "^$DEVNAME" /etc/mtab); then + if [ -x /usr/bin/pumount ] ; then + /usr/bin/pumount -l "$DEVNAME"; + else + /bin/umount -l "$DEVNAME"; + fi +fi + +exit 0 + |