mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-26 23:42:57 +02:00
Added hal-0.5.12rc1 template.
--HG-- extra : convert_revision : 8f3db664b145683fd8d5e52048fd890b49baa787
This commit is contained in:
parent
509f56a33e
commit
e762dba18e
5 changed files with 118 additions and 0 deletions
24
templates/hal/INSTALL
Normal file
24
templates/hal/INSTALL
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
#
|
||||||
|
# This script creates the HAL system user/group.
|
||||||
|
#
|
||||||
|
|
||||||
|
case "$2" in
|
||||||
|
pre)
|
||||||
|
;;
|
||||||
|
post)
|
||||||
|
echo "Running $3-$4 post installation hooks..."
|
||||||
|
if ! chroot . getent group hal >/dev/null; then
|
||||||
|
chroot . groupadd -r hal
|
||||||
|
[ $? -ne 0 ] && exit $?
|
||||||
|
echo "Created HAL system group."
|
||||||
|
fi
|
||||||
|
if ! chroot . getent passwd hal >/dev/null; then
|
||||||
|
chroot . useradd -c "HAL daemon" \
|
||||||
|
-d / -s /sbin/nologin -g hal \
|
||||||
|
-G optical,floppy,storage -r hal && \
|
||||||
|
chroot . passwd -l hal &>/dev/null
|
||||||
|
[ $? -ne 0 ] && exit $?
|
||||||
|
echo "Created HAL system user."
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
11
templates/hal/REMOVE
Normal file
11
templates/hal/REMOVE
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#
|
||||||
|
# This script removes the HAL user/group.
|
||||||
|
#
|
||||||
|
case "$2" in
|
||||||
|
pre)
|
||||||
|
chroot . userdel hal &>/dev/null
|
||||||
|
[ $? -eq 0 ] && echo "Removed HAL system user/group."
|
||||||
|
;;
|
||||||
|
post)
|
||||||
|
;;
|
||||||
|
esac
|
11
templates/hal/build.diff
Normal file
11
templates/hal/build.diff
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- configure.orig 2009-03-23 06:29:01.403464750 +0100
|
||||||
|
+++ configure 2009-03-23 06:29:21.114421717 +0100
|
||||||
|
@@ -23082,7 +23082,7 @@ fi
|
||||||
|
ac_ext=c
|
||||||
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||||
|
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -lsmbios $LIBS >&5'
|
||||||
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
if test "$LIB_SMBIOS" = "yes" ; then
|
32
templates/hal/files/hal
Normal file
32
templates/hal/files/hal
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# PROVIDE: hal
|
||||||
|
# REQUIRE: DAEMON dbus
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
|
||||||
|
. /etc/rc.subr
|
||||||
|
|
||||||
|
name="hal"
|
||||||
|
rcvar=$name
|
||||||
|
command="/usr/sbin/hald"
|
||||||
|
pidfile="/var/run/hald/pid"
|
||||||
|
start_precmd=hal_prestart
|
||||||
|
|
||||||
|
hal_prestart() {
|
||||||
|
dirs="/var/run/hald /var/cache/hald"
|
||||||
|
for d in ${dirs}; do
|
||||||
|
if [ ! -d ${d} ]; then
|
||||||
|
mkdir ${d}
|
||||||
|
chmod 0755 ${d}
|
||||||
|
chown hal:hal ${d}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
for f in hald-local hald-runner; do
|
||||||
|
if [ ! -x /var/run/hald/${f} ]; then
|
||||||
|
touch /var/run/hald/${f}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
load_rc_config $name
|
||||||
|
run_rc_command "$1"
|
40
templates/hal/template
Normal file
40
templates/hal/template
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# Template file for 'hal'
|
||||||
|
pkgname=hal
|
||||||
|
version=0.5.12rc1
|
||||||
|
distfiles="http://hal.freedesktop.org/releases/hal-$version.tar.bz2"
|
||||||
|
build_style=gnu_configure
|
||||||
|
configure_args="--enable-man-pages --enable-console-kit --enable-policy-kit
|
||||||
|
--enable-acpi-ibm --enable-acpi-toshiba --disable-parted --enable-sonypic
|
||||||
|
--with-hal-user=hal --with-hal-group=hal --localstatedir=/var
|
||||||
|
--disable-docbook-docs"
|
||||||
|
short_desc="Hardware Abstraction Layer"
|
||||||
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
checksum=eeeb438dcc2a58288ed3def8c1d0076ca16f35b54d501c46f96e89da24fe38f4
|
||||||
|
long_desc="
|
||||||
|
HAL is daemon for collecting and maintaining information from several
|
||||||
|
sources about the hardware on the system."
|
||||||
|
|
||||||
|
conf_files="/etc/dbus-1/system.d/hal.conf"
|
||||||
|
|
||||||
|
Add_dependency full glibc
|
||||||
|
Add_dependency full udev
|
||||||
|
Add_dependency full dbus
|
||||||
|
Add_dependency full dbus-glib
|
||||||
|
Add_dependency full expat
|
||||||
|
Add_dependency full bash
|
||||||
|
Add_dependency full hal-info
|
||||||
|
Add_dependency full eject
|
||||||
|
Add_dependency full PolicyKit
|
||||||
|
Add_dependency full ConsoleKit
|
||||||
|
Add_dependency full pciutils
|
||||||
|
Add_dependency full usbutils
|
||||||
|
Add_dependency full dmidecode
|
||||||
|
Add_dependency build pkg-config
|
||||||
|
Add_dependency build libsmbios
|
||||||
|
Add_dependency run libsmbios-utils
|
||||||
|
|
||||||
|
post_install()
|
||||||
|
{
|
||||||
|
rm -rf ${DESTDIR}/var
|
||||||
|
install -D -m755 ${FILESDIR}/hal ${DESTDIR}/etc/rc.d/hal
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue