[Lunar-commits] <moonbase> dbus: better handling of inotify in BUILD ...

Christian Krause wookietreiber at lunar-linux.org
Wed May 11 01:33:21 CEST 2011


commit b987f0242e29fecbc158cf020a62561fd727f422
Author: Christian Krause <wookietreiber at lunar-linux.org>
Date:   Wed May 11 01:33:21 2011 +0200

    dbus: better handling of inotify in BUILD ...
    
    ... using kernel_option_present CONFIG_INOTIFY_USER now to decide
    whether or not to dis/enable inotify
---
 devel/dbus/BUILD   |    8 +++++++-
 devel/dbus/DEPENDS |    2 +-
 devel/dbus/DETAILS |    2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/devel/dbus/BUILD b/devel/dbus/BUILD
index 91ede3c..7e16e85 100644
--- a/devel/dbus/BUILD
+++ b/devel/dbus/BUILD
@@ -4,9 +4,15 @@
   rm -fr /lib/systemd/system/sockets.target.wants/dbus.socket
   rm -fr /lib/systemd/system/multi-user.target.wants/dbus.service
 
+  if kernel_option_present CONFIG_INOTIFY_USER ; then
+    OPTS+=" --enable-inotify"
+  else
+    OPTS+=" --disable-inotify"
+  fi  &&
+
   OPTS+=" --disable-static --enable-checks --with-xml=expat          \
         --with-system-pid-file=/var/run/messagebus.pid               \
-        --localstatedir=/var --enable-inotify --disable-dnotify      \
+        --localstatedir=/var --disable-dnotify                       \
         --with-session-socket-dir=/tmp  --with-dbus-user=messagebus  \
         --disable-xml-docs --with-init-scripts=none --disable-verbose-mode"
 
diff --git a/devel/dbus/DEPENDS b/devel/dbus/DEPENDS
index 052ffd2..c73d4cc 100644
--- a/devel/dbus/DEPENDS
+++ b/devel/dbus/DEPENDS
@@ -1,4 +1,4 @@
 depends pkgconfig
 depends expat
 
-optional_depends  "libX11"  "--with-x"  ""  "for XOrg support"
+optional_depends "libX11" "--with-x" "--without-x" "for X support"
diff --git a/devel/dbus/DETAILS b/devel/dbus/DETAILS
index 0345e35..393e96d 100644
--- a/devel/dbus/DETAILS
+++ b/devel/dbus/DETAILS
@@ -1,4 +1,4 @@
-         MODULE=dbus
+          MODULE=dbus
          VERSION=1.5.0
           SOURCE=$MODULE-$VERSION.tar.gz
       SOURCE_URL=http://$MODULE.freedesktop.org/releases/$MODULE


More information about the Lunar-commits mailing list