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

(-)security/libtomcrypt/Makefile (-6 / +6 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	libtomcrypt
8
PORTNAME=	libtomcrypt
9
PORTVERSION=	0.99
9
PORTVERSION=	1.00
10
CATEGORIES=	security
10
CATEGORIES=	security
11
MASTER_SITES=	http://libtomcrypt.org/files/
11
MASTER_SITES=	http://libtomcrypt.org/files/
12
DISTNAME=	crypt-${PORTVERSION}
12
DISTNAME=	crypt-${PORTVERSION}
Lines 16-39 Link Here
16
16
17
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
17
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
18
MAKEFILE=	makefile
18
MAKEFILE=	makefile
19
MAKE_ARGS+=	PREFIX=${PREFIX}
19
MAKE_ENV=	PREFIX=${PREFIX} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR}
20
MAKE_ENV=	PREFIX=${PREFIX} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR}
20
USE_BZIP2=	yes
21
USE_BZIP2=	yes
22
USE_GMAKE=	yes
21
USE_REINPLACE=	yes
23
USE_REINPLACE=	yes
22
ALL_TARGET=	library
24
ALL_TARGET=	library
23
25
24
.if defined(WITH_DOCS)
26
.if defined(WITH_DOCS)
25
BUILD_DEPENDS+=	latex:${PORTSDIR}/print/teTeX
27
BUILD_DEPENDS+=	latex:${PORTSDIR}/print/teTeX
28
RUN_DEPENDS+=	gs:${PORTSDIR}/print/ghostscript-gnu
26
.else
29
.else
27
NOPORTDOCS=	yes
30
NOPORTDOCS=	yes
28
INSTALL_TARGET=	install-nodocs
31
INSTALL_TARGET=	install_lib
29
.endif
32
.endif
30
33
31
.if defined(MAINTAINER_MODE)
34
.if defined(MAINTAINER_MODE)
32
test:	build
35
test:	build
33
	(cd ${WRKSRC} && ${MAKE} test && ${WRKSRC}/test)
36
	(cd ${WRKSRC}/demos/test && ${MAKE} test $(MAKE_ARGS) && ${WRKSRC}/demos/test/test)
34
.endif
37
.endif
35
36
post-patch:
37
	@${REINPLACE_CMD} -e 's|
||' ${WRKSRC}/whirl.c
38
38
39
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)security/libtomcrypt/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (crypt-0.99.tar.bz2) = d726e7fc495353935b5c1914d62ecbfe
1
MD5 (crypt-1.00.tar.bz2) = 73a896e5e8f636dd14c1517f572ddaa1
2
SIZE (crypt-0.99.tar.bz2) = 887955
2
SIZE (crypt-1.00.tar.bz2) = 940439
(-)security/libtomcrypt/files/patch-demos-test-makefile (+11 lines)
Line 0 Link Here
1
--- demos/test/makefile.orig	Mon Jan 10 16:35:45 2005
2
+++ demos/test/makefile	Mon Jan 10 16:35:58 2005
3
@@ -19,7 +19,7 @@
4
 #CCMALLOC = -lccmalloc -ldl
5
 
6
 test: $(OBJECTS)
7
-	$(CC) $(CFLAGS) $(OBJECTS) /usr/lib/libtomcrypt.a  $(CCMALLOC) -o test
8
+	$(CC) $(CFLAGS) $(OBJECTS) $(PREFIX)/lib/libtomcrypt.a  $(CCMALLOC) -o test
9
 	
10
 clean:
11
 	rm -rf test *.o *.obj *.exe *~	.libs
(-)security/libtomcrypt/files/patch-makefile (-31 / +20 lines)
Lines 1-40 Link Here
1
--- makefile.orig	Mon Aug  9 11:52:40 2004
1
--- makefile.orig	Thu Dec 30 19:55:17 2004
2
+++ makefile	Mon Aug  9 12:03:56 2004
2
+++ makefile	Tue Jan 11 12:10:05 2005
3
@@ -43,10 +43,10 @@
3
@@ -50,13 +50,13 @@
4
 #LIBPATH-The directory for libtomcrypt to be installed to.
5
 #INCPATH-The directory to install the header files for libtomcrypt.
4
 #INCPATH-The directory to install the header files for libtomcrypt.
6
 #DATAPATH-The directory to install the pdf docs.
