Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-mail/vmailmgr/files: vmailmgr-0.97-strcasestr.patch
Date: Sat, 20 Jun 2009 11:09:39
Message-Id: E1MHyS1-0006nB-Hk@stork.gentoo.org
1 mrness 09/06/20 11:09:37
2
3 Added: vmailmgr-0.97-strcasestr.patch
4 Log:
5 Define strcasestr() only when is not declared in string.h (#273270).
6 Migrate to EAPI 2.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.1 net-mail/vmailmgr/files/vmailmgr-0.97-strcasestr.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/vmailmgr/files/vmailmgr-0.97-strcasestr.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/vmailmgr/files/vmailmgr-0.97-strcasestr.patch?rev=1.1&content-type=text/plain
14
15 Index: vmailmgr-0.97-strcasestr.patch
16 ===================================================================
17 diff -Nru vmailmgr-0.97.orig/authenticate/checkvpw.cc vmailmgr-0.97/authenticate/checkvpw.cc
18 --- vmailmgr-0.97.orig/authenticate/checkvpw.cc 2002-11-20 16:54:49.000000000 +0100
19 +++ vmailmgr-0.97/authenticate/checkvpw.cc 2009-06-20 12:56:27.000000000 +0200
20 @@ -105,6 +105,7 @@
21 return new auth_data(name, pass, stamp);
22 }
23
24 +#ifndef HAVE_STRCASESTR
25 char* strcasestr(const char* haystack, const char* needle)
26 {
27 for(size_t hlength = strlen(haystack), nlength = strlen(needle);
28 @@ -113,6 +114,7 @@
29 return (char*)haystack;
30 return 0;
31 }
32 +#endif /* HAVE_STRCASESTR */
33
34 unsigned find_maildir(int argc, const char* args[])
35 {
36 diff -Nru vmailmgr-0.97.orig/config.h.in vmailmgr-0.97/config.h.in
37 --- vmailmgr-0.97.orig/config.h.in 2009-06-20 12:58:25.000000000 +0200
38 +++ vmailmgr-0.97/config.h.in 2009-06-20 12:55:32.000000000 +0200
39 @@ -16,6 +16,9 @@
40 #undef VPWTABLE_CDB
41 #undef VPWTABLE_GDBM
42
43 +/* Define to 1 if you have the `strcasestr' function. */
44 +#undef HAVE_STRCASESTR
45 +
46 /* Define to 1 if you have the `crypt' function. */
47 #undef HAVE_CRYPT
48
49 diff -Nru vmailmgr-0.97.orig/configure.in vmailmgr-0.97/configure.in
50 --- vmailmgr-0.97.orig/configure.in 2009-06-20 12:58:17.000000000 +0200
51 +++ vmailmgr-0.97/configure.in 2009-06-20 12:55:09.000000000 +0200
52 @@ -112,6 +112,7 @@
53 dnl Checks for library functions.
54 AC_CHECK_FUNCS(gethostname gettimeofday mkdir putenv rmdir socket)
55 AC_CHECK_FUNCS(srandom random crypt)
56 +AC_CHECK_FUNCS(strcasestr)
57
58 cgidir='/var/www/localhost/cgi-bin'
59 AC_SUBST(cgidir)