pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bitlbee-purple: Import bitlbee-purple-3.6nb5 as wip/bitlbee-purple
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Sun Nov 15 21:59:10 2020 +0100
Changeset: cdd6dee01ebbe7dfe181b5d97e9448a9db87f633
Modified Files:
Makefile
Added Files:
bitlbee-purple/DESCR
bitlbee-purple/MESSAGE
bitlbee-purple/Makefile
bitlbee-purple/PLIST
bitlbee-purple/buildlink3.mk
bitlbee-purple/distinfo
bitlbee-purple/files/bitlbee.sh
bitlbee-purple/options.mk
Log Message:
bitlbee-purple: Import bitlbee-purple-3.6nb5 as wip/bitlbee-purple
bitlbee is an IRC gateway to other chat networks. It provides an IRC server
where users connect to and have access to all their contacts in XMPP, Twitter,
or even IRC itself. External plugins are also available for Steam, Facebook,
Discord, etc. Multiple users are supported too, where each one has its own
set of accounts and contacts.
This version of bitlbee is built with libpurple backend.
Based on chat/bitlbee.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cdd6dee01ebbe7dfe181b5d97e9448a9db87f633
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
bitlbee-purple/DESCR | 7 +++
bitlbee-purple/MESSAGE | 13 ++++++
bitlbee-purple/Makefile | 101 ++++++++++++++++++++++++++++++++++++++++
bitlbee-purple/PLIST | 52 +++++++++++++++++++++
bitlbee-purple/buildlink3.mk | 15 ++++++
bitlbee-purple/distinfo | 6 +++
bitlbee-purple/files/bitlbee.sh | 32 +++++++++++++
bitlbee-purple/options.mk | 20 ++++++++
9 files changed, 247 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 492254dfc6..2f57bb9b1a 100644
--- a/Makefile
+++ b/Makefile
@@ -267,6 +267,7 @@ SUBDIR+= biopython
SUBDIR+= bioruby
SUBDIR+= bip
SUBDIR+= bitkeeper
+SUBDIR+= bitlbee-purple
SUBDIR+= bkchem
SUBDIR+= blad
SUBDIR+= blas
diff --git a/bitlbee-purple/DESCR b/bitlbee-purple/DESCR
new file mode 100644
index 0000000000..9b0d88fc17
--- /dev/null
+++ b/bitlbee-purple/DESCR
@@ -0,0 +1,7 @@
+bitlbee is an IRC gateway to other chat networks. It provides an IRC server
+where users connect to and have access to all their contacts in XMPP, Twitter,
+or even IRC itself. External plugins are also available for Steam, Facebook,
+Discord, etc. Multiple users are supported too, where each one has its own
+set of accounts and contacts.
+
+This version of bitlbee is built with libpurple backend.
diff --git a/bitlbee-purple/MESSAGE b/bitlbee-purple/MESSAGE
new file mode 100644
index 0000000000..507b23fe23
--- /dev/null
+++ b/bitlbee-purple/MESSAGE
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.2 2009/07/16 19:19:18 tonio Exp $
+
+bitlbee can be to be started from inetd(8). Add the following line
+to its configuration file (/etc/inetd.conf):
+
+ 6667 stream tcp nowait bitlbee ${PREFIX}/sbin/bitlbee bitlbee
+
+bitlbee can act as a system-wide daemon, using the start-up script installed by
+the package.
+
+ ${PREFIX}/share/examples/rc.d/bitlbee
+===========================================================================
diff --git a/bitlbee-purple/Makefile b/bitlbee-purple/Makefile
new file mode 100644
index 0000000000..1c8b1d6cd2
--- /dev/null
+++ b/bitlbee-purple/Makefile
@@ -0,0 +1,101 @@
+# $NetBSD: Makefile,v 1.85 2020/05/22 10:55:57 adam Exp $
+
+DISTNAME= bitlbee-3.6
+PKGNAME= ${DISTNAME:S/bitlbee/bitlbee-purple/}
+PKGREVISION= 5
+CATEGORIES= chat
+MASTER_SITES= http://get.bitlbee.org/src/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.bitlbee.org/
+COMMENT= IRC to other chat networks gateway (libpurple)
+LICENSE= gnu-gpl-v2
+
+BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
+BUILD_DEPENDS+= w3m-[0-9]*:../../www/w3m
+BUILD_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
+
+HAS_CONFIGURE= yes
+USE_TOOLS+= gmake pkg-config
+
+REPLACE_PYTHON+= configure
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --bindir=${PREFIX}/sbin
+CONFIGURE_ARGS+= --etcdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --datadir=${DATADIR}
+CONFIGURE_ARGS+= --config=${STATEDIR}
+CONFIGURE_ARGS+= --pidfile=${VARBASE}/run/bitlbee/pid
+CONFIGURE_ARGS+= --ipcsocket=${VARBASE}/run/bitlbee/sock
+CONFIGURE_ARGS+= --flood=0
+CONFIGURE_ARGS+= --purple=1
+CONFIGURE_ARGS+= --ssl=gnutls
+CONFIGURE_ARGS.SunOS+= --pie=0
+
+PKG_SYSCONFSUBDIR= bitlbee
+CONF_FILES= ${DATADIR}/motd.txt ${PKG_SYSCONFDIR}/motd.txt
+CONF_FILES+= ${EGDIR}/bitlbee.conf ${PKG_SYSCONFDIR}/bitlbee.conf
+
+BUILD_DEFS+= VARBASE BITLBEE_USER BITLBEE_GROUP
+FILES_SUBST+= BITLBEE_USER=${BITLBEE_USER} BITLBEE_GROUP=${BITLBEE_GROUP}
+
+EGDIR= ${PREFIX}/share/examples/bitlbee
+DATADIR= ${PREFIX}/share/bitlbee
+DOCDIR= ${PREFIX}/share/doc/bitlbee
+STATEDIR= ${VARBASE}/db/bitlbee
+
+.include "../../mk/bsd.prefs.mk"
+
+BITLBEE_USER?= bitlbee
+BITLBEE_GROUP?= nobody
+
+OWN_DIRS_PERMS= ${STATEDIR} ${BITLBEE_USER} ${BITLBEE_GROUP} 700
+OWN_DIRS_PERMS+= ${VARBASE}/run/bitlbee ${BITLBEE_USER} ${BITLBEE_GROUP} 700
+
+PKG_GROUPS= ${BITLBEE_GROUP}
+PKG_USERS= ${BITLBEE_USER}:${BITLBEE_GROUP}
+PKG_HOME.bitlbee= ${VARBASE}/db/bitlbee
+
+INSTALLATION_DIRS= ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin
+INSTALLATION_DIRS+= lib/pkgconfig include/bitlbee
+
+CPPFLAGS.SunOS+= -Du_int16_t=uint16_t
+
+post-build:
+ cd ${WRKSRC}/doc/user-guide && \
+ ${BUILD_MAKE_CMD} user-guide.txt user-guide.html
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DATADIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bitlbee.conf ${DESTDIR}${EGDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/bitlbee ${DESTDIR}${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/doc/user-guide/help.txt ${DESTDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/motd.txt ${DESTDIR}${DATADIR}
+ ${INSTALL_MAN} ${WRKSRC}/doc/bitlbee.8 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+ ${INSTALL_MAN} ${WRKSRC}/doc/bitlbee.conf.5 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+.for f in AUTHORS FAQ README CREDITS user-guide/user-guide.txt user-guide/user-guide.html
+ ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DESTDIR}${DOCDIR}
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/bitlbee.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
+ ${INSTALL_DATA} ${WRKSRC}/*.h ${DESTDIR}${PREFIX}/include/bitlbee
+ ${INSTALL_DATA} ${WRKSRC}/lib/*.h ${DESTDIR}${PREFIX}/include/bitlbee
+ ${INSTALL_DATA} ${WRKSRC}/protocols/*.h ${DESTDIR}${PREFIX}/include/bitlbee
+
+RCD_SCRIPTS= bitlbee
+RCD_SCRIPT_SRC.bitlbee= ${FILESDIR}/bitlbee.sh
+
+# see https://savannah.gnu.org/support/index.php?107660
+#BUILDLINK_ABI_DEPENDS.gnutls+= gnutls<2.12.0
+
+.include "options.mk"
+.include "../../chat/libpurple/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+PYTHON_FOR_BUILD_ONLY= yes
+.include "../../lang/python/application.mk"
+.include "../../security/gnutls/buildlink3.mk"
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/bitlbee-purple/PLIST b/bitlbee-purple/PLIST
new file mode 100644
index 0000000000..8dba826ebe
--- /dev/null
+++ b/bitlbee-purple/PLIST
@@ -0,0 +1,52 @@
+@comment $NetBSD: PLIST,v 1.9 2019/07/28 15:16:35 nia Exp $
+include/bitlbee/account.h
+include/bitlbee/arc.h
+include/bitlbee/auth.h
+include/bitlbee/base64.h
+include/bitlbee/bee.h
+include/bitlbee/bitlbee.h
+include/bitlbee/canohost.h
+include/bitlbee/commands.h
+include/bitlbee/conf.h
+include/bitlbee/config.h
+include/bitlbee/dcc.h
+include/bitlbee/events.h
+include/bitlbee/ft.h
+include/bitlbee/ftutil.h
+include/bitlbee/help.h
+include/bitlbee/http_client.h
+include/bitlbee/ini.h
+include/bitlbee/ipc.h
+include/bitlbee/irc.h
+include/bitlbee/json.h
+include/bitlbee/json_util.h
+include/bitlbee/log.h
+include/bitlbee/md5.h
+include/bitlbee/misc.h
+include/bitlbee/nick.h
+include/bitlbee/nogaim.h
+include/bitlbee/oauth.h
+include/bitlbee/oauth2.h
+include/bitlbee/otr.h
+include/bitlbee/proxy.h
+include/bitlbee/query.h
+include/bitlbee/set.h
+include/bitlbee/sha1.h
+include/bitlbee/sock.h
+include/bitlbee/ssl_client.h
+include/bitlbee/storage.h
+include/bitlbee/url.h
+include/bitlbee/xmltree.h
+lib/pkgconfig/bitlbee.pc
+man/man5/bitlbee.conf.5
+man/man8/bitlbee.8
+sbin/bitlbee
+share/bitlbee/help.txt
+share/bitlbee/motd.txt
+share/doc/bitlbee/AUTHORS
+share/doc/bitlbee/CREDITS
+share/doc/bitlbee/FAQ
+share/doc/bitlbee/README
+share/doc/bitlbee/user-guide.html
+share/doc/bitlbee/user-guide.txt
+share/examples/bitlbee/bitlbee.conf
diff --git a/bitlbee-purple/buildlink3.mk b/bitlbee-purple/buildlink3.mk
new file mode 100644
index 0000000000..ce74a0ef8a
--- /dev/null
+++ b/bitlbee-purple/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.2 2020/03/08 16:47:26 wiz Exp $
+
+BUILDLINK_TREE+= bitlbee-purple
+
+.if !defined(BITLBEE_BUILDLINK3_MK)
+BITLBEE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.bitlbee-purple+= bitlbee-purple>=3.6nb1
+BUILDLINK_ABI_DEPENDS.bitlbee-purple?= bitlbee-purple>=3.6nb4
+BUILDLINK_PKGSRCDIR.bitlbee-purple?= ../../wip/bitlbee-purple
+
+.include "../../devel/glib2/buildlink3.mk"
+.endif # BITLBEE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -bitlbee-purple
diff --git a/bitlbee-purple/distinfo b/bitlbee-purple/distinfo
new file mode 100644
index 0000000000..69d953f37f
--- /dev/null
+++ b/bitlbee-purple/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.35 2019/06/04 19:00:09 nia Exp $
+
+SHA1 (bitlbee-3.6.tar.gz) = e3f7e0d7f49d4e8f56ff22bf3e2bb6ac907d823c
+RMD160 (bitlbee-3.6.tar.gz) = 9a02e95c5fd8c3bd43edf1c6e25dfe4f5bdc0b35
+SHA512 (bitlbee-3.6.tar.gz) = ccbf0f23e228de2de147241f36f59744b2256cba958e2fabfba0cfa60935e55bbb7d7e20fffa54da9a345e55ffa9ca82cb62e9b99dc738ba35c6e268c6561a8d
+Size (bitlbee-3.6.tar.gz) = 534961 bytes
diff --git a/bitlbee-purple/files/bitlbee.sh b/bitlbee-purple/files/bitlbee.sh
new file mode 100755
index 0000000000..e7908d1cb7
--- /dev/null
+++ b/bitlbee-purple/files/bitlbee.sh
@@ -0,0 +1,32 @@
+#!@RCD_SCRIPTS_SHELL@
+
+# PROVIDE: bitlbee
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="bitlbee"
+rcvar=$name
+command="@PREFIX@/sbin/bitlbee"
+pidfile="@VARBASE@/run/${name}/pid"
+command_args="-D" # run as a daemon
+start_precmd="bitlbee_precmd"
+
+bitlbee_precmd()
+{
+ if [ ! -d "@VARBASE@/run/${name}" ]; then
+ @MKDIR@ "@VARBASE@/run/${name}"
+ @CHMOD@ 0700 "@VARBASE@/run/${name}"
+ @CHOWN@ @BITLBEE_USER@:@BITLBEE_GROUP@ "@VARBASE@/run/${name}"
+ fi
+}
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n "${name}"
+ ${command} ${bitlbee_flags} ${command_args}
+fi
diff --git a/bitlbee-purple/options.mk b/bitlbee-purple/options.mk
new file mode 100644
index 0000000000..d0b1b6cc99
--- /dev/null
+++ b/bitlbee-purple/options.mk
@@ -0,0 +1,20 @@
+# $NetBSD: options.mk,v 1.1 2019/07/28 15:37:26 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bitlbee
+PKG_SUPPORTED_OPTIONS= inet6 otr
+PKG_SUGGESTED_OPTIONS= inet6 otr
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --ipv6=1
+.else
+CONFIGURE_ARGS+= --ipv6=0
+.endif
+
+.if !empty(PKG_OPTIONS:Motr)
+CONFIGURE_ARGS+= --otr=1
+.include "../../chat/libotr/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --otr=0
+.endif
Home |
Main Index |
Thread Index |
Old Index