--- rpms/smeserver-freepbx/contribs9/smeserver-freepbx.spec 2016/05/06 08:30:17 1.2 +++ rpms/smeserver-freepbx/contribs9/smeserver-freepbx.spec 2017/05/03 20:03:42 1.31 @@ -1,10 +1,10 @@ -# $Id: smeserver-freepbx.spec,v 1.1 2016/05/06 07:58:15 unnilennium Exp $ +# $Id: smeserver-freepbx.spec,v 1.30 2017/02/25 22:06:29 unnilennium Exp $ # Authority: vip-ire # Name: Daniel Berteaud #%define fpbxversion 2.5.0 -%define version 0.1 -%define release 34 +%define version 13 +%define release 14 %define name smeserver-freepbx Summary: Asterisk web GUI @@ -15,41 +15,15 @@ License: GPL Group: System/Servers Source: %{name}-%{version}.tar.gz -Patch0: smeserver-freepbx-0.1-fop_link.patch -Patch1: smeserver-freepbx-0.1-genzaptelconf.patch -Patch2: smeserver-freepbx-0.1-logrotate.patch -Patch3: smeserver-freepbx-0.1-asterisk_logrotate.patch -Patch4: smeserver-freepbx-0.1-userpanels.patch -Patch5: smeserver-freepbx-0.1-trunk_alert_mail.patch -Patch6: smeserver-freepbx-0.1-trunk_name_in_alert.patch -Patch7: smeserver-freepbx-0.1-postupgrade_to_bootstrap.patch -Patch8: smeserver-freepbx-0.1-zap2dahdi.patch -Patch9: smeserver-freepbx-0.1-full_dahdi_support.patch -Patch10: smeserver-freepbx-0.1-fix_logrotate_event.patch -Patch11: smeserver-freepbx-0.1-retry_install.patch -Patch12: smeserver-freepbx-0.1-recordings_security.patch -Patch13: smeserver-freepbx-0.1-remove_admin_alias.patch -Patch14: smeserver-freepbx-0.1-recordingsfix2bootstrap.patch -Patch15: smeserver-freepbx-0.1-templatize_cdr_mysql.patch -Patch16: smeserver-freepbx-0.1-templatize_manager.patch -Patch17: smeserver-freepbx-0.1-cdr_mysql_template_begin.patch -Patch18: smeserver-freepbx-0.1-clean_crontab.patch -Patch19: smeserver-freepbx-0.1-crontab_script_fixe.patch -Patch20: smeserver-freepbx-0.1-http_cleanup.patch -Patch21: smeserver-freepbx-0.1-cdr_passwd.patch -Patch22: smeserver-freepbx-0.1-fop_separate_service.patch -Patch23: smeserver-freepbx-0.1-check_referer.patch -Patch24: smeserver-freepbx-0.1-dump_astdb_include_functions.patch -Patch25: smeserver-freepbx-0.1-disable_dynamic_hints.patch -Patch26: smeserver-freepbx-0.1-remove_logrotate_conf.patch -Patch27: smeserver-freepbx-0.1-ari_password_from_db.patch -Patch28: smeserver-freepbx-0.1-create_mysql.patch -Patch29: smeserver-freepbx-0.1-template_asterisk_conf.patch -Patch30: smeserver-freepbx-0.1-datadir_in_var_lib.patch -Patch31: smeserver-freepbx-0.1-templates_logrotate.patch -Patch32: smeserver-freepbx-0.1-session_path.patch -Patch33: smeserver-freepbx-0.1-logrotate_misdn.patch -Patch34: smeserver-freepbx-0.1-protect_by_location.patch +Patch0: smeserver-freepbx-13.bz9702.udpports.patch +Patch1: smeserver-freepbx-13.bz9744.patch +Patch2: smeserver-freepbx-13.bz9702-2.patch +Patch3: smeserver-freepbx-13.bz9760.patch +Patch4: smeserver-freepbx-13.bz9918.defaultUDPports.patch +Patch5: smeserver-freepbx-13.bz9860.AutoUpgradeModules.patch +Patch6: smeserver-freepbx-13.bz9637.backupFBX.patch +Patch7: smeserver-freepbx-13.bz10120.noiseAmportal.patch +Patch8: smeserver-freepbx-13.bz10268.updatetktauth.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot URL: http://www.freepbx.org/ @@ -61,13 +35,21 @@ Requires: mysql Requires: httpd Requires: php-pear Requires: /usr/sbin/asterisk -Requires: %{_libdir}/asterisk/modules/app_addon_sql_mysql.so +Requires: asterisk-addons Requires: dahdi-tools Requires: dahdi-linux Requires: sox Requires: mod_auth_tkt Requires: e-smith-base Requires: freepbx-src +Requires: asterisk-sounds-core-en-ulaw +Requires: asterisk-sounds-extra-en-ulaw +Requires: asterisk-voicemail +Requires: asterisk-configs +Requires: ffmpeg +Requires: mpg123 + +Requires: e-smith-manager >= 2.6.0-22 #Buildarch: noarch AutoReqProv: no @@ -78,8 +60,111 @@ FreePBX is a Standardised Implementation This package provide the integration of FreePBX on SME Server. -%changelogi -* Fri May 06 2016 Jean-Philipe Pialasse -34.sme +%changelog +* Wed May 03 2017 Jean-Philipe Pialasse -14.sme +- update TKT auth parameter for SME 9.2 [SME: 10268] + +* Sat Feb 25 2017 Jean-Philipe Pialasse 13-13.sme +- fix noise rebooting and restarting freepbx [SME: 10120] + +* Wed Jan 25 2017 Jean-Philipe Pialasse 13-11.sme +- NFR: auto backup of whole FBX config during pre-backup event [SME: 9637] +- both asdb and fpbx, asterisk config files, freepbx folders, voicemails are part of backup +- 2 versions are kepts +- weekly backup is also done. + +* Mon Jan 23 2017 Jean-Philipe Pialasse 13-10.sme +- fix Missing HTML5 format converters [SME: 9859] +- added requirement for mpg123 and ffmpeg available in smecontribs + +* Mon Jan 23 2017 Jean-Philipe Pialasse 13-9.sme +- update framework before other modules [SME: 9860] + +* Mon Jan 09 2017 Jean-Philipe Pialasse 13-8.sme +- autoupgrade modules [SME: 9860] + +* Mon Jan 09 2017 Jean-Philipe Pialasse 13-7.sme +- fix wrong default UDPPorts on new install [SME: 9918] + +* Mon Oct 24 2016 Jean-Philipe Pialasse 13-6.sme +- fix error while backup with workstation [SME: 9760] + +* Mon Oct 24 2016 Jean-Philipe Pialasse 13-5.sme +-fix typo in smeserver-freepbx-13.bz9744.patch + +* Sun Oct 23 2016 Jean-Philipe Pialasse 13-4.sme +- fix [SME: 9702] +- corrected syntax for port range + +* Sun Oct 23 2016 Jean-Philipe Pialasse 13-3.sme +- fix [SME: 9744] +- fix wrong /tmp folder permission after update +- Thank you Hsing-Foo Wang. + +* Tue Jul 26 2016 Jean-Philipe Pialasse 13-2.sme +- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] + +* Mon Jun 13 2016 Jean-Philipe Pialasse 13-1.sme +- bump version to current Freepbx version 13 + +* Mon Jun 13 2016 Jean-Philipe Pialasse -47.sme +- add all needed port for Freepbx sip pjsip and RTP [SME: 9495] + +* Sat Jun 11 2016 Jean-Philipe Pialasse -46.sme +- fix missing config files (requires asterisk-configs) [SME: 9577] +- fix recuring reconfiguration error while installing digium phone module [SME: 9575] +- added port 5061 for tls to TCP ports [SME: 9576] + +* Thu Jun 09 2016 Jean-Philipe Pialasse -45.sme +- fix wrong logrotate pattern [SME: 9516] +- as the contrib is only in smedev, i do not fix existing log files badly rotated + +* Mon May 16 2016 Jean-Philipe Pialasse 0.1-44.sme +- remove fop db [SME: 9495] +- add some mysql setting for freepbxdb (user, email) +- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-7.patch + +* Sun May 15 2016 Jean-Philipe Pialasse 0.1-43.sme +- add path to ucp module [SME: 9495] +- add 256Mo as default for freepbx php Memory +- add AllowOveride All for .htaccess +- remove httpd config to old FOP panel +- add port 5061 for freepbx +- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-5.patch +- configuration of amportal.conf and its mysql equivalent +- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-6.patch + +* Sun May 15 2016 Jean-Philipe Pialasse 0.1-42.sme +- remove FOP patches [SME: 9495] +- deleted link to expand amportal.conf +- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-4.patch + +* Sun May 15 2016 Jean-Philipe Pialasse 0.1-41.sme +- remove heading of /etc/asterisk/asterisk.conf [SME: 9495] +- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-3.patch +- bump + +* Sun May 15 2016 Jean-Philipe Pialasse 0.1-38.sme +- remove expand template amportal.conf [SME: 9495] +- chown /var/lib/asterisk +- installation configuration options +- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-2.patch +- Requires: asterisk-sounds-core-en-ulaw asterisk-sounds-extra-en-ulaw asterisk-voicemail + +* Sun May 15 2016 Jean-Philipe Pialasse 0.1-37.sme +- new path to sql files [SME: 9495] +- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-1.patch + +* Fri May 06 2016 Jean-Philipe Pialasse 0.1-36.sme +- adapt script to fpbx13 and asterisk 13 [SME: 9495] +- change Requires Requires: %{_libdir}/asterisk/modules/app_addon_sql_mysql.so to +- Requires: asterisk-addons as this is the paquet providing it, and it changed name to app_mysql.so + +* Fri May 06 2016 Jean-Philipe Pialasse 0.1-35.sme +- adapt script to fpbx13 and asterisk 13 [SME: 9495] +- smeserver-freepbx-0.1-Sme9Ast13Fpbx13-0.patch + +* Fri May 06 2016 Jean-Philipe Pialasse 0.1-34.sme - first import to SME9 [SME: 9495] * Sun May 12 2013 JP Pialasse 0.1-33.sme @@ -216,32 +301,6 @@ This package provide the integration of %patch6 -p1 %patch7 -p1 %patch8 -p1 -%patch9 -p1 -%patch10 -p1 -%patch11 -p1 -%patch12 -p1 -%patch13 -p1 -%patch14 -p1 -%patch15 -p1 -%patch16 -p1 -%patch17 -p1 -%patch18 -p1 -%patch19 -p1 -%patch20 -p1 -%patch21 -p1 -%patch22 -p1 -%patch23 -p1 -%patch24 -p1 -%patch25 -p1 -%patch26 -p1 -%patch27 -p1 -%patch28 -p1 -%patch29 -p1 -%patch30 -p1 -%patch31 -p1 -%patch32 -p1 -%patch33 -p1 -%patch34 -p1 %build # Build symlinks @@ -278,6 +337,12 @@ rm -rf $RPM_BUILD_ROOT %post +#bug 9744, restore tmp permissions +if [ `stat -c %U /tmp` == "asterisk" ]; then + chmod o+rwxt /tmp/ + chown root:root /tmp/ +fi + %preun if [ $1 = 0 ] ; then /etc/rc.d/init.d/freepbx stop >& /dev/null || :