diff options
author | kris <kris@FreeBSD.org> | 2000-02-07 06:25:15 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-02-07 06:25:15 +0800 |
commit | 45e734b715cad00326e706e4f856af51cb76ca85 (patch) | |
tree | a9c1d83c6368bec06da860c56ab94908b171e1ec /www | |
parent | b656f339d7a800f4da4097a7f56fedf64b601422 (diff) | |
download | freebsd-ports-gnome-45e734b715cad00326e706e4f856af51cb76ca85.tar.gz freebsd-ports-gnome-45e734b715cad00326e706e4f856af51cb76ca85.tar.zst freebsd-ports-gnome-45e734b715cad00326e706e4f856af51cb76ca85.zip |
USE_OPENSSL
Assisted by: Jim Bloom <bloom@acm.org>
Diffstat (limited to 'www')
-rw-r--r-- | www/lynx-ssl/Makefile | 18 | ||||
-rw-r--r-- | www/lynx-ssl/files/patch-aa | 6 | ||||
-rw-r--r-- | www/w3m-ssl/Makefile | 2 | ||||
-rw-r--r-- | www/w3m/Makefile | 21 |
4 files changed, 17 insertions, 30 deletions
diff --git a/www/lynx-ssl/Makefile b/www/lynx-ssl/Makefile index 418366d58f1d..d4045f0c69bc 100644 --- a/www/lynx-ssl/Makefile +++ b/www/lynx-ssl/Makefile @@ -11,9 +11,12 @@ PKGNAME= lynx-ssl-2.8.2.1 CATEGORIES= www MASTER_SITES= http://sol.slcc.edu/lynx/current/ -.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES +USE_OPENSSL= RSA + +.include <bsd.port.pre.mk> + +.if defined(OPENSSL_RSAREF) PATCH_SITES= http://www.moxienet.com/lynx/ -EXTRA_SSL_LIBS= "-lRSAglue -lrsaref" .else PATCH_SITES= ftp://ftp.musin.de/unix/ .endif @@ -22,18 +25,11 @@ PATCH_DIST_STRIP= -p1 MAINTAINER= sec@42.org -BUILD_DEPENDS= openssl:${PORTSDIR}/security/openssl -LIB_DEPENDS= crypto.1:${PORTSDIR}/security/openssl \ - ssl.1:${PORTSDIR}/security/openssl - -RESTRICTED= "Contains cryptography" - GNU_CONFIGURE= YES -CFLAGS+= -I${PREFIX}/include/openssl +CFLAGS+= -I${OPENSSLINC}/openssl CONFIGURE_ARGS= --with-screen=ncurses --with-zlib --libdir="${PREFIX}/etc" \ --enable-nsl-fork MAKEFILE= makefile -MAKE_ENV+= EXTRA_SSL_LIBS=${EXTRA_SSL_LIBS} INSTALL_TARGET= install install-help MAN1= lynx.1 @@ -43,4 +39,4 @@ post-install: ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/lynx_help ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/etc/lynx.cfg -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/lynx-ssl/files/patch-aa b/www/lynx-ssl/files/patch-aa index 38708c8f2b08..c7cfa0b60d08 100644 --- a/www/lynx-ssl/files/patch-aa +++ b/www/lynx-ssl/files/patch-aa @@ -1,5 +1,5 @@ ---- makefile.in.orig Wed Jun 9 23:24:37 1999 -+++ makefile.in Wed Jun 9 23:26:39 1999 +--- makefile.in.orig Sat Jan 29 23:43:49 2000 ++++ makefile.in Sun Jan 30 00:04:17 2000 @@ -54,7 +54,7 @@ DOCDIR= $(DESTDIR)$(docdir) @@ -15,7 +15,7 @@ # ability to make SSL connections. -SSL_DIR= /usr/local/ssl -SSL_LIBS= -L$(SSL_DIR)/lib -lssl -lcrypto -+SSL_DIR= $(prefix) ++SSL_DIR= $(OPENSSLBASE) +SSL_LIBS= -L$(SSL_DIR)/lib -lssl -lcrypto ${EXTRA_SSL_LIBS} SSL_DEFINES= -I$(SSL_DIR)/include -DUSE_SSL diff --git a/www/w3m-ssl/Makefile b/www/w3m-ssl/Makefile index 08947da81ba5..dbb81ce9a8d1 100644 --- a/www/w3m-ssl/Makefile +++ b/www/w3m-ssl/Makefile @@ -13,6 +13,6 @@ MASTERDIR= ${.CURDIR}/../../www/w3m PKGDIR= ${.CURDIR}/pkg PLIST= ${MASTERDIR}/pkg/PLIST -USE_SSL= Yes +USE_OPENSSL= RSA .include "${MASTERDIR}/Makefile" diff --git a/www/w3m/Makefile b/www/w3m/Makefile index 064af9ff539d..2d48a8dcaef7 100644 --- a/www/w3m/Makefile +++ b/www/w3m/Makefile @@ -16,10 +16,6 @@ MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/dev/ \ MAINTAINER= nobutaka@nobutaka.com -.if defined(USE_SSL) -RESTRICTED= "Contains cryptography" -.endif - BUILD_DEPENDS= ${LOCALBASE}/lib/libgc.a:${PORTSDIR}/devel/boehm-gc WRKSRC= ${WRKDIR}/w3m @@ -47,21 +43,16 @@ DOCS_JP= ${DOCS} HISTORY HISTORY.kokb README.keymap README.kokb \ README.menu .endif -.if defined(USE_SSL) -LIB_DEPENDS+= crypto.1:${PORTSDIR}/security/openssl \ - ssl.1:${PORTSDIR}/security/openssl - -SSL_CFLAGS= -I${LOCALBASE}/include/openssl -SSL_LIBS= -lssl -lcrypto -.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES -EXTRA_SSL_LIBS= -lRSAglue -lrsaref -.endif +.if defined(USE_OPENSSL) +SSL_CFLAGS= -I${OPENSSLINC}/openssl -I${OPENSSLINC} +SSL_LIBS= -L${OPENSSLLIB} -lssl -lcrypto SED_CMD+= -e "s,undef USE_SSL,define USE_SSL,g" .endif -MAKE_FLAGS+= DEFS="-I${LOCALBASE}/include ${SSL_CFLAGS}" \ - LIBS="-L${LOCALBASE}/lib ${SSL_LIBS} ${EXTRA_SSL_LIBS}" +EXTRA_SSL_LIBS= -lRSAglue -lrsaref -L${LOCALBASE}/lib +MAKE_FLAGS+= DEFS="${SSL_CFLAGS} -I${LOCALBASE}/include" \ + LIBS="${SSL_LIBS} ${EXTRA_SSL_LIBS}" post-configure: @${CP} ${TARGET} ${TARGET}.in |