openbsd-ports/net/ii/Makefile
gsoares 215ef5ead3 - Fix channel use after freeing in main loop
(spotted the hard way by Ray Lai)
patch from upstream git

- Add pledge(2) to ii(1)
    stdio rpath wpath cpath dpath: ii(1) will create directory
    structure and fifos on demand (when joining a new channel for
    example)
    inet net: required for tcpopen(), but pledge(2) is used after
    tcpopen() call. ucspi flavor doesn't need "inet dns" since
    that ucspi backend take care of network capabilities of ii(1).


diff from ray with tweaks from me and semarie.

OK semarie ray
2016-06-06 11:02:05 +00:00

52 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2016/06/06 11:02:05 gsoares Exp $
COMMENT= minimalist IRC client
DISTNAME= ii-1.7
REVISION= 3
CATEGORIES= net
HOMEPAGE= http://tools.suckless.org/ii
MASTER_SITES= http://dl.suckless.org/tools/
MASTER_SITES0= ${HOMEPAGE}/patches/
MAINTAINER= Gleydson Soares <gsoares@openbsd.org>
# MIT/X
PERMIT_PACKAGE_CDROM= Yes
# uses pledge()
WANTLIB= c
NO_TEST= Yes
FLAVORS= ucspi
FLAVOR?=
# patches from http://tools.suckless.org/ii/patches
PATCH_DIST_STRIP= -p1
.if ${FLAVOR} == "ucspi"
# adds unix client server programming interface support
PATCHFILES+= ${DISTNAME}-ucspi.diff:0
PATCH_LIST= patch-* ucspipatch-*
RUN_DEPENDS= net/ucspi-tools
.else
# adds ssl encryption support
PATCHFILES+= ${DISTNAME}-ssl.diff:0
PATCH_LIST= patch-* sslpatch-*
WANTLIB+= crypto ssl
.endif
SUPDISTFILES+= ${DISTNAME}-ssl.diff:0
SUPDISTFILES+= ${DISTNAME}-ucspi.diff:0
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ii ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/ii.1 ${PREFIX}/man/man1/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ii
${INSTALL_DATA} ${WRKSRC}/{README,FAQ,query.sh} ${PREFIX}/share/doc/ii
.include <bsd.port.mk>