mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
Minbif aims to use the libpurple library from the Pidgin project
to provide an IRC-friendly instant messaging client. WWW: http://minbif.im Submitted by: Frank Steinborn <steinex AT nognu.de>
This commit is contained in:
parent
b4ab52a1f2
commit
d269fdef8a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252688
1
GIDs
1
GIDs
@ -156,3 +156,4 @@ mongodb:*:922:
|
||||
liquidsoap:*:923:
|
||||
postpals:*:924:
|
||||
mfs:*:925:
|
||||
minbif:*:926:
|
||||
|
1
UIDs
1
UIDs
@ -166,3 +166,4 @@ mongodb:*:922:922::0:0:MongoDB Account:/var/empty:/usr/sbin/nologin
|
||||
liquidsoap:*:923:923::0:0:Liquidsoap User:/nonexistent:/usr/sbin/nologin
|
||||
postpals:*:924:924::0:0:postpals user:/nonexistent:/usr/sbin/nologin
|
||||
mfs:*:925:925::0:0:MooseFS User:/nonexistent:/usr/sbin/nologin
|
||||
minbif:*:926:926::0:0:Minbif Daemon User:/nonexistent:/usr/sbin/nologin
|
||||
|
@ -74,6 +74,7 @@
|
||||
SUBDIR += libircclient
|
||||
SUBDIR += lostirc
|
||||
SUBDIR += miau
|
||||
SUBDIR += minbif
|
||||
SUBDIR += muh
|
||||
SUBDIR += nefarious
|
||||
SUBDIR += nethirc
|
||||
|
110
irc/minbif/Makefile
Normal file
110
irc/minbif/Makefile
Normal file
@ -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>
|
3
irc/minbif/distinfo
Normal file
3
irc/minbif/distinfo
Normal file
@ -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
|
35
irc/minbif/files/minbif.in
Normal file
35
irc/minbif/files/minbif.in
Normal file
@ -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"
|
18
irc/minbif/files/pkg-message.in
Normal file
18
irc/minbif/files/pkg-message.in
Normal file
@ -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"
|
||||
|
||||
*************************************************************************/
|
4
irc/minbif/pkg-descr
Normal file
4
irc/minbif/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user