aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/hal/Makefile4
-rw-r--r--sysutils/hal/files/patch-hal.conf.in17
2 files changed, 18 insertions, 3 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile
index 0408d8db489b..f70ec4eeca9a 100644
--- a/sysutils/hal/Makefile
+++ b/sysutils/hal/Makefile
@@ -8,7 +8,7 @@
PORTNAME= hal
PORTVERSION= ${HALVERSION}.${SNAPVERSION}
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES?= sysutils
MASTER_SITES= http://www.marcuscom.com/downloads/
@@ -97,8 +97,6 @@ post-patch:
${WRKSRC}/hald/Makefile.in
@${REINPLACE_CMD} -e '/^SUBDIRS/ s|txt||' \
${WRKSRC}/policy/Makefile.in
- @${REINPLACE_CMD} -e 's|user="0"|group="operator"|g' \
- ${WRKSRC}/hal.conf.in
@${TOUCH} ${WRKSRC}/doc/spec/hal-spec.html
post-install:
diff --git a/sysutils/hal/files/patch-hal.conf.in b/sysutils/hal/files/patch-hal.conf.in
new file mode 100644
index 000000000000..0c541b900d9b
--- /dev/null
+++ b/sysutils/hal/files/patch-hal.conf.in
@@ -0,0 +1,17 @@
+--- hal.conf.in.orig Fri Apr 14 12:33:12 2006
++++ hal.conf.in Thu Nov 16 20:47:25 2006
+@@ -42,7 +42,13 @@
+ </policy>
+
+ <!-- You can change this to a more suitable user, or make per-group -->
+- <policy user="0">
++ <policy group="wheel">
++ <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
++ <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
++ <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
++ <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
++ </policy>
++ <policy group="operator">
+ <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
+ <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
+ <allow send_interface="org.freedesktop.Hal.Device.Volume"/>