Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172650 - net-irc/psybnc should support oidentd with a USE flag
Summary: net-irc/psybnc should support oidentd with a USE flag
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-29 08:00 UTC by Jorrit Schippers
Modified: 2008-12-14 18:24 UTC (History)
2 users (show)

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


Attachments
suggested oidentd.conf to allow ident spoofing for psybnc user (oidentd.conf,92 bytes, text/plain)
2007-03-29 13:20 UTC, Jorrit Schippers
Details
Add oidentd useflag (psybnc-2.3.2.7-r2.ebuild-oidentd.patch,574 bytes, patch)
2008-09-18 20:13 UTC, Marcel Pennewiß
Details | Diff
Add oidentd useflag (checking dependencies) (psybnc-2.3.2.7-r2.ebuild-oidentd.patch,2.10 KB, patch)
2008-09-22 23:55 UTC, Marcel Pennewiß
Details | Diff
example oidentd.conf, will be installed with useflag oidentd (oidentd.conf.psybnc,92 bytes, text/plain)
2008-09-22 23:55 UTC, Marcel Pennewiß
Details
oidentd patch for config.h - did not need CFLAG (psybnc-2.3.2.7-oidentd.patch,253 bytes, patch)
2008-09-22 23:56 UTC, Marcel Pennewiß
Details | Diff
new init-script, will be installed with useflag oidentd (psybnc-oidentd.initd,1.02 KB, text/plain)
2008-09-22 23:57 UTC, Marcel Pennewiß
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jorrit Schippers 2007-03-29 08:00:17 UTC
Some networks require that every connection from one host has a different ident response. psyBNC can work with oidentd to spoof the ident response. It would be nice if psyBNC would have a USE flag oidentd which checks if oidentd is installed and define OIDENTD if oidentd is found.

It's true that "CFLAGS="-DOIDENTD" emerge psybnc" does the same, but embedding the relation between oidentd and psybnc in the portage system would be a nice enhancement.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jorrit Schippers 2007-03-29 13:20:39 UTC
Created attachment 114856 [details]
suggested oidentd.conf to allow ident spoofing for psybnc user

In order for this to work, two other things have to be changed as well:

1) -e HOME="${PSYBNC_HOME}" has to be added to the start-stop-daemon line in the init.d script, so startups from an interactive shell will pass the correct $HOME environment variable. This is needed for psybnc to find the location to put the .ispoof and .oidentd.conf files, which help spoofing.

2) Lines have to be added which instruct the user to add or adapt the /etc/oidentd.conf file so it contains the information from the attachment
Comment 2 Conrad Kostecki gentoo-dev 2007-08-09 12:56:21 UTC
Thank you!
This works great for me :)

We should really include this.
Comment 3 Marcel Pennewiß 2008-09-18 20:13:24 UTC
Created attachment 165749 [details, diff]
Add oidentd useflag

This patch add the CFLAG="-DOIDENTD" if you set "oidentd" as useflag.
Comment 4 Marcel Pennewiß 2008-09-18 20:18:39 UTC
Comment on attachment 165749 [details, diff]
Add oidentd useflag

This Patch did not check whether oidentd is installed or not. also it does not patch init-script. maybe theres a new patch later...
Comment 5 Marcel Pennewiß 2008-09-22 23:55:14 UTC
Created attachment 166155 [details, diff]
Add oidentd useflag (checking dependencies)
Comment 6 Marcel Pennewiß 2008-09-22 23:55:57 UTC
Created attachment 166157 [details]
example oidentd.conf, will be installed with useflag oidentd
Comment 7 Marcel Pennewiß 2008-09-22 23:56:58 UTC
Created attachment 166160 [details, diff]
oidentd patch for config.h - did not need CFLAG
Comment 8 Marcel Pennewiß 2008-09-22 23:57:41 UTC
Created attachment 166161 [details]
new init-script, will be installed with useflag oidentd
Comment 9 Marcel Pennewiß 2008-09-23 00:04:59 UTC
(In reply to comment #0)
> It's true that "CFLAGS="-DOIDENTD" emerge psybnc" does the same, but embedding
> the relation between oidentd and psybnc in the portage system would be a nice
> enhancement.

You also could use #define OIDENTD in config.h file in psybnc sourcecode as used in "psybnc-2.3.2.7-oidentd.patch".

(In reply to comment #1)
> 1) -e HOME="${PSYBNC_HOME}" has to be added to the start-stop-daemon line in
> the init.d script, so startups from an interactive shell will pass the correct
> $HOME environment variable. This is needed for psybnc to find the location to
> put the .ispoof and .oidentd.conf files, which help spoofing.

added second init-script which will be installed if USE="oidentd".

> 2) Lines have to be added which instruct the user to add or adapt the
> /etc/oidentd.conf file so it contains the information from the attachment

Some lines will be shown on install and an example file will be installed.

Hope you enjoy and there are no bugs inside ;)
Works fine on AMD64 here.
Comment 10 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2008-12-14 18:24:45 UTC
Has been added to 2.3.2.9 which just hit the tree.
Please test and report back any bugs :)