Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35887 - net-irc/psybnc (new ebuild)
Summary: net-irc/psybnc (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL: http://www.psychoid.net/psybnc.html
Whiteboard: [sunrise-overlay]
Keywords: EBUILD, InOverlay
Depends on:
Blocks:
 
Reported: 2003-12-15 11:46 UTC by Redeeman
Modified: 2006-08-28 07:54 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for latest PsyBNC (psybnc-2.3.1.ebuild,2.11 KB, text/plain)
2004-05-07 09:43 UTC, Arno
Details
Patch to make the ebuild non-interactive (psybnc-2.3.1-gentoo.diff,814 bytes, patch)
2004-05-07 09:43 UTC, Arno
Details | Diff
Init script for psybnc (psybnc.initd,353 bytes, text/plain)
2004-05-07 09:44 UTC, Arno
Details
Default config file for psybnc (psybnc.conf,313 bytes, text/plain)
2004-05-07 09:45 UTC, Arno
Details
patch for gcc 3.4 (psybnc-2.3.1-gentoo.diff,1.28 KB, patch)
2004-06-21 17:33 UTC, Bjarke Istrup Pedersen (RETIRED)
Details | Diff
gcc 3.4 patch (fixed) (psybnc-2.3.1-gentoo.diff,1.31 KB, patch)
2004-06-22 04:03 UTC, Bjarke Istrup Pedersen (RETIRED)
Details | Diff
psyBNC-2.3.2-5 With some Flags (psybnc-2.3.2-5.tar,20.00 KB, application/x-tar)
2005-05-30 20:59 UTC, Pedro Algarvio
Details
psyBNC-2.3.2-5 With some Flags (psybnc-2.3.2-5.tar,20.00 KB, application/x-tar)
2005-05-30 21:16 UTC, Pedro Algarvio
Details
psyBNC-2.3.2-5 With some Flags (psybnc-2.3.2-5.tar,20.00 KB, application/x-tar)
2005-05-30 21:21 UTC, Pedro Algarvio
Details
psyBNC-2.3.2-7.tar (psybnc-2.3.2-7.tar,20.00 KB, application/x-tar)
2005-06-08 16:26 UTC, Pedro Algarvio
Details
Ebuild for lastest version -working with eutils- (psybnc-2.3.1.ebuild,2.13 KB, text/plain)
2005-11-23 16:51 UTC, Lorenzo Grandi
Details
init script (to be able to use oidentd) (psybnc,564 bytes, text/plain)
2006-05-01 14:12 UTC, fabianv
Details
conf.d file (psybnc,62 bytes, text/plain)
2006-05-01 14:13 UTC, fabianv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Redeeman 2003-12-15 11:46:45 UTC
hi, i would like to see a psybnc ebuild, it would be lovely
Comment 1 Arno 2004-05-07 09:43:13 UTC
Created attachment 30943 [details]
Ebuild for latest PsyBNC

Hello,

I have created an ebuild for the latest PsyBNC, I also attached a patch that
makes the install non-interactive. Please try it out, it is only my second
ebuild, so comments and suggestions are welcome!

PsyBNC is a multi-user and multi-server gateway to IRC networks, so I suggest
net-irc.

Arno
Comment 2 Arno 2004-05-07 09:43:54 UTC
Created attachment 30944 [details, diff]
Patch to make the ebuild non-interactive

Patch to make the ebuild non-interactive
Comment 3 Arno 2004-05-07 09:44:28 UTC
Created attachment 30945 [details]
Init script for psybnc
Comment 4 Arno 2004-05-07 09:45:59 UTC
Created attachment 30946 [details]
Default config file for psybnc

The patch, psybnc.conf and psybnc.initd go into /files
Comment 5 Julien Allanos (RETIRED) gentoo-dev 2004-05-18 13:41:04 UTC
i have some suggestions:
- latest version is 2.3.2-4 (see http://www.psychoid.net/)
- install dir should not be /usr/local/psybnc/, as it is sometimes used for non portage stuff or nfs mounts.
- you should use the +ssl USE flag to enable ssl and certificates creation: psybnc can run well without ssl support.
Comment 6 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-06-21 17:31:44 UTC
new patch for compiling with gcc 3.4
Comment 7 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-06-21 17:33:21 UTC
Created attachment 33795 [details, diff]
patch for gcc 3.4

This patch contains the previous patch, and adds gcc 3.4 support :)
Comment 8 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-06-22 04:03:03 UTC
Created attachment 33812 [details, diff]
gcc 3.4 patch (fixed)

Contains the same as my last patch, but forgot something.
Comment 9 Bols 2005-02-06 14:57:49 UTC
I'm trying to improve this ebuild, but I'm also facing some annoying problems.

Following dju's suggestions I wanted to add the ssl use flag but if you have a closer, you'll notice  that psybnc's static Makefile compiles autoconf.c, which checks the capabilities of the system (like ssl, ipv6, ...). You can't tune your configuration by adding a simple option like --disable-ssl - it needs editing the config.h, or using the menuconfig.

To disable ssl support, you have to set the SSLPATH variable in the config.h to /dev/null (or somethnig else that doesn't reflect your real ssl path). Worse, it's even impossible to disable ipv6 support if you don't want it because there is no ipv6 variable into the config.h.

So.. have you got ideas?

I also noticed that the ebuild posted by Arno uses a "dirty" patch to generate a ssl certificate but now, there is another way to generate self-signed certificates. ssl-cert.eclass is made for this purpose.

Then I also think that the install dir shouldn't be /usr/local/psybnc/ for the same raisons as dju` ones.

Finally, do you really think it's necessary to create a special user/group for it?

It's just my suggestions... it would be nice to see psybnc into portage one day.
Comment 10 Philipp Strube 2005-02-10 05:35:28 UTC
Hey,

I would like to see psybnc in portage too one day.

How do you plan to do the trick with the salt.h. You need to copy it somewhere and let the ebuild use it, when compiling new version. Otherwise after an update the users won't be able to login anymore.

Installing it under /usr/local/psybnc doesn't sound to good for me either. Why not put it into /opt/psybnc. Gentoo puts nearly everything there, so we would be in good company.
Comment 11 Peter 2005-05-28 08:18:10 UTC
Changing the install path to /opt/psybnc is easy enough.

The trick with this ebuild is to either make it non-interactive and complete or
give some USE flags to it.

Compile with all available options: Encryption/Blowfish, Translation, Internal
Network, Traffic Logging, Linkage, DCC Files/Chat, Scripting, oidentd,
Multinetwork support, & proxy support. Most of these are defaults. For those
that aren't, config.h needs to be patched before make and the package must
depend on oidentd.

Add USE flags such as crypt, translator, etc to patch config.h quasi interactively.

Also, we've got a version bump.
Comment 12 Pedro Algarvio 2005-05-30 20:59:44 UTC
Created attachment 60234 [details]
psyBNC-2.3.2-5 With some Flags

This is a tar that will extract from /(ROOT) to
/usr/local/portage/net-irc/psybnc

Inside is the ebuild for the latest version.
In this ebuild I've added the USE flags:
- ssl
- ipv6
- crypt
- translate
- partychannel
Comment 13 Pedro Algarvio 2005-05-30 21:14:17 UTC
Comment on attachment 60234 [details]
psyBNC-2.3.2-5 With some Flags

This tar is worng
Comment 14 Pedro Algarvio 2005-05-30 21:16:17 UTC
Created attachment 60235 [details]
psyBNC-2.3.2-5 With some Flags

tar will now extract to psybnc/
Comment 15 Pedro Algarvio 2005-05-30 21:21:20 UTC
Created attachment 60236 [details]
psyBNC-2.3.2-5 With some Flags

Man...
Now is the correct one....
Comment 16 Pedro Algarvio 2005-05-30 21:34:39 UTC
Ok, it's really late here, and I don't want to add yet another tar...

After untaring, inside the files dir, please rename:
psybnc-2.3.2-5-partychannell-gentoo.diff

to

psybnc-2.3.2-5-partychannel-gentoo.diff

I've tested, it builds...
Comment 17 Peter 2005-06-02 18:32:51 UTC
After experiencing the issues myself I confirmed this with the psybnc dev team:

psybnc does not play nice with >=sys-libs/glibc-2.3.4
glibc-2.3.3 seems the most recent stable build to support psyBNC-2.3.x

A good reason why this isn't in portage.
Comment 18 Bols 2005-06-04 16:22:12 UTC
Nice job Pedro!

I have just 2 little remarks about your ebuild:

1- It doesn't seem to create any script in /etc/init.d/
2- After emerging it, no configuration file seems to be created, is it normal? [
/opt/psybnc/psybnc.conf ]
Comment 19 Bols 2005-06-04 16:29:55 UTC
psyBNC-2.3.2-6 has been released yesterday, more info on psybnc.info

Pedro, could you try update your ebuild so we could test with
>=sys-libs/glibc-2.3.4 ?
Comment 20 Pedro Algarvio 2005-06-08 14:59:23 UTC
(In reply to comment #18)
> Nice job Pedro!
> 
> I have just 2 little remarks about your ebuild:
> 
> 1- It doesn't seem to create any script in /etc/init.d/
> 2- After emerging it, no configuration file seems to be created, is it normal? [
> /opt/psybnc/psybnc.conf ]

Well, that is strange co's on my system it creates the init script and also the
.conf file.

I'll update the ebuild for psyBNC-2.3.2-6 and double check those. I'll also be
including:
>=sys-libs/glibc-2.3.4

As Bols sugested...
Comment 21 Pedro Algarvio 2005-06-08 15:09:19 UTC
(In reply to comment #18)
> Nice job Pedro!
> 
> I have just 2 little remarks about your ebuild:
> 
> 1- It doesn't seem to create any script in /etc/init.d/
> 2- After emerging it, no configuration file seems to be created, is it normal? [
> /opt/psybnc/psybnc.conf ]

After all, you were right, I dont think I included the init nor the conf on the
previous tar.

Also, the new ebuild will be for psyBNC-2.3.2-7 since this one is out...
Comment 22 Peter 2005-06-08 15:25:51 UTC
is no one else experiencing problems with psybnc on >=glibc-2.3 ?
Upstream devs tell me that it is not tested to work on anything above 2.2 and I
can say from experience that I believe them.
psybnc locks up intermittently on any of my gentoo systems running 2.3+
Comment 23 Pedro Algarvio 2005-06-08 16:26:20 UTC
Created attachment 60869 [details]
psyBNC-2.3.2-7.tar

this tar will extract to psybnc/

Make sure you are on your overlay dir, under net-irc.

If all is good you shall have the ebuild, init and conf files.
Also this ebuld is now, as sugested:
>=sys-libs/glibc-2.3.4

Have fun!!!

P.S: Could anyone tell me how can I use this??? Can't seem to figure it out.
Drop me a mail for that, pedro.algarvio@ufsoft.org, ;), I'm not joking...
Comment 24 Pedro Algarvio 2005-06-08 16:27:57 UTC
(In reply to comment #22)
> is no one else experiencing problems with psybnc on >=glibc-2.3 ?
> Upstream devs tell me that it is not tested to work on anything above 2.2 and I
> can say from experience that I believe them.
> psybnc locks up intermittently on any of my gentoo systems running 2.3+

Mine doesn't lock, but I really can't tell all, because I can't figure out how
to use it ;)

I can connect to it!
Comment 25 Peter 2005-06-08 17:12:02 UTC
http://www.psybnc.info/faq.html

I should add that I use my bnc for multiple connection on multiple servers, both
client and server connections using SSL.

The process locks constantly when connecting to servers regardless of if it's an
SSL server or not. If there was any debugging output I'd provide it.
Comment 26 Lorenzo Grandi 2005-11-23 16:51:25 UTC
Created attachment 73466 [details]
Ebuild for lastest version -working with eutils-

"inherit eutils"

is included as first line

enewgroup, enewuser, epatch does not work
Comment 27 fabianv 2006-05-01 14:12:00 UTC
Created attachment 85951 [details]
init script (to be able to use oidentd)

I ran into some problems trying to get oidentd to work with psyBNC. It turns out that the init script needed an update. 

This works with the latest version of psyBNC (2.3.2-7).

I assume that you created a user psybnc:psybnc with the shell set to /bin/false.  
Create a file "psybnc" in /etc/conf.d/ and set USER="psybnc" and BNCPATH="/path/to/your/psybnc/" (or download the provided file and edit it).
Comment 28 fabianv 2006-05-01 14:13:18 UTC
Created attachment 85952 [details]
conf.d file

s.a.
Comment 29 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-07-08 08:02:42 UTC
Ebuild has been added to the gentoo sunrise overlay until I get my dev account updated with write access.
Comment 30 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-08-10 20:54:48 UTC
I will put it into portage when I get some time to do it, should be around monday (My first commit, so need to make sure I do everything correct)
Comment 31 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-08-28 07:26:38 UTC
I have commited it to portage now, marking as Fixed when the rsync servers catches up with it :-)
Comment 32 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2006-08-28 07:54:06 UTC
And it's online :-)