# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ PortSystem 1.0 name curl-ca-bundle # keep the version in sync with the curl port version 7.19.6 revision 2 set curl_name curl categories net maintainers ryandesign homepage http://curl.haxx.se/ platforms darwin freebsd use_bzip2 yes use_parallel_build no use_configure no universal_variant no distname ${curl_name}-${version} dist_subdir ${curl_name} set curl_source ${distname}${extract.suffix} set certdata_file certdata.txt set certdata_version 1.56 set certdata_date 2009-08-31 set certdata_distfile certdata-${certdata_version}.txt set certdata_path security/nss/lib/ckfw/builtins/${certdata_file} build.target ca-bundle extract.only ${curl_source} extract.post_args-append ${worksrcdir}/Makefile ${worksrcdir}/lib/mk-ca-bundle.pl description \ CA certificate bundle for curl long_description \ Installs a bundle of certification authority certificates (CA certs) \ which curl (when linked with OpenSSL) uses to verify the authenticity \ of secure web and FTP servers. # keep the master_sites in sync with the curl port master_sites \ http://curl.haxx.se/download/ \ ftp://ftp.sunet.se/pub/www/utilities/curl/ \ http://curl.sourceforge.net/download/ \ http://cool.haxx.se/curl/ \ http://www.execve.net/curl/ \ http://mxr.mozilla.org/mozilla/source/${certdata_path}?raw=1&dummy=:certdata distfiles \ ${curl_source} \ ${certdata_distfile}:certdata checksums \ ${curl_source} \ md5 8402c1f654c51ad7287aad57c3aa79be \ sha1 b7cb98c7a6577de7073d0b0c23eecdb8ed993e8e \ rmd160 7627d78ec681a513972be0cb5473b26805f44d83 \ ${certdata_distfile} \ md5 a5ad23bcd673dbce043b6a186125b678 \ sha1 59b7c651a8de466998a230e7f8afc6bd71d1e9b6 \ rmd160 72cb87687f74c05efd5ce7bb09b29561a272a1e6 depends_build \ path:bin/perl:perl5 patchfiles \ patch-no-autodownload.diff post-extract { xinstall ${distpath}/${certdata_distfile} ${worksrcpath}/${certdata_file} } destroot { set ca_bundle_dir ${destroot}${prefix}/share/curl xinstall -d ${ca_bundle_dir} xinstall ${worksrcpath}/lib/ca-bundle.crt ${ca_bundle_dir}/curl-ca-bundle.crt } livecheck.type regex livecheck.url http://bonsai.mozilla.org/cvsquery.cgi?file=mozilla/${certdata_path}&date=explicit&mindate=${certdata_date} livecheck.version ${certdata_version} livecheck.regex '${certdata_file}','(\[0-9.\]+)'