Install a udev rules file for mISDN

The timerdevice should be accessible for a special group, you
can select the group via --with-mISDN_group=<group name> during
configure, default is dialout.

Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
This commit is contained in:
Karsten Keil 2011-12-06 17:27:41 +01:00
parent e1555b96bd
commit 07ef547eb9
17 changed files with 115 additions and 38 deletions

2
45-misdn.rules.in Normal file
View File

@ -0,0 +1,2 @@
# mISDN devices
KERNEL=="mISDNtimer*" , MODE="664", GROUP="@MISDN_GROUP@"

View File

@ -1,7 +1,9 @@
ACLOCAL_AMFLAGS = -I m4
export _MEMLEAKDEBUG
export _MEMLEAKDEBUG MISDN_CAPI_GROUP
MISDN_CAPI_GROUP=@MISDN_GROUP@
if MEMLEAKDEBUG
_MEMLEAKDEBUG = "-DMEMLEAK_DEBUG=1"
@ -24,10 +26,16 @@ endif
SUBDIRS = include lib tools bridge l1oip $(MAYBE_EXAMPLE) $(MAYBE_GUI) $(MAYBE_CAPI)
CLEANFILES = *~
DISTCLEANFILES = 45-misdn.rules
if GIT_REPO
ChangeLog: .git/objects
git log > $@
endif
endif
install-data-local:
install -d $(DESTDIR)/etc/udev/rules.d
install -m 644 45-misdn.rules $(DESTDIR)/etc/udev/rules.d/45-misdn.rules

View File

@ -34,8 +34,9 @@ POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = .
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(top_srcdir)/configure \
DIST_COMMON = README $(am__configure_deps) $(srcdir)/45-misdn.rules.in \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(top_srcdir)/configure \
$(top_srcdir)/include/mISDN/mISDNcompat.h.in AUTHORS \
COPYING.LIB ChangeLog INSTALL NEWS config.guess config.sub \
depcomp install-sh ltmain.sh missing
@ -50,7 +51,7 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/include/config.h
CONFIG_CLEAN_FILES = include/mISDN/mISDNcompat.h
CONFIG_CLEAN_FILES = 45-misdn.rules include/mISDN/mISDNcompat.h
CONFIG_CLEAN_VPATH_FILES =
SOURCES =
DIST_SOURCES =
@ -152,6 +153,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
@ -228,11 +230,13 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
ACLOCAL_AMFLAGS = -I m4
MISDN_CAPI_GROUP = @MISDN_GROUP@
@OPT_EXAMPLE_TRUE@MAYBE_EXAMPLE = example
@OPT_GUI_TRUE@MAYBE_GUI = guitools
@OPT_CAPI_TRUE@MAYBE_CAPI = capi20 capi20/module
SUBDIRS = include lib tools bridge l1oip $(MAYBE_EXAMPLE) $(MAYBE_GUI) $(MAYBE_CAPI)
CLEANFILES = *~
DISTCLEANFILES = 45-misdn.rules
all: all-recursive
.SUFFIXES:
@ -270,6 +274,8 @@ $(top_srcdir)/configure: $(am__configure_deps)
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
$(am__aclocal_m4_deps):
45-misdn.rules: $(top_builddir)/config.status $(srcdir)/45-misdn.rules.in
cd $(top_builddir) && $(SHELL) ./config.status $@
include/mISDN/mISDNcompat.h: $(top_builddir)/config.status $(top_srcdir)/include/mISDN/mISDNcompat.h.in
cd $(top_builddir) && $(SHELL) ./config.status $@
@ -619,6 +625,7 @@ clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@ -645,7 +652,7 @@ info: info-recursive
info-am:
install-data-am:
install-data-am: install-data-local
install-dvi: install-dvi-recursive
@ -703,17 +710,17 @@ uninstall-am:
distcheck distclean distclean-generic distclean-libtool \
distclean-tags distcleancheck distdir distuninstallcheck dvi \
dvi-am html html-am info info-am install install-am \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-info install-info-am install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
installcheck installcheck-am installdirs installdirs-am \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-recursive uninstall uninstall-am
install-data install-data-am install-data-local install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
installdirs-am maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
ps ps-am tags tags-recursive uninstall uninstall-am
export _MEMLEAKDEBUG
export _MEMLEAKDEBUG MISDN_CAPI_GROUP
@MEMLEAKDEBUG_TRUE@ _MEMLEAKDEBUG = "-DMEMLEAK_DEBUG=1"
@MEMLEAKDEBUG_FALSE@ _MEMLEAKDEBUG =
@ -721,6 +728,10 @@ export _MEMLEAKDEBUG
@GIT_REPO_TRUE@ChangeLog: .git/objects
@GIT_REPO_TRUE@ git log > $@
install-data-local:
install -d $(DESTDIR)/etc/udev/rules.d
install -m 644 45-misdn.rules $(DESTDIR)/etc/udev/rules.d/45-misdn.rules
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -35,3 +35,19 @@ AC_DEFUN([MISDN_CHECK_AF_ISDN], [
AC_SUBST(MISDN_AF_ISDN_VAL)
AC_SUBST(AF_ISDN_VAL)
])
AC_DEFUN([AC_MISDN_GROUP], [
AC_ARG_WITH([mISDN_group],
AS_HELP_STRING([--with-mISDN_group=<unix group name>], [unix access group for mISDN]), [
if test -n "$withval"
then
MISDN_GROUP="$withval"
else
MISDN_GROUP="dialout"
fi
],
[
MISDN_GROUP="dialout"
])
])

