the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libhal1-shlibs
Version: 0.5.11
Revision: 5
Source: http://hal.freedesktop.org/releases/hal-%v.tar.gz
Source-MD5: 750cf074e88b6fb7012f26d99cd39b9b
BuildDepends: <<
dbus-glib1.2-dev,
dbus1.3-dev,
expat1,
fink (>= 0.24.12-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.22.0-1),
gperf,
gtk-doc (>= 1.13-5),
libusb1,
pkgconfig (>= 0.23)
<<
Depends: <<
dbus,
dbus-glib1.2-shlibs,
dbus1.3-shlibs
<<
PatchFile: %n.patch
PatchFile-MD5: d624de7c6e55e382521152968f82c132
PatchScript: <<
%{default_script}
perl -pi -e 's/-version-info/-no-undefined -version-info/' libhal/Makefile.in libhal-storage/Makefile.in
<<
ConfigureParams: <<
--libexecdir=%p/sbin \
--with-hal-user=root --with-hal-group=root \
--disable-pci-ids --disable-usb-ids --disable-pnp-ids \
--disable-pmu \
--disable-policy-kit \
--disable-dependency-tracking --disable-static \
PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH"
<<
CompileScript: <<
./configure %c
make
<<
InstallScript: make install DESTDIR=%d
DocFiles: AUTHORS COPYING ChangeLog HACKING NEWS README doc/TODO
Shlibs: <<
%p/lib/libhal.1.dylib 2.0.0 %n (>= 0.5.10-1)
%p/lib/libhal-storage.1.dylib 2.0.0 %n (>= 0.5.10-1)
<<
SplitOff: <<
Package: libhal1-dev
Depends: libhal1-shlibs (= %v-%r)
BuildDependsOnly: true
Files: <<
include
lib/libhal.{la,dylib}
lib/libhal-storage.{la,dylib}
lib/pkgconfig
share/gtk-doc
<<
DocFiles: AUTHORS COPYING ChangeLog HACKING NEWS README doc/TODO
<<
SplitOff2: <<
Package: hal
Depends: <<
dbus,
dbus1.3-shlibs,
expat1-shlibs,
glib2-shlibs (>= 2.22.0-1),
libhal1-shlibs (= %v-%r)
<<
Files: <<
bin
sbin
lib/hal
share/man
<<
DocFiles: AUTHORS COPYING ChangeLog HACKING NEWS README doc/TODO
<<
DescPort: <<
Disable the *-ids because I don't see such a file in OS X.
Don't have pmu, so disable it.
Remove --as-needed because it's not available on OS X linker.
Don't have libvolume_id in fink, so don't bother trying to
detect it. Detection is omitted on Solaris, so maybe it's not
mandatory for darwin either?
darwin isn't known by tools and the default implementations of
filesystem handling fail because darwin doesn't have getmnt
and friends, so hack the tools to use the FreeBSD
implementation.
<<
DescPackaging: <<
Don't have user/group "haldaemon" in passwd or know what to
use instead, so leaving hald as root for now. FIXME!
<<
Description: Hardware Abstraction Layer
DescUsage: <<
WARNING: PolicyKit is disabled. You need to manually edit the hal.conf
file to lock down the service. Failure to do so allows any
caller to make hald do work on their behalf which may be
a huge SECURITY HOLE. I repeat: YOU NEED TO EDIT THE FILE
hal.conf to match your distro/site to avoid NASTY SECURITY HOLES.
NOTE: You have to install init scripts yourself and tweak your own policy
<<
Homepage: http://www.freedesktop.org/wiki/Software/hal
License: GPL
Maintainer: Daniel Macks
diff -Nurd -x'*~' hal-0.5.11.orig/configure hal-0.5.11/configure
--- hal-0.5.11.orig/configure 2008-05-07 19:35:45.000000000 -0400
+++ hal-0.5.11/configure 2008-11-20 01:14:54.000000000 -0500
@@ -22433,11 +22433,6 @@
-#### gcc linker flags
-
-if test "x$GCC" = "xyes"; then
- LDFLAGS="-Wl,--as-needed $LDFLAGS"
-fi
#### gcc warning flags
@@ -24198,6 +24193,8 @@
case "$host" in
*-*-solaris*)
;;
+*-*-darwin*)
+ ;;
*)
pkg_failed=no
diff -Nurd -x'*~' hal-0.5.11.orig/tools/hal-storage-mount.c hal-0.5.11/tools/hal-storage-mount.c
--- hal-0.5.11.orig/tools/hal-storage-mount.c 2008-05-07 19:24:23.000000000 -0400
+++ hal-0.5.11/tools/hal-storage-mount.c 2008-11-20 01:14:54.000000000 -0500
@@ -31,7 +31,7 @@
#include
#include
#include
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__APPLE__)
#include
#include
#include
@@ -53,6 +53,9 @@
#include
#include "hal-storage-shared.h"
+#ifdef __APPLE__
+#define __FreeBSD__
+#endif
#ifdef __FreeBSD__
#define MOUNT "/sbin/mount"
diff -Nurd -x'*~' hal-0.5.11.orig/tools/hal-storage-shared.c hal-0.5.11/tools/hal-storage-shared.c
--- hal-0.5.11.orig/tools/hal-storage-shared.c 2008-05-07 19:24:24.000000000 -0400
+++ hal-0.5.11/tools/hal-storage-shared.c 2008-11-20 01:14:54.000000000 -0500
@@ -31,7 +31,7 @@
#include
#include
#include
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__APPLE__)
#include
#include
#include
@@ -52,6 +52,9 @@
#include
#include "hal-storage-shared.h"
+#ifdef __APPLE__
+#define __FreeBSD__
+#endif
#ifdef __FreeBSD__
struct mtab_handle
diff -Nurd -x'*~' hal-0.5.11.orig/tools/hal-storage-unmount.c hal-0.5.11/tools/hal-storage-unmount.c
--- hal-0.5.11.orig/tools/hal-storage-unmount.c 2008-05-07 19:24:17.000000000 -0400
+++ hal-0.5.11/tools/hal-storage-unmount.c 2008-11-20 01:14:54.000000000 -0500
@@ -31,7 +31,7 @@
#include
#include
#include
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__APPLE__)
#include
#include
#include
@@ -52,6 +52,9 @@
#include
#include "hal-storage-shared.h"
+#ifdef __APPLE__
+#define __FreeBSD__
+#endif
static void