]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Improving footer
authorJean-Marc Pigeon <jmp@safe.c>
Sat, 15 Nov 2025 05:23:20 +0000 (00:23 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Sat, 15 Nov 2025 05:23:20 +0000 (00:23 -0500)
mailleur.spec.in
www/gesdis.php

index 50532578cbfb9892cf43310abbd55eb8eeb51b8a..72fac5e6bc945301eb6fc57e6312db7f06b733a9 100644 (file)
@@ -205,7 +205,7 @@ Requires    :       gdb
 %attr(0644,root,root) %{_datadir}/%{name}/sql/datatest.def
 
 #=============================================================================
-%package               postgresql
+%package               pgsql
 Summary                :       mailleur using postgresql as Data-base
 
 #-----------------------------------------------------------------------------
@@ -218,11 +218,11 @@ Requires  :       dovecot-postgresql
 
 Obsoletes      :       %{name}-mysql           <= %{version}-%{release}
 #-----------------------------------------------------------------------------
-%description           postgresql
+%description           pgsql
 '%{name}' is configured to work with POSTGRESQL type database
 
 #-----------------------------------------------------------------------------
-%files                 postgresql
+%files                 pgsql
 %defattr(-,root,root,-)
 #dovecot SQL database access
 %attr(0644,%{name},mail) %config(noreplace) %{dovedir}/70-%{name}-pgsql.conf
@@ -230,7 +230,7 @@ Obsoletes   :       %{name}-mysql           <= %{version}-%{release}
 %attr(0755,%{name},mail) %{_libexecdir}/%{name}/bin-posql/*
 
 #-----------------------------------------------------------------------------
-%post                  postgresql
+%post                  pgsql
 OS=`%{_libdir}/%{name}/shell/getsysos.sh`
 if [ "$1" = 1 ]; then
   sed -i                                       \
@@ -270,7 +270,7 @@ case "$OS" in
 #adjusting libexec bin directory
 %{__ln_s} -nsf  ./bin-posql %{_libexecdir}/%{name}/bin
 
-%postun                        postgresql
+%postun                        pgsql
 if [ "$1" = 0 ]; then
   rm -f %{_libexecdir}/%{name}/bin
   rm -f %{_sbindir}/receiver
@@ -279,7 +279,7 @@ if [ "$1" = 0 ]; then
   rm -f %{_sbindir}/sorter
   fi
 
-%posttrans             postgresql
+%posttrans             pgsql
 OS=`%{_libdir}/%{name}/shell/getsysos.sh`
 case "$OS" in
   "sysv"       |                               \
index edcf008f0ecfb482af961d52b2638233d3705259..5d14a8b1870dc6c05c6aee8727438a7f94b36738 100644 (file)
@@ -6,6 +6,7 @@
 //      Display management function
 //
 //==============================================================
+include_once "unienv.php";
 include_once "unilng.php";
 
 //==============================================================
@@ -120,13 +121,27 @@ include   "release.php";
 
 $today=date("Y, D M d H:i:s T");
 
+$dbtype=getenv("DB_TYPE");
+$sql="unknown";
+switch($dbtype) {
+  case 'MYSQL'          :
+    $sql="mysql";
+    break;
+  case 'POSTGRESQL'     :
+    $sql="pgsql";
+    break;
+  default               :
+    $sql="undefined";
+    break;
+}
+
 $STR  = <<<EOT
 
 <hr width="100%" size="8" color="black" noshade>
 <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
 <TR>
 <TD width="30%" align="left"  valign="top" class="smalltxt10">
-Version: $m_release, ($pageref)
+Version: $m_release-$sql, ($pageref)
 </TD>
 <TD width="40%" align="center" valign="top" class="smalltxt10">
 $copyright