Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Oct 2009 08:55:44 GMT
From:      Alex Dupre <ale@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/139275: [Update] security/botan to 1.8.7 stable release
Message-ID:  <200910010855.n918tiBf004047@freefall.freebsd.org>
Resent-Message-ID: <200910010900.n91902jX004225@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         139275
>Category:       ports
>Synopsis:       [Update] security/botan to 1.8.7 stable release
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 01 09:00:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Alex Dupre
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 7.2-STABLE FreeBSD 7.2-STABLE #39 r196005: Fri Jul 31 21:51:38 UTC 2009 simon@freefall.freebsd.org:/usr/src/sys/i386/compile/FREEFALL i386


	
>Description:
Update Botan to latest stable release:
- switch to python configure (perl one was obsolated)
- build ECC support (option to disable it)
	
>How-To-Repeat:
	
>Fix:

	

--- botan.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/security/botan/Makefile,v
retrieving revision 1.46
diff -u -r1.46 Makefile
--- Makefile	5 Apr 2009 13:31:45 -0000	1.46
+++ Makefile	1 Oct 2009 08:50:22 -0000
@@ -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=	clsung@FreeBSD.org
 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>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/security/botan/distinfo,v
retrieving revision 1.30
diff -u -r1.30 distinfo
--- distinfo	6 Oct 2008 05:22:26 -0000	1.30
+++ distinfo	1 Oct 2009 08:50:22 -0000
@@ -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
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/security/botan/pkg-plist,v
retrieving revision 1.29
diff -u -r1.29 pkg-plist
--- pkg-plist	6 Oct 2008 05:22:26 -0000	1.29
+++ pkg-plist	1 Oct 2009 08:50:22 -0000
@@ -1,89 +1,144 @@
-@comment $FreeBSD: ports/security/botan/pkg-plist,v 1.29 2008/10/06 05:22:26 clsung Exp $
 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/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/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/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/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-%%SOVERSION%%.so
 lib/libbotan.a
 lib/libbotan.so
+libdata/pkgconfig/botan-1.8.pc
 @dirrm include/botan
Index: files/patch-src_build_data_makefile_unix_shr.in
===================================================================
RCS file: files/patch-src_build_data_makefile_unix_shr.in
diff -N files/patch-src_build_data_makefile_unix_shr.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src_build_data_makefile_unix_shr.in	1 Oct 2009 08:50:22 -0000
@@ -0,0 +1,13 @@
+--- src/build-data/makefile/unix_shr.in.orig	2009-09-10 02:29:34.000000000 +0200
++++ src/build-data/makefile/unix_shr.in	2009-09-18 14:44:24.000000000 +0200
+@@ -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}
--- botan.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910010855.n918tiBf004047>