Re: [qmailtoaster] Re: vpopmail to old

2010-07-28 Thread Lucian Cristian
here is a patch for vpopmail 5.5.0 spec based on  4.5.17 build  (it 
needs backend cleanup if you only want to compile it on other system)


--- vpopmail-toaster.spec.old   2009-06-12 05:38:38.0 +0300
+++ vpopmail-toaster.spec   2010-07-28 12:41:55.0 +0300
@@ -1,7 +1,7 @@
%definename vpopmail
-%definepversion 5.4.17
+%definepversion 5.5.0
%definebversion 1.3
-%definerpmrelease 7
+%definerpmrelease 1

# INSTRUCTIONS!!! - READ THEM!!!
#
@@ -568,7 +568,7 @@
It handles 10 to 10 million users, and over 500K domains.


-   vpopmail 5.4.17
+   vpopmail 5.5.0
Current settings
---

@@ -686,10 +686,11 @@
# Run configure to create makefile
#

+
./configure --prefix=%{vdir} \
-   --enable-vpopuser=vpopmail \
-   --enable-vpopgroup=vchkpw \
-   --enable-libdir=%{mylibdir} \
+   --with-vpopuser=vpopmail \
+   --with-vpopgroup=vchkpw \
+   --libdir=%{mylibdir} \
   --disable-roaming-users \
   --enable-tcprules-prog=/usr/bin/tcprules \
   --enable-tcpserver-file=/etc/tcprules.d/tcp.smtp \
@@ -698,15 +699,20 @@
   --disable-users-big-dir \
   --enable-qmail-ext \
   --disable-ip-alias-domains \
-   --enable-auth-module=mysql \
   --disable-passwd \
   --enable-logging=v \
-   --enable-log-name=vpopmail \
-   --disable-mysql-limits \
-   --enable-valias \
-   --disable-many-domains
+   --enable-log-name=vpopmail
+make
+echo mysql..
+cd backends/mysql
+./configure --enable-libdir=%{mylibdir} \
+   --disable-many-domains \
+   --enable-valias \
+   --enable-auth-logging \
+   --disable-mysql-limits
make

+
# Delete gcc temp file
#
[ -f %{_tmppath}/%{name}-%{pversion}-gcc ]  rm -f 
%{_tmppath}/%{name}-%{pversion}-gcc

