--- /dev/null
+# do not edit this file, it will be overwritten on update
+
+SUBSYSTEM=="capi", KERNEL=="capi", NAME="capi20", GROUP="dialout"
+SUBSYSTEM=="tty", KERNEL=="capi[0-9]*", NAME="capi/%n"
--- /dev/null
+# libcapi20 features autodetection of connected CAPI
+# devices. In case you need to select a special device
+# use the remote configuration file:
+# ~/.capi20rc
+# if it doesn't exist look for
+# /etc/capi20.conf
+#
+# To set the remote machine, the above file need to have
+# the following line
+# REMOTE <driver> <remote hostname|ip-address> <remote port>
+#
+# Drivers:
+# * fritzbox - Remote CAPI via FRITZ!Box
+# * rcapi - Melware Remote CAPI
+#
+# If this doesn't exist, the library tries the old, normal way
+# of using the local /dev/isdn/capi20.
+# REMOTE fritzbox 192.168.178.1 5031
+++ /dev/null
-diff -up isdn4k-utils-CVS-2006-07-20/capi20/capi20.h.orig isdn4k-utils-CVS-2006-07-20/capi20/capi20.h
---- isdn4k-utils-CVS-2006-07-20/capi20/capi20.h.orig 2007-09-27 21:45:43.000000000 +0200
-+++ isdn4k-utils-CVS-2006-07-20/capi20/capi20.h 2007-09-27 23:45:40.000000000 +0200
-@@ -20,6 +20,7 @@
- #ifndef __CAPI20_H__
- #define __CAPI20_H__
-
-+#include <sys/types.h>
- #include <sys/time.h>
-
- #ifdef __cplusplus
name = isdn4k-utils
version = 3.2
devel_ver = CVS-2010-05-01
-release = 1
+release = 2
thisapp = %{name}-%{devel_ver}-patched
groups = Networking/Tools
summary = Utilities for configuring an ISDN subsystem.
description
- The isdn4k-utils package contains a collection of utilities needed \
+ The isdn4k-utils package contains a collection of utilities needed
for configuring and running an ISDN subsystem.
end
libtool
ncurses-devel
ppp-devel
+ perl
end
- CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+ CFLAGS += \
+ -D_FILE_OFFSET_BITS=64 \
+ -D_LARGEFILE_SOURCE
prepare_cmds
# remove useless files
install
mkdir -pv %{BUILDROOT}/usr/sbin
make install CFLAGS="%{CFLAGS}" DESTDIR="%{BUILDROOT}"
+
+ # Install udev rules for isdn.
+ mkdir -pv %{BUILDROOT}/lib/udev/rules.d/
+ install -m 644 %{DIR_SOURCE}/40-isdn.rules %{BUILDROOT}/lib/udev/rules.d/
+
+ # Install config files for capi.
+ mkdir -pv %{BUILDROOT}/etc
+ install -m 644 capiinit/capi.conf %{BUILDROOT}/etc
+ install -m 644 %{DIR_SOURCE}/capi20.conf %{BUILDROOT}/etc
end
end
packages
package %{name}
+ prerequires += systemd-units
+
+ script postin
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ end
+
+ script preun
+ /bin/systemctl --no-reload disable capi.service isdn.service >/dev/null 2>&1 || :
+ /bin/systemctl stop capi.service isdn-service >/dev/null 2>&1 || :
+ end
+
+ script postun
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ end
+
+ script postup
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ /bin/systemctl try-restart capi.service isdn.service >/dev/null 2>&1 || :
+ end
+ end
+
+ package %{name}-devel
+ template DEVEL
end
end
--- /dev/null
+[Unit]
+Description=Capi services for passiv ISDN cards
+After=syslog.target
+
+[Service]
+ExecStart=/sbin/capiinit start
+ExecStop=/sbin/capiinit stop
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+[Unit]
+Description=ISDN Services
+Requires=syslog.target network.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/libexec/isdn start
+ExecStop=/usr/libexec/isdn stop
+Environment=BOOTUP=serial
+Environment=CONSOLETYPE=serial
+StandardError=syslog
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target