Compare commits

...

3 Commits

Author SHA1 Message Date
Daniel Berteaud
f1824c1c90 spec file update 2013-11-19 16:02:31 +01:00
Daniel Berteaud
4dd2a44cf9 Use a DB entry to get the URI 2013-11-19 13:45:04 +01:00
Daniel Berteaud
58f1025cc6 update spec file 2013-11-15 12:25:53 +01:00
2 changed files with 11 additions and 12 deletions

View File

@ -1,14 +1,7 @@
{
use esmith::DomainsDB;
my $d = esmith::DomainsDB->open_ro || die "Couldn't open DomainsDB";
my $vhost = "$SystemName.$DomainName";
foreach ($d->get_all_by_prop(type => 'domain'), $d->get_all_by_prop(type => 'vhost')){
my $root = $_->prop('DocumentRoot') || '';
if ($root eq '/usr/share/opensondage'){
$vhost = $_->key;
last;
}
}
$OUT .= "define('STUDS_URL', '$vhost');";
my $uri = $opensondage{'Uri'} || "$SystemName.$DomainName/opensondage/";
$uri =~ s/https?:\/\///;
$OUT .= "define('STUDS_URL', '$uri');";
}

View File

@ -1,5 +1,5 @@
%define name smeserver-opensondage
%define version 0.1.0
%define version 0.1.2
%define release 1
Summary: sme server integration of opensondage
Name: %{name}
@ -24,6 +24,12 @@ OpenSondage is a tool for making polls to schedule meetings or events,
quickly and easily.
%changelog
* Tue Nov 19 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.2-1.sme
- Use a DB entry to get the URI
* Fri Nov 8 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.1-1.sme
- Replace framadate logo
* Tue Nov 5 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.0-1.sme
- First release