Compare commits

..

No commits in common. 'master' and 'sme9' have entirely different histories.
master ... sme9

  1. 3
      .tito/packages/.readme
  2. 1
      .tito/packages/ipasserelle-base
  3. 1
      .tito/releasers.conf
  4. 6
      .tito/tito.props
  5. 28
      ipasserelle-base.spec
  6. 11
      root/etc/cron.monthly/maillog-rotate
  7. 5
      root/etc/e-smith/events/actions/ldap-update-info
  8. 4
      root/etc/e-smith/events/actions/share-modify-scan
  9. 4
      root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userinfo
  10. 4
      root/etc/e-smith/web/functions/userinfo
  11. 1
      root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/userinfo.pm

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

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

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

@ -4,9 +4,9 @@
Summary: Meta-Package to turn a SME Server into an iPasserelle Summary: Meta-Package to turn a SME Server into an iPasserelle
Name: ipasserelle-base Name: %{name}
Version: 0.2.70 Version: %{version}
Release: 1%{?dist} Release: %{release}%{?dist}
Epoch: 9 Epoch: 9
License: GPL License: GPL
Group: Networking/Daemons Group: Networking/Daemons
@ -49,26 +49,6 @@ Based on SMEServer, iPasserelle is a specially configured
SME Server, with some additionnal modules SME Server, with some additionnal modules
%changelog %changelog
* Thu Dec 19 2019 Daniel Berteaud <daniel@firewall-services.com> 0.2.70-1
- Hide warning if year maildir already exists (daniel@firewall-services.com)
* Thu Mar 14 2019 Daniel Berteaud <daniel@firewall-services.com> 0.2.69-1
- Don't try to create or delete scan dir if no user has been passed
(daniel@firewall-services.com)
* Tue Feb 06 2018 Daniel Berteaud <daniel@firewall-services.com> 0.2.68-1
- Handle Bcc being a fully qualified address in rotate script GLPI #30996
(daniel@firewall-services.com)
* Wed Dec 06 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.67-1
- Typo in Category CGI param id (daniel@firewall-services.com)
* Wed Dec 06 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.66-1
- Remove GIT Changelog (daniel@firewall-services.com)
* Wed Dec 06 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.65-1
- new package built with tito
- Add Support for buisnessCategory LDAP field
* Wed Jul 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.64-1 * Wed Jul 19 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2.64-1
- Reduce spamassassin's BL score to 1.0 each - Reduce spamassassin's BL score to 1.0 each
@ -403,7 +383,7 @@ perl createlinks
--file /usr/bin/make-srv 'attr(0755,root,root)' \ --file /usr/bin/make-srv 'attr(0755,root,root)' \
--dir /var/clamav 'attr(0755,clamav,clamav)' \ --dir /var/clamav 'attr(0755,clamav,clamav)' \
> %{name}-%{version}-filelist > %{name}-%{version}-filelist
echo "%doc" >> %{name}-%{version}-filelist echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist %files -f %{name}-%{version}-filelist
%defattr(-,root,root) %defattr(-,root,root)

@ -11,22 +11,15 @@ if [ "$BCC" != "enabled" -o "$ARCHIVE" != "enabled" ]; then
fi fi
USER=$(db configuration getprop qpsmtpd BccUser || echo 'maillog') USER=$(db configuration getprop qpsmtpd BccUser || echo 'maillog')
# Truncate if it's a mail address
USER=${USER%@*}
HOME="/home/e-smith/files/users/$USER" HOME="/home/e-smith/files/users/$USER"
# Stop here if the home dir doesn't exist
if [ \! -d $HOME ]; then
echo "$HOME doesn't exist"
exit 1
fi
MONTH=$(date +%m) MONTH=$(date +%m)
YEAR=$(date +%Y) YEAR=$(date +%Y)
su - -s /bin/bash $USER -c "maildirmake -f $YEAR $HOME/Maildir" 2>&1 > /dev/null su - -s /bin/bash $USER -c "maildirmake -f $YEAR $HOME/Maildir"
su - -s /bin/bash $USER -c "maildirmake -f $YEAR.$MONTH $HOME/Maildir" su - -s /bin/bash $USER -c "maildirmake -f $YEAR.$MONTH $HOME/Maildir"
# Lock mail delivery # Lock mail delivery
chmod +t $HOME chmod +t $HOME
cd $HOME cd $HOME

