Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to test grimoire by David Kowis : 45a9e059f0cadf7bc41ee9fb20d3bf91592dea46

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: David Kowis <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to test grimoire by David Kowis : 45a9e059f0cadf7bc41ee9fb20d3bf91592dea46
  • Date: Fri, 26 May 2006 14:05:34 -0500

GIT changes to test grimoire by David Kowis :
45a9e059f0cadf7bc41ee9fb20d3bf91592dea46 <dkowis AT shlrm.org>:

mail/etpan-ng/DETAILS | 6 +-
mail/etpan-ng/HISTORY | 3 +
mail/libetpan/DETAILS | 6 +-
mail/libetpan/HISTORY | 3 +
mail/libgmail/DETAILS | 6 +-
mail/libgmail/HISTORY | 3 +
mail/openwebmail/BUILD | 124
-------------------------------------------
mail/openwebmail/CONFIGURE | 8 +-
mail/openwebmail/DEPENDS | 25 +++++++-
mail/openwebmail/DETAILS | 11 +--
mail/openwebmail/HISTORY | 6 ++
mail/openwebmail/INSTALL | 68 +++++++++++++++++++++++
mail/openwebmail/POST_REMOVE | 16 -----
13 files changed, 126 insertions(+), 159 deletions(-)

New commits:
commit 45a9e059f0cadf7bc41ee9fb20d3bf91592dea46
Merge: e4b71d1... 8930022...
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Merge branch 'master' of ssh://scm.sourcemage.org/smgl/grimoire

commit e4b71d123e7f14b862709c9d969128972273d9aa
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Fixing sourceforge cvs url

commit f37f1757c5026de0f33e78f51da38e8d57a35d14
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Fixing sourceforge CVS url

commit 8623f26b86162202fc2096c6ec370c3067fd28b4
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Fixing sourceforge cvs url

commit 622010fdab2c56cbfa574d775dd1a62d38c79ac9
Merge: 6610d4d... 37dacb6...
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Merge branch 'master' of ssh://scm.sourcemage.org/smgl/grimoire

commit 6610d4d304a1d16a1d01678dcf84394220536973
Merge: fd422c6... 93ffa11...
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Merge branch 'master' of ssh://scm.sourcemage.org/smgl/grimoire

commit fd422c604dadd7992d36a2cf7d9b33541fe6aa35
Merge: 104b4e6... df4896b...
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Merge branch 'master' of ssh://scm.sourcemage.org/smgl/grimoire

commit 104b4e6c836939084d61503452f6ff6ac77c51c4
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Modified the openwebmail spell so that it's actually functional.
Still need to test it

commit 70a6fcde936081bfdae79b617bc3e97409663fd9
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Pulling latest test from p4 into git

commit dd29e63ecdfe9ec8f4266734aeddd277b3a86295
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis AT shlrm.org>

Committing a work in progress

diff --git a/mail/etpan-ng/DETAILS b/mail/etpan-ng/DETAILS
index ae51447..d1ee069 100755
--- a/mail/etpan-ng/DETAILS
+++ b/mail/etpan-ng/DETAILS
@@ -1,11 +1,11 @@
SPELL=etpan-ng
if [ "$CVS" = "y" ]; then
VERSION=cvs
- SOURCE=etpan-cvs.tar.bz2
-
SOURCE_URL[0]=cvs://:pserver:anonymous AT cvs.sourceforge.net:/cvsroot/libetpan:etpan-ng
+ SOURCE=etpan-sfcvs.tar.bz2
+
SOURCE_URL[0]=cvs://:pserver:anonymous AT libetpan.cvs.sourceforge.net:/cvsroot/libetpan:etpan-ng
SOURCE_IGNORE=volatile
FORCE_DOWNLOAD=on
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/etpan-cvs
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/etpan-sfcvs
else
VERSION=0.7
SOURCE=$SPELL-$VERSION.tar.gz
diff --git a/mail/etpan-ng/HISTORY b/mail/etpan-ng/HISTORY
index f9bfe36..04f088e 100644
--- a/mail/etpan-ng/HISTORY
+++ b/mail/etpan-ng/HISTORY
@@ -1,3 +1,6 @@
+2006-05-26 David Kowis <dkowis AT shlrm.org>
+ * DETAILS: fixed sourceforge cvs url
+
2006-03-12 Karsten Behrmann <BearPerson AT sourcemage.org>
* DETAILS: (automated) Add KEYWORDS

