diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-02 13:52:50 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-02 13:52:50 +0800 |
commit | 3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b (patch) | |
tree | a06709dda12f5c6d2042c4b60261bb3ea6619426 /sysutils | |
parent | cf20e9a518bab9e8a3c23234c66c0e26a9ef4de0 (diff) | |
download | marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.tar marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.tar.gz marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.tar.bz2 marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.tar.lz marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.tar.xz marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.tar.zst marcuscom-ports-3ac099845517fa73d9d5d1b0cdf7ae20e0d1ad6b.zip |
Add a May 02, 2006 snapshot of the FreeBSD HAL port for those interested
in helping with testing. While an init script is provided, it is recommended
to run hald with:
/usr/local/sbin/hald --daemon=no --verbose=yes
The underlying work on the HAL port was done by jylefort and myself.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6193 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/hal/Makefile | 53 | ||||
-rw-r--r-- | sysutils/hal/distinfo | 3 | ||||
-rw-r--r-- | sysutils/hal/files/hald.in | 42 | ||||
-rw-r--r-- | sysutils/hal/files/patch-doc_Makefile.in | 11 | ||||
-rw-r--r-- | sysutils/hal/pkg-descr | 6 | ||||
-rw-r--r-- | sysutils/hal/pkg-install | 38 | ||||
-rw-r--r-- | sysutils/hal/pkg-plist | 179 |
7 files changed, 332 insertions, 0 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile new file mode 100644 index 000000000..b95bf8acd --- /dev/null +++ b/sysutils/hal/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: HAL +# Date Created: 02 May 2006 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= hal +PORTVERSION= ${HALVERSION}.${SNAPVERSION} +CATEGORIES= sysutils gnome +MASTER_SITES= http://www.marcuscom.com/downloads/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Hardware Abstraction Layer for simplifying device access + +LIB_DEPENDS= polkit.0:${PORTSDIR}/sysutils/policykit +RUN_DEPENDS= ${LOCALBASE}/share/pci.ids:${PORTSDIR}/sysutils/pciutils \ + dmidecode:${PORTSDIR}/sysutils/dmidecode + +USE_BZIP2= yes +USE_GETTEXT= yes +USE_GMAKE= yes +USE_GNOME= gnomehack gnometarget intlhack pygnome2 +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes +USE_PYTHON= yes +CONFIGURE_ARGS= --disable-gtk-doc \ + --with-hwdata=${LOCALBASE}/share \ + --with-backend=freebsd \ + --with-pid-file=/var/run/hald/hald.pid +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + GTKDOC="false" + +USE_RC_SUBR= hald + +HALVERSION= 0.5.8 +SNAPVERSION= 20060502 + +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${HALVERSION} +PLIST_SUB= VERSION=${HALVERSION} + +post-install: +.if !defined(PACKAGE_BUILDING) + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif +.if !defined(NOPORTDOCS) + ${INSTALL_DATA} ${WRKSRC}/hald/freebsd/README \ + ${DOCSDIR}/README.freebsd +.endif + +.include <bsd.port.mk> diff --git a/sysutils/hal/distinfo b/sysutils/hal/distinfo new file mode 100644 index 000000000..00f406bd3 --- /dev/null +++ b/sysutils/hal/distinfo @@ -0,0 +1,3 @@ +MD5 (hal-0.5.8.20060502.tar.bz2) = 4ae608806240d444fb268d71ce989b86 +SHA256 (hal-0.5.8.20060502.tar.bz2) = 6fe20a010282601267506c72217dcdc45ec93b50d001b2915577d8171daaca27 +SIZE (hal-0.5.8.20060502.tar.bz2) = 1418236 diff --git a/sysutils/hal/files/hald.in b/sysutils/hal/files/hald.in new file mode 100644 index 000000000..fb12c8be2 --- /dev/null +++ b/sysutils/hal/files/hald.in @@ -0,0 +1,42 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: hald +# REQUIRE: DAEMON dbus polkitd +# +# Add the following line to /etc/rc.conf to enable the HAL daemon: +# +# hald_enable="YES" +# + +hald_enable=${hald_enable-"NO"} +hald_flags=${hald_flags-""} + +. %%RC_SUBR%% + +name=hald +rcvar=`set_rcvar` + +command="%%PREFIX%%/sbin/hald" +pidfile="/var/run/${name}/${name}.pid" + +start_precmd=start_precmd +stop_postcmd=stop_postcmd + +start_precmd() +{ + mkdir -p /tmp/hald-local + mkdir -p /tmp/hald-runner +} + +stop_postcmd() +{ + rm -f $pidfile + rm -rf /tmp/hald-local + rm -rf /tmp/hald-runner +} + + +load_rc_config ${name} +run_rc_command "$1" diff --git a/sysutils/hal/files/patch-doc_Makefile.in b/sysutils/hal/files/patch-doc_Makefile.in new file mode 100644 index 000000000..d05f0136c --- /dev/null +++ b/sysutils/hal/files/patch-doc_Makefile.in @@ -0,0 +1,11 @@ +--- doc/Makefile.in.orig Tue May 2 01:04:31 2006 ++++ doc/Makefile.in Tue May 2 01:04:42 2006 +@@ -269,7 +269,7 @@ sharedstatedir = @sharedstatedir@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + EXTRA_DIST = TODO +-SUBDIRS = api spec conf ++SUBDIRS = spec conf + all: all-recursive + + .SUFFIXES: diff --git a/sysutils/hal/pkg-descr b/sysutils/hal/pkg-descr new file mode 100644 index 000000000..c94358513 --- /dev/null +++ b/sysutils/hal/pkg-descr @@ -0,0 +1,6 @@ +HAL is a hardware abstraction layer whose goal is to merge information from +various sources such that desktop applications can locate and use hardware +devices. The point is that the exact set of information to merge varies by +device and bus type. + +WWW: http://www.freedesktop.org/Software/hal diff --git a/sysutils/hal/pkg-install b/sysutils/hal/pkg-install new file mode 100644 index 000000000..dfba18feb --- /dev/null +++ b/sysutils/hal/pkg-install @@ -0,0 +1,38 @@ +#!/bin/sh + +case $2 in +POST-INSTALL) + USER=haldaemon + GROUP=${USER} + UID=560 + GID=${UID} + PW=/usr/sbin/pw + + if ${PW} group show "${GROUP}" 2>/dev/null; then + echo "You already have a group \"${GROUP}\", so I will use it." + else + if ${PW} groupadd ${GROUP} -g ${GID}; then + echo "Added group \"${GROUP}\"." + else + echo "Adding group \"${GROUP}\" failed..." + exit 1 + fi + fi + + if ${PW} user show "${USER}" 2>/dev/null; then + echo "You already have a user \"${USER}\", so I will use it." + else + if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \ + -d "/nonexistent" -s /sbin/nologin -c "HAL Daemon User" + then + echo "Added user \"${USER}\"." + else + echo "Adding user \"${USER}\" failed..." + exit 1 + fi + fi + + /usr/bin/install -d -o ${USER} -g ${GROUP} /var/run/hald + exit 0 + ;; +esac diff --git a/sysutils/hal/pkg-plist b/sysutils/hal/pkg-plist new file mode 100644 index 000000000..5fee492b7 --- /dev/null +++ b/sysutils/hal/pkg-plist @@ -0,0 +1,179 @@ +bin/hal-device +bin/hal-device-manager +bin/hal-find-by-capability +bin/hal-find-by-property +bin/hal-get-property +bin/hal-set-property +bin/lshal +etc/dbus-1/system.d/hal.conf +etc/udev/rules.d/90-hal.rules +include/hal/libhal-storage.h +include/hal/libhal.h +lib/libhal-storage.a +lib/libhal-storage.la +lib/libhal-storage.so +lib/libhal-storage.so.1 +lib/libhal.a +lib/libhal.la +lib/libhal.so +lib/libhal.so.1 +lib/libhald_freebsd_probe.a +lib/libhald_freebsd_probe.la +lib/libhald_freebsd_probe.so +lib/libhald_freebsd_probe.so.0 +libdata/pkgconfig/hal-storage.pc +libdata/pkgconfig/hal.pc +libexec/hal-storage-mount +libexec/hal-system-power-pmu +libexec/hald-addon-storage +libexec/hald-probe-hiddev +libexec/hald-probe-scsi +libexec/hald-probe-smbios +libexec/hald-probe-storage +libexec/hald-probe-volume +libexec/hald-runner +sbin/hald +%%PORTDOCS%%%%DOCSDIR%%/README.freebsd +%%DOCSDIR%%/conf/match-USB-camera.fdi +%%DOCSDIR%%/conf/match-USB-mp3-player.fdi +%%DOCSDIR%%/conf/match-cardreader.fdi +%%DOCSDIR%%/conf/storage-non-fixed.fdi +%%DOCSDIR%%/conf/storage-policy-examples.fdi +%%DOCSDIR%%/conf/storage-skip-all.fdi +%%DATADIR%%/device-manager/Const.py +%%DATADIR%%/device-manager/Const.pyc +%%DATADIR%%/device-manager/Const.pyo +%%DATADIR%%/device-manager/Device.py +%%DATADIR%%/device-manager/Device.pyc +%%DATADIR%%/device-manager/Device.pyo +%%DATADIR%%/device-manager/DeviceManager.py +%%DATADIR%%/device-manager/DeviceManager.pyc +%%DATADIR%%/device-manager/DeviceManager.pyo +%%DATADIR%%/device-manager/GtkAttributesFacade.py +%%DATADIR%%/device-manager/GtkAttributesFacade.pyc +%%DATADIR%%/device-manager/GtkAttributesFacade.pyo +%%DATADIR%%/device-manager/LibGladeApplication.py +%%DATADIR%%/device-manager/LibGladeApplication.pyc +%%DATADIR%%/device-manager/LibGladeApplication.pyo +%%DATADIR%%/device-manager/Representation.py +%%DATADIR%%/device-manager/Representation.pyc +%%DATADIR%%/device-manager/Representation.pyo +%%DATADIR%%/device-manager/fdo-logo.png +%%DATADIR%%/device-manager/hal-abstract.png +%%DATADIR%%/device-manager/hal-audio.png +%%DATADIR%%/device-manager/hal-bus-pci.png +%%DATADIR%%/device-manager/hal-bus-usb.png +%%DATADIR%%/device-manager/hal-camera.png +%%DATADIR%%/device-manager/hal-cat-cardbus.png +%%DATADIR%%/device-manager/hal-cat-keyboard.png +%%DATADIR%%/device-manager/hal-cat-mouse.png +%%DATADIR%%/device-manager/hal-cdrom.png +%%DATADIR%%/device-manager/hal-computer.png +%%DATADIR%%/device-manager/hal-device-manager.glade +%%DATADIR%%/device-manager/hal-flash.png +%%DATADIR%%/device-manager/hal-floppy.png +%%DATADIR%%/device-manager/hal-harddisk.png +%%DATADIR%%/device-manager/hal-network.png +%%DATADIR%%/device-manager/hal-serial-port.png +%%DATADIR%%/device-manager/hal-unknown.png +%%DATADIR%%/device-manager/hal-video.png +%%DATADIR%%/fdi/fdi.dtd +%%DATADIR%%/fdi/fdi.rng +%%DATADIR%%/fdi/information/10freedesktop/10-camera-ptp.fdi +%%DATADIR%%/fdi/information/10freedesktop/10-cd-dvd-burner.fdi +%%DATADIR%%/fdi/information/10freedesktop/10-usb-card-readers.fdi +%%DATADIR%%/fdi/information/10freedesktop/10-usb-music-players.fdi +%%DATADIR%%/fdi/information/10freedesktop/10-usb-pda.fdi +%%DATADIR%%/fdi/information/10freedesktop/10-usb-zip-drives.fdi +%%DATADIR%%/fdi/information/10freedesktop/10-wireless-mice.fdi +%%DATADIR%%/fdi/policy/10osvendor/10-keyboard-policy.fdi +%%DATADIR%%/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi +%%DATADIR%%/fdi/policy/10osvendor/10-power-mgmt-policy.fdi +%%DATADIR%%/fdi/policy/10osvendor/10-toshiba-buttons.fdi +%%DATADIR%%/fdi/policy/10osvendor/15-storage-luks.fdi +%%DATADIR%%/fdi/policy/10osvendor/20-storage-methods.fdi +%%DATADIR%%/fdi/preprobe/10osvendor/10-ide-drives.fdi +%%DATADIR%%/scripts/hal-luks-remove +%%DATADIR%%/scripts/hal-luks-setup +%%DATADIR%%/scripts/hal-luks-teardown +%%DATADIR%%/scripts/hal-system-lcd-get-brightness +%%DATADIR%%/scripts/hal-system-lcd-set-brightness +%%DATADIR%%/scripts/hal-system-power-hibernate +%%DATADIR%%/scripts/hal-system-power-reboot +%%DATADIR%%/scripts/hal-system-power-set-power-save +%%DATADIR%%/scripts/hal-system-power-shutdown +%%DATADIR%%/scripts/hal-system-power-suspend +%%DATADIR%%/scripts/hal-system-storage-cleanup-mountpoint +%%DATADIR%%/scripts/hal-system-storage-cleanup-mountpoints +%%DATADIR%%/scripts/hal-system-storage-eject +%%DATADIR%%/scripts/hal-system-storage-unmount +share/locale/cs/LC_MESSAGES/hal.mo +share/locale/da/LC_MESSAGES/hal.mo +share/locale/de/LC_MESSAGES/hal.mo +share/locale/el/LC_MESSAGES/hal.mo +share/locale/es/LC_MESSAGES/hal.mo +share/locale/eu/LC_MESSAGES/hal.mo +share/locale/fi/LC_MESSAGES/hal.mo +share/locale/fr/LC_MESSAGES/hal.mo +share/locale/hu/LC_MESSAGES/hal.mo +share/locale/it/LC_MESSAGES/hal.mo +share/locale/ja/LC_MESSAGES/hal.mo +share/locale/km/LC_MESSAGES/hal.mo +share/locale/ko/LC_MESSAGES/hal.mo +share/locale/lt/LC_MESSAGES/hal.mo +share/locale/nb/LC_MESSAGES/hal.mo +share/locale/nl/LC_MESSAGES/hal.mo +share/locale/pa/LC_MESSAGES/hal.mo +share/locale/pl/LC_MESSAGES/hal.mo +share/locale/pt/LC_MESSAGES/hal.mo +share/locale/pt_BR/LC_MESSAGES/hal.mo +share/locale/ru/LC_MESSAGES/hal.mo +share/locale/sl_SI/LC_MESSAGES/hal.mo +share/locale/uk/LC_MESSAGES/hal.mo +share/locale/zh_CN/LC_MESSAGES/hal.mo +share/locale/zh_TW/LC_MESSAGES/hal.mo +@dirrmtry share/locale/zh_TW/LC_MESSAGES +@dirrmtry share/locale/zh_TW +@dirrmtry share/locale/zh_CN/LC_MESSAGES +@dirrmtry share/locale/zh_CN +@dirrmtry share/locale/uk/LC_MESSAGES +@dirrmtry share/locale/uk +@dirrmtry share/locale/sl_SI/LC_MESSAGES +@dirrmtry share/locale/sl_SI +@dirrmtry share/locale/pt/LC_MESSAGES +@dirrmtry share/locale/pt +@dirrmtry share/locale/pl/LC_MESSAGES +@dirrmtry share/locale/pl +@dirrmtry share/locale/ko/LC_MESSAGES +@dirrmtry share/locale/ko +@dirrmtry share/locale/km/LC_MESSAGES +@dirrmtry share/locale/km +@dirrmtry share/locale/fi/LC_MESSAGES +@dirrmtry share/locale/fi +@dirrmtry share/locale/el/LC_MESSAGES +@dirrmtry share/locale/el +@dirrmtry share/locale/cs/LC_MESSAGES +@dirrmtry share/locale/cs +@dirrm %%DATADIR%%/scripts +@dirrm %%DATADIR%%/fdi/preprobe/20thirdparty +@dirrm %%DATADIR%%/fdi/preprobe/10osvendor +@dirrm %%DATADIR%%/fdi/preprobe +@dirrm %%DATADIR%%/fdi/policy/20thirdparty +@dirrm %%DATADIR%%/fdi/policy/10osvendor +@dirrm %%DATADIR%%/fdi/policy +@dirrm %%DATADIR%%/fdi/information/20thirdparty +@dirrm %%DATADIR%%/fdi/information/10freedesktop +@dirrm %%DATADIR%%/fdi/information +@dirrm %%DATADIR%%/fdi +@dirrm %%DATADIR%%/device-manager +@dirrm %%DATADIR%% +@dirrm %%DOCSDIR%%/conf +@dirrm %%DOCSDIR%% +@dirrm include/hal +@dirrm etc/udev/rules.d +@dirrm etc/udev +@dirrm etc/hal/fdi/preprobe +@dirrm etc/hal/fdi/policy +@dirrm etc/hal/fdi/information +@dirrm etc/hal/fdi +@dirrm etc/hal |