View | Details | Raw Unified | Return to bug 139484
Collapse All | Expand All

(-)./nettle/Makefile (-6 / +6 lines)
Lines 1-4 Link Here
1
# ex:ts=8
1
# ex:ts=8
2
# ex:ts=8
2
# New ports collection makefile for:	nettle
3
# New ports collection makefile for:	nettle
3
# Date created:			Dec 6, 2001
4
# Date created:			Dec 6, 2001
4
# Whom:				ijliao
5
# Whom:				ijliao
Lines 7-14 Link Here
7
#
8
#
8
9
9
PORTNAME=	nettle
10
PORTNAME=	nettle
10
PORTVERSION=	1.15
11
PORTVERSION=	2.0
11
PORTREVISION=	2
12
CATEGORIES=	security
12
CATEGORIES=	security
13
MASTER_SITES=	http://www.lysator.liu.se/~nisse/archive/ \
13
MASTER_SITES=	http://www.lysator.liu.se/~nisse/archive/ \
14
		ftp://ftp.lysator.liu.se/pub/security/lsh/
14
		ftp://ftp.lysator.liu.se/pub/security/lsh/
Lines 23-42 Link Here
23
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
24
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
24
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
25
CONFIGURE_ARGS=	--enable-shared
25
CONFIGURE_ARGS=	--enable-shared
26
26
LDFLAGS+=	-L${LOCALBASE}/lib
27
LDFLAGS+=	-L${LOCALBASE}/lib
27
USE_LDCONFIG=	yes
28
USE_LDCONFIG=	yes
28
29
29
DOCS=		NEWS README TODO nettle.html
30
DOCS=		NEWS README TODO nettle.html nettle.pdf
30
EXAMPLES=	examples/*.c examples/*.h
31
EXAMPLES=	examples/*.c examples/*.h
31
32
32
INFO=		nettle
33
INFO=		nettle
33
34
34
post-extract:
35
	@${RM} -f ${WRKSRC}/nettle.info*
36
37
post-install:
35
post-install:
36
.if !defined(NOPORTEXAMPLES)
38
	@${MKDIR} ${EXAMPLESDIR}
37
	@${MKDIR} ${EXAMPLESDIR}
39
	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
38
	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
39
.endif
40
.if !defined(NOPORTDOCS)
40
.if !defined(NOPORTDOCS)
41
	@${MKDIR} ${DOCSDIR}
41
	@${MKDIR} ${DOCSDIR}
42
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
42
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
(-)./nettle/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (nettle-1.15.tar.gz) = 6b0fd004359660b65ff3eca77b3d5fa6
1
MD5 (nettle-2.0.tar.gz) = d813bc76b1042d76100efbc6a955d7df
2
SHA256 (nettle-1.15.tar.gz) = d6e540bf4acc857a3b09580e7f61822d352ee83c119579bf7333f0a785f7d9ac
2
SHA256 (nettle-2.0.tar.gz) = 65b9e230b953bfb075f10473917e216df9b825fc325b88f69cdf756ffa17cbd6
3
SIZE (nettle-1.15.tar.gz) = 829862
3
SIZE (nettle-2.0.tar.gz) = 883732
(-)./nettle/files/patch-Makefile.in (-10 lines)
Lines 1-10 Link Here
1
--- Makefile.in.orig	Tue Nov  1 09:34:09 2005
2
+++ Makefile.in	Tue Nov  1 09:34:24 2005
3
@@ -221,7 +221,6 @@
4
 	$(INSTALL_PROGRAM) $(SHLIBFORLINK) $(DESTDIR)$(libdir)/$(SHLIBFILE)
5
 	[ -z "$(SHLIBSONAME)" ] \
6
                 || (cd $(DESTDIR)$(libdir) \
7
-		&& ln -sf $(SHLIBFILE) $(SHLIBSONAME) \
8
 		&& ln -sf $(SHLIBFILE) $(SHLIBFORLINK) )
9
 
10
 install-info: nettle.info
(-)./nettle/files/patch-configure (-11 lines)
Lines 1-11 Link Here
1
--- configure.orig	Tue Nov  1 09:35:20 2005
2
+++ configure	Tue Nov  1 09:36:28 2005
3
@@ -2990,7 +2990,7 @@
4
   *)
5
     SHLIBFORLINK=libnettle.so
6
     SHLIBSONAME='$(SHLIBFORLINK).$(SHLIBMAJOR)'
7
-    SHLIBFILE='$(SHLIBSONAME).$(SHLIBMINOR)'
8
+    SHLIBFILE='$(SHLIBSONAME)'
9
     SHLIBLINK='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME)'
10
     # FIXME: It might make some sense to link with -lgmp
11
     SHLIBLIBS=''
(-)./nettle/files/patch-examples_nettle-openssl.c (-13 lines)
Lines 1-13 Link Here
1
2
$FreeBSD: ports/security/nettle/files/patch-examples_nettle-openssl.c,v 1.3 2006/09/02 22:17:13 simon Exp $
3
4
--- examples/nettle-openssl.c.orig
5
+++ examples/nettle-openssl.c
6
@@ -35,6 +35,7 @@
7
 #define NCOMPAT
8
 #define OPENSSL_DISABLE_OLD_DES_SUPPORT
9
 
10
+#include <sys/types.h>
11
 #include <assert.h>
12
 
13
 #include <openssl/aes.h>
(-)./nettle/pkg-plist (-16 / +25 lines)
Lines 37-62 Link Here
37
include/nettle/sha.h
37
include/nettle/sha.h
38
include/nettle/twofish.h
38
include/nettle/twofish.h
39
include/nettle/yarrow.h
39
include/nettle/yarrow.h
40
@dirrm include/nettle
40
lib/libhogweed.a
41
lib/libhogweed.so
42
lib/libhogweed.so.1
43
lib/libhogweed.so.1.0
41
lib/libnettle.a
44
lib/libnettle.a
42
lib/libnettle.so
45
lib/libnettle.so
43
lib/libnettle.so.2
46
lib/libnettle.so.3
47
lib/libnettle.so.3.0
44
%%PORTDOCS%%%%DOCSDIR%%/NEWS
48
%%PORTDOCS%%%%DOCSDIR%%/NEWS
45
%%PORTDOCS%%%%DOCSDIR%%/README
49
%%PORTDOCS%%%%DOCSDIR%%/README
46
%%PORTDOCS%%%%DOCSDIR%%/TODO
50
%%PORTDOCS%%%%DOCSDIR%%/TODO
47
%%PORTDOCS%%%%DOCSDIR%%/nettle.html
51
%%PORTDOCS%%%%DOCSDIR%%/nettle.html
52
%%PORTDOCS%%%%DOCSDIR%%/nettle.pdf
53
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/eratosthenes.c
54
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/getopt.c
55
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/getopt.h
56
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/getopt1.c
57
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/io.c
58
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/io.h
59
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nettle-benchmark.c
60
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nettle-openssl.c
61
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/next-prime.c
62
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/read_rsa_key.c
63
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rsa-decrypt.c
64
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rsa-encrypt.c
65
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rsa-keygen.c
66
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rsa-session.h
67
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rsa-sign.c
68
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rsa-verify.c
69
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
48
%%PORTDOCS%%@dirrm %%DOCSDIR%%
70
%%PORTDOCS%%@dirrm %%DOCSDIR%%
49
%%EXAMPLESDIR%%/getopt.c
71
@dirrm include/nettle
50
%%EXAMPLESDIR%%/getopt.h
51
%%EXAMPLESDIR%%/getopt1.c
52
%%EXAMPLESDIR%%/io.c
53
%%EXAMPLESDIR%%/io.h
54
%%EXAMPLESDIR%%/nettle-benchmark.c
55
%%EXAMPLESDIR%%/nettle-openssl.c
56
%%EXAMPLESDIR%%/rsa-decrypt.c
57
%%EXAMPLESDIR%%/rsa-encrypt.c
58
%%EXAMPLESDIR%%/rsa-keygen.c
59
%%EXAMPLESDIR%%/rsa-session.h
60
%%EXAMPLESDIR%%/rsa-sign.c
61
%%EXAMPLESDIR%%/rsa-verify.c
62
@dirrm %%EXAMPLESDIR%%

Return to bug 139484