📄 webmail.spec
字号:
# ISTAC package for WebMail
Summary: WebMail web interface to mail
Name: webmail
Version: 0.7.5
Release: 1_SuSE
Copyright: GPL
Group: RBG
URL: http://jwebmail.sourceforge.net
Vendor: Dept. of Computer Sciences, Munich University
Packager: Sebastian Schaffert <wastl@wastl.net>
Requires: jserv >= 1.1, java
Source0: webmail-0.7.5-source.tar.gz
#Patch0: webmail-redhat.diff
%description
WebMail is a Java application that gives users full access to their email
via an easy to use web interface. WebMail is written in 100% Java and can be
run either standalone or as a Java Servlet.
Features include:
- full IMAP support (folders, message flags)
- MIME support
- support for multiple mailboxes
- support for virtual domains
- high performance
%prep
%setup -q -n webmail-0.7.5
#%patch0 -p1 -b .p0
%build
cd $RPM_BUILD_DIR/webmail-0.7.5/src
rm -fR /var/tmp/webmail
mkdir /var/tmp/webmail
DISTDIR=/var/tmp/webmail make dist-bin
%install
cd /usr/lib
rm -fR webmail-0.7.5
tar xzvf /var/tmp/webmail/*.tar.gz
%post
basedir=/usr/lib/webmail-0.7.5
$basedir/bin/install.sh --noprompt
%postun
jservpaths="/etc/httpd/jserv /etc/httpd/conf/jserv"
for i in $jservpaths; do
if [ -d $i ]; then
jservdir=$i
break
fi
done
basedir=/usr/lib/webmail-0.7.4
jservconf=$jservdir/jserv.conf
jservprop=$jservdir/jserv.properties
echo "Removing WebMail entries from Apache JServ configuration ..."
perl -00 -p -i -e 's|(ApJServMount.*webmail.*)|#$1|' $jservconf
perl -00 -p -i -e 's|(webmail\.properties.*)|#$1|' $jservprop
perl -00 -p -i -e 's|(zones=.*),webmail(.*)|$1$2|' $jservprop
rm -f $jservdir/webmail.properties
%files
/usr/lib/webmail-0.7.4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -