Compare commits

...

16 Commits
master ... sme9

Author SHA1 Message Date
Daniel Berteaud aca8e04fc6 Automatic commit of package [ipasserelle-im] release [0.2.18-1].
Created by command:

/usr/bin/tito tag
2020-04-14 19:05:18 +02:00
Daniel Berteaud f9bf55420e Adapt spec file for tito builds 2020-04-14 19:04:53 +02:00
Daniel Berteaud 980f68585c Configure builds with tito 2020-04-14 19:04:02 +02:00
Daniel Berteaud 2b13a9b707 Initialized to use tito. 2020-04-14 19:03:11 +02:00
Daniel Berteaud 3979996240 Add CORS headers 2020-04-14 19:02:54 +02:00
Daniel Berteaud 1ffc0aaaf2 Spec file update 2016-01-23 19:20:22 +01:00
Daniel Berteaud 92dd96624a Reload during ssl-update 2016-01-23 19:18:59 +01:00
Daniel Berteaud fc1e1b0fbe Don't force SSL for acme challenges URI 2016-01-23 16:35:22 +01:00
Daniel Berteaud 5d2754ce96 Spec file update 2014-01-31 15:38:25 +01:00
Daniel Berteaud 8010fb96b6 Raise trafic limit 2014-01-31 15:37:35 +01:00
Daniel Berteaud 19756b2e71 update the spec file 2013-11-13 13:08:05 +01:00
Daniel Berteaud ca5033fec5 x86_64 compatibility 2013-11-13 13:07:25 +01:00
Daniel Berteaud 0e967bfddf Update the spec file 2013-11-13 12:12:39 +01:00
Daniel Berteaud 20117a5ae2 Make spectrum optional 2013-11-13 12:11:18 +01:00
Daniel Berteaud 7ab894da39 Update spec file 2013-11-13 12:10:37 +01:00
Daniel Berteaud 8fbf7ca229 Adapt perl lib path for EL6 2013-11-12 16:40:10 +01:00
11 changed files with 69 additions and 54 deletions

3
.tito/packages/.readme Normal file
View File

@ -0,0 +1,3 @@
the .tito/packages directory contains metadata files
named after their packages. Each file has the latest tagged
version and the project's relative directory.

View File

@ -0,0 +1 @@
0.2.18-1 ./

1
.tito/releasers.conf Symbolic link
View File

@ -0,0 +1 @@
../../tito_libs/releasers.conf

6
.tito/tito.props Normal file
View File

@ -0,0 +1,6 @@
[buildconfig]
builder = tito.builder.Builder
tagger = tito.tagger.VersionTagger
changelog_do_not_remove_cherrypick = 0
changelog_format = %s (%ae)
lib_dir = ../tito_libs

View File

@ -1,29 +0,0 @@
commit f95caac4a514eafe48984122de1243d7785255cf
Author: Daniel Berteaud <daniel@firewall-services.com>
Date: Thu May 24 09:52:29 2012 +0200
revert mod_muc to mnesia
commit 688069c291c754eb1cbeb6c75c0c821199c043a1
Author: Daniel Berteaud <daniel@firewall-services.com>
Date: Wed May 23 18:46:23 2012 +0200
Enable more ODBC modules available in Ejabberd 2.1.11
commit 6ae2143deecbba879b1bd5017eb8884c4fd38de2
Author: Daniel Berteaud <daniel@firewall-services.com>
Date: Tue Apr 24 12:31:29 2012 +0200
create log dir /var/log/ejabberd.run
commit 0841925c8e3847ac861dd1ff2c848059c7da69cb
Author: Daniel Berteaud <daniel@firewall-services.com>
Date: Fri Mar 30 10:49:57 2012 +0200
DisplayName in LDAP Roster
commit af6fdb290f8967f248670fbcfab2bb2553bbcb3e
Author: Daniel Berteaud <daniel@firewall-services.com>
Date: Wed Mar 14 22:30:54 2012 +0100
initial import

View File

@ -24,6 +24,7 @@ event_link("ejabberd-init-domain", 'ipasserelle-update', "60");
event_link("ejabberd-init-domain", 'webapps-update', "60");
safe_symlink("restart", "root/etc/e-smith/events/ejabberd-update/services2adjust/ejabberd");
safe_symlink("sighup", "root/etc/e-smith/events/ssl-update/services2adjust/ejabberd");
safe_symlink("adjust", "root/etc/e-smith/events/ejabberd-update/services2adjust/masq");
safe_symlink("sigusr1", "root/etc/e-smith/events/ejabberd-update/services2adjust/httpd-e-smith");

View File