diff --git a/mail/libetpan/DETAILS b/mail/libetpan/DETAILS
index a98af4d..3f27d7d 100755
--- a/mail/libetpan/DETAILS
+++ b/mail/libetpan/DETAILS
@@ -1,11 +1,11 @@
SPELL=libetpan
if [ "$CVS" = "y" ]; then
VERSION=cvs
- SOURCE=$SPELL-cvs.tar.bz2
-
SOURCE_URL[0]=cvs://:pserver:anonymous AT cvs.sourceforge.net:/cvsroot/libetpan:libetpan
+ SOURCE=$SPELL-sfcvs.tar.bz2
+
SOURCE_URL[0]=cvs://:pserver:anonymous AT libetpan.cvs.sourceforge.net:/cvsroot/libetpan:libetpan
SOURCE_IGNORE=volatile
FORCE_DOWNLOAD=on
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-cvs
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-sfcvs
else
VERSION=0.45
SOURCE=$SPELL-$VERSION.tar.gz
diff --git a/mail/libetpan/HISTORY b/mail/libetpan/HISTORY
index c249a65..644b809 100644
--- a/mail/libetpan/HISTORY
+++ b/mail/libetpan/HISTORY
@@ -1,3 +1,6 @@
+2006-05-26 David Kowis <dkowis AT shlrm.org>
+ * DETAILS: fixed sourceforge cvs url
+
2006-03-22 Andraž "ruskie" Levstik <ruskie AT mages.ath.cx>
* DETAILS: version update 0.44, added library keyword
* DETAILS: version update 0.45
diff --git a/mail/libgmail/DETAILS b/mail/libgmail/DETAILS
index d2b700c..9feaa03 100755
--- a/mail/libgmail/DETAILS
+++ b/mail/libgmail/DETAILS
@@ -6,11 +6,11 @@

SOURCE_HASH=sha512:175e179f12c81f31a542035f7fd8acb23b069d538f772ae0d261ae6befd7ed8f0a38efca76030bf377d436aa890e835033489d1f7d474c429a5aca16fe643454
else
VERSION=cvs
- SOURCE=$SPELL-$VERSION.tar.bz2
+ SOURCE=$SPELL-sf$VERSION.tar.bz2
SOURCE_IGNORE=volatile
-
SOURCE_URL[0]=cvs://:pserver:anonymous AT cvs.sourceforge.net:/cvsroot/libgmail:libgmail
+
SOURCE_URL[0]=cvs://:pserver:anonymous AT libgmail.cvs.sourceforge.net:/cvsroot/libgmail:libgmail
fi
- SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
+ SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-sf$VERSION
BUILD_API=2
LICENSE[0]=GPL

diff --git a/mail/libgmail/HISTORY b/mail/libgmail/HISTORY
index 2cc3115..a117393 100644
--- a/mail/libgmail/HISTORY
+++ b/mail/libgmail/HISTORY
@@ -1,3 +1,6 @@
+2006-05-26 David Kowis <dkowis AT shlrm.org>
+ * DETAILS: fixed sourceforge cvs url
+
2006-03-12 Karsten Behrmann <BearPerson AT sourcemage.org>
* DETAILS: (automated) Add KEYWORDS

