ports/169501: [PATCH] math/miracl - Take maintainership - update to 5.6
Bryan Drewery
bryan at shatow.net
Wed Jun 27 22:20:05 UTC 2012
>Number: 169501
>Category: ports
>Synopsis: [PATCH] math/miracl - Take maintainership - update to 5.6
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 27 22:20:05 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Bryan Drewery
>Release: FreeBSD 8.3-RELEASE i386
>Organization:
>Environment:
>Description:
Note to committer: due to the upstream rerolling their distfile on new versions, their MASTER_SITE URL will likely go stale quickly. I've mirrored it myself, but I'd prefer to have a backup on top of mine as well. Please mirror the file under the miracl/5.6 directory and change the port to use your username in MASTER_SITE_SUBDIR. Please keep the versioned directory here though as the distfile is just miracl.zip.
- Take maintainership
- miracl is now owned by CertiVox. Update URLS.
- Cleanup extract/build to better match output of other ports
- Add USE_LDCONFIG
- Use ONLY_FOR_ARCHS
- Pass MAKE_ENV to build script which fixes some uses of ccache
- Add licensing information
- Cleanup extract to use WRKSRC
- See work/miracl/update.txt for updates since 5.3.2
>How-To-Repeat:
>Fix:
--- patch-math-miracl.txt begins here ---
diff --git Makefile Makefile
index 3b2933f..537af43 100644
--- Makefile
+++ Makefile
@@ -6,23 +6,36 @@
#
PORTNAME= miracl
-PORTVERSION= 5.3.2
-PORTREVISION= 1
+PORTVERSION= 5.6
PORTEPOCH= 1
CATEGORIES= math
-MASTER_SITES= ftp://ftp.computing.dcu.ie/pub/crypto/ \
+MASTER_SITES= http://www.certivox.com/wp-content/themes/certivox/res/ \
+ http://www.shatow.net/freebsd/${PORTNAME}/${PORTVERSION}/ \
${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= pav
+MASTER_SITE_SUBDIR= pav/${PORTNAME}/${PORTVERSION}
DISTNAME= ${PORTNAME}
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= bryan at shatow.net
COMMENT= Multiprecision Integer and Rational Arithmetic C/C++ Library
+LICENSE= AGPLv3 COMMERCIAL
+LICENSE_NAME_COMMERCIAL= Commericial use license to not be bound by AGPLv3
+LICENSE_PERMS_COMMERCIAL= dist-mirror dist-sell pkg-mirror pkg-sell no-auto-accept
+LICENSE_TEXT_COMMERCIAL= License available from CertiVox for commercial use and
+LICENSE_TEXT_COMMERCIAL+= to not be bound by the terms of the AGPLv3. Visit
+LICENSE_TEXT_COMMERCIAL+= http://certivox.com/index.php/solutions/miracl-crypto-sdk/
+LICENSE_TEXT_COMMERCIAL+= for more details.
+LICENSE_COMB= dual
+LICENSE_FILE= files/LICENSE
+
+ONLY_FOR_ARCHS= i386 amd64
+
USE_ZIP= yes
-NO_WRKSUBDIR= yes
+USE_LDCONFIG= yes
-EXTRACT_BEFORE_ARGS= -j -aa -L
+EXTRACT_BEFORE_ARGS= -j -aa -L -q
+EXTRACT_AFTER_ARGS= -d ${WRKSRC}
PLIST_FILES= lib/libmiracl.a \
include/miracl.h include/mirdef.h
@@ -33,8 +46,6 @@ PLIST_FILES= lib/libmiracl.a \
BUILDCMD= linux
.elif ${ARCH} == "amd64"
BUILDCMD= linux64
-.else
-IGNORE= Builds on x86 and amd64 only
.endif
post-patch:
@@ -53,9 +64,15 @@ post-patch:
-e 's|-O2|${CFLAGS} -fPIC|' \
${WRKSRC}/${BUILDCMD}
.endif
+# Don't error when files not found
+# Fix mrmuldv.cc not existing
+ @${REINPLACE_CMD} -E \
+ -e 's|^rm |${RM} -f |' \
+ -e 's|^cp mrmuldv\.cc mrmuldv\.c|${CP} mrmuldv.gcc mrmuldv.c|' \
+ ${WRKSRC}/${BUILDCMD}
do-build:
- @cd ${WRKSRC} && ${SH} ./${BUILDCMD}
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} -ve ./${BUILDCMD}
do-install:
# lib
diff --git distinfo distinfo
index 9f451fe..e1fd7fd 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (miracl/5.3.2/miracl.zip) = c4fb4cf32090cce202cf0ea152da6b2e7f8633da64dd41b0d5833d900f8c5462
-SIZE (miracl/5.3.2/miracl.zip) = 1643702
+SHA256 (miracl/5.6/miracl.zip) = c9e3fe5ff071486f5b6ed61ebb79bb6f3edd2f3bb5031cb4e5b7ce64a17fff9c
+SIZE (miracl/5.6/miracl.zip) = 1581088
diff --git files/LICENSE files/LICENSE
new file mode 100644
index 0000000..b5de069
--- /dev/null
+++ files/LICENSE
@@ -0,0 +1,34 @@
+/***************************************************************************
+ *
+Copyright 2012 CertiVox IOM Ltd. *
+ *
+This file is part of CertiVox MIRACL Crypto SDK. *
+ *
+The CertiVox MIRACL Crypto SDK provides developers with an *
+extensive and efficient set of cryptographic functions. *
+For further information about its features and functionalities please *
+refer to http://www.certivox.com *
+ *
+* The CertiVox MIRACL Crypto SDK is free software: you can *
+ redistribute it and/or modify it under the terms of the *
+ GNU Affero General Public License as published by the *
+ Free Software Foundation, either version 3 of the License, *
+ or (at your option) any later version. *
+ *
+* The CertiVox MIRACL Crypto SDK is distributed in the hope *
+ that it will be useful, but WITHOUT ANY WARRANTY; without even the *
+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
+ See the GNU Affero General Public License for more details. *
+ *
+* You should have received a copy of the GNU Affero General Public *
+ License along with CertiVox MIRACL Crypto SDK. *
+ If not, see <http://www.gnu.org/licenses/>. *
+ *
+You can be released from the requirements of the license by purchasing *
+a commercial license. Buying such a license is mandatory as soon as you *
+develop commercial activities involving the CertiVox MIRACL Crypto SDK *
+without disclosing the source code of your own applications, or shipping *
+the CertiVox MIRACL Crypto SDK with a closed source product. *
+ *
+***************************************************************************/
+
diff --git pkg-descr pkg-descr
index ae8d97f..5cd10ae 100644
--- pkg-descr
+++ pkg-descr
@@ -15,4 +15,4 @@ implemented as a C library, a well-thought out C++ wrapper is
provided, which greatly simplifies program development. Most example
programs (25+ of them) are provided in both C and C++ versions.
-WWW: http://www.shamus.ie/
+WWW: http://certivox.com/index.php/solutions/miracl-crypto-sdk
--- patch-math-miracl.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list