[-]
[+]
|
Changed |
vpopmail.spec
|
|
[-]
[+]
|
Added |
vpopmail-5.4.27-makefile.diff
^
|
@@ -0,0 +1,65 @@
+--- Makefile.in.orig 2008-04-28 22:13:53.000000000 +0200
++++ Makefile.in 2008-04-28 22:17:26.000000000 +0200
+@@ -228,7 +228,7 @@
+ GREP = @GREP@
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_PROGRAM = ${INSTALL} -o @vpopuser@ -m 711 -g @vpopgroup@ $(AM_INSTALL_PROGRAM_FLAGS)
++INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
+ INSTALL_STRIP_PROGRAM = ${INSTALL_PROGRAM} -s
+ LDFLAGS = @LDFLAGS@
+@@ -1001,13 +1001,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 \
+ $(DESTDIR)@vpopmaildir@/$$d ; \
+ fi ; \
+ done
+
+ install-data-local:
+- $(INSTALL) -d -g @vpopgroup@ -m 0700 -o @vpopuser@ \
++ $(INSTALL) -d \
+ $(DESTDIR)@vpopmaildir@/@domains_dir@
+
+ echo "-I@vpopmaildir@/include" > \
+@@ -1016,7 +1016,7 @@
+ $(DESTDIR)@vpopmaildir@/etc/lib_deps
+
+ if test ! -r $(VLIMITS); then \
+- $(INSTALL) -o @vpopuser@ -m 0644 -g @vpopgroup@ \
++ $(INSTALL) \
+ vlimits.default $(VLIMITS); \
+ fi
+ if test "@USE_MYSQL@" = "1"; then \
+@@ -1044,23 +1044,23 @@
+ chmod 0640 $(MYSQLCONF) ; \
+ fi
+
+- $(INSTALL) -o root -m 0644 \
++ $(INSTALL) \
+ libvpopmail.a $(DESTDIR)@vpopmaildir@/lib/libvpopmail.a
+
+- $(INSTALL) -o root -m 0444 \
++ $(INSTALL) \
+ 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) $$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) \
+ doc/man_html/*.* $(DESTDIR)@vpopmaildir@/doc/man_html/
+
+- $(INSTALL) -o @vpopuser@ -m 0444 -g @vpopgroup@ \
++ $(INSTALL) \
+ doc/doc_html/*.* $(DESTDIR)@vpopmaildir@/doc/doc_html/
+
+ fix-priv:
|
[-]
[+]
|
Added |
vpopmail-5.4.28-makefile-am.patch
^
|
@@ -0,0 +1,14 @@
+--- vpopmail-5.4.28/Makefile.am.orig 2009-03-10 22:14:55.000000000 +0100
++++ vpopmail-5.4.28/Makefile.am 2009-03-13 21:32:41.000000000 +0100
+@@ -7,9 +7,9 @@
+
+ EXTRA_DIST=README.* cdb/* vcdb.c vldap.c vmysql.c voracle.pc vpgsql.c vsybase.c
+
+-noinst_HEADERS=md5.h vpopmail.h file_lock.h vauth.h vlimits.h maildirquota.h vcdb.h vldap.h vmysql.h voracle.h vpgsql.h vsybase.h vlog.h global.h hmac_md5.h seek.h vutil.h
++noinst_HEADERS=md5.h vpopmail.h file_lock.h vauth.h vlimits.h maildirquota.h vcdb.h vldap.h vmysql.h voracle.h vpgsql.h vsybase.h vlog.h global.h hmac_md5.h seek.h vutil.h copydir.h
+
+-COMMONSOURCES=vpopmail.c md5.c bigdir.c vauth.c file_lock.c vpalias.c seek.c vlimits.c maildirquota.c vutil.c vlistlib.c backfill.c client.c conf.c ippp.c
++COMMONSOURCES=vpopmail.c md5.c bigdir.c vauth.c file_lock.c vpalias.c seek.c vlimits.c maildirquota.c vutil.c vlistlib.c backfill.c client.c conf.c ippp.c copydir.c
+
+ CONFIG_CLEAN_FILES=vauth.c cdb/conf-cc cdb/conf-ld cdb/compile cdb/load
+
|
[-]
[+]
|
Added |
vpopmail-5.4.28-makefile.diff
^
|
@@ -0,0 +1,65 @@
+--- Makefile.in.orig 2009-03-13 21:37:15.000000000 +0100
++++ Makefile.in 2009-03-14 12:02:58.000000000 +0100
+@@ -235,7 +235,7 @@
+ GREP = @GREP@
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_PROGRAM = ${INSTALL} -o @vpopuser@ -m 711 -g @vpopgroup@ $(AM_INSTALL_PROGRAM_FLAGS)
++INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
+ INSTALL_STRIP_PROGRAM = ${INSTALL_PROGRAM} -s
+ LDFLAGS = @LDFLAGS@
+@@ -1059,13 +1059,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 \
+ $(DESTDIR)@vpopmaildir@/$$d ; \
+ fi ; \
+ done
+
+ install-data-local:
+- $(INSTALL) -d -g @vpopgroup@ -m 0700 -o @vpopuser@ \
++ $(INSTALL) -d \
+ $(DESTDIR)@vpopmaildir@/@domains_dir@
+
+ echo "-I@vpopmaildir@/include" > \
+@@ -1079,7 +1079,7 @@
+ fi
+
+ if test ! -r $(VLIMITS); then \
+- $(INSTALL) -o @vpopuser@ -m 0644 -g @vpopgroup@ \
++ $(INSTALL) \
+ vlimits.default $(VLIMITS); \
+ fi
+ if test "@USE_MYSQL@" = "1"; then \
+@@ -1107,23 +1107,23 @@
+ chmod 0640 $(MYSQLCONF) ; \
+ fi
+
+- $(INSTALL) -o root -m 0644 \
++ $(INSTALL) \
+ libvpopmail.a $(DESTDIR)@vpopmaildir@/lib/libvpopmail.a
+
+- $(INSTALL) -o root -m 0444 \
++ $(INSTALL) \
+ config.h $(DESTDIR)@vpopmaildir@/include/vpopmail_config.h
+
+ for include in vpopmail.h config.h vauth.h vlimits.h storage.h client.h conf.h ippp.h ; do \
+- $(INSTALL) -o root -m 0444 $$include \
++ $(INSTALL) $$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) \
+ doc/man_html/*.* $(DESTDIR)@vpopmaildir@/doc/man_html/
+
+- $(INSTALL) -o @vpopuser@ -m 0444 -g @vpopgroup@ \
++ $(INSTALL) \
+ doc/doc_html/*.* $(DESTDIR)@vpopmaildir@/doc/doc_html/
+
+ fix-priv:
|
[-]
[+]
|
Added |
vpopmail-5.4.28-skel4.patch
^
|
@@ -0,0 +1,240 @@
+--- vpopmail-5.4.28/Makefile.in.orig 2009-03-10 22:14:55.000000000 +0100
++++ vpopmail-5.4.28/Makefile.in 2009-03-13 21:37:15.000000000 +0100
+@@ -73,6 +73,7 @@
+ libvpopmail_a-vlimits.$(OBJEXT) \
+ libvpopmail_a-maildirquota.$(OBJEXT) \
+ libvpopmail_a-vutil.$(OBJEXT) libvpopmail_a-vlistlib.$(OBJEXT) \
++ libvpopmail_a-copydir.$(OBJEXT) \
+ libvpopmail_a-client.$(OBJEXT) libvpopmail_a-conf.$(OBJEXT) \
+ libvpopmail_a-ippp.$(OBJEXT) libvpopmail_a-backfill.$(OBJEXT)
+ am_libvpopmail_a_OBJECTS = $(am__objects_1)
+@@ -315,8 +316,8 @@
+ vpopuser = @vpopuser@
+ SUBDIRS = cdb
+ EXTRA_DIST = README.* cdb/* vcdb.c vldap.c vmysql.c voracle.pc vpgsql.c vsybase.c
+-noinst_HEADERS = md5.h vpopmail.h file_lock.h vauth.h vlimits.h maildirquota.h vcdb.h vldap.h vmysql.h voracle.h vpgsql.h vsybase.h vlog.h global.h hmac_md5.h seek.h vutil.h
+-COMMONSOURCES = vpopmail.c md5.c bigdir.c vauth.c file_lock.c vpalias.c seek.c vlimits.c maildirquota.c vutil.c vlistlib.c backfill.c client.c conf.c ippp.c
++noinst_HEADERS = md5.h vpopmail.h file_lock.h vauth.h vlimits.h maildirquota.h vcdb.h vldap.h vmysql.h voracle.h vpgsql.h vsybase.h vlog.h global.h hmac_md5.h seek.h vutil.h copydir.h
++COMMONSOURCES = vpopmail.c md5.c bigdir.c vauth.c file_lock.c vpalias.c seek.c vlimits.c maildirquota.c vutil.c vlistlib.c backfill.c client.c conf.c ippp.c copydir.c
+ CONFIG_CLEAN_FILES = vauth.c cdb/conf-cc cdb/conf-ld cdb/compile cdb/load
+ MYSQLCONF = $(DESTDIR)@vpopmaildir@/etc/vpopmail.mysql
+ VLIMITS = $(DESTDIR)@vpopmaildir@/etc/vlimits.default
+@@ -646,6 +647,12 @@
+ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvpopmail_a_CFLAGS) $(CFLAGS) -c -o libvpopmail_a-client.obj `if test -f 'client.c'; then $(CYGPATH_W) 'client.c'; else $(CYGPATH_W) '$(srcdir)/client.c'; fi`
+
+
++libvpopmail_a-copydir.o: copydir.c
++ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvpopmail_a_CFLAGS) $(CFLAGS) -c -o libvpopmail_a-copydir.o `test -f 'copydir.c' || echo '$(srcdir)/'`copydir.c
++
++libvpopmail_a-copydir.obj: copydir.c
++ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvpopmail_a_CFLAGS) $(CFLAGS) -c -o libvpopmail_a-copydir.obj `if test -f 'copydir.c'; then $(CYGPATH_W) 'copydir.c'; else $(CYGPATH_W) '$(srcdir)/copydir.c'; fi`
++
+ # This directory's subdirectories are mostly independent; you can cd
+ # into them and run `make' without going through this Makefile.
+ # To change the values of `make' variables: instead of editing Makefiles,
+--- vpopmail-5.4.28/config.h.in.orig 2009-03-10 22:14:55.000000000 +0100
++++ vpopmail-5.4.28/config.h.in 2009-03-13 21:33:56.000000000 +0100
+@@ -217,6 +217,9 @@
+ #undef ONCHANGE_SCRIPT
+
+ /* "" */
++#undef SKELETON
++
++/* "" */
+ #undef OPEN_SMTP_CUR_FILE
+
+ /* "" */
+--- vpopmail-5.4.28/configure.orig 2009-03-10 22:14:55.000000000 +0100
++++ vpopmail-5.4.28/configure 2009-03-14 11:55:25.000000000 +0100
+@@ -1324,6 +1324,7 @@
+ --enable-qmail-ext Enable qmail email address extension support.
+ --enable-ip-alias-domains Enable mapping of default domain via reverse ip lookup table.
+ --enable-onchange-script Enable onchange script. See README.onchange for more info.
++ --enable-skeleton Enable skeleton directory. See README.skel for more info.
+ --enable-spamassassin Enable spamassassin. See README.spamassassin for more info.
+ --enable-spamc-prog=PATH Full path to spamc program /usr/{local/}bin/spamc.
+ --enable-maildrop Enable maildrop. See README.maildrop for more info.
+@@ -7069,6 +7070,35 @@
+
+ #----------------------------------------------------------------------
+
++echo "$as_me:$LINENO: checking whether skeleton directory is enabled" >&5
++echo $ECHO_N "checking whether skeleton directory is enabled... $ECHO_C" >&6
++# Check whether --enable-skeleton or --disable-skeleton was given.
++if test "${enable_skeleton+set}" = set; then
++ enableval="$enable_skeleton"
++ ENABLE_SKELETON=$enableval
++else
++
++ ENABLE_SKELETON=0
++
++
++fi;
++
++case $ENABLE_SKELETON in
++ 1*|y*|Y*)
++ echo "$as_me:$LINENO: result: yes" >&5
++echo "${ECHO_T}yes" >&6
++ ENABLE_SKELETON=1
++
++cat >>confdefs.h <<_ACEOF
++#define SKELETON $ENABLE_SKEL
++_ACEOF
++
++ ;;
++ *)
++ echo "$as_me:$LINENO: result: no" >&5
++echo "${ECHO_T}no" >&6
++ ;;
++esac
+
+ #----------------------------------------------------------------------
+
+@@ -9821,6 +9851,16 @@
+ esac
+
+
++case $ENABLE_SKELETON in
++ 1*|y*|Y*)
++ echo "skeleton directory = ON --enable-skeleton"
++ ;;
++ *)
++ echo "skeleton directory = OFF --disable-skeleton (default)"
++ ;;
++esac
++
++
+ case $AUTH_MODULE in
+ cd*|Cd*|CD*)
+ echo " auth module = cdb --enable-auth-module=cdb (default)"
+--- vpopmail-5.4.28/configure.in.orig 2009-03-10 22:14:55.000000000 +0100
++++ vpopmail-5.4.28/configure.in 2009-03-14 11:56:58.000000000 +0100
+@@ -851,6 +851,25 @@
+
+ #----------------------------------------------------------------------
+
++AC_MSG_CHECKING(whether skeleton directory is enabled)
++AC_ARG_ENABLE(skeleton,
++ [ --enable-skeleton Enable skeleton directory. See README.skel for more info.],
++ ENABLE_SKELETON=$enableval,
++ [
++ ENABLE_SKELETON=0
++ ]
++)
++
++case $ENABLE_SKELETON in
++ 1*|y*|Y*)
++ AC_MSG_RESULT(yes)
++ ENABLE_SKELETON=1
++ AC_DEFINE_UNQUOTED(SKELETON,$ENABLE_SKEL,"")
++ ;;
++ *)
++ AC_MSG_RESULT(no)
++ ;;
++esac
+
+ #----------------------------------------------------------------------
+
+@@ -1682,6 +1701,16 @@
+ esac
+
+
++case $ENABLE_SKELETON in
++ 1*|y*|Y*)
++ echo "skeleton directory = ON --enable-skeleton"
++ ;;
++ *)
++ echo "skeleton directory = OFF --disable-skeleton (default)"
++ ;;
++esac
++
++
+ case $AUTH_MODULE in
+ cd*|Cd*|CD*)
+ echo " auth module = cdb --enable-auth-module=cdb (default)"
+--- vpopmail-5.4.28/vpopmail.c.orig 2009-03-10 22:14:55.000000000 +0100
++++ vpopmail-5.4.28/vpopmail.c 2009-03-13 21:34:03.000000000 +0100
+@@ -59,6 +59,10 @@
+ static char relay_tempfile[MAX_BUFF];
+ #endif
+
++#ifdef SKELETON
++#include "copydir.h"
++#endif
++
+ int verrori = 0;
+
+ extern int cdb_seek();
+@@ -1345,7 +1349,8 @@
+ while((mydirent=readdir(mydir))!=NULL){
+ if ( strncmp(mydirent->d_name,".", 2)!=0 &&
+ strncmp(mydirent->d_name,"..", 3)!=0 ) {
+- stat( mydirent->d_name, &statbuf);
++ lstat( mydirent->d_name, &statbuf);
++ if ( S_ISLNK(statbuf.st_mode) ) continue;
+ if ( S_ISDIR(statbuf.st_mode) ) {
+ r_chown( mydirent->d_name, owner, group);
+ } else {
+@@ -2400,8 +2405,24 @@
+ return(NULL);
+ }
+
++#ifdef SKELETON
++ /* copy the skeleton into place */
++ struct stat s;
++ if ( stat ( VPOPMAILDIR "/skel" , &s ) ) {
++ if ( ENOENT != errno )
++ fprintf(stderr,"make_user_dir: stat(%s): %s\n",
++ VPOPMAILDIR "/skel" , strerror(errno) );
++ } else {
++ if ( S_ISDIR ( s.st_mode ) )
++ copydir ( VPOPMAILDIR "/skel" , "." , uid , gid ) ;
++ else
++ fprintf(stderr,"make_user_dir: %s is not a directory\n",
++ VPOPMAILDIR "/skel" );
++ }
++#endif
++
+ for (i = 0; i < (int)(sizeof(dirnames)/sizeof(dirnames[0])); i++) {
+- if (mkdir(dirnames[i],VPOPMAIL_DIR_MODE) == -1){
|
[-]
[+]
|
Deleted |
vpopmail-makefile.diff
^
|
@@ -1,65 +0,0 @@
---- Makefile.in.orig 2008-04-28 22:13:53.000000000 +0200
-+++ Makefile.in 2008-04-28 22:17:26.000000000 +0200
-@@ -228,7 +228,7 @@
- GREP = @GREP@
- INSTALL = @INSTALL@
- INSTALL_DATA = @INSTALL_DATA@
--INSTALL_PROGRAM = ${INSTALL} -o @vpopuser@ -m 711 -g @vpopgroup@ $(AM_INSTALL_PROGRAM_FLAGS)
-+INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
- INSTALL_SCRIPT = @INSTALL_SCRIPT@
- INSTALL_STRIP_PROGRAM = ${INSTALL_PROGRAM} -s
- LDFLAGS = @LDFLAGS@
-@@ -1001,13 +1001,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 \
- $(DESTDIR)@vpopmaildir@/$$d ; \
- fi ; \
- done
-
- install-data-local:
-- $(INSTALL) -d -g @vpopgroup@ -m 0700 -o @vpopuser@ \
-+ $(INSTALL) -d \
- $(DESTDIR)@vpopmaildir@/@domains_dir@
-
- echo "-I@vpopmaildir@/include" > \
-@@ -1016,7 +1016,7 @@
- $(DESTDIR)@vpopmaildir@/etc/lib_deps
-
- if test ! -r $(VLIMITS); then \
-- $(INSTALL) -o @vpopuser@ -m 0644 -g @vpopgroup@ \
-+ $(INSTALL) \
- vlimits.default $(VLIMITS); \
- fi
- if test "@USE_MYSQL@" = "1"; then \
-@@ -1044,23 +1044,23 @@
- chmod 0640 $(MYSQLCONF) ; \
- fi
-
-- $(INSTALL) -o root -m 0644 \
-+ $(INSTALL) \
- libvpopmail.a $(DESTDIR)@vpopmaildir@/lib/libvpopmail.a
-
-- $(INSTALL) -o root -m 0444 \
-+ $(INSTALL) \
- 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) $$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) \
- doc/man_html/*.* $(DESTDIR)@vpopmaildir@/doc/man_html/
-
-- $(INSTALL) -o @vpopuser@ -m 0444 -g @vpopgroup@ \
-+ $(INSTALL) \
- doc/doc_html/*.* $(DESTDIR)@vpopmaildir@/doc/doc_html/
-
- fix-priv:
|
|
Added |
vpopmail-5.4.28.tar.bz2
^
|
[-]
[+]
|
Added |
vpopmail-rpmlintrc
^
|
@@ -0,0 +1,2 @@
+addFilter("permissions-file-setuid-bit")
+addFilter("devel-file-in-non-devel-package")
|