Date: Mon, 16 May 2005 14:31:50 -0300 (BRT) From: Antonio Carlos Venancio Junior <antonio@php.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/81115: New port: math/pecl-big_int Functions for calculations with arbitrary length integers and bitsets Message-ID: <200505161731.j4GHVo6F031739@digitalsign.com> Resent-Message-ID: <200505161740.j4GHe2RK005903@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 81115 >Category: ports >Synopsis: New port: math/pecl-big_int Functions for calculations with arbitrary length integers and bitsets >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 16 17:40:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Antonio Carlos Venancio Junior >Release: FreeBSD 4.11-STABLE i386 >Organization: >Environment: System: FreeBSD antonio.cb.sc.gov.br 4.11-STABLE FreeBSD 4.11-STABLE #7: Tue May 10 10:37:35 BRT 2005 root@antonio.cb.sc.gov.br:/usr/obj/usr/src/sys/ANTONIO i386 >Description: New port: math/pecl-big_int Functions for calculations with arbitrary length integers and bitsets Functions from this package are useful for number theory applications. For example, in two-keys cryptography. See /tests/RSA.php in the package for example of simple implementation of RSA-like cryptoalgorithm. See http://chat.finalcombat.com/vayala/big_int/ page for more complex implementation of RSA-like crypto, which supports key generating, encrypting/decrypting, signing and validating of sign. The package has many bitset functions, which allow to work with arbitrary length bitsets. This package is much faster than bundled into PHP BCMath and consists almost all functions, which are implemented in PHP GMP extension, but it needn't any external libraries. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pecl-big_int # pecl-big_int/Makefile # pecl-big_int/distinfo # pecl-big_int/pkg-descr # pecl-big_int/pkg-plist # pecl-big_int/files # pecl-big_int/files/patch-libbig_int-include-big_int.h # echo c - pecl-big_int mkdir -p pecl-big_int > /dev/null 2>&1 echo x - pecl-big_int/Makefile sed 's/^X//' >pecl-big_int/Makefile << 'END-of-pecl-big_int/Makefile' X# Ports collection makefile for: pecl-big_int X# Date created: 16 May 2005 X# Whom: Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>) X# X# $FreeBSD$ X# X XPORTNAME= big_int XPORTVERSION= 1.0.5 XCATEGORIES= math devel pear XMASTER_SITES= http://pecl.php.net/get/ XPKGNAMEPREFIX= pecl- XEXTRACT_SUFX= .tgz XDIST_SUBDIR= PECL X XMAINTAINER= antonio@php.net XCOMMENT= Functions for calculations with arbitrary length integers and bitsets X XUSE_PHP= yes XUSE_PHPEXT= yes X XDOCS= CREDITS INSTALL LICENSE README docs/index.html libbig_int/CREDITS \ X libbig_int/LICENSE XEXAMPLES= bitset.php example.php rand.php RSA.php std_header.php X XCONFIGURE_ARGS= --enable-big-int=shared X X.if !defined(NOPORTDOCS) Xpost-install: X ${MKDIR} ${DOCSDIR} X ${MKDIR} ${EXAMPLESDIR} X. for doc in ${DOCS} X ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} X. endfor X. for test in ${EXAMPLES} X ${INSTALL_DATA} ${WRKSRC}/tests/${test} ${EXAMPLESDIR} X. endfor X.endif X X.include <bsd.port.mk> END-of-pecl-big_int/Makefile echo x - pecl-big_int/distinfo sed 's/^X//' >pecl-big_int/distinfo << 'END-of-pecl-big_int/distinfo' XMD5 (PECL/big_int-1.0.5.tgz) = c27f62e767950c33f109b3a841a60f42 XSIZE (PECL/big_int-1.0.5.tgz) = 45853 END-of-pecl-big_int/distinfo echo x - pecl-big_int/pkg-descr sed 's/^X//' >pecl-big_int/pkg-descr << 'END-of-pecl-big_int/pkg-descr' XFunctions from this package are useful for number theory Xapplications. For example, in two-keys cryptography. X XSee /tests/RSA.php in the package for example of simple Ximplementation of RSA-like cryptoalgorithm. XSee http://chat.finalcombat.com/vayala/big_int/ page for Xmore complex implementation of RSA-like crypto, which Xsupports key generating, encrypting/decrypting, signing Xand validating of sign. X XThe package has many bitset functions, which allow to work Xwith arbitrary length bitsets. X XThis package is much faster than bundled into PHP BCMath Xand consists almost all functions, which are implemented Xin PHP GMP extension, but it needn't any external libraries. X XWWW: http://pecl.php.net/package/big_int/ END-of-pecl-big_int/pkg-descr echo x - pecl-big_int/pkg-plist sed 's/^X//' >pecl-big_int/pkg-plist << 'END-of-pecl-big_int/pkg-plist' X%%PORTDOCS%%%%DOCSDIR%%/CREDITS X%%PORTDOCS%%%%DOCSDIR%%/INSTALL X%%PORTDOCS%%%%DOCSDIR%%/LICENSE X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/index.html X%%PORTDOCS%%%%EXAMPLESDIR%%/RSA.php X%%PORTDOCS%%%%EXAMPLESDIR%%/bitset.php X%%PORTDOCS%%%%EXAMPLESDIR%%/example.php X%%PORTDOCS%%%%EXAMPLESDIR%%/rand.php X%%PORTDOCS%%%%EXAMPLESDIR%%/std_header.php X%%PORTDOCS%%@dirrm %%DOCSDIR%% X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% END-of-pecl-big_int/pkg-plist echo c - pecl-big_int/files mkdir -p pecl-big_int/files > /dev/null 2>&1 echo x - pecl-big_int/files/patch-libbig_int-include-big_int.h sed 's/^X//' >pecl-big_int/files/patch-libbig_int-include-big_int.h << 'END-of-pecl-big_int/files/patch-libbig_int-include-big_int.h' X--- libbig_int/include/big_int.h.orig Fri May 13 14:58:13 2005 X+++ libbig_int/include/big_int.h Fri May 13 15:00:53 2005 X@@ -77,9 +77,9 @@ X #endif /* end of BIG_INT_DIGIT_SIZE */ X #else X /* X- for ANSI C99 compliant comilers, which have stdint.h header X+ for ANSI C99 compliant comilers, which have sys/inttypes.h header X */ X-#include <stdint.h> X+#include <sys/inttypes.h> X #if (BIG_INT_DIGIT_SIZE == 32) X typedef uint32_t big_int_word; X typedef uint64_t big_int_dword; END-of-pecl-big_int/files/patch-libbig_int-include-big_int.h exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505161731.j4GHVo6F031739>