From 924ce7f1d8f33030f0934263bd24fda4a93f6628 Mon Sep 17 00:00:00 2001 From: fjoe Date: Sun, 7 Nov 2010 17:18:36 +0000 Subject: Set group ownership of dahdi device nodes to "dahdi" group. --- misc/dahdi-kmod/Makefile | 3 ++- misc/dahdi-kmod/files/dahdi.in | 6 ++++++ misc/dahdi/Makefile | 3 ++- misc/dahdi/files/dahdi.in | 6 ++++++ 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." -- cgit