pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pounce: import pounce-3.1 as wip/pounce



Module Name:	pkgsrc-wip
Committed By:	snow flurry <snow%datagirl.xyz@localhost>
Pushed By:	flurry
Date:		Mon Jul 3 01:19:06 2023 +0000
Changeset:	c510f33cbc947f15b49034a779d424802d99a624

Added Files:
	pounce/DESCR
	pounce/Makefile
	pounce/PLIST
	pounce/TODO
	pounce/distinfo
	pounce/options.mk
	pounce/patches/patch-configure

Log Message:
pounce: import pounce-3.1 as wip/pounce

pounce(1) is a multi-client, TLS-only IRC bouncer. It maintains a persistent
connection to an IRC server, acting as a proxy and buffer for a number of
clients. When a client connects, any messages received since it last
disconnected will be relayed to it. Unlike some other bouncers, pounce uses a
single buffer for all IRC messages, which acts as a queue from which each
client reads messages independently.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c510f33cbc947f15b49034a779d424802d99a624

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 pounce/DESCR                   |  6 ++++++
 pounce/Makefile                | 28 ++++++++++++++++++++++++++++
 pounce/PLIST                   |  9 +++++++++
 pounce/TODO                    |  4 ++++
 pounce/distinfo                |  6 ++++++
 pounce/options.mk              | 24 ++++++++++++++++++++++++
 pounce/patches/patch-configure | 18 ++++++++++++++++++
 7 files changed, 95 insertions(+)

diffs:
diff --git a/pounce/DESCR b/pounce/DESCR
new file mode 100644
index 0000000000..cff1d802f5
--- /dev/null
+++ b/pounce/DESCR
@@ -0,0 +1,6 @@
+pounce(1) is a multi-client, TLS-only IRC bouncer. It maintains a persistent
+connection to an IRC server, acting as a proxy and buffer for a number of
+clients. When a client connects, any messages received since it last
+disconnected will be relayed to it. Unlike some other bouncers, pounce uses a
+single buffer for all IRC messages, which acts as a queue from which each
+client reads messages independently.
diff --git a/pounce/Makefile b/pounce/Makefile
new file mode 100644
index 0000000000..bd2f1276a3
--- /dev/null
+++ b/pounce/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD$
+
+DISTNAME=	pounce-3.1
+CATEGORIES=	chat
+MASTER_SITES=	https://git.causal.agency/pounce/snapshot/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://git.causal.agency/pounce/about/
+COMMENT=	TLS-only multi-client IRC bouncer
+LICENSE=	gnu-gpl-v3
+
+USE_TOOLS+=	pkg-config
+
+HAS_CONFIGURE=	yes
+
+MAKE_FLAGS=	MANDIR=${PREFIX}/${PKGMANDIR}
+
+.include "options.mk"
+
+SUBST_CLASSES+=		ssl
+SUBST_STAGE.ssl=	pre-configure
+SUBST_MESSAGE.ssl=	Correcting the hardcoded path to OpenSSL.
+SUBST_FILES.ssl+=	configure
+SUBST_SED.ssl+=		-e "s,OPENSSL_BIN /usr/bin/openssl,OPENSSL_BIN ${SSLBASE}/bin/openssl,g"
+SUBST_SED.ssl+=		-e "s,OPENSSL_BIN /bin/openssl,OPENSSL_BIN ${SSLBASE}/bin/openssl,g"
+
+.include "../../security/libretls/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/pounce/PLIST b/pounce/PLIST
new file mode 100644
index 0000000000..15bbeb4dc4
--- /dev/null
+++ b/pounce/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD$
+bin/calico
+bin/pounce
+${PLIST.pounce-notify}bin/pounce-notify
+${PLIST.palaver}bin/pounce-palaver
+man/man1/calico.1
+${PLIST.pounce-notify}man/man1/pounce-notify.1
+${PLIST.palaver}man/man1/pounce-palaver.1
+man/man1/pounce.1
diff --git a/pounce/TODO b/pounce/TODO
new file mode 100644
index 0000000000..7362f57346
--- /dev/null
+++ b/pounce/TODO
@@ -0,0 +1,4 @@
+* Options: Palaver support requires additional dependencies (libcurl and
+  sqlite3), but pounce-notify doesn't. Should they be options and/or
+  defaults?
+* Create rc.d script for pounce
diff --git a/pounce/distinfo b/pounce/distinfo
new file mode 100644
index 0000000000..f8efd03714
--- /dev/null
+++ b/pounce/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (pounce-3.1.tar.gz) = ac2d8b0d66e0c1a0a2eb4bae8a00d5c3096cc4e474e304adfa5c9dbc1df56e6c
+SHA512 (pounce-3.1.tar.gz) = b2c2481e152368080e6ce9b3be2d7920eb4cac630dabb994e31170fb44977e2235c0ff30a7f08e826a329da69371a3ff2dae33831cb93b18655f98fc6569da7d
+Size (pounce-3.1.tar.gz) = 50801 bytes
+SHA1 (patch-configure) = 6ab09c4c61d5877fb91e944e6b672a35194c10cd
diff --git a/pounce/options.mk b/pounce/options.mk
new file mode 100644
index 0000000000..53394165d5
--- /dev/null
+++ b/pounce/options.mk
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.pounce
+
+PKG_SUPPORTED_OPTIONS=	palaver pounce-notify
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=	palaver pounce-notify
+
+# Adds support for Palaver push notifications with pounce-palaver
+.if !empty(PKG_OPTIONS:Mpalaver)
+.include "../../www/curl/buildlink3.mk"
+.include "../../databases/sqlite3/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-palaver
+PLIST.palaver=		yes
+.endif
+
+# Builds pounce-notify which runs a command on notification
+.if !empty(PKG_OPTIONS:Mpounce-notify)
+CONFIGURE_ARGS+=	--enable-notify
+PLIST.pounce-notify=	yes
+.endif
diff --git a/pounce/patches/patch-configure b/pounce/patches/patch-configure
new file mode 100644
index 0000000000..0ddfa7c546
--- /dev/null
+++ b/pounce/patches/patch-configure
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Add NetBSD support
+
+--- configure.orig	2023-07-02 04:19:49.706748744 +0000
++++ configure
+@@ -57,6 +57,11 @@ case "$(uname)" in
+ 		config libtls
+ 		defvar OPENSSL_BIN openssl exec_prefix /bin/openssl
+ 		;;
++	(NetBSD)
++		cflags "-D'explicit_bzero(b,l)=explicit_memset((b),0,(l))'"
++		config libtls
++		defstr OPENSSL_BIN /usr/bin/openssl
++		;;
+ 	(*)
+ 		config libtls
+ 		defvar OPENSSL_BIN openssl exec_prefix /bin/openssl


Home | Main Index | Thread Index | Old Index