aboutsummaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
authorBeat Gaetzi <beat@FreeBSD.org>2010-04-14 19:42:36 +0000
committerBeat Gaetzi <beat@FreeBSD.org>2010-04-14 19:42:36 +0000
commitd269fdef8a5236a90d9d3bb16c402467c8cb4c77 (patch)
treed9a2d9dba141fc43357dc6301cf3469f1cb6d827 /irc
parentb4ab52a1f2f03c49a16e01775245e2a4ac50f94e (diff)
downloadports-d269fdef8a5236a90d9d3bb16c402467c8cb4c77.tar.gz
ports-d269fdef8a5236a90d9d3bb16c402467c8cb4c77.zip
Notes
Diffstat (limited to 'irc')
-rw-r--r--irc/Makefile1
-rw-r--r--irc/minbif/Makefile110
-rw-r--r--irc/minbif/distinfo3
-rw-r--r--irc/minbif/files/minbif.in35
-rw-r--r--irc/minbif/files/pkg-message.in18
-rw-r--r--irc/minbif/pkg-descr4
6 files changed, 171 insertions, 0 deletions
diff --git a/irc/Makefile b/irc/Makefile
index 270a09fbff65..0720a6768107 100644
--- a/irc/Makefile
+++ b/irc/Makefile
@@ -74,6 +74,7 @@
SUBDIR += libircclient
SUBDIR += lostirc
SUBDIR += miau
+ SUBDIR += minbif
SUBDIR += muh
SUBDIR += nefarious
SUBDIR += nethirc
diff --git a/irc/minbif/Makefile b/irc/minbif/Makefile
new file mode 100644
index 000000000000..78bd5e8013f5
--- /dev/null
+++ b/irc/minbif/Makefile
@@ -0,0 +1,110 @@
+# New ports collection makefile for: minbif
+# Date created: 2010-06-03
+# Whom: Frank Steinborn <steinex@nognu.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= minbif
+PORTVERSION= 1.0.1
+CATEGORIES= irc net-im
+MASTER_SITES= http://symlink.me/attachments/download/39/
+
+MAINTAINER= steinex@nognu.de
+COMMENT= An IRC to instant messaging gateway
+
+LIB_DEPENDS= purple.6:${PORTSDIR}/net-im/libpurple
+
+USERS= minbif
+GROUPS= minbif
+
+SUB_FILES= pkg-message
+MAN8= minbif.8
+
+PLIST_FILES= bin/minbif %%ETCDIR%%/minbif.conf-dist \
+ %%ETCDIR%%/minbif.motd-dist
+PLIST_DIRS= %%ETCDIR%%
+
+USE_CMAKE= yes
+USE_RC_SUBR= minbif
+PKGMESSAGE= ${WRKDIR}/pkg-message
+PORTDOCS= *
+
+# right now WITH_PLUGINS installs prpl-coincoin and prpl-gayattitude
+OPTIONS= CACA "Buddy icon display using libcaca" On \
+ VIDEO "Webcam display using libcaca (depends on CACA)" Off \
+ PLUGINS "Compile additional libpurple-plugins" Off
+
+SUB_LIST+= USERS=${USERS}
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 700000
+BROKEN= does not link on 6.X
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-Werror||g' ${WRKSRC}/CMakeLists.txt
+ @${REINPLACE_CMD} -e 's|-Wall||g' ${WRKSRC}/CMakeLists.txt
+ @${REINPLACE_CMD} -e \
+ 's|message.c_str(), NULL);|message.c_str(), (char*)NULL);|g' \
+ ${WRKSRC}/src/im/account.cpp
+ @${REINPLACE_CMD} -e \
+ 's|#include <libpurple/purple.h>|#include <purple.h>|g' \
+ ${WRKSRC}/src/core/callback.h ${WRKSRC}/src/core/minbif.cpp \
+ ${WRKSRC}/src/core/util.h ${WRKSRC}/src/im/account.h \
+ ${WRKSRC}/src/im/buddy.h ${WRKSRC}/src/im/conversation.h \
+ ${WRKSRC}/src/im/ft.h ${WRKSRC}/src/im/media.h \
+ ${WRKSRC}/src/im/protocol.h ${WRKSRC}/src/im/purple.cpp \
+ ${WRKSRC}/src/im/request.h ${WRKSRC}/src/im/roomlist.h \
+ ${WRKSRC}/src/irc/nick.h
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_CACA)
+LIB_DEPENDS+= caca.0:${PORTSDIR}/graphics/libcaca
+CMAKE_ARGS+= -DENABLE_CACA:BOOL=ON
+.else
+CMAKE_ARGS+= -DENABLE_CACA:BOOL=OFF
+.endif
+
+.if defined(WITH_VIDEO) && defined(WITH_CACA)
+USE_GSTREAMER+= core good
+LIB_DEPENDS+= gstfarsight-0.10.0:${PORTSDIR}/net-im/farsight2
+CMAKE_ARGS+= -DENABLE_VIDEO:BOOL=ON
+.else
+CMAKE_ARGS+= -DENABLE_VIDEO:BOOL=OFF
+.endif
+
+.if defined(WITH_VIDEO) && !defined(WITH_CACA)
+IGNORE= if you want to enable webcam support, you must \
+ also enable CACA.
+.endif
+
+.if defined(WITH_PLUGINS)
+CMAKE_ARGS+= -DENABLE_PLUGIN:BOOL=ON
+PLIST_FILES+= lib/purple-2/libcoincoin.so \
+ lib/purple-2/libgayattitude.so
+.else
+CMAKE_ARGS+= -DENABLE_PLUGIN:BOOL=OFF
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/man/minbif.8 ${MAN8PREFIX}/man/man8
+ ${MKDIR} ${ETCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/minbif.conf ${ETCDIR}/minbif.conf-dist
+ ${INSTALL_DATA} ${WRKSRC}/minbif.motd ${ETCDIR}/minbif.motd-dist
+.if defined(WITH_PLUGINS)
+ ${INSTALL_PROGRAM} ${WRKSRC}/plugins/coincoin/libcoincoin.so ${PREFIX}/lib/purple-2
+ ${INSTALL_PROGRAM} ${WRKSRC}/plugins/gayattitude/libgayattitude.so ${PREFIX}/lib/purple-2
+.endif
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/minbif.xinetd ${DOCSDIR}
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/irc/minbif/distinfo b/irc/minbif/distinfo
new file mode 100644
index 000000000000..78fe7c91c046
--- /dev/null
+++ b/irc/minbif/distinfo
@@ -0,0 +1,3 @@
+MD5 (minbif-1.0.1.tar.gz) = b3eb1f09fd33b6e9c811b0dc34653e2f
+SHA256 (minbif-1.0.1.tar.gz) = 52e632974b65dc82396013979f3c76b8546366728f9f0e4b3685434a670e7771
+SIZE (minbif-1.0.1.tar.gz) = 152815
diff --git a/irc/minbif/files/minbif.in b/irc/minbif/files/minbif.in
new file mode 100644
index 000000000000..6947fef39f4d
--- /dev/null
+++ b/irc/minbif/files/minbif.in
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: minbif
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable minbif:
+# minbif_enable="YES"
+
+. /etc/rc.subr
+
+name="minbif"
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+: ${minbif_enable="NO"}
+: ${minbif_user="%%USERS%%"}
+: ${minbif_config="%%PREFIX%%/etc/minbif/minbif.conf"}
+
+required_files="${minbif_config}"
+command="%%PREFIX%%/bin/minbif"
+command_args="${minbif_config}"
+
+minbif_start() {
+ su -fm ${minbif_user} -c "${command} start"
+}
+
+minbif_stop() {
+ su -fm ${minbif_user} -c "${command} stop"
+}
+
+run_rc_command "$1"
diff --git a/irc/minbif/files/pkg-message.in b/irc/minbif/files/pkg-message.in
new file mode 100644
index 000000000000..690fe82cc840
--- /dev/null
+++ b/irc/minbif/files/pkg-message.in
@@ -0,0 +1,18 @@
+/************************************************************************
+To configure minbif, do the following:
+
+Copy %%PREFIX%%/etc/minbif/minbif.conf-dist
+ to %%PREFIX%%/etc/minbif/minbif.conf,
+Copy %%PREFIX%%/etc/minbif/minbif.motd-dist
+ to %%PREFIX%%/etc/minbif/minbif.motd
+and modify them to suit your needs.
+
+Please make sure to create the users-directory as defined in
+minbif.conf (default /var/lib/minbif/users) before you first start
+minbif.
+
+To launch the minbif daemon, add the following line to /etc/rc.conf:
+
+minbif_enable="YES"
+
+*************************************************************************/
diff --git a/irc/minbif/pkg-descr b/irc/minbif/pkg-descr
new file mode 100644
index 000000000000..586ef96b4bc2
--- /dev/null
+++ b/irc/minbif/pkg-descr
@@ -0,0 +1,4 @@
+Minbif aims to use the libpurple library from the Pidgin project
+to provide an IRC-friendly instant messaging client.
+
+WWW: http://minbif.im