diff --git a/mail/openwebmail/BUILD b/mail/openwebmail/BUILD
index 082cf77..31fd22a 100755
--- a/mail/openwebmail/BUILD
+++ b/mail/openwebmail/BUILD
@@ -1,122 +1,2 @@
-(
-
-# apache/apache2 auto setup
-if spell_ok "apache"; then
-# location to httpd root doc dir
- LOC="/usr/share/httpd"
&&
-# same, but to be used withing search/replace regexp
- SLOC="\/usr\/share\/httpd"
-elif spell_ok "apache-mod_ssl"; then
- LOC="/usr/share/httpsd"
&&
- SLOC="\/usr\/share\/httpsd\/htdocs"
- SLOC="\/usr\/share\/httpsd"
-elif spell_ok "apache2"; then
- LOC="/usr/share/apache2"
&&
- SLOC="\/usr\/share\/apache2"
-fi
&&
-
-if [ "$LOC" == "" ]; then
- message "${MESSAGE_COLOR}Unable to find apache or apache2 installed
version..." &&
- message "$SPELL cast aborded. ${DEFAULT_COLOR}"
&&
- return 1
-fi
&&
-
-prepare_install
&&
-
-# move docs
-mkdir -p /usr/doc/openwebmail 1>/dev/null 2>&1
&&
-cp -r ./data/openwebmail/doc/* /usr/doc/openwebmail 1>/dev/null 2>&1
&&
-rm -r -f ./data/openwebmail/doc
&&
-
-# check for previous config file
-if [ -e /etc/openwebmail.conf ]; then
- message " "
&&
- message "${MESSAGE_COLOR}Previous config file detected..."
&&
- message "The new sample config file will be named openwebmail-new.conf."
&&
- message "Your actual config is maintained (beware of conf file format
changes)." &&
- message " ${DEFAULT_COLOR}"
&&
-
- mv ./cgi-bin/openwebmail/etc/openwebmail.conf /etc/openwebmail-new.conf
1>/dev/null 2>&1
-else
- mv ./cgi-bin/openwebmail/etc/openwebmail.conf /etc/openwebmail.conf
1>/dev/null 2>&1
-fi
&&
-
-# move http and bin
-cp -ra ./cgi-bin/* $LOC/cgi-bin/ 1>/dev/null 2>&1
&&
-cp -ra ./data/* $LOC/htdocs/ 1>/dev/null 2>&1
&&
-
-ln -sfn /etc/openwebmail.conf $LOC/cgi-bin/openwebmail/etc/openwebmail.conf
1>/dev/null 2>&1 &&
-
-# Security team'll shoot me...
-message "${MESSAGE_COLOR}Setting up rights... ${DEFAULT_COLOR}"
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-main.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-abook.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-advsearch.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-cal.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-folder.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-vdomain.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-webdisk.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-prefs.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-read.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-viewatt.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-send.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-spell.pl
&&
-chmod 4555 $LOC/cgi-bin/openwebmail/openwebmail-tool.pl
&&
-chmod 775 $LOC/cgi-bin/openwebmail/etc/sessions
&&
-chown root.mail $LOC/cgi-bin/openwebmail/etc/sessions
&&
-
-message "${MESSAGE_COLOR}Setting up log... ${DEFAULT_COLOR}"
&&
-[ -x /var/log/openwebmail.log ] || touch /var/log/openwebmail.log
1>/dev/null 2>&1 &&
-chown nobody.nogroup /var/log/openwebmail.log
&&
-chmod 660 /var/log/openwebmail.log
&&
-
-# At this time, I have no clue about PAM support for Perl... fallback to
unix auth
-#echo "auth required /lib/security/pam_unix.so" >
/etc/pam.d/openwebmail &&
-#echo "account required /lib/security/pam_unix.so">>
/etc/pam.d/openwebmail &&
-#echo "password required /lib/security/pam_unix.so">>
/etc/pam.d/openwebmail &&
-
-# This is for future use of perl+PAM
-#echo "auth required /lib/security/pam_unix.so" >
/etc/pam.d/openwebmail &&
-#echo "account required /lib/security/pam_unix.so">>
/etc/pam.d/openwebmail &&
-#echo "password required /lib/security/pam_unix.so">>
/etc/pam.d/openwebmail &&
-
-#
-# apply a patch to avoid DB error
-#
-#patch $LOC/cgi-bin/openwebmail/openwebmail-tool.pl <
$SCRIPT_DIRECTORY/openwebmail-tool.pl-DB.patch &&
-
-# Tune OWM defaults to SMGL style
-message "${MESSAGE_COLOR}Tuning OpenWebMail defaults to SMGL style...
${DEFAULTS_COLOR}" &&
-message "${MESSAGE_COLOR}Directories... ${DEFAULTS_COLOR}"
&&
-sedit "s/\/var\/mail/\/var\/spool\/mail/"
$LOC/cgi-bin/openwebmail/etc/openwebmail.conf &&
-sedit "s/\/usr\/local\/www\/data\/openwebmail/$SLOC\/htdocs\/openwebmail/"
$LOC/cgi-bin/openwebmail/etc/openwebmail.conf &&
-sedit
"s/\/usr\/local\/www\/cgi-bin\/openwebmail/$SLOC\/cgi-bin\/openwebmail/"
$LOC/cgi-bin/openwebmail/etc/openwebmail.conf &&
-message "${MESSAGE_COLOR}Perl db extentions... ${DEFAULTS_COLOR}"
&&
-sedit "s/^dbm_ext.*$/dbm_ext .db/"
$LOC/cgi-bin/openwebmail/etc/openwebmail.conf &&
-sedit "s/^dbmopen_ext.*$/dbmopen_ext %dbm_ext%/"
$LOC/cgi-bin/openwebmail/etc/openwebmail.conf &&
-sedit "s/^dbmopen_haslock.*$/dbmopen_haslock yes/"
$LOC/cgi-bin/openwebmail/etc/openwebmail.conf &&
-sedit "s/^spellcheck.*$/spellcheck \/usr\/bin\/ispell/"
$LOC/cgi-bin/openwebmail/etc/openwebmail.conf
-message "${MESSAGE_COLOR}Passwd files in OWM auth_unix.pl file...
${DEFAULT_COLOR}" &&
-sedit "s/\/etc\/master.passwd/\/etc\/shadow/"
$LOC/cgi-bin/openwebmail/etc/defaults/auth_unix.conf
-sedit "s/\/usr\/sbin\/pwd_mkdb/none/"
$LOC/cgi-bin/openwebmail/etc/defaults/auth_unix.conf
-
-# Initialize openwebmail
-if [ "$MAIL_STATS" == "n" ]; then
- MAIL_OPT="--no"
-else
- MAIL_OPT="--yes"
-fi
&&
-# Overwrite dbm.conf file
-cp -f $SCRIPT_DIRECTORY/dbm.conf $LOC/cgi-bin/openwebmail/etc/defaults/
1>/dev/null 2>&1 &&
-
-message "${MESSAGE_COLOR}Initializing OpenWebmail... ${DEFAULT_COLOR}"
&&
-$LOC/cgi-bin/openwebmail/openwebmail-tool.pl --init $MAIL_OPT
&&
-
-mv "$LOC/htdocs/openwebmail/help/fr/templates_and_data/version notes.txt" \
- $LOC/htdocs/openwebmail/help/fr/templates_and_data/version_notes.txt
&&
-
-# link index.html to the redirect page
-ln -sf redirect.html $LOC/htdocs/openwebmail/index.html
-
-) > $C_FIFO 2>&1
+mv data/openwebmail html &&
+rmdir data
diff --git a/mail/openwebmail/CONFIGURE b/mail/openwebmail/CONFIGURE
index 9ed74ae..4d25047 100755
--- a/mail/openwebmail/CONFIGURE
+++ b/mail/openwebmail/CONFIGURE
@@ -2,16 +2,18 @@ if [ ! -x /usr/bin/suidperl ]; then
message "${MESSAGE_COLOR}You have to configure perl with setuid/setgid
emulation enabled."
message "Do a cast -r perl and answer y to this option..."
message "This is MANDATORY.${DEFAULT_COLOR}"
-fi
+fi &&
+
+message "${MESSAGE_COLOR}Remember to edit /etc/openwebmail.conf to match
your needs.${DEFAULT_COLOR}" &&

-message "${MESSAGE_COLOR}Remember to edit /etc/openwebmail.conf to match
your needs.${DEFAULT_COLOR}"
+config_query OW_POP3SSL "Enable pop3 over ssl support(adds deps on openssl,
net-ssleay, io-socket-ssl)?" y &&

if ! grep -q "MAIL_STATS" $SPELL_CONFIG; then
if query "Send email report to Openwebmail developpers (this is not
anonymous!) ?" n
then echo "MAIL_STATS=y" >> $SPELL_CONFIG
else echo "MAIL_STATS=n" >> $SPELL_CONFIG
fi
-fi
+fi &&

if ! grep -q "BACKUP" $SPELL_CONFIG; then
if query "Backup $SPELL config on dispel ?" y
diff --git a/mail/openwebmail/DEPENDS b/mail/openwebmail/DEPENDS
index ae06132..b8e09dd 100755
--- a/mail/openwebmail/DEPENDS
+++ b/mail/openwebmail/DEPENDS
@@ -1,5 +1,26 @@
depends APACHE &&
depends perl &&
-depends mail-internet &&
+depends perl-cgi &&
+depends libnet-perl &&
+depends digest &&
depends mime-base64 &&
-depends text-iconv
+depends text-iconv &&
+
+if [[ "$OW_POP3SSL" == "y" ]]; then
+ depends openssl &&
+ depends net-ssleay &&
+ depends io-socket-ssl &&
+fi &&
+
+optional_depends cgi-speedycgi '' '' 'Highly Reccomended, for persistent
running' &&
+optional_depends compress-zlib '' '' 'For HTTP compression'
&&
+optional_depends ispell '' '' 'For spellcheck'
&&
+optional_depends quota '' '' 'For unixfs quota support'
&&
+optional_depends authen-pam '' '' 'For auth_pam support'
&&
+optional_depends clamav '' '' 'For viruscheck'
&&
+optional_depends spamassassin '' '' 'For spamcheck'
&&
+optional_depends antiword '' '' 'For msword preview'
&&
+optional_depends imagemagick '' '' 'For thumbnail support in webdisk'
&&
+optional_depends tnef '' '' 'tnef is used mostly by mails from MS
outlook and Exchange' &&
+optional_depends wget '' '' 'For URL uploading support in webdisk &
msg composing' &&
+optional_depends lsof '' '' 'For openwebmail-tool --unlock'
diff --git a/mail/openwebmail/DETAILS b/mail/openwebmail/DETAILS
index 8d74a65..7706494 100755
--- a/mail/openwebmail/DETAILS
+++ b/mail/openwebmail/DETAILS
@@ -1,9 +1,9 @@
SPELL=openwebmail
- VERSION=2.41
+ VERSION=2.52
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SOURCE_URL[0]=http://openwebmail.com/openwebmail/download/release/$SOURCE
-
SOURCE_HASH=sha512:3b75c5f1fa9f3143b1ad3f94b0fb293e8303b134c81b2230115b2917c7a2dd5454cf48fd92c562e09055aa71377e706519f01cb3203c2cf15585e812113cd13b
+
SOURCE_HASH=sha512:5695c2b7aabf7e1dd124a3ae6aa7716eadef5e8d9c361f70b73575b7a73f7e9216209098174c99afeb5cc5bc3c007e06a595e69229cda6b711ab374cf64f3e9f
SOURCE_URL[1]=http://www.geocities.com/openwebmail/download/$SOURCE
SOURCE_URL[2]=http://ftp.ee.ncku.edu.tw/pub/openwebmail/download/$SOURCE
SOURCE_URL[3]=http://turtle.ee.ncku.edu.tw/openwebmail/download/$SOURCE
@@ -16,13 +16,10 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL
WEB_SITE=http://turtle.ee.ncku.edu.tw/openwebmail
ENTERED=20020323
UPDATED=20041005
- MAINTAINER=mlubrano AT sourcemage.org
+ BUILD_API=2
LICENSE=GPL
KEYWORDS="mail http"
- SHORT="Open WebMail is a webmail"
- MENU_ITEM[0]=${SPELL}
- MENU_EXEC[0]=${SPELL}
- MENU_DESC[0]=${SHORT}
+ SHORT="Open WebMail is a webmail system"
cat << EOF
Open WebMail is a webmail system based on the Neomail version 1.14 from
Ernie Miller. Open WebMail$
EOF
diff --git a/mail/openwebmail/HISTORY b/mail/openwebmail/HISTORY
index cc3127c..4f48941 100644
--- a/mail/openwebmail/HISTORY
+++ b/mail/openwebmail/HISTORY
@@ -1,3 +1,9 @@
+2006-05-19 David Kowis <dkowis AT shlrm.org>
+ * DEPENDS: added more depends and optional deps
+ * CONFIGURE: added a configure question for pop3 over ssl
+ * INSTALL: added this file so that the install actually happens in
install
+ * BUILD: made it prepare my directories
+
2006-03-12 Karsten Behrmann <BearPerson AT sourcemage.org>
* DETAILS: (automated) Add KEYWORDS

diff --git a/mail/openwebmail/INSTALL b/mail/openwebmail/INSTALL
new file mode 100755
index 0000000..3d57193
--- /dev/null
+++ b/mail/openwebmail/INSTALL
@@ -0,0 +1,68 @@
+prepare_install
&&
+
+# move docs
+mkdir -p /usr/share/doc/openwebmail &&
+mv html/doc/* /usr/share/doc/openwebmail &&
+rmdir html/doc &&
+
+# check for previous config file
+if [ -e /etc/openwebmail.conf ]; then
+ message " "
&&
+ message "${MESSAGE_COLOR}Previous config file detected..."
&&
+ message "The new sample config file will be named openwebmail-new.conf."
&&
+ message "Your actual config is maintained (beware of conf file format
changes)." &&
+ message " ${DEFAULT_COLOR}"
&&
+ mv ./cgi-bin/openwebmail/etc/openwebmail.conf /etc/openwebmail-new.conf
+else
+ mv ./cgi-bin/openwebmail/etc/openwebmail.conf /etc/openwebmail.conf
+fi &&
+
+# run the install process
+install_www_files &&
+
+#link /etc/openwebmail.conf to the one in the cgi-bin dir
+ln -sfn /etc/openwebmail.conf
get_install_www_files_dir/${SPELL}/cgi-bin/openwebmail/etc/openwebmail.conf
&&
+
+message "${MESSAGE_COLOR}Setting up log... ${DEFAULT_COLOR}"
&&
+[ -x /var/log/openwebmail.log ] || touch /var/log/openwebmail.log
&&
+chown nobody.nogroup /var/log/openwebmail.log
&&
+chmod 660 /var/log/openwebmail.log
&&
+
+# not really sure what to do with this stuff...
+#echo "auth required /lib/security/pam_unix.so" >
/etc/pam.d/openwebmail &&
+#echo "account required /lib/security/pam_unix.so">>
/etc/pam.d/openwebmail &&
+#echo "password required /lib/security/pam_unix.so">>
/etc/pam.d/openwebmail &&
+
+# Tune OWM defaults to SMGL style
+message "${MESSAGE_COLOR}Tuning OpenWebMail defaults to SMGL style...
${DEFAULTS_COLOR}" &&
+
+message "${MESSAGE_COLOR}Directories... ${DEFAULTS_COLOR}"

&&
+sedit "s|/var/mail/|/var/spool/mail|"
$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/openwebmail.conf
&&
+sedit
"s|/usr/local/www/data/openwebmail|$(get_install_www_files_dir)/${SPELL}/html|"

$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/openwebmail.conf
&&
+sedit
"s|/usr/local/www/cgi-bin/openwebmail|$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail|"

$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/openwebmail.conf
&&
+
+message "${MESSAGE_COLOR}Perl db extentions... ${DEFAULTS_COLOR}"
&&
+sedit "s/^dbm_ext.*$/dbm_ext .db/"
$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/openwebmail.conf
&&
+sedit "s/^dbmopen_ext.*$/dbmopen_ext %dbm_ext%/"
$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/openwebmail.conf
&&
+sedit "s/^dbmopen_haslock.*$/dbmopen_haslock yes/"
$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/openwebmail.conf
&&
+sedit "s/^spellcheck.*$/spellcheck \/usr\/bin\/ispell/"
$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/openwebmail.conf
&&
+
+message "${MESSAGE_COLOR}Passwd files in OWM auth_unix.pl file...
${DEFAULT_COLOR}" &&
+sedit "s/\/etc\/master.passwd/\/etc\/shadow/"
$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/defaults/auth_unix.conf
&&
+sedit "s/\/usr\/sbin\/pwd_mkdb/none/"
$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/defaults/auth_unix.conf
&&
+
+# Initialize openwebmail
+if [ "$MAIL_STATS" == "n" ]; then
+ MAIL_OPT="--no"
+else
+ MAIL_OPT="--yes"
+fi &&
+
+# Overwrite dbm.conf file
+cp -f $SCRIPT_DIRECTORY/dbm.conf
$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/etc/defaults/ &&
+
+message "${MESSAGE_COLOR}Initializing OpenWebmail... ${DEFAULT_COLOR}"
&&
+$(get_install_www_files_dir)/${SPELL}/cgi-bin/openwebmail/openwebmail-tool.pl
--init $MAIL_OPT &&
+
+# link index.html to the redirect page
+ln -sf redirect.html $LOC/htdocs/openwebmail/index.html
diff --git a/mail/openwebmail/POST_REMOVE b/mail/openwebmail/POST_REMOVE
index a1bbac0..6d6a9d3 100755
--- a/mail/openwebmail/POST_REMOVE
+++ b/mail/openwebmail/POST_REMOVE
@@ -2,19 +2,3 @@ if [ "$BACKUP" == "y" ]; then
CUR_DATE=`date +%y.%m.%d-%H.%M.%S`
cp /etc/openwebmail.conf /etc/openwebmail-backup-$CUR_DATE.conf 1>/dev/null
2>&1
fi
-
-# clean
-# apache/apache2 auto setup
-if spell_ok "apache"; then
- LOC="/usr/share/httpd"
-elif spell_ok "apache-mod_ssl"; then
- LOC="/usr/share/httpsd"
-elif spell_ok "apache2"; then
- LOC="/usr/share/apache2"
-fi
-
-
-rm -r -f $LOC/cgi-bin/openwebmail
-rm -r -f $LOC/htdocs/openwebmail
-# not yet rm -f /etc/pam.d/openwebmail
-rm -f /var/log/openwebmail.log



  • [SM-Commit] GIT changes to test grimoire by David Kowis : 45a9e059f0cadf7bc41ee9fb20d3bf91592dea46, David Kowis, 05/26/2006

Archive powered by MHonArc 2.6.24.

Top of Page