summaryrefslogtreecommitdiff
path: root/mail/vpopmail/files
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2003-09-10 09:41:33 +0000
committerPeter Pentchev <roam@FreeBSD.org>2003-09-10 09:41:33 +0000
commitd7dea455497cde96e629410063832756e3ab9a32 (patch)
tree175b9834cb392916f89d52fad1222bf033a5d810 /mail/vpopmail/files
parentAdd ruby-criteria, a Ruby module for SQL query abstraction, and (diff)
Update to 5.3.27, USE_MYSQL, de-quote COMMENT, update the knobs info,
and other assorted fixes, mostly from Alex's PR. PR: 56462 Submitted by: Alex Dupre <sysadmin@alexdupre.com> Ob-woohoo: run-time configuration of default-domain and MySQL info; at last it is possible to build a single package for deploying on multiple servers!
Notes
Notes: svn path=/head/; revision=88912
Diffstat (limited to 'mail/vpopmail/files')
-rw-r--r--mail/vpopmail/files/patch-Makefile.in14
-rw-r--r--mail/vpopmail/files/patch-configure60
-rw-r--r--mail/vpopmail/files/patch-vlimits.c29
3 files changed, 36 insertions, 67 deletions
diff --git a/mail/vpopmail/files/patch-Makefile.in b/mail/vpopmail/files/patch-Makefile.in
new file mode 100644
index 000000000000..52cd7794c969
--- /dev/null
+++ b/mail/vpopmail/files/patch-Makefile.in
@@ -0,0 +1,14 @@
+--- Makefile.in.orig Thu Sep 4 23:45:08 2003
++++ Makefile.in Thu Sep 4 23:46:17 2003
+@@ -705,10 +705,7 @@
+
+ if test "@USE_MYSQL@" = "1"; then \
+ if test ! -r $(MYSQLCONF); then \
+- echo "# MySQL settings, line 1 is config for read-only," > $(MYSQLCONF); \
+- echo "# line 2 is config for update. Settings for each" >> $(MYSQLCONF); \
+- echo "# line: server|port|user|password|database" >> $(MYSQLCONF); \
+- echo "localhost|0|root|secret|vpopmail" >> $(MYSQLCONF); \
++ touch $(MYSQLCONF); \
+ fi ; \
+ chown @vpopuser@ $(MYSQLCONF) ; \
+ chgrp @vpopgroup@ $(MYSQLCONF) ; \
diff --git a/mail/vpopmail/files/patch-configure b/mail/vpopmail/files/patch-configure
index 07ab9b4f24a2..dff6d39e78a5 100644
--- a/mail/vpopmail/files/patch-configure
+++ b/mail/vpopmail/files/patch-configure
@@ -1,6 +1,6 @@
---- configure.old Thu Feb 13 17:37:40 2003
-+++ configure Thu Feb 13 17:38:32 2003
-@@ -1285,7 +1285,7 @@
+--- configure.orig Thu Aug 28 21:09:47 2003
++++ configure Fri Sep 5 00:13:14 2003
+@@ -1317,7 +1317,7 @@
;;
esac
@@ -9,8 +9,8 @@
then
echo "configure: warning: === vpopmail must be configured as root. ===" 1>&2
echo "configure: warning: === please switch to the root user and ===" 1>&2
-@@ -1563,15 +1563,6 @@
- rm -f vpopusername
+@@ -1601,15 +1601,6 @@
+ EOF
-if test ! -d $vpopmaildir/etc
@@ -25,38 +25,22 @@
# Check whether --enable-roaming-users or --disable-roaming-users was given.
if test "${enable_roaming_users+set}" = set; then
enableval="$enable_roaming_users"
-@@ -1637,7 +1628,7 @@
-
- if test "$tcpserver_file" = ""
- then
+@@ -1671,17 +1662,7 @@
+ if test "${enable_tcpserver_file+set}" = set; then
+ enableval="$enable_tcpserver_file"
+ tcpserver_file="$enableval"
+-else
+-
+- if test "$tcpserver_file" = ""
+- then
- echo "127.:allow,RELAYCLIENT=\"\"" > "$vpopmaildir"/etc/tcp.smtp
-+ echo "127.:allow,RELAYCLIENT=\"\"" > "$VCFGDIR"/tcp.smtp
- tcpserver_file="$vpopmaildir"/etc/tcp.smtp
-
- echo "configure: warning: Unable to find your tcpserver relay file." 1>&2
-@@ -2142,7 +2133,7 @@
- fi
- auth_libs="-L$libdir $extralibflags -lmysqlclient -lz"
+- tcpserver_file="$vpopmaildir"/etc/tcp.smtp
+-
+- echo "configure: warning: Unable to find your tcpserver relay file." 1>&2
+- echo "configure: warning: Creating tcp.smtp in "$vpopmaildir"/etc/tcp.smtp." 1>&2
+- fi
+-
++ echo "127.:allow,RELAYCLIENT=\"\"" > ${VCFGDIR}/tcp.smtp
+ fi
-- echo "-L$vpopmaildir/lib -lvpopmail -L$libdir -lmysqlclient -lz" > $vpopmaildir/etc/lib_deps
-+ echo "-L$vpopmaildir/lib -lvpopmail -L$libdir -lmysqlclient -lz" > $VCFGDIR/lib_deps
-
- ;;
- *)
-@@ -2399,14 +2390,14 @@
- authlib=
-
- auth_inc="-Icdb"
-- echo "-L$vpopmaildir/lib -lvpopmail" > $vpopmaildir/etc/lib_deps
-+ echo "-L$vpopmaildir/lib -lvpopmail" > $VCFGDIR/lib_deps
-
- ;;
- *)
- ;;
- esac
-
--echo "-I$vpopmaildir/include" > $vpopmaildir/etc/inc_deps
-+echo "-I$vpopmaildir/include" > $VCFGDIR/inc_deps
-
- # Check whether --enable-qmail-ext or --disable-qmail-ext was given.
- if test "${enable_qmail_ext+set}" = set; then
+ cat >> confdefs.h <<EOF
diff --git a/mail/vpopmail/files/patch-vlimits.c b/mail/vpopmail/files/patch-vlimits.c
deleted file mode 100644
index 27b078822274..000000000000
--- a/mail/vpopmail/files/patch-vlimits.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- vlimits.c.old Fri Feb 14 14:44:38 2003
-+++ vlimits.c Fri Feb 14 14:45:21 2003
-@@ -46,7 +46,7 @@
-
- /* get filename */
- vget_assign(mydomain, dir, sizeof(dir), &uid, &gid);
-- strncat(dir, "/.qmailadmin-limits", sizeof(dir));
-+ strncat(dir, "/.qmailadmin-limits", sizeof(dir) - strlen(dir) - 1);
-
- /* open file */
- if ((fs = fopen(dir, "r")) != NULL) {
-@@ -209,7 +209,7 @@
-
- /* get filename */
- vget_assign(mydomain, dir, sizeof(dir), &uid, &gid);
-- strncat(dir, "/.qmailadmin-limits", sizeof(dir));
-+ strncat(dir, "/.qmailadmin-limits", sizeof(dir) - strlen(dir) - 1);
-
- /* open file */
- if ((fs = fopen(dir, "w+")) != NULL) {
-@@ -265,7 +265,7 @@
-
- /* get filename */
- vget_assign(mydomain, dir, sizeof(dir), &uid, &gid);
-- strncat(dir, "/.qmailadmin-limits", sizeof(dir));
-+ strncat(dir, "/.qmailadmin-limits", sizeof(dir) - strlen(dir) - 1);
- return unlink(dir);
- }
-