@@ -715,24 +721,39 @@
#
%install
#
+cd backends/mysql
+mkdir -p %{buildroot}%{mylibdir}
+mkdir -p %{buildroot}%{vdir}/etc/vpopmail
+make DESTDIR=%{buildroot} install
+make install
+
+rm -f %{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule
+ln -s %{mylibdir}/vmysql.so 
%{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule

+cd ../..
make DESTDIR=%{buildroot} install-strip


# Set defaults for vpopmail mysql
#
-mv %{buildroot}%{vdir}/etc/vpopmail.mysql 
%{buildroot}%{vdir}/etc/vpopmail.mysql.dist
-echo localhost|0|vpopmail|SsEeCcRrEeTt|vpopmail  
%{buildroot}%{vdir}/etc/vpopmail.mysql

+
+mv %{buildroot}%{vdir}/etc/vpopmail/vpopmail.mysql 
%{buildroot}%{vdir}/etc/vpopmail/vpopmail.mysql.dist
+echo localhost|0|vpopmail|SsEeCcRrEeTt|vpopmail  
%{buildroot}%{vdir}/etc/vpopmail/vpopmail.mysql



# Install domain quota messages
#
+mkdir -p %{buildroot}%{vdir}/domains/
for i in overquota.msg quotawarn.msg; do
- install $i %{buildroot}%{vdir}/domains
+ install $i %{buildroot}%{vdir}/domains/
done

mv %{buildroot}%{vdir}/domains/overquota.msg 
%{buildroot}%{vdir}/domains/.overquota.msg
mv %{buildroot}%{vdir}/domains/quotawarn.msg 
%{buildroot}%{vdir}/domains/.quotawarn.msg


+mkdir -p %{buildroot}%{vdir}/doc/
+cp -a doc/doc_html %{buildroot}%{vdir}/doc/
+cp -a doc/man_html %{buildroot}%{vdir}/doc/
+

#
%pre
@@ -783,20 +804,22 @@
%attr(0755,vpopmail,vchkpw) %dir %{vdir}/bin
%attr(0755,vpopmail,vchkpw) %dir %{vdir}/etc
%attr(0755,vpopmail,vchkpw) %dir %{vdir}/include
-%attr(0755,vpopmail,vchkpw) %dir %{vdir}/lib
+#%attr(0755,vpopmail,vchkpw) %dir %{vdir}/lib
%attr(0700,vpopmail,vchkpw) %dir %{vdir}/domains

%attr(0751,vpopmail,vchkpw) %{vdir}/bin/*
%attr(0644,vpopmail,vchkpw) %{vdir}/domains/.quotawarn.msg
%attr(0644,vpopmail,vchkpw) %{vdir}/domains/.overquota.msg
-%attr(0644,vpopmail,vchkpw) %{vdir}/etc/inc_deps
-%attr(0644,vpopmail,vchkpw) %{vdir}/etc/lib_deps
-%attr(0644,vpopmail,vchkpw) %config(noreplace) %{vdir}/etc/vlimits.default
-%attr(0644,vpopmail,vchkpw) %config(noreplace) %{vdir}/etc/vpopmail.mysql
-%attr(0644,vpopmail,vchkpw) %{vdir}/etc/vpopmail.mysql.dist
-%attr(0444,vpopmail,vchkpw) %{vdir}/include/*
-%attr(0600,vpopmail,vchkpw) %{vdir}/lib/*
-
+%attr(0644,vpopmail,vchkpw) %{vdir}/etc/vpopmail/inc_deps
+%attr(0644,vpopmail,vchkpw) %{vdir}/etc/vpopmail/lib_deps
+%attr(0644,vpopmail,vchkpw) %{vdir}/etc/vpopmail/vpopmail.authmodule
+%attr(0644,vpopmail,vchkpw) %config(noreplace) 
%{vdir}/etc/vpopmail/vlimits.default

Re: [qmailtoaster] Re: vpopmail to old

2010-07-28 Thread Jake Vickers

On 07/28/2010 05:44 AM, Lucian Cristian wrote:
here is a patch for vpopmail 5.5.0 spec based on  4.5.17 build  (it 
needs backend cleanup if you only want to compile it on other system)


Thanks Lucian - I have not gotten to vpopmail yet on v2, but this will 
save me time, as well as help out those who want to upgrade to the newer 
version.


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
 If you need professional help with your setup, contact them today!
-
Please visit qmailtoaster.com for the latest news, updates, and packages.

 To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com

For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




Re: [qmailtoaster] Re: vpopmail to old

2010-07-28 Thread Aleksander Podsiadły
Dnia 2010-07-28, śro o godzinie 12:44 +0300, Lucian Cristian pisze:
 +mkdir -p %{buildroot}%{mylibdir}
 +mkdir -p %{buildroot}%{vdir}/etc/vpopmail
 +make DESTDIR=%{buildroot} install
 +make install
 +
 +rm -f %{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule
 +ln -s %{mylibdir}/vmysql.so 
 %{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule 

Oh thanks. :)

IMO vmysql.so is installed in %{vdir}/lib so should be:
mkdir -p %{buildroot}%{vdir}/lib
and
ln -s %{vdir}/lib/vmysql.so
%{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule

and in section %files something like:
%attr(0755,vpopmail,vchkpw) %dir %{vdir}/lib
%attr(0751,vpopmail,vchkpw) %{vdir}/lib/*.so

You shouldn't use configure option prefix. Using this option implicate
in this version non standard vpopmail directories.

One make install line in your patch is danger. It causes installation
of files in real directories, not in buildroot directory!

I attached my patch, not all tested!

-- 
Pozdrawiam / Regards,
Aleksander Podsiadły
mail: a...@westside.kielce.pl
jid: a...@jabber.westside.kielce.pl
ICQ: 201121279
gg: 9150578

--- vpopmail-toaster.spec.old	2009-06-12 04:38:00.0 +0200
+++ vpopmail-toaster.spec	2010-07-28 16:35:27.0 +0200
@@ -1,7 +1,7 @@
 %define		name vpopmail
-%define		pversion 5.4.17
+%define		pversion 5.5.0
 %define 	bversion 1.3
-%define		rpmrelease 7
+%define		rpmrelease 1
 
 # INSTRUCTIONS!!! - READ THEM!!!
 #
@@ -568,11 +568,15 @@
 It handles 10 to 10 million users, and over 500K domains.
 
  
-   vpopmail 5.4.17
+   vpopmail 5.5.0
 Current settings
 ---
 
-vpopmail directory = /home/vpopmail
+ domains directory = /home/vpopmail/domains
+conf directory = /home/vpopmail/etc
+ bin directory = /home/vpopmail/bin
+ lib directory = /home/vpopmail/lib
+ include directory = /home/vpopmail/include
uid = 89
gid = 89
  roaming users = OFF --disable-roaming-users (default)
@@ -585,19 +589,12 @@
  user dir hashing  = OFF --disable-users-big-dir
 address extensions = ON  --enable-qmail-ext
   ip alias = OFF --disable-ip-alias-domains (default)
-   auth module = mysql --enable-auth-module=mysql
- mysql replication = OFF --disable-mysql-replication (default)
-   sql logging = OFF --disable-sql-logging (default)
-  mysql limits = OFF --disable-mysql-limits (default)
-  MySQL valias = ON  --enable-valias
-  auth inc = -I/usr/include/mysql
-  auth lib = -L/usr/lib64/mysql  -lmysqlclient -lz -lm
+   onchange script = OFF --disable-onchange-script (default)
+ domain quotas = ON  --enable-domainquotas (default)
   system passwords = OFF --disable-passwd (default)
-pop syslog = log success and errors including passwords
- --enable-logging=v
-  auth logging = ON  --enable-auth-logging (default)
-one domain per SQL table = --disable-many-domains
-
+pop syslog = log success and errors including passwords --enable-logging=v
+  spamassassin = OFF --disable-spamassassin (default)
+  maildrop = OFF --disable-maildrop (default)
 
 
 #
@@ -686,10 +683,8 @@
 # Run configure to create makefile
 #
 
-./configure --prefix=%{vdir} \
-	--enable-vpopuser=vpopmail \
-	--enable-vpopgroup=vchkpw \
-	--enable-libdir=%{mylibdir} \
+./configure --with-vpopuser=vpopmail \
+	--with-vpopgroup=vchkpw \
 	--disable-roaming-users \
 	--enable-tcprules-prog=/usr/bin/tcprules \
 	--enable-tcpserver-file=/etc/tcprules.d/tcp.smtp \
@@ -698,13 +693,17 @@
 	--disable-users-big-dir \
 	--enable-qmail-ext \
 	--disable-ip-alias-domains \
-	--enable-auth-module=mysql \
 	--disable-passwd \
 	--enable-logging=v \
-	--enable-log-name=vpopmail \
-	--disable-mysql-limits \
-	--enable-valias \
-	--disable-many-domains
+	--enable-log-name=vpopmail
+make
+echo mysql..
+cd backends/mysql
+./configure --enable-libdir=%{mylibdir} \
+	   --disable-many-domains \
+	   --enable-valias \
+	   --enable-auth-logging \
+	   --disable-mysql-limits
 make
 
 # Delete gcc temp file
@@ -715,24 +714,38 @@
 #
 %install
 #
+cd backends/mysql
+mkdir -p %{buildroot}%{vdir}/lib
+mkdir -p %{buildroot}%{vdir}/etc
+make DESTDIR=%{buildroot} install
+
+rm -f %{buildroot}%{vdir}/etc/vpopmail.authmodule
+ln -s %{vdir}/lib/vmysql.so %{buildroot}%{vdir}/etc/vpopmail.authmodule
+cd ../..
 make DESTDIR=%{buildroot} install-strip
 
 
 # Set defaults for vpopmail mysql
 #
+
 mv %{buildroot}%{vdir}/etc/vpopmail.mysql %{buildroot}%{vdir}/etc/vpopmail.mysql.dist
 echo 

Re: [qmailtoaster] Re: vpopmail to old

2010-07-28 Thread Aleksander Podsiadły
Dnia 2010-07-28, śro o godzinie 16:38 +0200, Aleksander Podsiadły pisze:
 ln -s %{vdir}/lib/vmysql.so
 %{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule 

Should be without vpopmail/ like in my patch.

-- 
Pozdrawiam / Regards,
Aleksander Podsiadły
mail: a...@westside.kielce.pl
jid: a...@jabber.westside.kielce.pl
ICQ: 201121279
gg: 9150578


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today!
-
 Please visit qmailtoaster.com for the latest news, updates, and packages.
 
  To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
 For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




Re: [qmailtoaster] Re: vpopmail to old

2010-07-28 Thread Lucian Cristian
 about that real install I was talking when I spoken about backend 
cleanup, if the files are not found in the mentioned place, vpopmail 
will complain that no backend is installed, of course there may be a 
workaround like qmail fake install..


Regards
Lucian

On 28.07.2010 17:38, Aleksander Podsiadły wrote:

Dnia 2010-07-28, śro o godzinie 12:44 +0300, Lucian Cristian pisze:

+mkdir -p %{buildroot}%{mylibdir}
+mkdir -p %{buildroot}%{vdir}/etc/vpopmail
+make DESTDIR=%{buildroot} install
+make install
+
+rm -f %{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule
+ln -s %{mylibdir}/vmysql.so
%{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule

Oh thanks. :)

IMO vmysql.so is installed in %{vdir}/lib so should be:
mkdir -p %{buildroot}%{vdir}/lib
and
ln -s %{vdir}/lib/vmysql.so
%{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule

and in section %files something like:
%attr(0755,vpopmail,vchkpw) %dir %{vdir}/lib
%attr(0751,vpopmail,vchkpw) %{vdir}/lib/*.so

You shouldn't use configure option prefix. Using this option implicate
in this version non standard vpopmail directories.

One make install line in your patch is danger. It causes installation
of files in real directories, not in buildroot directory!

I attached my patch, not all tested!



-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
 Vickers Consulting Group offers Qmailtoaster support and installations.
   If you need professional help with your setup, contact them today!
-
  Please visit qmailtoaster.com for the latest news, updates, and packages.

   To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
  For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




[qmailtoaster] Re: vpopmail to old

2010-07-28 Thread Eric Shubert

I'm thrilled to see Aleksander and Lucian working this out.
Can we take this to the devel list? ;)

Lucian Cristian wrote:
  about that real install I was talking when I spoken about backend 
cleanup, if the files are not found in the mentioned place, vpopmail 
will complain that no backend is installed, of course there may be a 
workaround like qmail fake install..


Regards
Lucian

On 28.07.2010 17:38, Aleksander Podsiadły wrote:

Dnia 2010-07-28, śro o godzinie 12:44 +0300, Lucian Cristian pisze:

+mkdir -p %{buildroot}%{mylibdir}
+mkdir -p %{buildroot}%{vdir}/etc/vpopmail
+make DESTDIR=%{buildroot} install
+make install
+
+rm -f %{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule
+ln -s %{mylibdir}/vmysql.so 
%{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule 

Oh thanks. :)

IMO vmysql.so is installed in %{vdir}/lib so should be:
mkdir -p %{buildroot}%{vdir}/lib
and
ln -s %{vdir}/lib/vmysql.so
%{buildroot}%{vdir}/etc/vpopmail/vpopmail.authmodule

and in section %files something like:
%attr(0755,vpopmail,vchkpw) %dir %{vdir}/lib
%attr(0751,vpopmail,vchkpw) %{vdir}/lib/*.so

You shouldn't use configure option prefix. Using this option implicate
in this version non standard vpopmail directories.

One make install line in your patch is danger. It causes installation
of files in real directories, not in buildroot directory!

I attached my patch, not all tested!



-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today!



--
-Eric 'shubes'


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
 If you need professional help with your setup, contact them today!
-
Please visit qmailtoaster.com for the latest news, updates, and packages.

 To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com

For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




Re: [qmailtoaster] Re: vpopmail to old

2010-07-28 Thread Aleksander Podsiadły
Dnia 2010-07-28, śro o godzinie 10:28 -0700, Eric Shubert pisze:
 I'm thrilled to see Aleksander and Lucian working this out.
 Can we take this to the devel list? ;) 

Yes, you can.

-- 
Pozdrawiam / Regards,
Aleksander Podsiadły
mail: a...@westside.kielce.pl
jid: a...@jabber.westside.kielce.pl
ICQ: 201121279
gg: 9150578


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today!
-
 Please visit qmailtoaster.com for the latest news, updates, and packages.
 
  To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
 For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




[qmailtoaster] Re: vpopmail to old

2010-07-27 Thread Eric Shubert

Aleksander Podsiadły wrote:

Actual 5.4.17 version of vpopmail in QMT is released 12-Jul-06, current
version is 5.5.0. I tried to compile Dovecot 2.0rc3 and found problem.
QMT vpopmail is to old. :(
IMO this package should bu upgraded.



And it will be upgraded, eventually. vpopmail 5.5.0 is pretty new, and a 
substantial upgrade from 5.4.x. Would you like to help out getting 5.5 
going with QMT? If so, please bring it up on the devel list.


--
-Eric 'shubes'


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
 If you need professional help with your setup, contact them today!
-
Please visit qmailtoaster.com for the latest news, updates, and packages.

 To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com

For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




Re: [qmailtoaster] Re: vpopmail to old

2010-07-27 Thread Aleksander Podsiadły
Dnia 2010-07-27, wto o godzinie 09:32 -0700, Eric Shubert pisze:
 And it will be upgraded, eventually. vpopmail 5.5.0 is pretty new, and
 a 
 substantial upgrade from 5.4.x. Would you like to help out getting
 5.5 
 going with QMT? If so, please bring it up on the devel list. 

Eric,
I have to check am I good enough. ;)

-- 
Pozdrawiam / Regards,
Aleksander Podsiadły
mail: a...@westside.kielce.pl
jid: a...@jabber.westside.kielce.pl
ICQ: 201121279
gg: 9150578


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today!
-
 Please visit qmailtoaster.com for the latest news, updates, and packages.
 
  To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
 For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




[qmailtoaster] Re: vpopmail to old

2010-07-27 Thread Eric Shubert

Aleksander Podsiadły wrote:

Dnia 2010-07-27, wto o godzinie 09:32 -0700, Eric Shubert pisze:

And it will be upgraded, eventually. vpopmail 5.5.0 is pretty new, and
a 
substantial upgrade from 5.4.x. Would you like to help out getting
5.5 
going with QMT? If so, please bring it up on the devel list. 


Eric,
I have to check am I good enough. ;)



Ha! I've no doubt you can handle it. :)

--
-Eric 'shubes'


-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
 If you need professional help with your setup, contact them today!
-
Please visit qmailtoaster.com for the latest news, updates, and packages.

 To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com

For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com