@ -69,16 +69,14 @@ foreach my $acc (@accounts){
my $initials = $acc->prop('Initials') || ''; my $initials = $acc->prop('Initials') || '';
my $dshell = $acc->prop('DesktopShell') || ''; my $dshell = $acc->prop('DesktopShell') || '';
my $preferredemail = $acc->prop('PreferredEmail') || ''; my $preferredemail = $acc->prop('PreferredEmail') || '';
my $category = $acc->prop('Category') || '';
$preferredemail = "$user\@$domain" if ($preferredemail eq ''); $preferredemail = "$user\@$domain" if ($preferredemail eq '');
my $web = $acc->prop('Url') || ''; my $web = $acc->prop('Url') || '';
my (@postalcode,@mobile,@extension,@fax,@titles,@initials,@dshell,@preferredemail,@category,@web) = (); my (@postalcode,@mobile,@extension,@fax,@titles,@initials,@dshell,@preferredemail,@web) = ();
@postalcode = ($postalcode) unless ($postalcode eq ''); @postalcode = ($postalcode) unless ($postalcode eq '');
@mobile = ($mobile) unless ($mobile eq ''); @mobile = ($mobile) unless ($mobile eq '');
@extension = ($extension) unless ($extension eq ''); @extension = ($extension) unless ($extension eq '');
@fax = ($fax) unless ($fax eq ''); @fax = ($fax) unless ($fax eq '');
@category = ($category) unless ($category eq '');
foreach ($function1, $function2, $function3, $function4){ foreach ($function1, $function2, $function3, $function4){
push @titles, $_ if ($_ ne ''); push @titles, $_ if ($_ ne '');
} }
@ -96,7 +94,6 @@ foreach my $acc (@accounts){
initials => \@initials, initials => \@initials,
desktopLoginShell => \@dshell, desktopLoginShell => \@dshell,
preferredMail => \@preferredemail, preferredMail => \@preferredemail,
businessCategory => \@category,
labeledURI => \@web labeledURI => \@web
} }
); );

@ -14,7 +14,7 @@ my $name = $ARGV [1];
die "Event name missing\n" unless (defined $event); die "Event name missing\n" unless (defined $event);
if ($event eq 'user-create' and defined $name){ if ($event eq 'user-create'){
mkpath "/home/e-smith/files/scan/$name"; mkpath "/home/e-smith/files/scan/$name";
system ("$setfacl", system ("$setfacl",
'-m', '-m',
@ -22,7 +22,7 @@ if ($event eq 'user-create' and defined $name){
'--', '--',
"/home/e-smith/files/scan/$name"); "/home/e-smith/files/scan/$name");
} }
elsif ($event eq 'user-delete' and defined $name){ elsif ($event eq 'user-delete'){
rmtree "/home/e-smith/files/scan/$name"; rmtree "/home/e-smith/files/scan/$name";
} }
else { else {

@ -64,10 +64,6 @@
<trans>Société</trans> <trans>Société</trans>
</entry> </entry>
<entry> <entry>
<base>CATEGORY</base>
<trans>Catégorie</trans>
</entry>
<entry>
<base>STREET_ADDRESS</base> <base>STREET_ADDRESS</base>
<trans>Adresse</trans> <trans>Adresse</trans>
</entry> </entry>

@ -78,10 +78,6 @@ __DATA__
value="get_ldap_value('Company')"> value="get_ldap_value('Company')">
<label>COMPANY</label> <label>COMPANY</label>
</field> </field>
<field type="text" size="30" id="Category"
value="get_ldap_value('Category')">
<label>CATEGORY</label>
</field>
<field type="text" size="30" id="Street" <field type="text" size="30" id="Street"
value="get_ldap_value('Street')"> value="get_ldap_value('Street')">
<label>STREET_ADDRESS</label> <label>STREET_ADDRESS</label>

@ -213,7 +213,6 @@ sub modify_user {
'AltEmail3' => $self->{cgi}->param('AltEmail3'), 'AltEmail3' => $self->{cgi}->param('AltEmail3'),
'AltEmail4' => $self->{cgi}->param('AltEmail4'), 'AltEmail4' => $self->{cgi}->param('AltEmail4'),
'PreferredEmail' => $self->{cgi}->param('PreferredEmail'), 'PreferredEmail' => $self->{cgi}->param('PreferredEmail'),
'Category' => $self->{cgi}->param('Category'),
'Url' => $self->{cgi}->param('Url'), 'Url' => $self->{cgi}->param('Url'),
'Shell' => $self->{cgi}->param('Shell'), 'Shell' => $self->{cgi}->param('Shell'),
'DesktopShell' => $self->{cgi}->param('DesktopShell'), 'DesktopShell' => $self->{cgi}->param('DesktopShell'),

Loading…
Cancel
Save