diff options
author | ale <ale@FreeBSD.org> | 2009-10-27 21:37:59 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2009-10-27 21:37:59 +0800 |
commit | eb2d524aa10f852f35611897efd531313f34475b (patch) | |
tree | c1ea9d0ac161cea676e0e1ec4645325f0300d86e /security | |
parent | 68ba3e3ba992a3c8e4397e8512a7892cc12f3112 (diff) | |
download | freebsd-ports-gnome-eb2d524aa10f852f35611897efd531313f34475b.tar.gz freebsd-ports-gnome-eb2d524aa10f852f35611897efd531313f34475b.tar.zst freebsd-ports-gnome-eb2d524aa10f852f35611897efd531313f34475b.zip |
Update to latest stable release (1.8.7):
- switch to python configure (perl one was obsolated)
- build ECC support (option to disable it)
- fix shared library name
PR: ports/139275
Submitted by: ale
Approved by: maintainer
Diffstat (limited to 'security')
-rw-r--r-- | security/botan/Makefile | 36 | ||||
-rw-r--r-- | security/botan/distinfo | 6 | ||||
-rw-r--r-- | security/botan/files/patch-src_build_data_makefile_unix_shr.in | 24 | ||||
-rw-r--r-- | security/botan/pkg-plist | 120 |
4 files changed, 149 insertions, 37 deletions
diff --git a/security/botan/Makefile b/security/botan/Makefile index a8b3bb3e71e6..05000001a4cf 100644 --- a/security/botan/Makefile +++ b/security/botan/Makefile @@ -7,35 +7,47 @@ # PORTNAME= botan -PORTVERSION= 1.6.5 +PORTVERSION= 1.8.7 CATEGORIES= security -MASTER_SITES= http://files.randombit.net/botan/v1.6/ +MASTER_SITES= http://files.randombit.net/botan/v1.8/ DISTNAME= Botan-${PORTVERSION} EXTRACT_SUFX= .tbz MAINTAINER= lapo@lapo.it COMMENT= A portable, easy to use, and efficient C++ crypto library +OPTIONS= ECC "Enable ECC support" on + USE_BZIP2= yes -USE_PERL5= yes +USE_PYTHON_BUILD= yes HAS_CONFIGURE= yes -CONFIGURE_SCRIPT= configure.pl -CONFIGURE_ARGS= --prefix=${PREFIX} gcc-freebsd-generic +CONFIGURE_SCRIPT= configure.py +CONFIGURE_ARGS= --prefix=${PREFIX} --with-tr1-implementation=boost USE_GMAKE= yes -MAKE_ARGS= CXX="${CXX}" LIB_OPT="${CXXFLAGS}" \ - LANG_FLAGS="-fpermissive" +MAKE_ARGS= CXX="${CXX}" LIB_OPT="${CXXFLAGS}" USE_LDCONFIG= yes -PLIST_SUB= PORTVERSION=${PORTVERSION} +PLIST_SUB= SOVERSION=1.8.2 -.if !defined(NOPORTDOCS) -DOCSDIR= ${PREFIX}/share/doc/Botan-${PORTVERSION} PORTDOCS= * + +.include <bsd.port.options.mk> + +.if !defined(WITHOUT_ECC) +BUILD_DEPENDS+= ${LOCALBASE}/include/boost/tr1/memory.hpp:${PORTSDIR}/devel/boost-libs +CONFIGURE_ARGS+=--with-tr1-implementation=boost +CXXFLAGS+= -I${LOCALBASE}/include +PLIST_SUB+= ECC="" .else -post-configure: +CONFIGURE_ARGS+=--with-tr1-implementation=none +PLIST_SUB+= ECC="@comment " +.endif + +.if defined(NOPORTDOCS) +post-patch: ${REINPLACE_CMD} -e '/$$(MKDIR_INSTALL) $$(DOCDIR)/d' \ -e '/$$(INSTALL_CMD_DATA) $$$$i $$(DOCDIR); /d' \ - ${WRKSRC}/Makefile + ${WRKSRC}/src/build-data/makefile/unix_shr.in .endif .include <bsd.port.mk> diff --git a/security/botan/distinfo b/security/botan/distinfo index ff2406e42500..3fe710f308fa 100644 --- a/security/botan/distinfo +++ b/security/botan/distinfo @@ -1,3 +1,3 @@ -MD5 (Botan-1.6.5.tbz) = a1976699cdc29e1ff387120f9981c1fb -SHA256 (Botan-1.6.5.tbz) = f36b8fc0daa0f402e1f1f946fdbd934407ad8a7b42f27302c01429c02c8f184e -SIZE (Botan-1.6.5.tbz) = 1705959 +MD5 (Botan-1.8.7.tbz) = c607e31b012d9839fd0a1da24ff85e3d +SHA256 (Botan-1.8.7.tbz) = e9a1bec36b539b0ee4d2f9d84df793bf7f606d8890dbc53ba27e8e3431e3107b +SIZE (Botan-1.8.7.tbz) = 3054371 diff --git a/security/botan/files/patch-src_build_data_makefile_unix_shr.in b/security/botan/files/patch-src_build_data_makefile_unix_shr.in new file mode 100644 index 000000000000..c5b3b018b6ea --- /dev/null +++ b/security/botan/files/patch-src_build_data_makefile_unix_shr.in @@ -0,0 +1,24 @@ +--- src/build-data/makefile/unix_shr.in.orig 2009-09-10 02:29:34.000000000 +0200 ++++ src/build-data/makefile/unix_shr.in 2009-10-27 14:30:46.000000000 +0100 +@@ -25,8 +25,8 @@ + BINDIR = $(DESTDIR)/bin + LIBDIR = $(DESTDIR)/%{libdir} + HEADERDIR = $(DESTDIR)/%{includedir}/botan +-DOCDIR = $(DESTDIR)/%{docdir}/Botan-$(VERSION) +-PKGCONF_DIR = $(LIBDIR)/pkgconfig ++DOCDIR = $(DESTDIR)/%{docdir}/botan ++PKGCONF_DIR = $(DESTDIR)/libdata/pkgconfig + + CONFIG_SCRIPT = %{botan_config} + PKGCONFIG = %{botan_pkgconfig} +@@ -67,8 +67,8 @@ + LIBNAME = %{lib_prefix}libbotan + STATIC_LIB = $(LIBNAME).a + +-SHARED_LIB = $(LIBNAME)-$(SO_VERSION).%{so_suffix} +-SONAME = $(LIBNAME)-$(SO_VERSION).%{so_suffix} ++SHARED_LIB = $(LIBNAME).%{so_suffix}.0 ++SONAME = $(LIBNAME).%{so_suffix}.0 + + SYMLINK = libbotan.%{so_suffix} + diff --git a/security/botan/pkg-plist b/security/botan/pkg-plist index 070cbd462f31..b939483edb07 100644 --- a/security/botan/pkg-plist +++ b/security/botan/pkg-plist @@ -1,89 +1,144 @@ -@comment $FreeBSD$ bin/botan-config include/botan/adler32.h include/botan/aes.h include/botan/alg_id.h +include/botan/algo_cache.h +include/botan/algo_factory.h include/botan/allocate.h include/botan/arc4.h +include/botan/asm_macr.h include/botan/asn1_int.h include/botan/asn1_obj.h include/botan/asn1_oid.h -include/botan/base.h +include/botan/auto_rng.h include/botan/base64.h include/botan/basefilt.h +include/botan/benchmark.h include/botan/ber_dec.h include/botan/bigint.h include/botan/bit_ops.h include/botan/blinding.h +include/botan/block_cipher.h include/botan/blowfish.h include/botan/botan.h -include/botan/buf_es.h +include/botan/bswap.h +include/botan/buf_comp.h include/botan/buf_filt.h include/botan/build.h include/botan/cast128.h include/botan/cast256.h include/botan/cbc.h +include/botan/cbc_mac.h include/botan/certstor.h include/botan/cfb.h include/botan/charset.h include/botan/cmac.h -include/botan/config.h +include/botan/cms_dec.h +include/botan/cms_enc.h include/botan/crc24.h include/botan/crc32.h include/botan/crl_ent.h +include/botan/cryptobox.h include/botan/ctr.h include/botan/cts.h +%%ECC%%include/botan/curve_gfp.h +%%ECC%%include/botan/cvc_ado.h +%%ECC%%include/botan/cvc_ca.h +%%ECC%%include/botan/cvc_cert.h +%%ECC%%include/botan/cvc_gen_cert.h +%%ECC%%include/botan/cvc_key.h +%%ECC%%include/botan/cvc_req.h +%%ECC%%include/botan/cvc_self.h include/botan/data_snk.h include/botan/data_src.h include/botan/datastor.h -include/botan/def_char.h +include/botan/def_eng.h include/botan/def_powm.h include/botan/defalloc.h include/botan/der_enc.h include/botan/des.h +include/botan/desx.h include/botan/dh.h +include/botan/dh_core.h +include/botan/dh_op.h +include/botan/divide.h include/botan/dl_algo.h include/botan/dl_group.h include/botan/dlies.h include/botan/dsa.h +include/botan/dsa_core.h +include/botan/dsa_op.h +%%ECC%%include/botan/eac_asn_obj.h +%%ECC%%include/botan/eac_obj.h include/botan/eax.h +%%ECC%%include/botan/ec_dompar.h include/botan/ecb.h +%%ECC%%include/botan/ecc_key.h +%%ECC%%include/botan/ecdsa.h +%%ECC%%include/botan/ecdsa_core.h +%%ECC%%include/botan/ecdsa_op.h +%%ECC%%include/botan/ecdsa_sig.h +%%ECC%%include/botan/eckaeg.h +%%ECC%%include/botan/eckaeg_core.h +%%ECC%%include/botan/eckaeg_op.h +include/botan/elg_core.h +include/botan/elg_op.h include/botan/elgamal.h include/botan/eme.h +include/botan/eme1.h +include/botan/eme_pkcs.h include/botan/emsa.h -include/botan/eng_def.h +include/botan/emsa1.h +include/botan/emsa1_bsi.h +include/botan/emsa2.h +include/botan/emsa3.h +include/botan/emsa4.h +include/botan/emsa_raw.h include/botan/engine.h -include/botan/enums.h +include/botan/entropy_src.h +include/botan/es_dev.h include/botan/es_egd.h -include/botan/es_file.h include/botan/es_ftw.h include/botan/exceptn.h include/botan/fd_unix.h include/botan/filter.h include/botan/filters.h -include/botan/fips140.h include/botan/fork256.h -include/botan/gost.h +%%ECC%%include/botan/freestore.h +include/botan/get_pbe.h +%%ECC%%include/botan/gfp_element.h +%%ECC%%include/botan/gfp_modulus.h +include/botan/gost_28147.h +include/botan/gost_3411.h include/botan/has160.h +include/botan/hash.h include/botan/hash_id.h include/botan/hex.h include/botan/hmac.h +include/botan/hmac_rng.h include/botan/idea.h include/botan/if_algo.h +include/botan/if_core.h +include/botan/if_op.h include/botan/init.h include/botan/kasumi.h include/botan/kdf.h +include/botan/kdf1.h +include/botan/kdf2.h include/botan/keypair.h include/botan/libstate.h include/botan/lion.h -include/botan/look_add.h +include/botan/loadstor.h include/botan/look_pk.h include/botan/lookup.h include/botan/lubyrack.h +include/botan/mac.h include/botan/mars.h include/botan/md2.h include/botan/md4.h +include/botan/md4_ia32.h include/botan/md5.h +include/botan/md5_ia32.h include/botan/mdx_hash.h include/botan/mem_ops.h include/botan/mem_pool.h @@ -92,14 +147,17 @@ include/botan/misty1.h include/botan/mmap_mem.h include/botan/mode_pad.h include/botan/modebase.h -include/botan/modules.h include/botan/mp_asm.h include/botan/mp_asmi.h include/botan/mp_core.h include/botan/mp_types.h include/botan/mutex.h +include/botan/mux_noop.h include/botan/mux_pthr.h +include/botan/noekeon.h include/botan/nr.h +include/botan/nr_core.h +include/botan/nr_op.h include/botan/numthry.h include/botan/ofb.h include/botan/oids.h @@ -108,21 +166,26 @@ include/botan/out_buf.h include/botan/par_hash.h include/botan/parsing.h include/botan/pbe.h -include/botan/pbe_pkcs.h +include/botan/pbes1.h +include/botan/pbes2.h +include/botan/pbkdf1.h +include/botan/pbkdf2.h include/botan/pem.h include/botan/pgp_s2k.h include/botan/pipe.h include/botan/pk_algs.h -include/botan/pk_core.h +include/botan/pk_engine.h include/botan/pk_filts.h include/botan/pk_keys.h -include/botan/pk_ops.h -include/botan/pk_util.h include/botan/pkcs10.h -include/botan/pkcs5.h include/botan/pkcs8.h +%%ECC%%include/botan/point_gfp.h include/botan/pow_mod.h +include/botan/prf_ssl3.h +include/botan/prf_tls.h +include/botan/prf_x942.h include/botan/pubkey.h +include/botan/pubkey_enums.h include/botan/randpool.h include/botan/rc2.h include/botan/rc5.h @@ -131,24 +194,35 @@ include/botan/reducer.h include/botan/rmd128.h include/botan/rmd160.h include/botan/rng.h +include/botan/rotate.h include/botan/rsa.h include/botan/rw.h include/botan/s2k.h include/botan/safer_sk.h +include/botan/salsa20.h +include/botan/scan_name.h include/botan/secmem.h include/botan/secqueue.h include/botan/seed.h +include/botan/selftest.h +include/botan/serp_ia32.h include/botan/serpent.h include/botan/sha160.h -include/botan/sha256.h -include/botan/sha_64.h +include/botan/sha1_ia32.h +include/botan/sha2_32.h +include/botan/sha2_64.h +%%ECC%%include/botan/signed_obj.h +include/botan/skein_512.h include/botan/skipjack.h include/botan/square.h +include/botan/ssl3_mac.h include/botan/stl_util.h +include/botan/stream_cipher.h +include/botan/sym_algo.h include/botan/symkey.h include/botan/tea.h include/botan/tiger.h -include/botan/timers.h +include/botan/timer.h include/botan/tm_unix.h include/botan/turing.h include/botan/twofish.h @@ -166,12 +240,14 @@ include/botan/x509_obj.h include/botan/x509cert.h include/botan/x509find.h include/botan/x509self.h -include/botan/x509stat.h include/botan/x509stor.h include/botan/x919_mac.h include/botan/x931_rng.h +include/botan/xor_buf.h include/botan/xtea.h -lib/libbotan-%%PORTVERSION%%.so +include/botan/xts.h lib/libbotan.a lib/libbotan.so +lib/libbotan.so.0 +libdata/pkgconfig/botan-1.8.pc @dirrm include/botan |