package/pounce: New package
PATCH 1/1 package/pounce: New package
Simple IRC bouncer.
--- DEVELOPERS | 1 + package/Config.in | 1 + package/pounce/Config.in | 18 ++++++++++++++++++ package/pounce/pounce.hash | 3 +++ package/pounce/pounce.mk | 14 ++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 package/pounce/Config.in create mode 100644 package/pounce/pounce.hash create mode 100644 package/pounce/pounce.mk
DEVELOPERS +1 -0
@@ -1322,6 +1322,7 @@ F: package/exempi/ N: Ismael Luceno <[email protected]> F: package/axel/ F: package/mawk/ +F: package/pounce/ N: Jagan Teki <[email protected]> F: board/amarula/
package/Config.in +1 -0
@@ -2444,6 +2444,7 @@ endif source "package/phytool/Config.in" source "package/pimd/Config.in" source "package/pixiewps/Config.in" + source "package/pounce/Config.in" source "package/pound/Config.in" source "package/pppd/Config.in" source "package/pptp-linux/Config.in"
package/pounce/Config.in new file +18 -0
@@ -0,0 +1,18 @@ +config BR2_PACKAGE_POUNCE + bool "pounce" + select BR2_PACKAGE_LIBRESSL + help + pounce 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. + + pounce speaks regular modern IRC to both servers and clients, using + the server-time extension to indicate when messages originally + occurred. Clients identify themselves to pounce by their IRC + usernames. + + https://git.causal.agency/pounce/
package/pounce/pounce.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 97f245556b1cc940553fca18f4d7d82692e6c11a30f612415e5e391e5d96604e pounce-3.1.tar.gz +sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSE
package/pounce/pounce.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# pounce +# +################################################################################ + +POUNCE_VERSION = 3.1 +POUNCE_SITE = https://git.causal.agency/pounce/snapshot +POUNCE_SOURCE = pounce-$(POUNCE_VERSION).tar.gz +POUNCE_LICENSE = GPL-3.0+ +POUNCE_LICENSE_FILES = LICENSE +POUNCE_DEPENDENCIES = libressl + +$(eval $(autotools-package))
Signature · 6 lines
2.40.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Ismael, All,
On 2023-07-08 21:36 +0200, Ismael Luceno spake thusly:
Quoted 4 lines
Simple IRC bouncer.
Signed-off-by Ismael Luceno <[email protected]>---
[--SNIP--]
package/pounce/Config.in line 3
Quoted 9 lines
package/pounce/Config.in new file +3
-0@@ -0,0 +1,18 @@ +config BR2_PACKAGE_POUNCE + bool "pounce" + select BR2_PACKAGE_LIBRESSL
$ ./utils/docker-run make check-package
package/pounce/Config.in:3: BR2_PACKAGE_LIBRESSL is part of a "choice" and should not be "select"edHowever, the situation is tricky: it seems that pounce does indeed require libressl, and not libopenssl, because it really wants libtls.
In Buildroot, libopenssl and libressl are exclusive one to the other; we then have two possible situations for a package:
- works equally well with either libopenssl or libressl
- only works with libopenssl
We have no way to represent this new case for pounce, which is:
- only work with libressl.
So, the only solution is to actually depend on libressl:
config BR2_PACKAGE_POUNCE
bool "pounce"
depends on BR2_PACKAGE_LIBRESSL
[...]
comment "pounce needs openssl support w/ libressl"
depends on !BR2_PACKAGE_LIBRESSL
Unfortunately, for now, this is the only case, so we'll need a few other cases before we look into providing a way to fore-se;ect libressl...
Quoted 5 lines
package/pounce/Config.in new file +5
-0+ help + pounce 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
package/pounce/Config.in line 18
Quoted 10 lines
package/pounce/Config.in new file +10
-0+ 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. + + pounce speaks regular modern IRC to both servers and clients, using + the server-time extension to indicate when messages originally + occurred. Clients identify themselves to pounce by their IRC + usernames. + + https://git.causal.agency/pounce/
$ ./utils/docker-run make check-package
package/pounce/Config.in:8: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/pounce/Config.in:9: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
package/pounce/Config.in:13: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)Also, I think a better "homepage" would be:
Quoted 15 lines
package/pounce/pounce.hash new file +3
-0@@ -0,0 +1,3 @@ +# Locally computed +sha256 97f245556b1cc940553fca18f4d7d82692e6c11a30f612415e5e391e5d96604e pounce-3.1.tar.gz +sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 LICENSEpackage/pounce/pounce.mk new file +0
-0
package/pounce/pounce.mk line 9
Quoted 9 lines
package/pounce/pounce.mk new file +9
-0@@ -0,0 +1,14 @@ +################################################################################ +# +# pounce +# +################################################################################ + +POUNCE_VERSION = 3.1 +POUNCE_SITE = https://git.causal.agency/pounce/snapshot +POUNCE_SOURCE = pounce-$(POUNCE_VERSION).tar.gz
$ ./utils/docker-run make check-package
package/pounce/pounce.mk:9: remove default value of _SOURCE variable (http://nightly.buildroot.org/#generic-package-reference)package/pounce/pounce.mk line 14
Quoted 5 lines
package/pounce/pounce.mk new file +5
-0+POUNCE_LICENSE = GPL-3.0+ +POUNCE_LICENSE_FILES = LICENSE +POUNCE_DEPENDENCIES = libressl + +$(eval $(autotools-package))
It is not an autotools package: the configure script is hand-written, so it should not use the autotools infra.
The configure script calls pkg-config, so you need it in the dependencies.
The configure script is not playing nice with cross-compilation: it calls 'uname' to decide what to do, which is incorrect. It happens that we are running on linux and targetting linux, so it works by accident. We should however make sure that this is going to always be the case.
POUNCE_DEPENDENCIES = host=pkgconf libressl
define POUNCE_FAKE_UNAME
$(Q)mkdir -p $(@D)/bin
$(Q)printf '#!/bin/sh\necho Linux\n' >$(@D)/bin/uname
$(Q)chmod 755 $(@D)/bin/uname
endef
POUNCE_POST_EXTRACT_HOOKS += POUNCE_FAKE_UNAME
define POUNCE_CONFIGURE_CMDS
cd $(@D) && \
PATH=$(@D)/bin:$(BR_PATH) \
./configure \
--prefix=/usr
endef
define POUNCE_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_MAKE_ENV) \
$(MAKE) \
-C $(@D)
endef
define POUNCE_INSTALL_TARGET_CMDS
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_MAKE_ENV) \
$(MAKE) \
-C $(@D) \
DESTDIR=$(TARGET_DIR) \
install
endef
$(eval $(generic-package))Of course, totally untested... ;-)
Can you update, check, and respin, please?
Regards,
Yann E. MORIN.
Quoted 7 lines
Signature · 6 lines
2.40.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot