1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Allow to build without ssl

PR:		ports/153405
Submitted by:	Anton Yuzhaninov <citrin@citrin.ru>
This commit is contained in:
Wen Heping 2010-12-24 00:45:59 +00:00
parent 3a07d9a1ed
commit 3b95fcf23e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266820
3 changed files with 8 additions and 9 deletions

View File

@ -15,7 +15,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Small HTTP server with support for GET, HEAD, POST, CGI, SSL, IPv6
.ifndef NO_SSL
USE_OPENSSL= YES
MAKE_ARGS+= -DUSE_OPENSSL
.endif
MAN8= mini_httpd.8 htpasswd.8

View File

@ -1,3 +1,2 @@
MD5 (mini_httpd-1.19.tar.gz) = 7c68293ad265ecfe2edea917912f6f1f
SHA256 (mini_httpd-1.19.tar.gz) = f7f36533b1338ea16d916ea525ea7006ab38fdd3544ac7df93a4688a8e270241
SIZE (mini_httpd-1.19.tar.gz) = 42063

View File

@ -1,19 +1,19 @@
--- Makefile.orig Thu Oct 30 22:53:07 2003
+++ Makefile Thu Oct 30 23:03:24 2003
@@ -14,17 +14,18 @@
--- Makefile.orig 2002-11-01 23:02:57.000000000 +0000
+++ Makefile 2010-12-23 14:02:54.000000000 +0000
@@ -14,17 +14,20 @@
# http://www.openssl.org/ Make sure the SSL_TREE definition points to the
# tree with your OpenSSL installation - depending on how you installed it,
# it may be in /usr/local instead of /usr/local/ssl.
+.ifndef NO_OPENSSL
+.ifdef USE_OPENSSL
#SSL_TREE = /usr/local/ssl
-#SSL_DEFS = -DUSE_SSL
+SSL_DEFS = -DUSE_SSL
#SSL_INC = -I${SSL_TREE}/include
-#SSL_LIBS = -L${SSL_TREE}/lib -lssl -lcrypto
-
#SSL_LIBS = -L${SSL_TREE}/lib -lssl -lcrypto
+SSL_LIBS = -lssl -lcrypto
+.endif
BINDIR = /usr/local/sbin
MANDIR = /usr/local/man
-CC = gcc
@ -24,7 +24,7 @@
#CFLAGS = -g ${CDEFS}
LDFLAGS = -s
#LDFLAGS = -g
@@ -76,9 +77,7 @@
@@ -76,9 +79,7 @@
-mkdir -p ${BINDIR}
cp mini_httpd htpasswd ${BINDIR}
rm -f ${MANDIR}/man8/mini_httpd.8 ${MANDIR}/man1/htpasswd.1