aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2010-11-08 01:18:36 +0800
committerfjoe <fjoe@FreeBSD.org>2010-11-08 01:18:36 +0800
commit924ce7f1d8f33030f0934263bd24fda4a93f6628 (patch)
tree99015dd87a894f08cafa51556a04e6ac4366e923
parent96910891b06ea4211285f145eac552a61092d5d3 (diff)
downloadfreebsd-ports-gnome-924ce7f1d8f33030f0934263bd24fda4a93f6628.tar.gz
freebsd-ports-gnome-924ce7f1d8f33030f0934263bd24fda4a93f6628.tar.zst
freebsd-ports-gnome-924ce7f1d8f33030f0934263bd24fda4a93f6628.zip
Set group ownership of dahdi device nodes to "dahdi" group.
-rw-r--r--misc/dahdi-kmod/Makefile3
-rw-r--r--misc/dahdi-kmod/files/dahdi.in6
-rw-r--r--misc/dahdi/Makefile3
-rw-r--r--misc/dahdi/files/dahdi.in6
4 files changed, 16 insertions, 2 deletions
diff --git a/misc/dahdi-kmod/Makefile b/misc/dahdi-kmod/Makefile
index 9bf67ad19be4..1104fda4a577 100644
--- a/misc/dahdi-kmod/Makefile
+++ b/misc/dahdi-kmod/Makefile
@@ -7,7 +7,7 @@
PORTNAME= dahdi
PORTVERSION= ${DAHDI_VERSION:S/-//g}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= misc kld
MASTER_SITES= ${MASTER_SITE_LOCAL}\
http://downloads.digium.com/pub/telephony/firmware/releases/:firmware
@@ -45,6 +45,7 @@ CONFIGURE_ENV= WGET=/usr/bin/fetch
USE_LDCONFIG= yes
USE_RC_SUBR= dahdi
MAKE_ARGS= ADDITIONAL_DRIVERS="wcb1xxp" NO_FETCH=yes
+GROUPS= dahdi
ONLY_FOR_ARCHS= i386 amd64 sparc64
CONFLICTS= zaptel-[0-9]*
diff --git a/misc/dahdi-kmod/files/dahdi.in b/misc/dahdi-kmod/files/dahdi.in
index e4eea6b1ffad..484dd24eeee3 100644
--- a/misc/dahdi-kmod/files/dahdi.in
+++ b/misc/dahdi-kmod/files/dahdi.in
@@ -53,10 +53,16 @@ dahdi_start()
{
echo "Starting ${name}."
+ # load kernel modules
kldconfig -mf ${kmod_dir}
for m in ${dahdi_modules}; do
kldload $m || exit 1
done
+
+ # configure devfs
+ devfs rule apply path 'dahdi/*' mode 0664 user root group dahdi
+
+ # run configuration utilities
%%PREFIX%%/sbin/dahdi_cfg
if [ -r %%PREFIX%%/etc/fxotune.conf ]; then
echo "Starting fxotune."
diff --git a/misc/dahdi/Makefile b/misc/dahdi/Makefile
index 9bf67ad19be4..1104fda4a577 100644
--- a/misc/dahdi/Makefile
+++ b/misc/dahdi/Makefile
@@ -7,7 +7,7 @@
PORTNAME= dahdi
PORTVERSION= ${DAHDI_VERSION:S/-//g}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= misc kld
MASTER_SITES= ${MASTER_SITE_LOCAL}\
http://downloads.digium.com/pub/telephony/firmware/releases/:firmware
@@ -45,6 +45,7 @@ CONFIGURE_ENV= WGET=/usr/bin/fetch
USE_LDCONFIG= yes
USE_RC_SUBR= dahdi
MAKE_ARGS= ADDITIONAL_DRIVERS="wcb1xxp" NO_FETCH=yes
+GROUPS= dahdi
ONLY_FOR_ARCHS= i386 amd64 sparc64
CONFLICTS= zaptel-[0-9]*
diff --git a/misc/dahdi/files/dahdi.in b/misc/dahdi/files/dahdi.in
index e4eea6b1ffad..484dd24eeee3 100644
--- a/misc/dahdi/files/dahdi.in
+++ b/misc/dahdi/files/dahdi.in
@@ -53,10 +53,16 @@ dahdi_start()
{
echo "Starting ${name}."
+ # load kernel modules
kldconfig -mf ${kmod_dir}
for m in ${dahdi_modules}; do
kldload $m || exit 1
done
+
+ # configure devfs
+ devfs rule apply path 'dahdi/*' mode 0664 user root group dahdi
+
+ # run configuration utilities
%%PREFIX%%/sbin/dahdi_cfg
if [ -r %%PREFIX%%/etc/fxotune.conf ]; then
echo "Starting fxotune."