@ -1,12 +1,8 @@
%define version 0.2.12
%define release 1
%define name ipasserelle-im
Summary: Meta-Package to add Instant Messaging capabilities to your iPasserelle
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Name: ipasserelle-im
Version: 0.2.18
Release: 1%{?dist}
Epoch: 9
License: GPL
Group: Networking/Daemons
Source: %{name}-%{version}.tar.gz
@ -21,7 +17,6 @@ Provides: smeserver-ejabberd
Requires: ipasserelle-base
Requires: ejabberd >= 2.1.11
Requires: ejabberd-modules
Requires: smeserver-spectrum
Requires: smeserver-webapps-common
Requires: smeserver-jappix >= 0.1-3
Requires: smeserver-pam_cas
@ -31,6 +26,25 @@ Meta package to configure Instant Messaging features
on your iPasserelle.
%changelog
* Tue Apr 14 2020 Daniel Berteaud <daniel@firewall-services.com> 0.2.18-1
- new package built with tito
- Add CORS headers for the im vhost
* Sat Jan 23 2016 Daniel Berteaud <daniel@firewall-services.com> 0.2.17-1
- Don't force SSL for acme challenges URI
- Reload during ssl-update
* Fri Jan 31 2014 Daniel Berteaud <daniel@firewall-services.com> 0.2.16-1
- Raise trafic limit
* Wed Nov 13 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2.15-1
- x86_64 compatibility
* Wed Nov 13 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2.14-1
- Make spectrum optional
* Tue Nov 12 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2.13-1
- New branch for SME9
* Thu Oct 17 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2.12-1
- Update the logo used by Jappix in the portal
@ -120,7 +134,6 @@ perl createlinks
--dir '/var/log/ejabberd.run' 'attr(0750,smelog,root)' \
--dir '/var/service/ejabberd/ssl' 'attr(0750,root,ejabberd)' \
> %{name}-%{version}-filelist
echo "%doc CHANGELOG" >> %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)

View File

@ -3,11 +3,11 @@
% Users can use c2s connections:
{access, c2s, [{allow, all}]}.
% Set shaper with name "normal" to limit traffic speed to 10000B/s
{shaper, normal, {maxrate, 10000}}.
% Set shaper with name "normal" to limit traffic speed to 1000000B/s
{shaper, normal, {maxrate, 1000000}}.
% Set shaper with name "fast" to limit traffic speed to 500000B/s
{shaper, fast, {maxrate, 500000}}.
% Set shaper with name "fast" to limit traffic speed to 10000000B/s
{shaper, fast, {maxrate, 10000000}}.
% For all users except admins used "normal" shaper
{access, c2s_shaper, [{none, admin},

View File

@ -16,6 +16,7 @@ if ( $port ne ($modSSL{'TCPPort'} || '443')){
#====================================================================
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
RewriteRule ^/(.*|\$) https://%{HTTP_HOST}/\$1 \[L,R\]
EOF
@ -28,6 +29,8 @@ EOF
ProxyPass / http://localhost:5280/
ProxyPassReverse / http://localhost:5280/
Header set Access-Control-Allow-Origin "*"
<Location />
order deny,allow
deny from all

View File

@ -220,12 +220,14 @@ sub change_settings {
$rec = $db->get('spectrum');
foreach my $proto (@transports){
if (grep ($proto, @gateways)){
$rec->set_prop("$proto",'enabled');
}
else{
$rec->set_prop("$proto",'disabled');
if ($rec){
foreach my $proto (@transports){
if (grep ($proto, @gateways)){
$rec->set_prop("$proto",'enabled');
}
else{
$rec->set_prop("$proto",'disabled');
}
}
}
@ -266,6 +268,8 @@ sub print_gateways
my ($self) = @_;
my $q = $self->{cgi};
my $spectrum = $db->get('spectrum') || return undef;
print "<tr><td class=\"sme-noborders-label\">",
$self->localise('LABEL_GATEWAYS'),
"</td><td>\n";
@ -275,7 +279,6 @@ sub print_gateways
esmith::cgi::genSmallCell($q, $self->localise('PROTOCOL'),"header"),
esmith::cgi::genSmallCell($q, $self->localise('STATUS'),"header"),
);
my $spectrum = $db->get('spectrum');
foreach my $proto (@transports){
my $status = $spectrum->prop($proto) || 'disabled';

View File

@ -27,19 +27,32 @@ SASL_LOG_PATH=/var/log/ejabberd/sasl.log
export SASL_LOG_PATH
EJABBERD_LOG_PATH=/var/log/ejabberd/ejabberd.log
export EJABBERD_LOG_PATH
EJABBERD_SO_PATH=/usr/lib/ejabberd/priv/lib
if [ -d /usr/lib64/ejabberd/priv/lib ]; then
EJABBERD_SO_PATH=/usr/lib64/ejabberd/priv/lib
else
EJABBERD_SO_PATH=/usr/lib/ejabberd/priv/lib
fi
export EJABBERD_SO_PATH
EJABBERD_CONFIG_PATH=/etc/ejabberd/ejabberd.cfg
export EJABBERD_CONFIG_PATH
EJABBERD_MSGS_PATH=/usr/lib/ejabberd/priv/msgs
if [ -d /usr/lib64/ejabberd/priv/msgs ]; then
EJABBERD_MSGS_PATH=/usr/lib64/ejabberd/priv/msgs
else
EJABBERD_MSGS_PATH=/usr/lib/ejabberd/priv/msgs
fi
export EJABBERD_MSGS_PATH
EJABBERD_DB=/var/lib/ejabberd/spool
export EJABBERD_DB
HOME=/var/lib/ejabberd
export HOME
if [ -d /usr/lib64/ejabberd/ebin ]; then
EBIN=/usr/lib64/ejabberd/ebin
else
EBIN=/usr/lib/ejabberd/ebin
fi
exec /usr/local/bin/setuidgid ejabberd \
erl -pa /usr/lib/ejabberd/ebin \
erl -pa $EBIN \
-noinput \
-smp auto +K false +P 250000 \
-sname ejabberd \
@ -49,4 +62,4 @@ exec /usr/local/bin/setuidgid ejabberd \
-ejabberd config \"$EJABBERD_CONFIG_PATH\" \
log_path \"$EJABBERD_LOG_PATH\" \
-sasl sasl_error_logger \{file,\"$SASL_LOG_PATH\"\}