Ticket #38495: Portfile.patch
File Portfile.patch, 2.6 KB (added by alexs@…, 12 years ago) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 6 6 name cassandra 7 version 1.2.2 7 set upver 1.2.2 8 set patchver 1 9 version ${upver}_${patchver} 8 10 categories databases 9 11 maintainers nomaintainer 10 12 homepage http://cassandra.apache.org/ 11 13 platforms darwin 12 14 license Apache-2 13 15 master_sites apache 14 master_sites.mirror_subdir ${name}/${ version}15 distname apache-${name}-${ version}-src16 master_sites.mirror_subdir ${name}/${upver} 17 distname apache-${name}-${upver}-src 16 18 17 19 description A highly scalable, eventually consistent, \ 18 20 distributed, structured key-value store. … … 42 44 port:google-guava 43 45 44 46 set java_basepath ${prefix}/share/java 45 set cassandra_destpath ${java_basepath}/${name}-${ version}47 set cassandra_destpath ${java_basepath}/${name}-${upver} 46 48 47 49 set mp_libs {antlr junit jline slf4j-api slf4j-log4j12 commons-cli \ 48 50 commons-lang commons-codec jakarta-log4j \ … … 65 67 destroot { 66 68 # create directories 67 69 set cas_home ${destroot}${cassandra_destpath} 68 set doc_dir ${destroot}${prefix}/share/doc/${name}-${ version}70 set doc_dir ${destroot}${prefix}/share/doc/${name}-${upver} 69 71 xinstall -m 755 -d ${cas_home}/lib ${doc_dir} 70 72 71 73 # move in docs … … 81 83 eval xinstall -m 755 [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin 82 84 83 85 # install jars 84 xinstall -m 644 ${worksrcpath}/build/apache-${name}-${ version}-SNAPSHOT.jar \86 xinstall -m 644 ${worksrcpath}/build/apache-${name}-${upver}-SNAPSHOT.jar \ 85 87 ${cas_home}/lib/${name}.jar 86 xinstall -m 644 ${worksrcpath}/build/apache-${name}-thrift-${ version}-SNAPSHOT.jar \88 xinstall -m 644 ${worksrcpath}/build/apache-${name}-thrift-${upver}-SNAPSHOT.jar \ 87 89 ${cas_home}/lib/${name}-thrift.jar 88 90 eval xinstall -m 644 [glob ${worksrcpath}/lib/*.jar] ${cas_home}/lib/ 89 91 … … 106 108 } 107 109 108 110 startupitem.create yes 109 startupitem.executable sudo -u ${cassandrauser} ${prefix}/bin/cassandra 111 startupitem.executable sudo -u ${cassandrauser} env PATH=${prefix}/bin:${prefix}/sbin:/usr/bin:/bin:/usr/sbin:/sbin \ 112 __CFPREFERENCES_AVOID_DAEMON=1 \ 113 ${prefix}/bin/cassandra -f 110 114 111 115 livecheck.type regex 112 116 livecheck.url ${homepage}download/