diff options
author | Rajiv Aaron Manglani <rajiv@gentoo.org> | 2008-01-15 05:34:54 +0000 |
---|---|---|
committer | Rajiv Aaron Manglani <rajiv@gentoo.org> | 2008-01-15 05:34:54 +0000 |
commit | eb985edd8bf4be6dea4440303e733708efb14ca5 (patch) | |
tree | 0c5318cc3e0d73bb01c2ebfb8fd95b961ab41c4f /net-misc/zaptel | |
parent | dump unused versions (diff) | |
download | historical-eb985edd8bf4be6dea4440303e733708efb14ca5.tar.gz historical-eb985edd8bf4be6dea4440303e733708efb14ca5.tar.bz2 historical-eb985edd8bf4be6dea4440303e733708efb14ca5.zip |
bring florz patch back in with version 0.3.0-PRE-1y-l_florz-12.1.
Package-Manager: portage-2.1.4
Diffstat (limited to 'net-misc/zaptel')
-rw-r--r-- | net-misc/zaptel/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/zaptel/Manifest | 16 | ||||
-rw-r--r-- | net-misc/zaptel/files/digest-zaptel-1.2.22.1-r1 | 9 | ||||
-rw-r--r-- | net-misc/zaptel/zaptel-1.2.22.1-r1.ebuild | 372 |
4 files changed, 400 insertions, 5 deletions
diff --git a/net-misc/zaptel/ChangeLog b/net-misc/zaptel/ChangeLog index 8a02f7edf3bd..32c3c84699dd 100644 --- a/net-misc/zaptel/ChangeLog +++ b/net-misc/zaptel/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/zaptel # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.100 2008/01/06 08:33:58 rajiv Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/ChangeLog,v 1.101 2008/01/15 05:34:53 rajiv Exp $ + +*zaptel-1.2.22.1-r1 (15 Jan 2008) + + 15 Jan 2008; Rajiv Aaron Manglani <rajiv@gentoo.org> + +zaptel-1.2.22.1-r1.ebuild: + bring florz patch back in with version 0.3.0-PRE-1y-l_florz-12.1. 06 Jan 2008; Rajiv Aaron Manglani <rajiv@gentoo.org> -files/zaptel-1.0.4-gcc34.patch, -files/zaptel-1.0.9-rtc.patch, diff --git a/net-misc/zaptel/Manifest b/net-misc/zaptel/Manifest index fe7eef739c93..81d6dee731ef 100644 --- a/net-misc/zaptel/Manifest +++ b/net-misc/zaptel/Manifest @@ -68,6 +68,7 @@ DIST oslec-0.1-zaptel-1.2.18.diff.gz 2956 RMD160 a4b325c3c989e96459c8b8947139a64 DIST oslec-0.1.tar.gz 1287860 RMD160 f9689f05563b34f4fb44a518d449498d9edb8301 SHA1 bd778f2630974240fc295ad6eee21f8df67db7f7 SHA256 7a8ee97c8f79544b5b30fe509a502966f748c152ee26520f8279cb2d75ec7c38 DIST zaphfc_0.3.0-PRE-1o_florz-12.diff.gz 10736 RMD160 b95d2301402e1108bc480ce0e66e87e3062eccf8 SHA1 f8ab2f312c6a2b2f607b9e7f3ccbcca0858c53a7 SHA256 04a8dd22d581b5d28d46a589d695f6eb634bf2bf355347a637fe2d560a63528c DIST zaphfc_0.3.0-PRE-1y-h_florz-12.diff.gz 10806 RMD160 34834559a99e3a52ade9ff7e9804742e9bc5260f SHA1 4e890b2ae27f3c46061e6a1f6ccd7b205470f3e2 SHA256 83d3705a55fbf265b97e37bbc45facd4f040331f6c9c1b6b98c94957e92eba11 +DIST zaphfc_0.3.0-PRE-1y-l_florz-12.1.diff.gz 10277 RMD160 20507dfa5fa9f882ebcd26b0634c07f34c4f0874 SHA1 3cbf5e061b7efe0103b2b80a4b42183a0da7bed8 SHA256 e564ae8c5da0c27899dff3d9c32c4579cc86f9eaf848f972dbb361050c8c86f4 DIST zaptel-1.2.11.tar.gz 1425625 RMD160 6ae43a2f5801dab17216912f976e67371d8e51d2 SHA1 30a2001449ff50b5a47970b76a77500986602211 SHA256 3641c8ef684862b3cc9fd3c3341d25095909a9c2f901d31b7cc9394210cb50e8 DIST zaptel-1.2.12.tar.gz 1487021 RMD160 4cbf2627a8bbbad65ec43578c1c89e79f1682bdb SHA1 733dcc3f90a7485808ff2e76832d6e78dca5728c SHA256 ab1e87645ceaae9269493f4e448596045732389197a9bb8c21bd5be88533e48f DIST zaptel-1.2.16.tar.gz 3047775 RMD160 dba8d97334aa7668166b33ef64498d2e3a27b6ad SHA1 b39e23012127ddad586335c0163850ce828c6370 SHA256 efe0a3ecc36cf8c8cd8dc2e017c71fa9d2c32ee7bdae60818f9ba64b9c11924c @@ -98,6 +99,10 @@ EBUILD zaptel-1.2.18.ebuild 9344 RMD160 f27247f4e762009092e02a59b2edefed97d16e8c MD5 09d5fe70b2551e75da0593368a1c70d0 zaptel-1.2.18.ebuild 9344 RMD160 f27247f4e762009092e02a59b2edefed97d16e8c zaptel-1.2.18.ebuild 9344 SHA256 86b0b1bffac3a8be89161b2f087eed44fb3e509a3765daca32d3919891c50ceb zaptel-1.2.18.ebuild 9344 +EBUILD zaptel-1.2.22.1-r1.ebuild 9067 RMD160 5426472310f01d4411242e072df51d1276d78f2c SHA1 b8ef8bede00aed300c70fe6490f58f083939df22 SHA256 d415ebcb66fa8da53b3de2db98aa7fef0156d7e661acfbc0bdb279899101bb11 +MD5 e43a6dcddc939569ec48d74c61dc61d6 zaptel-1.2.22.1-r1.ebuild 9067 +RMD160 5426472310f01d4411242e072df51d1276d78f2c zaptel-1.2.22.1-r1.ebuild 9067 +SHA256 d415ebcb66fa8da53b3de2db98aa7fef0156d7e661acfbc0bdb279899101bb11 zaptel-1.2.22.1-r1.ebuild 9067 EBUILD zaptel-1.2.22.1.ebuild 8803 RMD160 f350ff77a6724ff3e73a83dea2cde96add6f3db3 SHA1 4aff639033c378a503bec7e2c0d56b041581fdff SHA256 721a85c350aabd9a8eb44ed311b014d44808efcfe38418239e9440a9389adeaa MD5 1e517623d97d26e091754687b5e788ca zaptel-1.2.22.1.ebuild 8803 RMD160 f350ff77a6724ff3e73a83dea2cde96add6f3db3 zaptel-1.2.22.1.ebuild 8803 @@ -106,10 +111,10 @@ EBUILD zaptel-1.2.9.1-r1.ebuild 8577 RMD160 b487dfe2f52b91b5cd5a75667a2c702bb653 MD5 3137e2eae66b020b7ac2d239b8d4008b zaptel-1.2.9.1-r1.ebuild 8577 RMD160 b487dfe2f52b91b5cd5a75667a2c702bb65397c5 zaptel-1.2.9.1-r1.ebuild 8577 SHA256 36b1e47f352425665c6ed1c77ba9a53374b5bb04e8aaabd8b9483b4c377df8bd zaptel-1.2.9.1-r1.ebuild 8577 -MISC ChangeLog 19688 RMD160 4e406367c46abda36a0f96bd321e1142f2bf91e9 SHA1 8f3f8613b3e2fc4424c77d8167a07add972f0183 SHA256 39c84a2c4be00abca14f3216c9e07b0bc65b7640af82dba4fb491e09cb1c4646 -MD5 51fcbb0a019ced4f48d34e864abae9d4 ChangeLog 19688 -RMD160 4e406367c46abda36a0f96bd321e1142f2bf91e9 ChangeLog 19688 -SHA256 39c84a2c4be00abca14f3216c9e07b0bc65b7640af82dba4fb491e09cb1c4646 ChangeLog 19688 +MISC ChangeLog 19877 RMD160 58a6550f4ea16a8450b4d74a5301b4107febafb2 SHA1 0e857170fd53236f7fedb04f965216c0e2e15759 SHA256 5e593b0ea22eb6dafdca6f43f22bfaa4b24f0ab8f406aa48b84cc78bdd2936a6 +MD5 2cbd077cba9eb98a908cbc677fe3e907 ChangeLog 19877 +RMD160 58a6550f4ea16a8450b4d74a5301b4107febafb2 ChangeLog 19877 +SHA256 5e593b0ea22eb6dafdca6f43f22bfaa4b24f0ab8f406aa48b84cc78bdd2936a6 ChangeLog 19877 MISC metadata.xml 345 RMD160 ce0076215245b28c91df8fcaf8a62c26c4f6b17e SHA1 b5d75d0687c1bb698d4ead8663aae5b7e73728fe SHA256 79f621be31d2899b13106f9a518c4c34971005fee3dd15564582d107e62da2e8 MD5 cce1c5840330faab72b9b0c0c1f5a694 metadata.xml 345 RMD160 ce0076215245b28c91df8fcaf8a62c26c4f6b17e metadata.xml 345 @@ -135,6 +140,9 @@ SHA256 3fb5e9debecd649fe0540e289131c972a0211af22e8748603b0f0a0b4f52fd45 files/di MD5 a55088b251426aec587f7b83b9dc512d files/digest-zaptel-1.2.22.1 521 RMD160 c933439e8a54060d07512a3d562a383335c7471d files/digest-zaptel-1.2.22.1 521 SHA256 8e60a9f664c58a9e27e92525bc246fe9cf9932035594841506d79c2744155af8 files/digest-zaptel-1.2.22.1 521 +MD5 43dcb69dd6fb2e07c7db3a6b60a792f5 files/digest-zaptel-1.2.22.1-r1 819 +RMD160 b807909bdc9d20d3d71c794df1f769fdbb6b6eae files/digest-zaptel-1.2.22.1-r1 819 +SHA256 a40d25e520803c035b838d22019aa36c1c6ae4b81d271372fb2e1329a66f0ea8 files/digest-zaptel-1.2.22.1-r1 819 MD5 4f0bce568656b2bd56047db290089c5e files/digest-zaptel-1.2.9.1-r1 658 RMD160 fed5eacf2bbc84ace2c5fdd4a4375d04312a761f files/digest-zaptel-1.2.9.1-r1 658 SHA256 9322dafee7f351be55a54eec5d617e1ee98b3a32aa5cb25546bd9631ac34487f files/digest-zaptel-1.2.9.1-r1 658 diff --git a/net-misc/zaptel/files/digest-zaptel-1.2.22.1-r1 b/net-misc/zaptel/files/digest-zaptel-1.2.22.1-r1 new file mode 100644 index 000000000000..de2e5d540592 --- /dev/null +++ b/net-misc/zaptel/files/digest-zaptel-1.2.22.1-r1 @@ -0,0 +1,9 @@ +MD5 ede315067f70d7a202a081941155c6e9 bristuff-0.3.0-PRE-1y-l.tar.gz 300381 +RMD160 808862df63edf85997753e1e857cc907c54f2b60 bristuff-0.3.0-PRE-1y-l.tar.gz 300381 +SHA256 d083b6529e34c3192e91f34b68c542106ebaa5e3046d816061709297061d3576 bristuff-0.3.0-PRE-1y-l.tar.gz 300381 +MD5 c2abba3d64b2234f26983ba9e6235861 zaphfc_0.3.0-PRE-1y-l_florz-12.1.diff.gz 10277 +RMD160 20507dfa5fa9f882ebcd26b0634c07f34c4f0874 zaphfc_0.3.0-PRE-1y-l_florz-12.1.diff.gz 10277 +SHA256 e564ae8c5da0c27899dff3d9c32c4579cc86f9eaf848f972dbb361050c8c86f4 zaphfc_0.3.0-PRE-1y-l_florz-12.1.diff.gz 10277 +MD5 835d57401808b6c47b4b31c9e8945240 zaptel-1.2.22.1.tar.gz 3602765 +RMD160 ffe5173ddcf6bc8ddaaa1ef0e2b4f1f42ad06d2b zaptel-1.2.22.1.tar.gz 3602765 +SHA256 762c593ceaa8b2b910ce4f9edea9be087d88f4453a99a004a78abac6e2ef31fd zaptel-1.2.22.1.tar.gz 3602765 diff --git a/net-misc/zaptel/zaptel-1.2.22.1-r1.ebuild b/net-misc/zaptel/zaptel-1.2.22.1-r1.ebuild new file mode 100644 index 000000000000..a1ab4d8eb976 --- /dev/null +++ b/net-misc/zaptel/zaptel-1.2.22.1-r1.ebuild @@ -0,0 +1,372 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/zaptel/zaptel-1.2.22.1-r1.ebuild,v 1.1 2008/01/15 05:34:53 rajiv Exp $ + +inherit toolchain-funcs eutils linux-mod + +BRI_VERSION="0.3.0-PRE-1y-l" +FLORZ_VERSION="0.3.0-PRE-1y-l_florz-12.1" + +IUSE="astribank bri ecmark ecmark2 ecmark3 ecaggressive eckb1 ecmg2 ecsteve ecsteve2 florz +rtc watchdog zapras zapnet" + +MY_P="${P/_/-}" + +DESCRIPTION="Drivers for Digium and ZapataTelephony cards" +HOMEPAGE="http://www.asterisk.org" +SRC_URI="http://downloads.digium.com/pub/zaptel/releases/${MY_P}.tar.gz + bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz ) + florz? ( http://zaphfc.florz.dyndns.org/zaphfc_${FLORZ_VERSION}.diff.gz ) + " + +S="${WORKDIR}/${MY_P}" + +S_BRI="${WORKDIR}/bristuff-${BRI_VERSION}" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND="virtual/libc + dev-libs/libusb + >=dev-libs/newt-0.50.0 + astribank? ( dev-lang/perl )" + +DEPEND="${RDEPEND} virtual/linux-sources" + +# list of echo canceller use flags, +# first active in this list is selected (=order does matter) +ZAP_EC_FLAGS="ecmark ecmark2 ecmark3 ecsteve ecsteve2 eckb1 ecmg2" + +### Begin: Helper functions + +select_echo_cancel() { + local myEC="" + + for x in ${ZAP_EC_FLAGS}; do + if use $x; then + myEC=$(echo "$x" | sed -e "s:^ec::" | tr '[:lower:]' '[:upper:]') + break; + fi + done + + echo ${myEC} +} + +zconfig_disable() { + if grep -q "${1}" ${S}/zconfig.h; then + # match a little more than ${1} so we can use zconfig_disable + # to disable all echo cancellers in zconfig.h w/o calling it several times + sed -i -e "s:^[ \t]*#define[ \t]\+\(${1}[a-zA-Z0-9_-]*\).*:#undef \1:" \ + ${S}/zconfig.h + fi + + return $? +} + +zconfig_enable() { + if grep -q "${1}" ${S}/zconfig.h; then + sed -i -e "s:^/\*[ \t]*#define[ \t]\+\(${1}\).*:#define \1:" \ + -e "s:^[ \t]*#undef[ \t]\+\(${1}\).*:#define \1:" \ + ${S}/zconfig.h + fi + + return $? +} + +### End: Helper functions + +pkg_setup() { + local result=0 numec=0 + + linux-mod_pkg_setup + + einfo "Running pre-flight checks..." + + # basic zaptel checks + if kernel_is 2 4 ; then + if ! linux_chkconfig_present CRC32; then + echo + eerror "Your kernel lacks CRC32 support!" + eerror "Enable CONFIG_CRC32!" + result=$((result+1)) + fi + else + if ! linux_chkconfig_present CRC_CCITT; then + echo + eerror "Your kernel lacks CRC_CCIT support!" + eerror "Enable CONFIG_CRC_CCIT!" + result=$((result+1)) + fi + if ! linux_chkconfig_present FW_LOADER; then + echo + eerror "Your kernel lacks FW_LOADER support!" + eerror "Enable CONFIG_FW_LOADER!" + result=$((result+1)) + fi + fi + + # check if multiple echo cancellers have been selected + for x in ${ZAP_EC_FLAGS}; do + use $x && numec=$((numec+1)) + done + if [[ $numec -gt 1 ]]; then + # multiple flags are active, only the first in the ZAP_EC_FLAGS list + # will be used, make sure the user knows about this + echo + ewarn "Multiple echo canceller flags are active but only one will be used!" + ewarn "Selected: $(select_echo_cancel)" + fi + + # we need at least HDLC generic support + if use zapnet && ! linux_chkconfig_present HDLC; then + echo + eerror "zapnet: Your kernel lacks HDLC support!" + eerror "zapnet: Enable CONFIG_HDLC* to use zaptel network support!" + result=$((result+1)) + fi + + # zapras needs PPP support + if use zapras && ! linux_chkconfig_present PPP; then + echo + eerror "zapras: Your kernel lacks PPP support!" + eerror "zapras: Enable CONFIG_PPP* to use zaptel ras support!" + result=$((result+1)) + fi + + # rtc needs linux-2.6 and CONFIG_RTC + if use rtc; then + if ! kernel_is 2 6; then + echo + eerror "rtc: >=Linux-2.6.0 is needed for rtc support!" + result=$((result+1)) + fi + + if ! linux_chkconfig_present RTC; then + eerror "rtc: Your kernel lacks RealTime-Clock support!" + result=$((result+1)) + fi + fi + + if [[ $result -gt 0 ]]; then + echo + ewarn "One or more of the neccessary precondition(s) is/are not met!" + ewarn "Look at the messages above, resolve the problem (or disable the use-flag) and try again" + echo + + if [[ $result -lt 3 ]]; then + eerror "[$result Error(s)] Zaptel is not happy :(" + else + eerror "[$result Error(s)] You're making zaptel cry :'(" + fi + die "[$result] Precondition(s) not met" + fi + + echo + einfo "Zaptel is happy and continues... :)" +} + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.diff + epatch ${FILESDIR}/zaptel-1.2.9.1-ar.patch + + # try to apply bristuff patch + if use bri; then + # fix for userpriv + chmod -R a=rwX ${S_BRI} + + einfo "Patching zaptel w/ BRI stuff (${BRI_VERSION})" + epatch ${S_BRI}/patches/zaptel.patch + + cd ${S_BRI} + + if use florz; then + einfo "Patching zaptel with florz (${FLORZ_VERSION}) for zaphfc" + epatch ${WORKDIR}/zaphfc_${FLORZ_VERSION}.diff + fi + + # patch includes + sed -i -e "s:^#include.*zaptel\.h.*:#include <zaptel.h>:" \ + qozap/qozap.c \ + zaphfc/zaphfc.c \ + cwain/cwain.c + + # patch makefiles + sed -i -e "s:^ZAP[\t ]*=.*:ZAP=-I${S}:" \ + -e "s:^MODCONF=.*:MODCONF=/etc/modules.d/zaptel:" \ + -e "s:linux-2.6:linux:g" \ + qozap/Makefile \ + zaphfc/Makefile \ + cwain/Makefile + + sed -i -e "s:^\(CFLAGS+=-I. \).*:\1 \$(ZAP):" \ + zaphfc/Makefile + + cd ${S} + fi + +### Configuration changes + local myEC + + # prepare zconfig.h + myEC=$(select_echo_cancel) + if [[ -n "${myEC}" ]]; then + einfo "Selected echo canceller: ${myEC}" + # disable default first, set new selected ec afterwards + zconfig_disable ECHO_CAN + zconfig_enable ECHO_CAN_${myEC} + fi + + # enable rtc support on 2.6 + if use rtc && linux_chkconfig_present RTC && kernel_is 2 6; then + einfo "Enabling ztdummy RTC support" + zconfig_enable USE_RTC + fi + + # enable agressive echo surpression + use ecaggressive && \ + zconfig_enable AGGRESSIVE_SUPPRESSOR + + # ppp ras support + use zapras && \ + zconfig_enable CONFIG_ZAPATA_PPP + + # frame relay, syncppp... + use zapnet && \ + zconfig_enable CONFIG_ZAPATA_NET + + # zaptel watchdog + use watchdog && \ + zconfig_enable CONFIG_ZAPTEL_WATCHDOG +} + +src_compile() { + # build + make KVERS=${KV_FULL} \ + KSRC=${KV_DIR} ARCH=$(tc-arch-kernel) || die + + if use astribank; then + cd ${S}/xpp/utils + make || die "make xpp utils failed" + fi + + if use bri; then + cd ${S_BRI} + for x in cwain qozap zaphfc; do + einfo "Building ${x}..." + make KVERS=${KV_FULL} \ + KSRC=/usr/src/linux \ + ARCH=$(tc-arch-kernel) \ + -C ${x} || die "make ${x} failed" + done + fi +} + +src_install() { + # Create firmware directory + mkdir -p ${D}/lib/firmware/ + + kernel_is 2 4 && cp /etc/modules.conf ${D}/etc + make DESTDIR=${D} ARCH=$(tc-arch-kernel) \ + KVERS=${KV_FULL} KSRC=/usr/src/linux devices firmware \ + install-modules install-programs || die + + dodoc ChangeLog README README.udev README.fxsusb zaptel.init + dodoc zaptel.conf.sample zaptel.sysconfig README.fxotune + + # additional tools + dobin ztmonitor ztspeed zttest fxotune + + # install all header files, several packages need the complete set + # (e.g. sangoma wanpipe) + insinto /usr/include/zaptel + doins *.h + + if use bri; then + einfo "Installing bri" + cd ${S_BRI} + + insinto /lib/modules/${KV_FULL}/misc + doins qozap/qozap.${KV_OBJ} + doins zaphfc/zaphfc.${KV_OBJ} + doins cwain/cwain.${KV_OBJ} + + # install example configs for octoBRI and quadBRI + insinto /etc + doins qozap/zaptel.conf.octoBRI + newins qozap/zaptel.conf zaptel.conf.quadBRI + newins zaphfc/zaptel.conf zaptel.conf.zaphfc + + insinto /etc/asterisk + doins qozap/zapata.conf.octoBRI + newins qozap/zapata.conf zapata.conf.quadBRI + newins zaphfc/zapata.conf zapata.conf.zaphfc + + docinto bristuff + dodoc CHANGES INSTALL + + docinto bristuff/qozap + dodoc qozap/LICENSE qozap/TODO qozap/*.conf* + + docinto bristuff/zaphfc + dodoc zaphfc/LICENSE zaphfc/*.conf + + docinto bristuff/cwain + dodoc cwain/TODO cwain/LICENSE + + cd ${S} + fi + + # install init script + newinitd ${FILESDIR}/zaptel.rc6 zaptel + newconfd ${FILESDIR}/zaptel.confd zaptel + + # install udev rule file + insinto /etc/udev/rules.d + newins ${FILESDIR}/zaptel.udevd 10-zaptel.rules + + # fix permissions if there's no udev around + if [[ -d ${D}/dev/zap ]]; then + chown -R root:dialout ${D}/dev/zap + chmod -R u=rwX,g=rwX,o= ${D}/dev/zap + fi + + if use astribank; then + cd ${S}/xpp/utils + eval `perl '-V:installarchlib'` + make DESTDIR=${D} PERLLIBDIR=${installarchlib} install || die "failed xpp utils install" + dosbin zt_registration xpp_sync lszaptel + fi +} + +pkg_postinst() { + linux-mod_pkg_postinst + + echo + einfo "Use the /etc/init.d/zaptel script to load zaptel.conf settings on startup!" + echo + + if use bri; then + einfo "Bristuff configs have been merged as:" + einfo "" + einfo "${ROOT}etc/" + einfo " zaptel.conf.zaphfc" + einfo " zaptel.conf.quadBRI" + einfo " zaptel.conf.octoBRI" + einfo "" + einfo "${ROOT}etc/asterisk/" + einfo " zapata.conf.zaphfc" + einfo " zapata.conf.quadBRI" + einfo " zapata.conf.octoBRI" + echo + fi + + # fix permissions if there's no udev around + if [[ -d ${ROOT}dev/zap ]]; then + chown -R root:dialout ${ROOT}dev/zap + chmod -R u=rwX,g=rwX,o= ${ROOT}dev/zap + fi +} |