[vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The conversion has gone through, and I've disabled CVS and enabled SVN.

In other news, I've made some significant progress on the usage daemon code.  
The
last item I really need to get nailed down before a beta release to developers
is proper handling of requests when queuing.  All the code is there, I just need
to restructure where calls are made that fill in the cached information.

When I have a beta version ready, I will let the list know so I can find out if
there's anyone interested in testing.
- --
/*
Matt Brookings m...@inter7.com   GnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmRuA8ACgkQ6QgvSNlBT3B0QwCeNFSLZNPFrptdcOV9mHpf/oDM
+NYAn2SLCl8i5Bgyuf/6TA8BtyKIZf60
=tL4x
-END PGP SIGNATURE-


Re: [vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread aledr
Is there a way to include a flag to allow non-root install (like in
clamav)? It makes easy the process of packaging RPMs.
For now I'm using the attached patch (5.4.27).

On Tue, Feb 10, 2009 at 3:35 PM, Matt Brookings m...@inter7.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Wouter van der Schagt wrote:
 Sounds good, I would like to test it when it's ready :)

 Great!  When it's ready, I'll send an email to the list along with a 
 description
 of what testing will entail and what will be required of potential beta 
 testers.
 - --
 /*
Matt Brookings m...@inter7.com   GnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
 */
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmRuuYACgkQ6QgvSNlBT3BoEACbBsLZzXIXuaIZqFI9gaM/fDYF
 hjIAoJlhLRMXQcGD0WLxhPGNNK1a5Dtq
 =k6rL
 -END PGP SIGNATURE-

--
[ ]'s
Aledr - Alexandre
OpenSource Solutions for SmallBusiness Problems


!DSPAM:4991bc7232681314419158!
diff -Naur ./Makefile.am vpopmail-5.4.27u/Makefile.am
--- ./Makefile.am	2008-10-10 00:01:35.0 -0300
+++ vpopmail-5.4.27/Makefile.am	2008-10-10 00:07:40.0 -0300
@@ -13,7 +13,7 @@
 
 CONFIG_CLEAN_FILES=vauth.c cdb/conf-cc cdb/conf-ld cdb/compile cdb/load
 
-INSTALL_PROGRAM= ${INSTALL} -o @vpopuser@ -m 711 -g @vpopgroup@ $(AM_INSTALL_PROGRAM_FLAGS)
+INSTALL_PROGRAM= ${INSTALL} -m 711 $(AM_INSTALL_PROGRAM_FLAGS)
 INSTALL_STRIP_PROGRAM=${INSTALL_PROGRAM} -s
 
 MYSQLCONF=$(DESTDIR)@vpopmaildir@/etc/vpopmail.mysql
@@ -109,13 +109,13 @@
 install-exec-am:
 	for d in bin doc etc include lib ; do \
 	  if test ! -d $(DESTDIR)@vpopmaildir@/$$d; then \
-	$(INSTALL) -d -g @vpopgroup@ -m 0755 -o @vpopuser@ \
+	$(INSTALL) -d -m 0755 \
 	  $(DESTDIR)@vpopmaildir@/$$d ; \
 	  fi ; \
 	done
 
 install-data-local:
-	$(INSTALL) -d -g @vpopgroup@ -m 0700 -o @vpopuser@ \
+	$(INSTALL) -d -m 0700 \
 	  $(DESTDIR)@vpopmaildir@/@domains_dir@
 
 	echo -...@vpopmaildir@/include  \
@@ -124,7 +124,7 @@
 	 $(DESTDIR)@vpopmaildir@/etc/lib_deps
 
 	if test ! -r $(VLIMITS); then \
-	  $(INSTALL) -o @vpopuser@ -m 0644 -g @vpopgroup@ \
+	  $(INSTALL) -m 0644 \
 	vlimits.default $(VLIMITS); \
 	fi
 	if test @USE_MYSQL@ = 1; then \
@@ -147,28 +147,28 @@
 	echo #   If host is 'localhost', then sockets (Unix) or named pipes (Windows)  $(MYSQLCONF); \
 	echo #   will be used instead of TCP/IP to connect to the server.$(MYSQLCONF); \
 	  fi ; \
-	  chown @vpopuser@  $(MYSQLCONF) ; \
-	  chgrp @vpopgroup@ $(MYSQLCONF) ; \
+	  #chown @vpopuser@  $(MYSQLCONF) ; \
+	  #chgrp @vpopgroup@ $(MYSQLCONF) ; \
 	  chmod 0640$(MYSQLCONF) ; \
 	fi
 
-	$(INSTALL) -o root -m 0644 \
+	$(INSTALL) -m 0644 \
 	  libvpopmail.a $(DESTDIR)@vpopmaildir@/lib/libvpopmail.a
 
-	$(INSTALL) -o root -m 0444 \
+	$(INSTALL) -m 0444 \
 	  config.h $(DESTDIR)@vpopmaildir@/include/vpopmail_config.h
 
 	for include in vpopmail.h config.h vauth.h vlimits.h ; do \
-	$(INSTALL) -o root -m 0444 $$include \
+	$(INSTALL) -m 0444 $$include \
 		$(DESTDIR)@vpopmaildir@/include/ ; \
 	done
 
 	$(INSTALL) -d $(DESTDIR)@vpopmaildir@/doc/man_html
 	$(INSTALL) -d $(DESTDIR)@vpopmaildir@/doc/doc_html
-	$(INSTALL) -o @vpopuser@ -m 0444 -g @vpopgroup@ \
+	$(INSTALL) -m 0444 \
 	  doc/man_html/*.* $(DESTDIR)@vpopmaildir@/doc/man_html/
 
-	$(INSTALL) -o @vpopuser@ -m 0444 -g @vpopgroup@ \
+	$(INSTALL) -m 0444 \
 	  doc/doc_html/*.* $(DESTDIR)@vpopmaildir@/doc/doc_html/
 
 fix-priv:


Re: [vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

aledr wrote:
 Is there a way to include a flag to allow non-root install (like in
 clamav)? It makes easy the process of packaging RPMs.
 For now I'm using the attached patch (5.4.27).

What does this patch do exactly?  From looking at the patch and trying it,
I don't see any difference in operation related to the requirement of root.
- --
/*
Matt Brookings m...@inter7.com   GnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmRxJAACgkQ6QgvSNlBT3AlbgCfV9fATBQB+caa5+rzKqe/anJv
WqoAn29ix5o+Q62VIRKaBZfYg+4/VIhy
=e7W/
-END PGP SIGNATURE-


Re: [vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread Manvendra Bhangui
On Tue, Feb 10, 2009 at 11:46 PM, Matt Brookings m...@inter7.com wrote:


 What does this patch do exactly?  From looking at the patch and trying it,
 I don't see any difference in operation related to the requirement of root.

The patch removes all references to user/groups in /etc/passwd and hence
dependency of having vpopmail user in /etc/passwd.

This will allow compilation of vpopmail without root. It will also allow
installation as non-root in a destination directory owned by the user.
e.g.
make DESTDIR=$HOME/vpopmail install

Once you do this, it would be trivial writing a .spec file for vpopmail and
build rpm as non-root.


!DSPAM:4991c70532683868620980!


Re: [vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread aledr
When using some build environment to package It's not allowed to add
user's and groups into the chroot so the lines with -o @vpopuser@
and -g @vpopgroup@ will fail.
We just add the user, group and ownership in another section in the
spec file. (The compilation flag can solve the problem
inserting/removing the code for user and group permission).

On Tue, Feb 10, 2009 at 4:16 PM, Matt Brookings m...@inter7.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 aledr wrote:
 Is there a way to include a flag to allow non-root install (like in
 clamav)? It makes easy the process of packaging RPMs.
 For now I'm using the attached patch (5.4.27).

 What does this patch do exactly?  From looking at the patch and trying it,
 I don't see any difference in operation related to the requirement of root.
 - --
 /*
Matt Brookings m...@inter7.com   GnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
 */
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmRxJAACgkQ6QgvSNlBT3AlbgCfV9fATBQB+caa5+rzKqe/anJv
 WqoAn29ix5o+Q62VIRKaBZfYg+4/VIhy
 =e7W/
 -END PGP SIGNATURE-

--
[ ]'s
Aledr - Alexandre
OpenSource Solutions for SmallBusiness Problems

!DSPAM:4991c7b232682185011132!



Re: [vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread aledr
On Tue, Feb 10, 2009 at 4:27 PM, Manvendra Bhangui mbhan...@gmail.com wrote:
 On Tue, Feb 10, 2009 at 11:46 PM, Matt Brookings m...@inter7.com wrote:

 What does this patch do exactly?  From looking at the patch and trying it,
 I don't see any difference in operation related to the requirement of
 root.

 The patch removes all references to user/groups in /etc/passwd and hence
 dependency of having vpopmail user in /etc/passwd.

 This will allow compilation of vpopmail without root. It will also allow
 installation as non-root in a destination directory owned by the user.
 e.g.
 make DESTDIR=$HOME/vpopmail install

 Once you do this, it would be trivial writing a .spec file for vpopmail and
 build rpm as non-root.

And trivially creating a problem with HFS or FSB.

 
--
[ ]'s
Aledr - Alexandre
OpenSource Solutions for SmallBusiness Problems

!DSPAM:4991c86332685997919599!



Re: [vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Manvendra Bhangui wrote:
 On Tue, Feb 10, 2009 at 11:46 PM, Matt Brookings m...@inter7.com
 mailto:m...@inter7.com wrote:
 
 
 What does this patch do exactly?  From looking at the patch and
 trying it,
 I don't see any difference in operation related to the requirement
 of root.
 
 The patch removes all references to user/groups in /etc/passwd and hence
 dependency of having vpopmail user in /etc/passwd.

The configure script still expects you to be root, so the patch needs to adjust
for that as well.

Having a flag like --disable-root-check to disable the configuration root check,
and then using --prefix to set where to install to might work.  This patch seems
only to address a single person's need is kind of what I'm saying, and so, it 
can't
be added to the vpopmail project.

I think the option is a good idea and just needs to be implemented for the 
project.
- --
/*
Matt Brookings m...@inter7.com   GnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmRyKkACgkQ6QgvSNlBT3DjOACeNE8qdoDjc+nsgT0sHDxX7fj1
6awAnjMbJGDXXk8UFLAp+mnugRqgew+S
=nOP+
-END PGP SIGNATURE-


Re: [vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread aledr
On Tue, Feb 10, 2009 at 4:34 PM, Matt Brookings m...@inter7.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Manvendra Bhangui wrote:
 On Tue, Feb 10, 2009 at 11:46 PM, Matt Brookings m...@inter7.com
 mailto:m...@inter7.com wrote:


 What does this patch do exactly?  From looking at the patch and
 trying it,
 I don't see any difference in operation related to the requirement
 of root.

 The patch removes all references to user/groups in /etc/passwd and hence
 dependency of having vpopmail user in /etc/passwd.

 The configure script still expects you to be root, so the patch needs to 
 adjust
 for that as well.

 Having a flag like --disable-root-check to disable the configuration root 
 check,
 and then using --prefix to set where to install to might work.  This patch 
 seems
 only to address a single person's need is kind of what I'm saying, and so, it 
 can't
 be added to the vpopmail project.

 I think the option is a good idea and just needs to be implemented for the 
 project.

I agree to add an option, I sent the patch just to explain myself. =D
Can I write the modifications or someone of inter7 will do that?

Thanks for this.

 - --
 /*
Matt Brookings m...@inter7.com   GnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
 */
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmRyKkACgkQ6QgvSNlBT3DjOACeNE8qdoDjc+nsgT0sHDxX7fj1
 6awAnjMbJGDXXk8UFLAp+mnugRqgew+S
 =nOP+
 -END PGP SIGNATURE-

--
[ ]'s
Aledr - Alexandre
OpenSource Solutions for SmallBusiness Problems

!DSPAM:4991cc5e32688365252450!



Re: [vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread Manvendra Bhangui
On Wed, Feb 11, 2009 at 12:14 AM, aledr matrixworkstat...@gmail.com wrote:

 I agree to add an option, I sent the patch just to explain myself. =D
 Can I write the modifications or someone of inter7 will do that?


the option enable-non-root-build has already been put by someone in
configure script.


-- 
Regards Manvendra - http://www.indimail.org


!DSPAM:4991cd5932687639499607!


Re: [vchkpw] vpopmail now hosted in a Subversion repository

2009-02-10 Thread Matt Brookings
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

aledr wrote:
 I agree to add an option, I sent the patch just to explain myself. =D
 Can I write the modifications or someone of inter7 will do that?

Any patch you put together, make off the trunk in Subversion, and then upload to
the patch section on Sourceforge.

Manvendra Bhangui has suggested fixing/using the existing --enable-root-build 
option.
- --
/*
Matt Brookings m...@inter7.com   GnuPG Key D9414F70
Software developer Systems technician
Inter7 Internet Technologies, Inc. (815)776-9465
*/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmRzWIACgkQ6QgvSNlBT3AvKACgqa+Cja2rzag1D5qt2DOqCbeX
yOEAoKNRxKep0cMrPkUlvbVka3HXZhmB
=WDKB
-END PGP SIGNATURE-