#!/bin/sh #------------------------------------------------------------------------------ # /usr/local/htdocs/mailmanager/mailinfo.cgi - list infos about mail package(s) # # Copyright (c) 2004-2017 Marcus Herleb, marcus(at)herleb(dot)de # Copyright (c) 2018-2018 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2001-11-04 fm # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version.. #------------------------------------------------------------------------------ package='mail' display_package_info() { file=/var/install/packages/mail while read a do case "$a" in ""*) version=`echo "$a" | sed 's###g'` ;; ""*) date=`echo "$a" | sed 's###g'` ;; ""*) status=`echo "$a" | sed 's###g'` ;; ""*) author=`echo "$a" | sed 's###g'` ;; ""*) echo "
Installierte Version " $package case ${version} in 1.2.1|1.3.[012356]|1.4.[03567]|1.13.[01] ) fc=green ti="Version wurde mit Mailmanager getestet" ;; * ) fc=orange ti="Version wurde nicht mit Mailmanager getestet" ;; esac echo " " $version echo "vom: " $date if [ "$status" = "stable" ] then fc=green elif [ "$status" = "testing" ] then fc=orange elif [ "$status" = "unstable" ] then fc=red fi echo "Status: " $status echo " Author: " $author echo "
" ;; esac done < $file } file=/var/install/packages/${package} display_package_info $file