openbsd-ports/net/ii/patches/sslpatch-config_mk
gsoares a95165a308 add ucspi flavor to the IRC client net/ii. It makes the usage of
ii more flexible.  Thus, it is possible to use ii with IPv6, libtls or a
socks proxy without applying much more patches from the upstream page.

This flavor uses ucspi for back-end connection instead of socked API

Eg/Usage:

1. Direct plain IRC connection

   tcpclient irc.freenode.net 6667 ii

2. TLS encrypted connection

   tcpclient irc.freenode.net 6697 tlsc ii

3. TLS connection in combination with a SOCKS proxy

   tcpclient 127.0.0.1 1080 socks irc.freenode.net 6697 tlsc ii

The patch file itself is comes from upstream
(http://tools.suckless.org/ii/patches/)

Diff from Jan Klemkow <j.klemkow at wemelug ! de>, who is also the author of the
upstream patch. Thanks!
2016-05-21 05:31:38 +00:00

22 lines
788 B
Plaintext

$OpenBSD: sslpatch-config_mk,v 1.1 2016/05/21 05:31:38 gsoares Exp $
--- config.mk.orig Wed Jul 16 22:29:41 2014
+++ config.mk Thu Jul 17 08:21:18 2014
@@ -15,13 +15,13 @@ LIBDIR = ${PREFIX}/lib
VERSION = 1.7
# includes and libs
-INCLUDES = -I. -I${INCDIR} -I/usr/include
-LIBS = -L${LIBDIR} -L/usr/lib -lc -lssl -lcrypto
+INCLUDES += -I${INCDIR}
+LIBS = -L${LIBDIR} -lssl -lcrypto
# uncomment and comment other variables for compiling on Solaris
#LIBS = -L${LIBDIR} -L/usr/lib -lc -lsocket -lnsl
#CFLAGS = -g ${INCLUDES} -DVERSION=\"${VERSION}\"
# compiler
CC = cc
-CFLAGS = -g -O0 -W -Wall ${INCLUDES} -DVERSION=\"${VERSION}\"
-LDFLAGS = ${LIBS}
+CFLAGS += ${INCLUDES} -DVERSION=\"${VERSION}\"
+LDFLAGS += ${LIBS}