net/dtcpclient: Revert SSL, fix DF to use libmd

It turns out that dtcpclient's makefile checks the OPSYS and links
with either libcrypto or libmd depending on its value.  The SSL
dependency is incorrect for FreeBSD, but correct for DF.  Revert the
previous commit and make DragonFly link with libmd as well.

Reported by:	Hajimu UMEMOTO
This commit is contained in:
John Marino 2016-09-11 03:23:12 +00:00
parent 22726ce1db
commit c20d4d18ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421782
2 changed files with 13 additions and 3 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= dtcpclient
PORTVERSION= 20151002
PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://www.mahoroba.org/~ume/ipv6/
@ -10,10 +11,8 @@ COMMENT= Dynamic Tunnel Configuration Protocol client
LICENSE= BSD2CLAUSE
USES= ssl uidfix
USES= uidfix
USE_RC_SUBR= dtcpclient
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
PLIST_FILES= man/man8/dtcpclient.8.gz \
sbin/dtcpclient \

View file

@ -0,0 +1,11 @@
--- Makefile.orig 2015-10-02 08:23:57 UTC
+++ Makefile
@@ -45,7 +45,7 @@ MANDIR= $(PREFIX)/man/man
CFLAGS+= -Wall -DPREFIX=\"$(PREFIX)\"
-.if ($(OPSYS) == "FreeBSD")
+.if ($(OPSYS) == "FreeBSD") || ($(OPSYS) == "DragonFly")
CFLAGS+= -DHAVE_MD5
LDADD= -lmd
.elif ($(OPSYS) == "NetBSD") || ($(OPSYS) == "OpenBSD")