Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 2010 23:24:25 GMT
From:      Guillermo Amaral <g@maral.me>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/148021: Minbif port update (1.0.2->1.0.3)
Message-ID:  <201006202324.o5KNOPo0025027@www.freebsd.org>
Resent-Message-ID: <201006202330.o5KNU22B061716@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         148021
>Category:       ports
>Synopsis:       Minbif port update (1.0.2->1.0.3)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 20 23:30:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Guillermo Amaral
>Release:        8.0
>Organization:
>Environment:
>Description:
Updated port to build minbif-1.0.3
Added patch for building using Imlib2 without X11 (it failed to build before).
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	irc/
#	irc/minbif
#	irc/minbif/Makefile
#	irc/minbif/distinfo
#	irc/minbif/pkg-descr
#	irc/minbif/files
#	irc/minbif/files/minbif.in
#	irc/minbif/files/pkg-message.in
#	irc/minbif/files/patch-CMakeLists.txt
#
echo c - irc/
mkdir -p irc/ > /dev/null 2>&1
echo c - irc/minbif
mkdir -p irc/minbif > /dev/null 2>&1
echo x - irc/minbif/Makefile
sed 's/^X//' >irc/minbif/Makefile << '4959afd6ad4f0c7ae3c23e6735dbac37'
X# New ports collection makefile for:	minbif
X# Date created:				2010-06-03
X# Whom:					Frank Steinborn <steinex@nognu.de>
X#
X# $FreeBSD: ports/irc/minbif/Makefile,v 1.3 2010/05/22 05:21:08 marcus Exp $
X#
X
XPORTNAME=	minbif
XPORTVERSION=	1.0.3
XPORTREVISION=	1
XCATEGORIES=	irc net-im
XMASTER_SITES=	http://minbif.im/attachments/download/50/
X
XMAINTAINER=	steinex@nognu.de
XCOMMENT=	An IRC to instant messaging gateway
X
XLIB_DEPENDS=	purple.7:${PORTSDIR}/net-im/libpurple
X
XUSERS=		minbif
XGROUPS=		minbif
X
XSUB_FILES=	pkg-message
XMAN8=		minbif.8
X
XPLIST_FILES=	bin/minbif %%ETCDIR%%/minbif.conf-dist \
X		%%ETCDIR%%/minbif.motd-dist
XPLIST_DIRS=	%%ETCDIR%%
X
XUSE_EFL=	imlib2
XUSE_CMAKE=	yes
XCMAKE_ARGS=	-DENABLE_IMLIB:BOOL=ON -DCMAKE_CXX_FLAGS=-DX_DISPLAY_MISSING
XUSE_RC_SUBR=	minbif
XPKGMESSAGE=	${WRKDIR}/pkg-message
XPORTDOCS=	*
X
X# right now WITH_PLUGINS installs prpl-coincoin and prpl-gayattitude
XOPTIONS=	CACA "Buddy icon display using libcaca" On \
X		GNUTLS "Compile with GnuTLS support" Off \
X		VIDEO "Webcam display using libcaca (depends on CACA)" Off \
X		PLUGINS "Compile additional libpurple-plugins" Off
X
XSUB_LIST+=	USERS=${USERS}
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 700000
XBROKEN=		does not link on 6.X
X.endif
X
X.include <bsd.port.options.mk>
X
X.if defined(WITH_CACA)
XLIB_DEPENDS+=	caca.0:${PORTSDIR}/graphics/libcaca
XCMAKE_ARGS+=	-DENABLE_CACA:BOOL=ON
X.else
XCMAKE_ARGS+=	-DENABLE_CACA:BOOL=OFF
X.endif
X
X.if defined(WITH_VIDEO) && defined(WITH_CACA)
XUSE_GSTREAMER+=	core good
XLIB_DEPENDS+=	gstfarsight-0.10.0:${PORTSDIR}/net-im/farsight2
XCMAKE_ARGS+=	-DENABLE_VIDEO:BOOL=ON
X.else
XCMAKE_ARGS+=	-DENABLE_VIDEO:BOOL=OFF
X.endif
X
X.if defined(WITH_VIDEO) && !defined(WITH_CACA)
XIGNORE=		if you want to enable webcam support, you must \
X		also enable CACA.
X.endif
X
X.if defined(WITH_PLUGINS)
XCMAKE_ARGS+=	-DENABLE_PLUGIN:BOOL=ON
XPLIST_FILES+=	lib/purple-2/libcoincoin.so \
X		lib/purple-2/libgayattitude.so
X.else
XCMAKE_ARGS+=	-DENABLE_PLUGIN:BOOL=OFF
X.endif
X
X.if defined(WITH_GNUTLS)
XLIB_DEPENDS+=	gnutls.40:${PORTSDIR}/security/gnutls
XCMAKE_ARGS+=	-DENABLE_GNUTLS:BOOL=ON
X.endif
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
X	${INSTALL_MAN} ${WRKSRC}/man/minbif.8 ${MAN8PREFIX}/man/man8
X	${MKDIR} ${ETCDIR}
X	${INSTALL_DATA} ${WRKSRC}/minbif.conf ${ETCDIR}/minbif.conf-dist
X	${INSTALL_DATA} ${WRKSRC}/minbif.motd ${ETCDIR}/minbif.motd-dist
X.if defined(WITH_PLUGINS)
X	${INSTALL_PROGRAM} ${WRKSRC}/plugins/coincoin/libcoincoin.so ${PREFIX}/lib/purple-2
X	${INSTALL_PROGRAM} ${WRKSRC}/plugins/gayattitude/libgayattitude.so ${PREFIX}/lib/purple-2
X.endif
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/minbif.xinetd ${DOCSDIR}
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
4959afd6ad4f0c7ae3c23e6735dbac37
echo x - irc/minbif/distinfo
sed 's/^X//' >irc/minbif/distinfo << 'c567ecda0e7359cca6c558a74cfb66ba'
XMD5 (minbif-1.0.3.tar.gz) = c08add6234a6dd4a45b46b590fa63268
XSHA256 (minbif-1.0.3.tar.gz) = fede0da71f673ee7d2a71673875724b8caac53618394711ed55406b3250145d6
XSIZE (minbif-1.0.3.tar.gz) = 168238
c567ecda0e7359cca6c558a74cfb66ba
echo x - irc/minbif/pkg-descr
sed 's/^X//' >irc/minbif/pkg-descr << '67568ec86ad227c5857fe9d80d0a422d'
XMinbif aims to use the libpurple library from the Pidgin project
Xto provide an IRC-friendly instant messaging client.
X
XWWW: http://minbif.im
67568ec86ad227c5857fe9d80d0a422d
echo c - irc/minbif/files
mkdir -p irc/minbif/files > /dev/null 2>&1
echo x - irc/minbif/files/minbif.in
sed 's/^X//' >irc/minbif/files/minbif.in << 'ac9772e634f0b406a19d0716ede23816'
X#!/bin/sh
X#
X# $FreeBSD: ports/irc/minbif/files/minbif.in,v 1.1 2010/04/14 19:42:36 beat Exp $
X#
X# PROVIDE: minbif
X# REQUIRE: LOGIN
X# KEYWORD: shutdown
X
X# Add the following lines to /etc/rc.conf to enable minbif:
X# minbif_enable="YES"
X
X. /etc/rc.subr 
X
Xname="minbif"
Xrcvar=`set_rcvar`
X
Xload_rc_config $name
X
X: ${minbif_enable="NO"}
X: ${minbif_user="%%USERS%%"}
X: ${minbif_config="%%PREFIX%%/etc/minbif/minbif.conf"}
X
Xrequired_files="${minbif_config}"
Xcommand="%%PREFIX%%/bin/minbif"
Xcommand_args="${minbif_config}"
X
Xminbif_start() {
X	su -fm ${minbif_user} -c "${command} start"
X}
X
Xminbif_stop() {
X	su -fm ${minbif_user} -c "${command} stop"
X}
X
Xrun_rc_command "$1"
ac9772e634f0b406a19d0716ede23816
echo x - irc/minbif/files/pkg-message.in
sed 's/^X//' >irc/minbif/files/pkg-message.in << 'e8e46290152c408eb245a5de3d7cdc1a'
X/************************************************************************
XTo configure minbif, do the following:
X
XCopy %%PREFIX%%/etc/minbif/minbif.conf-dist
X  to %%PREFIX%%/etc/minbif/minbif.conf, 
XCopy %%PREFIX%%/etc/minbif/minbif.motd-dist
X  to %%PREFIX%%/etc/minbif/minbif.motd
Xand modify them to suit your needs.
X
XPlease make sure to create the users-directory as defined in
Xminbif.conf (default /var/lib/minbif/users) before you first start
Xminbif.
X
XTo launch the minbif daemon, add the following line to /etc/rc.conf:
X
Xminbif_enable="YES"
X
X*************************************************************************/
e8e46290152c408eb245a5de3d7cdc1a
echo x - irc/minbif/files/patch-CMakeLists.txt
sed 's/^X//' >irc/minbif/files/patch-CMakeLists.txt << '2e4ff81ee1a36df870afc39edefe49f0'
Xdiff -r -u CMakeLists.txt.old CMakeLists.txt
X--- CMakeLists.txt.old	2010-05-16 00:37:39.000000000 -0700
X+++ CMakeLists.txt	2010-06-20 14:48:01.000000000 -0700
X@@ -43,6 +43,11 @@
X 
X 		IF(IMLIB_FOUND)
X 			SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_IMLIB")
X+
X+			INCLUDE(FindX11)
X+			IF(NOT X11_FOUND)
X+				ADD_DEFINITIONS(-DX_DISPLAY_MISSING)
X+			ENDIF(NOT X11_FOUND)
X 		ELSE(IMLIB_FOUND)
X 			MESSAGE(FATAL_ERROR "Unable to find the imlib2 library. To disable use of imlib2, run 'make ENABLE_IMLIB=OFF'")
X 		ENDIF(IMLIB_FOUND)
2e4ff81ee1a36df870afc39edefe49f0
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006202324.o5KNOPo0025027>