aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2018-01-23 16:51:20 +0800
committergahr <gahr@FreeBSD.org>2018-01-23 16:51:20 +0800
commitdd246c1661f2789492fb5cb7f443e4519d27cb21 (patch)
treeaf7e346d7f8d25a14978b8d5335fc9f3f3b62b30 /security
parentcec78460bdc3d283680ab391971814f705cc3e0d (diff)
downloadfreebsd-ports-gnome-dd246c1661f2789492fb5cb7f443e4519d27cb21.tar.gz
freebsd-ports-gnome-dd246c1661f2789492fb5cb7f443e4519d27cb21.tar.zst
freebsd-ports-gnome-dd246c1661f2789492fb5cb7f443e4519d27cb21.zip
security/libtomcrypt: use official tarball, install PDF, bump PORTREVISION
Reported by: mat
Diffstat (limited to 'security')
-rw-r--r--security/libtomcrypt/Makefile17
-rw-r--r--security/libtomcrypt/distinfo6
2 files changed, 14 insertions, 9 deletions
diff --git a/security/libtomcrypt/Makefile b/security/libtomcrypt/Makefile
index 31fe975f1b69..3a5ca13c8384 100644
--- a/security/libtomcrypt/Makefile
+++ b/security/libtomcrypt/Makefile
@@ -3,8 +3,10 @@
PORTNAME= libtomcrypt
PORTVERSION= 1.18.1
-DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= security
+MASTER_SITES= https://github.com/libtom/${PORTNAME}/releases/download/v${PORTVERSION}/
+DISTNAME= crypt-${PORTVERSION}
MAINTAINER= gahr@FreeBSD.org
COMMENT= Comprehensive, modular, and portable cryptographic toolkit
@@ -12,18 +14,17 @@ COMMENT= Comprehensive, modular, and portable cryptographic toolkit
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/LICENSE
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
CFLAGS+= -I${LOCALBASE}/include
EXTRALIBS= -L${LOCALBASE}/lib
MAKEFILE= makefile.shared
ALL_TARGET= library
MAKE_ARGS= INCPATH="${PREFIX}/include" LIBPATH="${PREFIX}/lib" \
EXTRALIBS="${EXTRALIBS}"
-USES= gmake libtool:build
+USES= gmake libtool:build tar:xz
USE_LDCONFIG= yes
-USE_GITHUB= yes
-GH_ACCOUNT= libtom
-
OPTIONS_DEFINE= DOCS
OPTIONS_MULTI= MATH
OPTIONS_MULTI_MATH= LIBTOMMATH TOMSFASTMATH GMP
@@ -44,7 +45,7 @@ GMP_LIB_DEPENDS= libgmp.so:math/gmp
GMP_CFLAGS= -DGMP_DESC
GMP_VARS= EXTRALIBS+=-lgmp
-DOCS_MAKE_ARGS_OFF= NODOCS=yes
+PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|' -e 's| make | $$(MAKE) |' \
@@ -54,6 +55,10 @@ post-patch:
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtomcrypt.so.1
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/crypt.pdf ${STAGEDIR}${DOCSDIR}
+
do-test:
# TomsFastMath
@${ECHO_CMD} "Testing TomsFastMath"
diff --git a/security/libtomcrypt/distinfo b/security/libtomcrypt/distinfo
index e5e136b8f31c..f726c17b9436 100644
--- a/security/libtomcrypt/distinfo
+++ b/security/libtomcrypt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1516618104
-SHA256 (libtom-libtomcrypt-v1.18.1_GH0.tar.gz) = e1319d77bf8ac296b69cf68f66e4dadfb68a8519bd684cc83d29b8d6754d10ef
-SIZE (libtom-libtomcrypt-v1.18.1_GH0.tar.gz) = 2299746
+TIMESTAMP = 1516696801
+SHA256 (crypt-1.18.1.tar.xz) = 57c13a34fbfd45696189d19e47864e48f4e5c11590c29b444accb8edbf047f14
+SIZE (crypt-1.18.1.tar.xz) = 2614492