View File

@ -117,6 +117,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@

View File

@ -19,7 +19,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -Werror -Wall $(_USE_SOFTFAX)
CLEANFILES = *~
MISDN_SOCKET_DIR = /var/run/mISDNcapid
MISDN_CAPI_GROUP = dialout
install-exec-hook:
mkdir -p $(DESTDIR)$(MISDN_SOCKET_DIR)

View File

@ -124,6 +124,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
@ -208,7 +209,6 @@ mISDNcapid_LDFLAGS = -shared
AM_CPPFLAGS = -I$(top_srcdir)/include -Werror -Wall $(_USE_SOFTFAX)
CLEANFILES = *~
MISDN_SOCKET_DIR = /var/run/mISDNcapid
MISDN_CAPI_GROUP = dialout
all: all-am
.SUFFIXES:

View File

@ -142,6 +142,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@

69
configure vendored
View File

@ -756,6 +756,7 @@ am__EXEEXT_TRUE
LTLIBOBJS
GIT_REPO_FALSE
GIT_REPO_TRUE
MISDN_GROUP
AF_ISDN_VAL
MISDN_AF_ISDN_VAL
LIBOBJS
@ -900,6 +901,7 @@ enable_memleak_debug
enable_capi
enable_softdsp
with_AF_ISDN
with_mISDN_group
'
ac_precious_vars='build_alias
host_alias
@ -1556,6 +1558,8 @@ Optional Packages:
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-AF_ISDN=PNR alternative AF_ISDN protocol number, needed if
AF_ISDN is not defined
--with-mISDN_group=<unix group name>
unix access group for mISDN
Some influential environment variables:
CC C compiler command
@ -5860,13 +5864,13 @@ if ${lt_cv_nm_interface+:} false; then :
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
(eval echo "\"\$as_me:5863: $ac_compile\"" >&5)
(eval echo "\"\$as_me:5867: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
(eval echo "\"\$as_me:5866: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval echo "\"\$as_me:5870: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
(eval echo "\"\$as_me:5869: output\"" >&5)
(eval echo "\"\$as_me:5873: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
@ -7071,7 +7075,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 7074 "configure"' > conftest.$ac_ext
echo '#line 7078 "configure"' > conftest.$ac_ext
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5
ac_status=$?
@ -8860,11 +8864,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:8863: $lt_compile\"" >&5)
(eval echo "\"\$as_me:8867: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:8867: \$? = $ac_status" >&5
echo "$as_me:8871: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -9199,11 +9203,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:9202: $lt_compile\"" >&5)
(eval echo "\"\$as_me:9206: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:9206: \$? = $ac_status" >&5
echo "$as_me:9210: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -9304,11 +9308,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:9307: $lt_compile\"" >&5)
(eval echo "\"\$as_me:9311: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:9311: \$? = $ac_status" >&5
echo "$as_me:9315: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -9359,11 +9363,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:9362: $lt_compile\"" >&5)
(eval echo "\"\$as_me:9366: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:9366: \$? = $ac_status" >&5
echo "$as_me:9370: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -11727,7 +11731,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 11730 "configure"
#line 11734 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -11823,7 +11827,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 11826 "configure"
#line 11830 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -13779,11 +13783,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13782: $lt_compile\"" >&5)
(eval echo "\"\$as_me:13786: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:13786: \$? = $ac_status" >&5
echo "$as_me:13790: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@ -13878,11 +13882,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13881: $lt_compile\"" >&5)
(eval echo "\"\$as_me:13885: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:13885: \$? = $ac_status" >&5
echo "$as_me:13889: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -13930,11 +13934,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13933: $lt_compile\"" >&5)
(eval echo "\"\$as_me:13937: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:13937: \$? = $ac_status" >&5
echo "$as_me:13941: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -15588,6 +15592,28 @@ else
git_repo=false
fi
# Check whether --with-mISDN_group was given.
if test "${with_mISDN_group+set}" = set; then :
withval=$with_mISDN_group;
if test -n "$withval"
then
MISDN_GROUP="$withval"
else
MISDN_GROUP="dialout"
fi
else
MISDN_GROUP="dialout"
fi
if test "x$git_repo" = xtrue; then
GIT_REPO_TRUE=
GIT_REPO_FALSE='#'
@ -15597,7 +15623,7 @@ else
fi
ac_config_files="$ac_config_files Makefile include/Makefile include/mISDN/mISDNcompat.h lib/Makefile bridge/Makefile l1oip/Makefile tools/Makefile example/Makefile guitools/Makefile guitools/qmisdnwatch/Makefile capi20/Makefile capi20/module/Makefile"
ac_config_files="$ac_config_files Makefile 45-misdn.rules include/Makefile include/mISDN/mISDNcompat.h lib/Makefile bridge/Makefile l1oip/Makefile tools/Makefile example/Makefile guitools/Makefile guitools/qmisdnwatch/Makefile capi20/Makefile capi20/module/Makefile"
cat >confcache <<\_ACEOF
@ -16716,6 +16742,7 @@ do
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"45-misdn.rules") CONFIG_FILES="$CONFIG_FILES 45-misdn.rules" ;;
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
"include/mISDN/mISDNcompat.h") CONFIG_FILES="$CONFIG_FILES include/mISDN/mISDNcompat.h" ;;
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;

View File

@ -150,9 +150,14 @@ else
git_repo=false
fi
AC_MISDN_GROUP
AC_SUBST(MISDN_GROUP)
AM_CONDITIONAL([GIT_REPO], [test "x$git_repo" = xtrue])
AC_CONFIG_FILES([Makefile
45-misdn.rules
include/Makefile
include/mISDN/mISDNcompat.h
lib/Makefile

View File

@ -129,6 +129,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@

View File

@ -135,6 +135,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@

View File

@ -119,6 +119,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@

View File

@ -124,6 +124,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@

View File

@ -117,6 +117,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@

View File

@ -153,6 +153,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@

View File

@ -135,6 +135,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MEMLEAKDEBUG_COMPILE = @MEMLEAKDEBUG_COMPILE@
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
MISDN_GROUP = @MISDN_GROUP@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@