|
发表于 2003-11-29 14:07:19
|
显示全部楼层
Re: [MLSS]Server Suite粗制滥造版发布
[quote:ff349a00ce="Fujinsan"]
四、WebServices小组:
*准确的说应该是"微软技术移植小组",将ASP、ASP.net、C#等现有系统移植到Linux下对于推广Linux作用显著。对WebServices/SOAP等最新技术感兴趣的不妨参与这个小组的工作。
六、Mail小组:
这方面我不怎么懂,只收集了qmail一个软件包。希望认领该小组任务者能够搞个搞定了邮件列表、垃圾防范、Web登陆/Client收发等问题的包.
[/quote]
对这两个,我发表点意见:
1. 将 m$ 的 ASP、ASP.net、C# 移植到 Linux ,可不像嘴皮子说说那么简单的呢。
2. qmail 是不方便做 rpm 包的,我对这个认识比较的深刻。
不信,可以看看我写的脚本的一部分:
[code:1]###################### GuGong ######################
if [ "$_MAILAV" = "YES" ]; then
echo "Checking... Time::HiRes module for perl"
perl -e 'use Time::HiRes;' > /dev/null 2>&1
if [ "$?" != "0" ]; then
echo -en "\\033[0;33m"
echo "If setup exit, Is because your system has NOT Time::HiRes module for perl"
echo "See followed :"
echo "
Your system has NOT Time::HiRes module for perl ? ? ?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^
If you select qmail-scanner's install (Mail AntiVir) what requires the Time::HiRes module,
Please get it from CPAN:
http://search.cpan.org/search?mode=module&query=time%3A%3Ahires
Or, You should get and install it , try
perl -e 'use CPAN; install Time::HiRes'
Or, You can have already installed Time::HiRes module RPM-package for perl, try:
cd /usr/lib/perl5/site_perl/5.6.1/i386-linux
ln -sf ../../../vendor_perl/5.6.1/i386-linux/Time Time
cd /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto
ln -sf ../../../../vendor_perl/5.6.1/i386-linux/auto/Time Time
Then run ./setup again.
"
exit 0
fi
echo " OK !"
fi
.........
###############################################################################
if [ "$_CIMAP" = "YES" ]; then
echo -en "\\033[0;31m"
echo ""
echo "#########----------CourierIMAP install--------#########" >> $QMAIAIL_INSTALL 2>&1
echo ""
echo "############### Installing CourierIMAP,Please waiting... #############"
sh /tmp/gugong/gugongmail/sys/sleep.sh &
EID=$!
cd /tmp/gugong/gugongmail
tar xjf courier-imap-2.1.2.tar.bz2
grep "LANG" /etc/sysconfig/i18n | grep "zh_CN" && export ENABLE_UNICODE="gb2312,big5,utf-8,iso-8859-1"
grep "LANG" /etc/sysconfig/i18n | grep "zh_TW" && export ENABLE_UNICODE="big5,gb2312,utf-8,iso-8859-1"
cd courier-imap-2.1.2
export CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
./configure --prefix=$_COURIER_IMAP \
--disable-root-check \
--enable-unicode --enable-unicode=$ENABLE_UNICODE \
--with-authvchkpw --without-authdaemon --without-authldap \
--without-authuserdb --without-authpam --without-authcram \
--without-ipv6 >> $QMAIAIL_INSTALL 2>&1
make >> $QMAIAIL_INSTALL 2>&1
make check >> $QMAIAIL_INSTALL 2>&1
make install >> $QMAIAIL_INSTALL 2>&1
make install-configure >> $QMAIAIL_INSTALL 2>&1
VPOPMAILUID=`/usr/bin/id -u vpopmail`
VPOPMAILGID=`/usr/bin/id -g vpopmail`
###################### GuGong ######################
# If your system installs fam and fam-devel, courier-imap will support fam 。
# By "ldd /var/qmail/courier-imap/bin/imapd" , see whether your system supports fam 。
if rpm -qa|grep fam > /dev/null 2>&1 && rpm -qa|grep fam-devel > /dev/null 2>&1 ; then
chkconfig --level 2345 portmap on >> $QMAIAIL_INSTALL 2>&1
chkconfig --level 2345 xinetd on >> $QMAIAIL_INSTALL 2>&1
chkconfig --add sgi_fam >> $QMAIAIL_INSTALL 2>&1
# run portmap ( fam needs RPC ! )
/etc/rc.d/init.d/portmap restart >> $QMAIAIL_INSTALL 2>&1
# run xinetd ( fam is run by xinetd )
/etc/rc.d/init.d/xinetd restart >> $QMAIAIL_INSTALL 2>&1
#
sed -e "s/IMAP_USELOCKS=0/IMAP_USELOCKS=1/g" \
$_COURIER_IMAP/etc/imapd.dist \
> .imap.tmp1
sed -e "s/IMAP_ENHANCEDIDLE=0/IMAP_ENHANCEDIDLE=1/g" \
.imap.tmp1 \
> .imap.tmp2
sed -e "s/MAXPERIP=4/MAXPERIP=10/g" \
.imap.tmp2 \
> $_COURIER_IMAP/etc/imapd
#
sed -e "s/MAXPERIP=4/MAXPERIP=10/g" \
$_COURIER_IMAP/etc/pop3d \
> .pop3d.tmp
mv .pop3d.tmp $_COURIER_IMAP/etc/pop3d
#
fi
# Origin script
#echo "/bin/tcpserver -c 100 -v -H -R -u $VPOPMAILUID -g $VPOPMAILGID 0 143 \\
#/var/qmail/courier-imap/sbin/imaplogin \\
#/var/qmail/courier-imap/libexec/authlib/authvchkpw \\
#/var/qmail/courier-imap/bin/imapd Maildir 2>&1 | /var/qmail/bin/splogger qmail-imapd &" > /etc/qmail/imap.sh
# Origin script above
# In fact, we run courier pop3[s] imap[s] by courier-imap it's couriertcpd ( $COURIER-IMAP/libexec/imapd.rc ):
#
#
# 1 Add imapd:
cat > /etc/courier/imapd.sh << EOF
#!/bin/sh
#
#
#/bin/tcpserver -c 100 -v -H -R -u 89 -g 89 0 143 \\
#/var/qmail/courier-imap/sbin/imaplogin \\
#/var/qmail/courier-imap/libexec/authlib/authvchkpw \\
#/var/qmail/courier-imap/bin/imapd Maildir 2>&1 | /var/qmail/bin/splogger qmail-imapd &
# In fact, we run courier pop3[s] imap[s] by courier-imap's couriertcpd ( $COURIER-IMAP/libexec/imapd.rc ):
$_COURIER_IMAP/libexec/imapd.rc start
# Stop it:
#$_COURIER_IMAP/libexec/imapd.rc stop
# Gook Luck to You !!! GuGong
EOF
#
#
# 2 Add pop3d
cat > /etc/courier/pop3d.sh << EOF
#!/bin/sh
#
#
# We run courier-pop3d by couriertcpd itself
$_COURIER_IMAP/libexec/pop3d.rc start
# If stops it, use:
#$_COURIER_IMAP/libexec/pop3d.rc stop
# GuGong
EOF
#
#
if rpm -qa|grep openssl-devel > /dev/null 2>&1 ; then
echo -en "\\033[0;32m"
echo ""
echo " Congratuation ! ! "
echo " Openssl found ! ! Your system will support imap-ssl and pop3-ssl ! ! !"
echo ""
$_COURIER_IMAP/sbin/mkimapdcert >> $QMAIAIL_INSTALL 2>&1
$_COURIER_IMAP/sbin/mkpop3dcert >> $QMAIAIL_INSTALL 2>&1
#
#
# 3 Add imaps
cat > /etc/courier/imaps.sh << EOF
#!/bin/sh
#
#
# We run courier-imaps by couriertcpd itself:
$_COURIER_IMAP/libexec/imapd-ssl.rc start
# If stops it, use:
#$_COURIER_IMAP/libexec/imapd-ssl.rc stop
# GuGong
EOF
#
#
# 4 Add pop3s
cat > /etc/courier/pop3s.sh << EOF
#!/bin/sh
#
#
# We run courier-pop3s by couriertcpd itself.
$_COURIER_IMAP/libexec/pop3d-ssl.rc start
# If stops it, use:
#$_COURIER_IMAP/libexec/pop3d-ssl.rc stop
# GuGong
EOF
#
#
fi
echo "/etc/courier/pop3d.sh" > /etc/courier/start
echo "/etc/courier/pop3s.sh" >> /etc/courier/start
echo "/etc/courier/imapd.sh" >> /etc/courier/start
echo "/etc/courier/imaps.sh" >> /etc/courier/start
chmod 755 /etc/courier/*
# Now we DON't need run qmail by /etc/rc.d/rc.local
grep -q "/etc/courier/start" /etc/rc.d/rc.local || ( echo "/etc/courier/start" >> /etc/rc.d/rc.local )
###################### GuGong ######################
kill $EID >/dev/null 2>&1
echo -en "\\033[1;32m"
echo ""
echo " CourierIMAP Install Done. "
cd /tmp/gugong/gugongmail
fi
###############################################################################
..... .......
###############################################################################
if [ "$_WEBMAIL" = "YES" ]; then
echo -en "\\033[0;31m"
echo ""
echo "#########----------Webmail install--------#########" >> $QMAIAIL_INSTALL 2>&1
echo ""
echo "############### Installing Webmail,Please waiting... #############"
sh /tmp/gugong/gugongmail/sys/sleep.sh &
EID=$!
cd /tmp/gugong/gugongmail
tar jxf webmail3.0.tar.bz2
cd webmail3.0
mv sqwebmail/images/sqwebmail.css sqwebmail/images/sqwebmail.css.Origin
cp ../zh.msg/sqwebmail.css sqwebmail/images/
#
cp -p ../zh.msg/rfc2045.c rfc2045/rfc2045.c
#
cp -p ../zh.msg/sqwebmail.c sqwebmail/sqwebmail.c
#
grep "LANG" /etc/sysconfig/i18n | grep "zh_CN" && ( \
#export DEFAULTLANG="zh-cn"
#export MIMECHARSET="gb2312"
cp -p sqwebmail/images/login.CN.gif sqwebmail/images/login.gif
#
if [ "$_WEBHTTPS" = "YES" ]; then
# --enable-https
# --enable-webpass=no
./configure --prefix=/var/qmail/webmail \
--enable-cgibindir=/var/www/cgi-bin \
--enable-imagedir=/var/www/webmail/images \
--enable-imageurl=/webmail/images \
--with-cachedir=/var/cache/sqwebmail \
--with-ispell=no \
--with-maxargsize=5242880 \
--with-maxformargsize=5242880 \
--with-maxmsgsize=20971520 \
--enable-autopurge=7 \
--enable-maxpurge=90 \
--without-authpam --without-authuserdb --without-authpwd \
--without-authshadow --without-authldap --without-authdaemon \
--with-authvchkpw \
--with-calendarpurge=30 \
--enable-mimecharset=gb2312 \
--with-defaultlang=zh-cn \
--enable-unicode \
--with-fcgi \
--enable-https \
--with-cacheowner=vpopmail >> $QMAIAIL_INSTALL 2>&1
else
# --enable-https=auto
# --enable-webpass=no
./configure --prefix=/var/qmail/webmail \
--enable-cgibindir=/var/www/cgi-bin \
--enable-imagedir=/var/www/webmail/images \
--enable-imageurl=/webmail/images \
--with-cachedir=/var/cache/sqwebmail \
--with-ispell=no \
--with-maxargsize=5242880 \
--with-maxformargsize=5242880 \
--with-maxmsgsize=20971520 \
--enable-autopurge=7 \
--enable-maxpurge=90 \
--without-authpam --without-authuserdb --without-authpwd \
--without-authshadow --without-authldap --without-authdaemon \
--with-authvchkpw \
--with-calendarpurge=30 \
--enable-mimecharset=gb2312 \
--with-defaultlang=zh-cn \
--enable-unicode \
--with-fcgi \
--enable-https=auto \
--with-cacheowner=vpopmail >> $QMAIAIL_INSTALL 2>&1
fi
)
grep "LANG" /etc/sysconfig/i18n | grep "zh_TW" && ( \
#export DEFAULTLANG="zh-tw"
#export MIMECHARSET="big5"
cp -p sqwebmail/images/login.TW.gif sqwebmail/images/login.gif
perl -i -pe 's/gb2312/big5/' rfc2045/rfc2045.c
perl -i -pe 's/zh-cn/zh-tw/' http11/http11.h
perl -i -pe 's/zh-cn/zh-tw/' sqwebmail/configure
perl -i -pe 's/zh-cn/zh-tw/' sqwebmail/configure.in
perl -i -pe 's/zh-cn/zh-tw/' sqwebmail/sqwebmail.c
#perl -i -pe 's/%Y年%m月%d??/%Y?%mる%dら/' sqwebmail/sqwebmail.c
#
if [ "$_WEBHTTPS" = "YES" ]; then
# --enable-https
# --enable-webpass=no
./configure --prefix=/var/qmail/webmail \
--enable-cgibindir=/var/www/cgi-bin \
--enable-imagedir=/var/www/webmail/images \
--enable-imageurl=/webmail/images \
--with-cachedir=/var/cache/sqwebmail \
--with-ispell=no \
--with-maxargsize=5242880 \
--with-maxformargsize=5242880 \
--with-maxmsgsize=20971520 \
--enable-autopurge=7 \
--enable-maxpurge=90 \
--without-authpam --without-authuserdb --without-authpwd \
--without-authshadow --without-authldap --without-authdaemon \
--with-authvchkpw \
--with-calendarpurge=30 \
--enable-mimecharset=big5 \
--with-defaultlang=zh-tw \
--enable-unicode \
--with-fcgi \
--enable-https \
--with-cacheowner=vpopmail >> $QMAIAIL_INSTALL 2>&1
else
# --enable-https=auto
# --enable-webpass=no
./configure --prefix=/var/qmail/webmail \
--enable-cgibindir=/var/www/cgi-bin \
--enable-imagedir=/var/www/webmail/images \
--enable-imageurl=/webmail/images \
--with-cachedir=/var/cache/sqwebmail \
--with-ispell=no \
--with-maxargsize=5242880 \
--with-maxformargsize=5242880 \
--with-maxmsgsize=20971520 \
--enable-autopurge=7 \
--enable-maxpurge=90 \
--without-authpam --without-authuserdb --without-authpwd \
--without-authshadow --without-authldap --without-authdaemon \
--with-authvchkpw \
--with-calendarpurge=30 \
--enable-mimecharset=big5 \
--with-defaultlang=zh-tw \
--enable-unicode \
--with-fcgi \
--enable-https=auto \
--with-cacheowner=vpopmail >> $QMAIAIL_INSTALL 2>&1
fi
)
make configure-check >> $QMAIAIL_INSTALL 2>&1
make >> $QMAIAIL_INSTALL 2>&1
make check >> $QMAIAIL_INSTALL 2>&1
make install-strip >> $QMAIAIL_INSTALL 2>&1
make install-configure >> $QMAIAIL_INSTALL 2>&1
#rm -f /var/www/index.html
mv /var/www/index.html /var/www/index.html.SQWEBMAIL.INSTALL
grep -q "/var/qmail/webmail/cleancache.pl" /etc/cron.d/admin || \
( echo >> /etc/cron.d/admin ; \
echo "*/30 * * * * vpopmail /var/qmail/webmail/cleancache.pl" >> /etc/cron.d/admin )
/etc/rc.d/init.d/crond reload >> $QMAIAIL_INSTALL 2>&1
mkdir -p /var/www/webmail
cp -p /tmp/gugong/gugongmail/sys/webmail.html /var/www/webmail/index.html
###################### GuGong ######################
cd /tmp/gugong/gugongmail
mv /var/qmail/webmail/sendit.sh /var/qmail/webmail/sendit.sh.Origin
sed -e 's%exec /usr/sbin/sendmail -oi -t $DSN -f "$1"%#exec /usr/sbin/sendmail -oi -t $DSN -f "$1"%' \
/var/qmail/webmail/sendit.sh.Origin > /var/qmail/webmail/sendit.sh
#grep "LANG" /etc/sysconfig/i18n | grep "zh_CN" && ( \
# cat zh.msg/sendit.sh.zh_CN >> /var/qmail/webmail/sendit.sh )
#grep "LANG" /etc/sysconfig/i18n | grep "zh_TW" && ( \
# cat zh.msg/sendit.sh.zh_TW >> /var/qmail/webmail/sendit.sh )
cat zh.msg/sendit.sh >> /var/qmail/webmail/sendit.sh
# cd /var/qmail/webmail/html
# rm -rf zh
# ln -s zh-tw zh
chmod 755 /var/qmail/webmail/sendit.sh
#
perl -i -pe s/gugong.net/$_DOMAIN/ /var/qmail/webmail/html/zh-cn/index.html
perl -i -pe s/gugong.net/$_DOMAIN/ /var/qmail/webmail/html/zh-cn/invalid.html
#
perl -i -pe s/gugong.net/$_DOMAIN/ /var/qmail/webmail/html/zh-tw/index.html
perl -i -pe s/gugong.net/$_DOMAIN/ /var/qmail/webmail/html/zh-tw/invalid.html
#
# Add webmail Alias in Apache
grep -q "/var/www/webmail" /etc/httpd/conf/httpd.conf || \
( echo "Alias /webmail /var/www/webmail" >> /etc/httpd/conf/httpd.conf )
/etc/rc.d/init.d/httpd reload >> $QMAIAIL_INSTALL 2>&1
###################### GuGong ######################
kill $EID >/dev/null 2>&1
echo -en "\\033[1;32m"
echo ""
echo " Webmail Install Done. "
cd /tmp/gugong/gugongmail
fi
[/code:1]
我自己看了都头痛呢 !! |
|