mestre 67e557bba9 This patch introduces pledge(2) to mcabber with the following promises:
rpath/wpath/cpath/fattr: it needs to read, write and create files and set the
correct attributes
inet/dns: network application needs both promises
tty: ncurses is used for the interface so it needs this
proc/exec: this is only needed if events are configured in the config files

In order to apply this we have disabled modules support since it would need to
load libraries dinamically and therefore prot_exec promise would be needed but
that is not a good strategy. This is mentioned in DESCR to reflect the change.

OK tim@ after his suggestions and also OK by the maintainer Markus Hennecke
since no users objected this change.
2016-03-24 20:04:25 +00:00

54 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.27 2016/03/24 20:04:25 mestre Exp $
COMMENT= console jabber client
DISTNAME= mcabber-1.0.2
REVISION= 1
CATEGORIES= net
HOMEPAGE= http://mcabber.com/
MAINTAINER= Markus Hennecke <markus-hennecke@markus-hennecke.de>
# GPLv2+ with SSL exemption
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${HOMEPAGE}/files/
EXTRACT_SUFX= .tar.bz2
MODULES= devel/gettext
# uses pledge()
WANTLIB= c crypto gcrypt gpg-error ncursesw panelw pcre pthread \
ssl glib-2.0 gmodule-2.0 gpgme loudmouth-1>=3 \
idn otr assuan ffi gobject-2.0
LIB_DEPENDS= devel/glib2 \
security/gpgme \
net/loudmouth \
devel/libidn \
security/libotr
RUN_DEPENDS= devel/desktop-file-utils
USE_GMAKE = Yes
USE_GROFF = Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-gpgme \
--disable-aspell \
--disable-enchant \
--disable-modules \
--enable-otr \
--enable-sigwinch \
--with-libotr-prefix=${LOCALBASE}/lib \
--with-libotr-inc-prefix=${LOCALBASE}/include
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/mcabber.desktop ${PREFIX}/share/applications/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mcabber
${INSTALL_DATA} ${WRKSRC}/mcabberrc.example \
${PREFIX}/share/examples/mcabber
.include <bsd.port.mk>