summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-dialup/capi4k-utils/Manifest12
-rw-r--r--net-dialup/capisuite/Manifest1
-rw-r--r--net-dialup/capisuite/files/capisuite.initd58
3 files changed, 66 insertions, 5 deletions
diff --git a/net-dialup/capi4k-utils/Manifest b/net-dialup/capi4k-utils/Manifest
index 00348078b381..0a18de4c9316 100644
--- a/net-dialup/capi4k-utils/Manifest
+++ b/net-dialup/capi4k-utils/Manifest
@@ -1,18 +1,20 @@
MD5 4a0bb8a608304da5ee282b438e6d54c2 capi4k-utils-20041006-r5.ebuild 3741
MD5 03243c209893699ce44a97f2090546fe capi4k-utils-20050322-r1.ebuild 4014
-MD5 811e459524f29afadff33ac2ba495c2b ChangeLog 6533
+MD5 24de2ce5c9c0b1539d6f5d36b09a721e ChangeLog 6771
MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163
+MD5 3b57008aefd37c2e2a04cff634da2791 capi4k-utils-20050509.ebuild 4353
MD5 c1f67e98c19fe5ece86b9242a00e6a38 files/README.gentoo 2800
MD5 bc75ed1e49b13568f93fb63a37c5dc70 files/capi-isdn 287
-MD5 929cf4d5314e1a0d881e6cca4c71955e files/capi.conf 2073
-MD5 299580849e0827ebd2d7f14758a5b13e files/capi.confd 568
+MD5 67da90715c52ee18b93fc4effe263f5f files/capi.conf 2266
+MD5 6d7bb17701078373179e9e8dae7b6a55 files/capi.confd 651
MD5 e893400f587fe8773df3d7903a062609 files/capi.initd 3062
MD5 5567e0f076f3d1faafcd0d4fa39a1c4e files/digest-capi4k-utils-20041006-r5 156
MD5 edc50538053b658093927f9fb28c3aff files/config 195
-MD5 fa4cf0be46c4a16a2ef6fd178ed54c01 files/capi.usermap 1504
+MD5 c6d2f5f9e53e0fbf5a88feb8bde1b709 files/capi.usermap 1856
MD5 2fe94d2623c5b129780b72bacaf4a7bc files/rcapid.xinetd 236
+MD5 239b613eb69255eead19892de760db8d files/digest-capi4k-utils-20050509 75
MD5 97a56dd67a012daab67041ed96a6d44d files/capi.blacklist 530
-MD5 1f9c9dd668e97e611d19ce67374c5da8 files/capi.hotplug 3552
+MD5 f53ac82ae60eba8a1858b90b435d88d0 files/capi.hotplug 4216
MD5 709e4079ecd09537691845755cb9136d files/digest-capi4k-utils-20050322-r1 75
MD5 e74f9b822b6f485ca6ff834c2699151a files/20041006/README.gentoo 1492
MD5 fb9f9b4003d8d1647e23cf7b329386f6 files/20041006/capi.confd 424
diff --git a/net-dialup/capisuite/Manifest b/net-dialup/capisuite/Manifest
index 180f22252e34..72cfaf9f0039 100644
--- a/net-dialup/capisuite/Manifest
+++ b/net-dialup/capisuite/Manifest
@@ -8,3 +8,4 @@ MD5 d0b0dd46c8f863d3849ee1ce118da842 files/capisuite-0.4.5-gentoo.patch 1979
MD5 b6dc0c2a3cd0d7fb36b716a0e6514186 files/digest-capisuite-0.4.5 68
MD5 b89c96393c676a2977e9b0b55b553b9f files/capisuite-0.4.5-capiv3.patch 2151
MD5 f8cc369b2ad959cf9f00457f2729d5da files/digest-capisuite-0.4.5.3 137
+MD5 78748205ff049b27b92175e818a06e0d files/capisuite.initd 1417
diff --git a/net-dialup/capisuite/files/capisuite.initd b/net-dialup/capisuite/files/capisuite.initd
new file mode 100644
index 000000000000..1b9af8a9843b
--- /dev/null
+++ b/net-dialup/capisuite/files/capisuite.initd
@@ -0,0 +1,58 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/capisuite/files/capisuite.initd,v 1.1 2005/05/16 08:46:39 genstef Exp $
+
+opts="reload"
+
+depend() {
+ need capi
+}
+
+checkconfig() {
+ local conf_fax conf_voice sec rest
+ # Check if there are configured users for fax or
+ # answering machine. Otherwise exit.
+ # IMPORTANT: Change this or comment it out if you want to use
+ # your own CapiSuite scripts.
+ while read -r sec rest; do
+ if [ "${sec:0:1}" = "[" -a "$sec" != "[GLOBAL]" ]; then
+ conf_fax=yes
+ break
+ fi
+ done < /etc/capisuite/fax.conf
+ while read -r sec rest; do
+ if [ "${sec:0:1}" = "[" -a "$sec" != "[GLOBAL]" ]; then
+ conf_voice=yes
+ break
+ fi
+ done < /etc/capisuite/answering_machine.conf
+ # end check for configured users
+
+ if ! [ "$conf_fax" -o "$conf_voice" ]; then
+ eerror "Please configure CapiSuite first!"
+ return 1
+ fi
+
+ return 0
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting CapiSuite"
+ start-stop-daemon --start --quiet --exec /usr/sbin/capisuite -- -d
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping CapiSuite"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/capisuite --retry 10 --signal TERM >/dev/null
+ eend $?
+}
+
+reload() {
+ ebegin "Reload CapiSuite"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/capisuite --signal HUP
+ eend $?
+}