Ticket #37641: couchdb-devel-git-migration.3.patch
File couchdb-devel-git-migration.3.patch, 5.6 KB (added by jeff@…, 12 years ago) |
---|
-
Portfile
6 6 7 7 name couchdb-devel 8 8 conflicts couchdb 9 svn.revision 1177555 10 version 1.3.0a${svn.revision} 11 revision 1 9 version 1.4.0a-20130215 12 10 13 11 categories databases 14 12 platforms darwin … … 23 21 improve scalability and to relax users' lives. 24 22 25 23 homepage http://couchdb.apache.org/ 26 master_sites ${homepage}27 24 28 distname couchdb-${version} 29 fetch.type svn 30 svn.url http://svn.apache.org/repos/asf/couchdb/trunk 31 worksrcdir trunk 25 fetch.type git 26 git.url https://git-wip-us.apache.org/repos/asf/couchdb.git 27 git.branch 6beb66c7179cca8b578934b6c4b6f47437e0c663 32 28 29 depends_build port:pkgconfig \ 30 port:autoconf-archive 31 33 32 depends_lib port:automake \ 34 33 port:autoconf \ 35 34 port:libtool \ … … 51 50 system "cd ${worksrcpath}; ./bootstrap" 52 51 } 53 52 53 configure.args --with-js-include=${prefix}/include/js \ 54 --with-erlang=${prefix}/lib/erlang/usr/include \ 55 --enable-js-trunk 56 54 57 set dbgroup couchdb 55 58 set dbuser couchdb 56 59 set logdir ${prefix}/var/log/couchdb 57 60 set dbdir ${prefix}/var/lib/couchdb 61 set confdir ${prefix}/etc/couchdb 62 set rundir ${prefix}/var/run/couchdb 58 63 set plistdir /Library/LaunchDaemons 59 64 startupitem.uniquename org.apache.couchdb 60 65 set plist ${startupitem.uniquename}.plist 61 66 67 add_users ${dbuser} group=${dbgroup} 68 62 69 post-destroot { 63 addgroup ${dbgroup} 64 adduser ${dbuser} gid=[existsgroup ${dbgroup}] 70 move ${destroot}${confdir}/local.ini ${destroot}${confdir}/local.ini.sample 65 71 xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \ 66 72 ${destroot}${dbdir} \ 67 73 ${destroot}${logdir} \ 68 ${destroot}${plistdir} 74 ${destroot}${plistdir} \ 75 ${destroot}${rundir} 69 76 destroot.keepdirs-append \ 70 77 ${destroot}${dbdir} \ 71 ${destroot}${logdir} 78 ${destroot}${logdir} \ 79 ${destroot}${rundir} 72 80 system "cd ${destroot}${plistdir} && ln -sf ${prefix}${plistdir}/${plist}" 73 81 } 74 82 83 post-activate { 84 if {![file exists ${confdir}/local.ini]} { 85 xinstall -m 640 -o ${dbuser} -g ${dbgroup} ${confdir}/local.ini.sample ${confdir}/local.ini 86 } 87 } 88 89 75 90 notes " 76 91 Changes in CouchDB r753448 make older database files incompatible.\ 77 92 See http://wiki.apache.org/couchdb/BreakingChanges for details. … … 83 98 " 84 99 85 100 livecheck.type regex 86 livecheck.url http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/ 87 livecheck.version ${svn.revision} 88 livecheck.regex (\[0-9\]+) 101 livecheck.url "https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=refs/heads/master" 102 livecheck.version ${git.branch} 103 livecheck.regex <tr><td>commit</td><td class="sha1">(\[a-f0-9\]{40})</td></tr> 104 105 -
files/patch-automake-1.13.diff
1 --- configure.ac.orig 2011-09-15 10:44:37.000000000 -0500 2 +++ configure.ac 2013-01-14 01:35:34.000000000 -0600 3 @@ -18,8 +18,7 @@ 4 AC_CONFIG_AUX_DIR([build-aux]) 5 AC_CONFIG_MACRO_DIR([m4]) 1 --- bootstrap.orig 2013-01-15 08:43:05.000000000 -0600 2 +++ bootstrap 2013-01-15 08:42:39.000000000 -0600 3 @@ -84,9 +84,9 @@ 4 } 6 5 7 -AM_CONFIG_HEADER([config.h]) 8 -AC_CONFIG_HEADERS([src/snappy/google-snappy/config.h]) 9 +AC_CONFIG_HEADERS([config.h src/snappy/google-snappy/config.h]) 6 LIBTOOLIZE=`find_program glibtoolize libtoolize` 7 -ACLOCAL=`find_program aclocal-1.11 aclocal-1.10 aclocal-1.9 aclocal` 8 +ACLOCAL=`find_program aclocal` 9 AUTOHEADER=`find_program autoheader` 10 -AUTOMAKE=`find_program automake-1.11 automake-1.10 automake-1.9 automake` 11 +AUTOMAKE=`find_program automake` 12 AUTOCONF=`find_program autoconf` 10 13 11 AM_INIT_AUTOMAKE([1.6.3 foreign]) 12 14 get_aclocal_dir_list () { -
files/patch-configure.ac.diff
1 --- configure.ac.orig 201 1-09-15 10:44:37.000000000 -05002 +++ configure.ac 2013-01-1 4 02:18:15.000000000 -06003 @@ - 349,7 +348,7 @@1 --- configure.ac.orig 2013-01-15 08:45:09.000000000 -0600 2 +++ configure.ac 2013-01-15 08:45:25.000000000 -0600 3 @@ -433,10 +433,7 @@ 4 4 AM_CONDITIONAL([USE_OTP_NIFS], [test x$otp_release \> xR13B03]) 5 5 AM_CONDITIONAL([USE_EJSON_COMPARE_NIF], [test x$otp_release \> xR14B03]) 6 6 7 -has_crypto=`${ERL} -eval "case application:load(crypto) of ok -> ok; _ -> exit(no_crypto) end." -noshell -s init stop` 7 -has_crypto=`\ 8 - ${ERL} -eval "\ 9 - case application:load(crypto) of ok -> ok; _ -> exit(no_crypto) end. \ 10 - " -noshell -s init stop` 8 11 +has_crypto="" 9 12 10 13 if test -n "$has_crypto"; then 11 AC_MSG_ERROR([Could not find the Erlang crypto library. Has Erlang been compiled with OpenSSL support?])14 AC_MSG_ERROR([Could not find the Erlang crypto library. -
files/patch-src-couchdb-priv-Makefile.am.diff
1 1 --- src/couchdb/priv/Makefile.am.orig 2011-09-01 23:03:05.000000000 -0500 2 2 +++ src/couchdb/priv/Makefile.am 2013-01-14 05:13:47.000000000 -0600 3 @@ - 55,7 +55,7 @@3 @@ -70,7 +70,7 @@ 4 4 5 5 locallibbin_PROGRAMS = couchjs 6 6 couchjs_SOURCES = $(COUCHJS_SRCS)