5
 #DATAPATH-The directory to install the pdf docs.
7
-DESTDIR=
6
 DESTDIR=
8
-LIBPATH=/usr/lib
7
-LIBPATH=/usr/lib
9
-INCPATH=/usr/include
8
-INCPATH=/usr/include
10
-DATAPATH=/usr/share/doc/libtomcrypt/pdf
9
-DATAPATH=/usr/share/doc/libtomcrypt/pdf
11
+DESTDIR=$(PREFIX)
10
+LIBPATH=$(PREFIX)/lib
12
+LIBPATH=/lib
11
+INCPATH=$(PREFIX)/include
13
+INCPATH=/include
12
+DATAPATH=$(PREFIX)/share/doc/libtomcrypt/pdf
14
+DATAPATH=/share/doc/libtomcrypt/pdf
13
 
14
 #Who do we install as?
15
 USER=root
16
-GROUP=root
17
+GROUP=wheel
15
 
18
 
16
 #List of objects to compile.
19
 #List of objects to compile.
17
 
20
 
18
@@ -179,13 +179,15 @@
21
@@ -251,7 +251,7 @@
19
 #This rule installs the library and the header files. This must be run
22
 	latex crypt > /dev/null
20
 #as root in order to have a high enough permission to write to the correct
23
 	makeindex crypt.idx > /dev/null
21
 #directories and to set the owner and group to root.
24
 	latex crypt > /dev/null
22
-install: library docs
25
-	dvipdf crypt
23
-	install -d -g root -o root $(DESTDIR)$(LIBPATH)
26
+	dvipdft crypt
24
-	install -d -g root -o root $(DESTDIR)$(INCPATH)
27
 	mv -ivf crypt.pdf doc/crypt.pdf
25
-	install -d -g root -o root $(DESTDIR)$(DATAPATH)
28
 	rm -f $(LEFTOVERS)
26
-	install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH)
27
-	install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH)
28
-	install -g root -o root doc/crypt.pdf $(DESTDIR)$(DATAPATH)
29
+install: docs install-nodocs
30
+	install -d -g wheel -o root $(DESTDIR)$(DATAPATH)
31
+	install -g wheel -o root doc/crypt.pdf $(DESTDIR)$(DATAPATH)
32
+
33
+install-nodocs: library
34
+	install -d -g wheel -o root $(DESTDIR)$(LIBPATH)
35
+	install -d -g wheel -o root $(DESTDIR)$(INCPATH)
36
+	install -g wheel -o root $(LIBNAME) $(DESTDIR)$(LIBPATH)
37
+	install -g wheel -o root $(HEADERS) $(DESTDIR)$(INCPATH)
38
 
29
 
39
 #This rule cleans the source tree of all compiled code, not including the pdf
40
 #documentation.
(-)security/libtomcrypt/pkg-plist (-12 / +13 lines)
Lines 1-17 Link Here
1
lib/libtomcrypt.a
1
lib/libtomcrypt.a
2
include/ltc_tommath.h
2
include/ltc_tommath.h
3
include/mycrypt_cfg.h
3
include/tomcrypt_cfg.h
4
include/mycrypt_misc.h
4
include/tomcrypt_misc.h
5
include/mycrypt_prng.h
5
include/tomcrypt_prng.h
6
include/mycrypt_cipher.h
6
include/tomcrypt_cipher.h
7
include/mycrypt_hash.h
7
include/tomcrypt_hash.h
8
include/mycrypt_macros.h
8
include/tomcrypt_macros.h
9
include/mycrypt_pk.h
9
include/tomcrypt_pk.h
10
include/mycrypt.h
10
include/tomcrypt.h
11
include/mycrypt_argchk.h
11
include/tomcrypt_argchk.h
12
include/mycrypt_custom.h
12
include/tomcrypt_custom.h
13
include/mycrypt_pkcs.h
13
include/tomcrypt_pkcs.h
14
include/tommath_class.h
14
include/tommath_class.h
15
include/tommath_superclass.h
15
include/tommath_superclass.h
16
%%PORTDOCS%%%%DOCSDIR%%/crypt.pdf
16
%%PORTDOCS%%%%DOCSDIR%%/pdf/crypt.pdf
17
%%PORTDOCS%%@dirrm %%DOCSDIR%%/pdf/
17
%%PORTDOCS%%@dirrm %%DOCSDIR%%
18
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 76185