[Lunar-commits] <moonbase-other> alsa-utils: Install udev rules in proper dir when systemd is in use

Stefan Wold ratler at lunar-linux.org
Fri Aug 17 21:46:43 CEST 2012


commit 3cd889c75183e2d8b5dda0384a5b4bfc8bd53188
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Fri, 17 Aug 2012 12:46:43 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/3cd889c75183e2d8b5dda0384a5b4bfc8bd53188

alsa-utils: Install udev rules in proper dir when systemd is in use
---
  audio/alsa-utils/BUILD                                       +8/-2     
  1 files changed, 8 insertions (+), 2 deletions (-)

--- a/audio/alsa-utils/BUILD
+++ b/audio/alsa-utils/BUILD
@@ -1,10 +1,16 @@
 (
 
+  if module_installed systemd; then
+    UDEV_DIR=/usr/lib/udev/rules.d
+    OPTS+=" --with-udev-rules-dir=$UDEV_DIR"
+  else
+    UDEV_DIR=/lib/udev/rules.d
+  fi 
+
   sedit  "s:@sbindir@:/usr/sbin:"  alsactl/90-alsa-restore.rules.in  &&
 
   default_build &&
 
-  install -m0644 $SCRIPT_DIRECTORY/40-alsa-mixer.rules \
-                 /etc/udev/rules.d/
+  install -m0644 $SCRIPT_DIRECTORY/40-alsa-mixer.rules ${UDEV_DIR}/
 
 ) > $C_FIFO 2>&1




More information about the Lunar-commits mailing list