diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2013-01-15 14:26:11 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2013-01-15 14:26:11 +0000 |
commit | 8ac238815a6444b55bc1f0f27150f17edaa72d07 (patch) | |
tree | e0825cc1e1210569e5406069d9ed52bce80be359 /net-misc | |
parent | dev-tcltk/tdom: Add support for tcl8.6, #451548 (diff) | |
download | historical-8ac238815a6444b55bc1f0f27150f17edaa72d07.tar.gz historical-8ac238815a6444b55bc1f0f27150f17edaa72d07.tar.bz2 historical-8ac238815a6444b55bc1f0f27150f17edaa72d07.zip |
Bugfix release on the 11 branch. The fix for bug #440278 is now upstream.
Package-Manager: portage-2.1.11.41/cvs/Linux x86_64
Manifest-Sign-Key: 0xB5058F9A
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/asterisk/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/asterisk/Manifest | 15 | ||||
-rw-r--r-- | net-misc/asterisk/asterisk-11.2.0.ebuild | 308 |
3 files changed, 328 insertions, 2 deletions
diff --git a/net-misc/asterisk/ChangeLog b/net-misc/asterisk/ChangeLog index 90a352597b7d..e2933a503473 100644 --- a/net-misc/asterisk/ChangeLog +++ b/net-misc/asterisk/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/asterisk # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.437 2013/01/07 22:08:00 chainsaw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/ChangeLog,v 1.438 2013/01/15 14:26:07 chainsaw Exp $ + +*asterisk-11.2.0 (15 Jan 2013) + + 15 Jan 2013; Tony Vroon <chainsaw@gentoo.org> +asterisk-11.2.0.ebuild: + Bugfix release on the 11 branch. The fix for bug #440278 is now upstream. *asterisk-11.1.2 (07 Jan 2013) diff --git a/net-misc/asterisk/Manifest b/net-misc/asterisk/Manifest index 09ba95e25fc0..c3cd83c81887 100644 --- a/net-misc/asterisk/Manifest +++ b/net-misc/asterisk/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX 1.6.0/asterisk.confd 2204 SHA256 daec84c58e0ef6cbd71a6fc62cb83129b1bcffdfdd619ebbd62a642f0cd1eee7 SHA512 4d8998be5032203d693096d7940b4aeca71345b23544ef3c645f47aa617cc775da7b013f364ef90fd0abdd86976235bb4fcd463a055250b8072efc181e325466 WHIRLPOOL dc423607cda205913e034f4b6c10b20463eff12bb0c1f41813deade9cd887e3abaafa6eeab6c39064c3da242e50859e293165a9818eee867ecf832d9d1f88a8d AUX 1.6.2/asterisk.logrotate3 436 SHA256 675705506d1adf7ec8c278581412a7ed69eed2735fea6c5f2faf368fb4ad9a26 SHA512 de9893ce0b460e711cc107779afd40150398ef53f901923a7378757df2936c1bde43c39ba50924f913db81ce66550a9d2e1bb66c5712021b5f8c652d3b3740c4 WHIRLPOOL 34606860de1f8d7f45165035a4d3c0ff8726843508f0664a77db90d90556166dd3d6909dfe0f1b616e239c182e3b97f2e9a224e76628312a5e0d2a6e6a1259e7 AUX 1.6.2/call_data.txt 1120 SHA256 24a5b8dab0f46ffff6dddc50d4ab8d498ec90bc2a0977249f65471b3f0948a0b SHA512 0bc4ab49d3a7493d1871c63234fb4c4ec6725491d350e28836f1220d1c17097974d47afcf19265348215d3076e12266688df513614f595cbae8f996cbb6fc7cb WHIRLPOOL e28db9b7c11e9106edc3d00f611960ea3290c442607c14b0d30ba2ab773deea6b70ab37f88b60f559062b18364d7d142526d045280ff8559acf560163a9a04b7 @@ -13,10 +16,20 @@ AUX 1.8.0/find_call_ids.sh 1078 SHA256 185d0f55f54d044eb4b4dc64954e5191f8b993d13 AUX 1.8.0/find_call_sip_trace.sh 1115 SHA256 e1ebeb1dab05f552f89f380719d319cdf579cb6aeb86a9010e13e14c57f55985 SHA512 e679f3953b2e397d7c80bb2f0ca3db848f07ba97ca139c87224de4467f8172034eb4372e5ddd68116774a7b9d5fd48aa30d809e2af2c6e6e0747762c69090b6a WHIRLPOOL 8c30be245556b37dd45dd5ff5cf5c3141050f60c3e286631520f8114e167c6bd4f7930be21e57e93fd183ab65dfbd3b95b8e342808870979b67977f3ce189ebf DIST asterisk-1.8.19.1.tar.gz 25158882 SHA256 2600e5b1888735c1ba7a7712b05347d8297efe819545800750b70f3e39a3aad1 SHA512 77e944e3fbd3333f28056ccd19d406e3f1460afd93d50230ec67aaac52439b030c27fd9e9b5b6a16934ffc9b09d862d88520cf195104c28f53a5f444e1d3a91b WHIRLPOOL e641f5d254f06290c73691ae7f1f1be51dfb57ebd372b93ebf3254b277ed8cfd23c4f56b736ac43831e06ba31a3cbb0ab844030393ee4aa2c1fdc8fe11b6d5ae DIST asterisk-11.1.2.tar.gz 30439547 SHA256 5d0aa1930584f54f43f9886e70c65b68bf22db1f1df79bcac2e58e25b216a67b SHA512 6c861c1d5aba3e7e407c972c3f23cf96eeadaeac2dfeaa0c482527c5b061f2b4ac3b4f5300168bd9a40b9232739da85dd8eb7869d84c1077b4f1cb7ceb907196 WHIRLPOOL 15e4404c8077a2182fb2448d800084c234db7c2c674dade3fd530e729f6861b98d3df1f4340bbc573a1f7291cc1fd7744408eb790adca1bb352d51f511b7dcc8 +DIST asterisk-11.2.0.tar.gz 30473976 SHA256 cdcb8ae1896a8d1fd4d3b46d52674508a44bd6066f1a1ac861a5ac5921959217 SHA512 aa56a09767704c70506dca12c51bce27c256d155148f37d08f4b9afc6c21dee2e0a7cd9bd297e14d3f42f3ccb833ada0c33f332c15c2e02680acccb8420700db WHIRLPOOL 9e172187cc244e0e00471286bbd04a9f0cf1e5e14564bdd8dc5b95f436fdbf2c4f846060a4b155dd321287b47ea9d5925a17d88e9f518e565a5e9b53675fb9d3 DIST gentoo-asterisk-patchset-1.16.tar.bz2 31997 SHA256 dfc097d8f4cd497dd970ff64bc6af716af456ce7f777a5536a112513a64bf132 SHA512 643c7b9151d3290e0494b76d08319e676fea8d053024c7abe658dc54f0611690cf95b67e25620ec2e0d4b36a4f91c3930acb1f4cd0e82083f5f718120d0949c4 WHIRLPOOL 9d7c61d96d3f3f67e74fa5aa2e233aece67240b783a948c90884235e3eaeb6754513cd4bc6be501043f4991c0cb2a0d15ea65c6f1a6a9adab750b793693a76e5 DIST gentoo-asterisk-patchset-3.1.tar.bz2 6557 SHA256 9bb7e1dcd3469281291757366579f2504372356a862b906c32c7ba255b2087f5 SHA512 16caf58b69480b816c8605d83be5594eef102ef288df4150c43887efab0091d0775c1c99c6a3a1dfcc4b48a099cb3631a72b2cb98418d84979a80a5ea05ee0aa WHIRLPOOL 3a5376944d09582ea9e88cb435186748cc46f56e50eabb460bce6ce468cf7b65ae238fd3c2347121bc401d46efbc36c257f983ef037845e9d789aa21dea60946 +DIST gentoo-asterisk-patchset-3.2.tar.bz2 6038 SHA256 f6cf6e900b459d163ea2be18426c333739f65075260faa41fed5fe448a4705a4 SHA512 4fa5e445faff9bb870619193335b7d71fc5d3cfd3e1ccd8d704a49f66bc0bd4587eda63b0e5f985bded0259ae1deb7d2cd74d5139fa5c48eba6ea7c748f0283d WHIRLPOOL 78d308c89fd940830f293e339e4be555be80bc377a1d4cb043b3f4dde8af4390c5f2be78d2380ad3851cb5cf375fc2580110a079bb2f925883bc3602197f67bd EBUILD asterisk-1.8.19.1.ebuild 9000 SHA256 e4f8db8acee501ce5049167ca092d6c229d255b2ab1b5f3200a2d5139822bc81 SHA512 d0207478df5b6343eb367642faede4af91fdd6e9c2803ed026ece6b56715a8a6372af6d1ee262b20ae8c32d5efa330f2f0f2e10852bcd20a2b32442d28c414eb WHIRLPOOL 69817e15d9e5421b42ebb86a214b55bd78e085562a5afa6b201b8b723782872cdf4b1310e6ee59ccc47b5981dfe931103af0390a0d4aa519e338d3a366e0177a EBUILD asterisk-11.1.2.ebuild 9095 SHA256 ff1b2ae8230a0e2f490785886f3f4781258edc2f52f1bb3fa76f99026b13c121 SHA512 4c00083ada82b85e8048170a478a80ee25e60f571957b9903f71b609b292f754ca694ff115b494fd4c42df10f43b6036524205b7113c8977d5b8bc3fe022a7c8 WHIRLPOOL 979a092ca968fc165e5656ac7d8aaf9e99ac9f7635da2ce190072955b82af138b3fcdd4f4479e968cd7c73ecce4fec61ae6ee78341472a8cafd672d63d9179b1 -MISC ChangeLog 2415 SHA256 29e19428b5c1576a4fe8ec3f966a947695013208e147f43a3de857749f7e2e89 SHA512 c9843f49e9be9ba5d696d954a3689694ca9b184eeca8171cc02511bd41064c898314ee38a1d34a1631588cf5f2d5150d434f27011068d13f5fd0e30b03879311 WHIRLPOOL 169508dd4d7da7eb1711f52729330aefa5c8a0bdebd87103550103ac4074163e7959f66687f4260e9b08c756316ebd6ee19e0df6fc430a133eb193d7fdde517d +EBUILD asterisk-11.2.0.ebuild 9095 SHA256 4e895be2322b28c731a0a0891439242401d2a0d91ef05e0ce4a7b3cca2219a57 SHA512 8d0a682d425a90022a84dbe6fbc122c5f67ca5ca2210c2547cce49e958e7aa4abb69ccad8e195239ca92329266d8928c0ec82a23dbf437f5f85c649004b27dac WHIRLPOOL 232f14744c39816d245e2588157f21ac507fe2deac7c624a85295819e1305cf7a1a23cd47e24cf441a1866be686f28b522e745435a32dee76d9014ad206563ca +MISC ChangeLog 2597 SHA256 f2b9ed4b073155904e2368922fefcd530bf442643e859d4e4537fd37ec1768fe SHA512 718be4933daf601f64862b48656313c28d9bfa74dea10bbebde977183880720e7aa96c170693ae9b48c5ff735ba75c865683579ac0cfa1ae3932b96b884f4bfe WHIRLPOOL 2a031f9cfcfa16856be287dea04c8c2816cd85f8e47f79be792d76096153c2227fb0888c4b40a463e2dd534f3dd3d717ac9e87015f0482ceeca23982a2a1ba38 MISC ChangeLog-2012 113409 SHA256 6beb419f0c2e63641c73f2c14bd0c3a6a319c65bca8be526aa441fac2104fc9c SHA512 08c037acd578b9c3c387a80e45e80a68c4da84e63fced30215f22ec14eb6e223348d8e7d68f4decdf8a2d8cd0933b3f7fa3adddf7cd80bb407498b3e2868d917 WHIRLPOOL be0f2192531f7477545ccc0f10d9a50f36228e8d8d0e2773ccce3799c2d1b5e1b7be70d96502f759c7c878f88efd83122fc9230374c40c8963fe0bc7ff014b87 MISC metadata.xml 1203 SHA256 d5acdcd4f214e602c8d6b68258e4e7fa9071bd2fbda10d461f097d35d1f08c0a SHA512 4f65a7268834241af12d41b79da374cc65b977436ad182ea781b2677790da0d1573cc39fc2e9868a0acbaeceb529762cab385e16d9140a5246cafebd6e25e765 WHIRLPOOL d870297ef0b6f1f36a2f39cabb811c3a1845a305884ae7b2bc979cd35f96da04cc3030eb4593039aa0aaf206fe44845a37bbb5ac994085c1e67a422e2fdf0772 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEYEAREIAAYFAlD1ZwYACgkQp5vW4rUFj5rr7ACeKdMADxvxUTeBQXsAbI51jeXG +aeMAmwUPmGxhg2fjmvom4w0z6PjY1Oij +=olmD +-----END PGP SIGNATURE----- diff --git a/net-misc/asterisk/asterisk-11.2.0.ebuild b/net-misc/asterisk/asterisk-11.2.0.ebuild new file mode 100644 index 000000000000..8b7c9311bbef --- /dev/null +++ b/net-misc/asterisk/asterisk-11.2.0.ebuild @@ -0,0 +1,308 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-11.2.0.ebuild,v 1.1 2013/01/15 14:26:07 chainsaw Exp $ + +EAPI=4 +inherit autotools base eutils linux-info multilib + +MY_P="${PN}-${PV/_/-}" + +DESCRIPTION="Asterisk: A Modular Open Source PBX System" +HOMEPAGE="http://www.asterisk.org/" +SRC_URI="http://downloads.asterisk.org/pub/telephony/asterisk/releases/${MY_P}.tar.gz + mirror://gentoo/gentoo-asterisk-patchset-3.2.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE_VOICEMAIL_STORAGE=" + +voicemail_storage_file + voicemail_storage_odbc + voicemail_storage_imap +" +IUSE="${IUSE_VOICEMAIL_STORAGE} alsa bluetooth calendar +caps cluster curl dahdi debug doc freetds gtalk http iconv ilbc jabber ldap libedit lua mysql newt +samples odbc osplookup oss portaudio postgres radius selinux snmp span speex srtp static syslog vorbis" +IUSE_EXPAND="VOICEMAIL_STORAGE" +REQUIRED_USE="gtalk? ( jabber ) + ^^ ( ${IUSE_VOICEMAIL_STORAGE/+/} ) + voicemail_storage_odbc? ( odbc ) +" + +EPATCH_SUFFIX="patch" +PATCHES=( "${WORKDIR}/asterisk-patchset" ) + +RDEPEND="dev-db/sqlite:3 + dev-libs/popt + dev-libs/libxml2 + dev-libs/openssl + sys-libs/ncurses + sys-libs/zlib + alsa? ( media-libs/alsa-lib ) + bluetooth? ( net-wireless/bluez ) + calendar? ( net-libs/neon + dev-libs/libical + dev-libs/iksemel ) + caps? ( sys-libs/libcap ) + cluster? ( sys-cluster/corosync ) + curl? ( net-misc/curl ) + dahdi? ( >=net-libs/libpri-1.4.12_beta2 + net-misc/dahdi-tools ) + freetds? ( dev-db/freetds ) + gtalk? ( dev-libs/iksemel ) + http? ( dev-libs/gmime:2.4 ) + iconv? ( virtual/libiconv ) + ilbc? ( dev-libs/ilbc-rfc3951 ) + jabber? ( dev-libs/iksemel ) + ldap? ( net-nds/openldap ) + libedit? ( dev-libs/libedit ) + lua? ( dev-lang/lua ) + mysql? ( virtual/mysql ) + newt? ( dev-libs/newt ) + odbc? ( dev-db/unixODBC ) + osplookup? ( net-libs/osptoolkit ) + portaudio? ( media-libs/portaudio ) + postgres? ( dev-db/postgresql-base ) + radius? ( net-dialup/radiusclient-ng ) + selinux? ( sec-policy/selinux-asterisk ) + snmp? ( net-analyzer/net-snmp ) + span? ( media-libs/spandsp ) + speex? ( media-libs/speex ) + srtp? ( net-libs/libsrtp ) + vorbis? ( media-libs/libvorbis )" + +DEPEND="${RDEPEND} + !net-libs/openh323 + voicemail_storage_imap? ( virtual/imap-c-client ) +" + +RDEPEND="${RDEPEND} + syslog? ( virtual/logger )" + +PDEPEND="net-misc/asterisk-core-sounds + net-misc/asterisk-extra-sounds + net-misc/asterisk-moh-opsound" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + CONFIG_CHECK="~!NF_CONNTRACK_SIP" + local WARNING_NF_CONNTRACK_SIP="SIP (NAT) connection tracking is enabled. Some users + have reported that this module dropped critical SIP packets in their deployments. You + may want to disable it if you see such problems." + check_extra_config + + enewgroup asterisk + enewgroup dialout 20 + enewuser asterisk -1 -1 /var/lib/asterisk "asterisk,dialout" +} + +src_prepare() { + base_src_prepare + AT_M4DIR=autoconf eautoreconf +} + +src_configure() { + local vmst + + econf \ + --libdir="/usr/$(get_libdir)" \ + --localstatedir="/var" \ + --with-crypto \ + --with-gsm=internal \ + --with-popt \ + --with-ssl \ + --with-z \ + --without-pwlib \ + $(use_with caps cap) \ + $(use_with http gmime) \ + $(use_with newt) \ + $(use_with portaudio) + + # Blank out sounds/sounds.xml file to prevent + # asterisk from installing sounds files (we pull them in via + # asterisk-{core,extra}-sounds and asterisk-moh-opsound. + >"${S}"/sounds/sounds.xml + + # Compile menuselect binary for optional components + emake menuselect.makeopts + + # Broken functionality is forcibly disabled (bug #360143) + menuselect/menuselect --disable chan_misdn menuselect.makeopts + menuselect/menuselect --disable chan_ooh323 menuselect.makeopts + + # Utility set is forcibly enabled (bug #358001) + menuselect/menuselect --enable smsq menuselect.makeopts + menuselect/menuselect --enable streamplayer menuselect.makeopts + menuselect/menuselect --enable aelparse menuselect.makeopts + menuselect/menuselect --enable astman menuselect.makeopts + + # this is connected, otherwise it would not find + # ast_pktccops_gate_alloc symbol + menuselect/menuselect --enable chan_mgcp menuselect.makeopts + menuselect/menuselect --enable res_pktccops menuselect.makeopts + + # SSL is forcibly enabled, IAX2 & DUNDI are expected to be available + menuselect/menuselect --enable pbx_dundi menuselect.makeopts + menuselect/menuselect --enable func_aes menuselect.makeopts + menuselect/menuselect --enable chan_iax2 menuselect.makeopts + + # SQlite3 is now the main database backend, enable related features + menuselect/menuselect --enable cdr_sqlite3_custom menuselect.makeopts + menuselect/menuselect --enable cel_sqlite3_custom menuselect.makeopts + + # The others are based on USE-flag settings + use_select() { + local state=$(use "$1" && echo enable || echo disable) + shift # remove use from parameters + + while [[ -n $1 ]]; do + menuselect/menuselect --${state} "$1" menuselect.makeopts + shift + done + } + + use_select alsa chan_alsa + use_select bluetooth chan_mobile + use_select calendar res_calendar res_calendar_{caldav,ews,exchange,icalendar} + use_select cluster res_corosync + use_select curl func_curl res_config_curl res_curl + use_select dahdi app_dahdibarge app_dahdiras chan_dahdi codec_dahdi res_timing_dahdi + use_select freetds {cdr,cel}_tds + use_select gtalk chan_motif + use_select http res_http_post + use_select iconv func_iconv + use_select jabber res_xmpp + use_select ilbc codec_ilbc format_ilbc + use_select ldap res_config_ldap + use_select lua pbx_lua + use_select mysql app_mysql cdr_mysql res_config_mysql + use_select odbc cdr_adaptive_odbc res_config_odbc {cdr,cel,res,func}_odbc + use_select osplookup app_osplookup + use_select oss chan_oss + use_select postgres {cdr,cel}_pgsql res_config_pgsql + use_select radius {cdr,cel}_radius + use_select snmp res_snmp + use_select span res_fax_spandsp + use_select speex {codec,func}_speex + use_select srtp res_srtp + use_select syslog cdr_syslog + use_select vorbis format_ogg_vorbis + + # Voicemail storage ... + for vmst in ${IUSE_VOICEMAIL_STORAGE/+/}; do + if use ${vmst}; then + menuselect/menuselect --enable $(echo ${vmst##*_} | tr '[:lower:]' '[:upper:]')_STORAGE menuselect.makeopts + fi + done +} + +src_compile() { + ASTLDFLAGS="${LDFLAGS}" emake +} + +src_install() { + mkdir -p "${D}"usr/$(get_libdir)/pkgconfig || die + emake DESTDIR="${D}" installdirs + emake DESTDIR="${D}" install + + if use radius; then + insinto /etc/radiusclient-ng/ + doins contrib/dictionary.digium + fi + if use samples; then + emake DESTDIR="${D}" samples + for conffile in "${D}"etc/asterisk/*.* + do + chown asterisk:asterisk $conffile + chmod 0660 $conffile + done + einfo "Sample files have been installed" + else + einfo "Skipping installation of sample files..." + rm -f "${D}"var/lib/asterisk/mohmp3/* || die + rm -f "${D}"var/lib/asterisk/sounds/demo-* || die + rm -f "${D}"var/lib/asterisk/agi-bin/* || die + rm -f "${D}"etc/asterisk/* || die + fi + rm -rf "${D}"var/spool/asterisk/voicemail/default || die + + # keep directories + diropts -m 0770 -o asterisk -g asterisk + keepdir /etc/asterisk + keepdir /var/lib/asterisk + keepdir /var/spool/asterisk + keepdir /var/spool/asterisk/{system,tmp,meetme,monitor,dictate,voicemail} + diropts -m 0750 -o asterisk -g asterisk + keepdir /var/log/asterisk/{cdr-csv,cdr-custom} + + newinitd "${FILESDIR}"/1.8.0/asterisk.initd4 asterisk + newconfd "${FILESDIR}"/1.8.0/asterisk.confd asterisk + + # install the upgrade documentation + # + dodoc README UPGRADE* BUGS CREDITS + + # install extra documentation + # + if use doc + then + dodoc doc/*.txt + dodoc doc/*.pdf + fi + + # install SIP scripts; bug #300832 + # + dodoc "${FILESDIR}/1.6.2/sip_calc_auth" + dodoc "${FILESDIR}/1.8.0/find_call_sip_trace.sh" + dodoc "${FILESDIR}/1.8.0/find_call_ids.sh" + dodoc "${FILESDIR}/1.6.2/call_data.txt" + + # install logrotate snippet; bug #329281 + # + insinto /etc/logrotate.d + newins "${FILESDIR}/1.6.2/asterisk.logrotate3" asterisk +} + +pkg_postinst() { + # + # Announcements, warnings, reminders... + # + einfo "Asterisk has been installed" + echo + elog "If you want to know more about asterisk, visit these sites:" + elog "http://www.asteriskdocs.org/" + elog "http://www.voip-info.org/wiki-Asterisk" + echo + elog "http://www.automated.it/guidetoasterisk.htm" + echo + elog "Gentoo VoIP IRC Channel:" + elog "#gentoo-voip @ irc.freenode.net" + echo + echo + elog "Please read the Asterisk 11 upgrade document:" + elog "https://wiki.asterisk.org/wiki/display/AST/Upgrading+to+Asterisk+11" +} + +pkg_config() { + einfo "Do you want to reset file permissions and ownerships (y/N)?" + + read tmp + tmp="$(echo $tmp | tr '[:upper:]' '[:lower:]')" + + if [[ "$tmp" = "y" ]] ||\ + [[ "$tmp" = "yes" ]] + then + einfo "Resetting permissions to defaults..." + + for x in spool run lib log; do + chown -R asterisk:asterisk "${ROOT}"var/${x}/asterisk + chmod -R u=rwX,g=rwX,o= "${ROOT}"var/${x}/asterisk + done + + chown -R root:asterisk "${ROOT}"etc/asterisk + chmod -R u=rwX,g=rwX,o= "${ROOT}"etc/asterisk + + einfo "done" + else + einfo "skipping" + fi +} |