Re: [NEW] net/rwhoisd

2013-08-22 Thread Andrew Klettke
Resubmitting again with new UID/GUID numbers, ones I had were reserved. 
Also patched server/security.c so that the daemon will refuse to run as 
root.


Thanks,

Andrew Klettke
Systems Admin
Optic Fusion

On 08/19/2013 01:06 PM, Andrew Klettke wrote:
Minor update; changed UID and GUID for the new users after finding the 
new ones I'd selected had already been reserved in the -current ports 
tree.


Thanks,

Andrew Klettke
Systems Admin
Optic Fusion

On 08/19/2013 11:58 AM, Andrew Klettke wrote:
Thank you very much for your input Stuart, I've addressed the issues 
you've raised and the new version is attached. Please let me know if 
there's anything else that needs attention.


Thanks,

Andrew Klettke
Systems Admin
Optic Fusion

On 08/17/2013 01:26 AM, Stuart Henderson wrote:

To get this into ports a bit more work is needed:

On 2013/08/16 16:25, Andrew Klettke wrote:

The easiest way would be to:

1. Copy the contents of the example directory into a directory that
_rwhoisd owns (I like to use /var/rwhoisd, so `cp -R
/usr/local/share/doc/rwhoisd/examples/* /var/rwhoisd/`)

2. Run the rwhois_indexer like so: `/usr/local/bin/rwhois_indexer -c
/var/rwhoisd/rwhoisd.conf -i -s txt`

- this information needs to go in a pkg/README file.


3. Make applicable changes to rwhoisd.conf ('userid: _rwhoisd' and
'use-syslog: YES' should be the only options you need to change)

- the code should be patched so that this isn't needed, particularly
the userid setting, there should be no chance of somebody running this
as root by mistake. (@newuser/@newgroup lines also need updating to a
free uid/gid, these ones are taken).


4. Run the daemon (`cd /var/rwhoisd  rwhoisd`).

There should be an rc script for this.


Then you can test it using telnet to port 4321 (just enter '10.0.0.1'
after connecting if you're using the sample data); it binds to all
inet4 interfaces.

I didn't look in detail, but does it really not have v6 support?









rwhoisd.tar.gz
Description: GNU Zip compressed data


Re: [NEW] net/rwhoisd

2013-08-19 Thread Andrew Klettke
Thank you very much for your input Stuart, I've addressed the issues 
you've raised and the new version is attached. Please let me know if 
there's anything else that needs attention.


Thanks,

Andrew Klettke
Systems Admin
Optic Fusion

On 08/17/2013 01:26 AM, Stuart Henderson wrote:

To get this into ports a bit more work is needed:

On 2013/08/16 16:25, Andrew Klettke wrote:

The easiest way would be to:

1. Copy the contents of the example directory into a directory that
_rwhoisd owns (I like to use /var/rwhoisd, so `cp -R
/usr/local/share/doc/rwhoisd/examples/* /var/rwhoisd/`)

2. Run the rwhois_indexer like so: `/usr/local/bin/rwhois_indexer -c
/var/rwhoisd/rwhoisd.conf -i -s txt`

- this information needs to go in a pkg/README file.


3. Make applicable changes to rwhoisd.conf ('userid: _rwhoisd' and
'use-syslog: YES' should be the only options you need to change)

- the code should be patched so that this isn't needed, particularly
the userid setting, there should be no chance of somebody running this
as root by mistake. (@newuser/@newgroup lines also need updating to a
free uid/gid, these ones are taken).


4. Run the daemon (`cd /var/rwhoisd  rwhoisd`).

There should be an rc script for this.


Then you can test it using telnet to port 4321 (just enter '10.0.0.1'
after connecting if you're using the sample data); it binds to all
inet4 interfaces.

I didn't look in detail, but does it really not have v6 support?





rwhoisd.tar.gz
Description: GNU Zip compressed data


Re: [NEW] net/rwhoisd

2013-08-19 Thread Andrew Klettke
Minor update; changed UID and GUID for the new users after finding the 
new ones I'd selected had already been reserved in the -current ports tree.


Thanks,

Andrew Klettke
Systems Admin
Optic Fusion

On 08/19/2013 11:58 AM, Andrew Klettke wrote:
Thank you very much for your input Stuart, I've addressed the issues 
you've raised and the new version is attached. Please let me know if 
there's anything else that needs attention.


Thanks,

Andrew Klettke
Systems Admin
Optic Fusion

On 08/17/2013 01:26 AM, Stuart Henderson wrote:

To get this into ports a bit more work is needed:

On 2013/08/16 16:25, Andrew Klettke wrote:

The easiest way would be to:

1. Copy the contents of the example directory into a directory that
_rwhoisd owns (I like to use /var/rwhoisd, so `cp -R
/usr/local/share/doc/rwhoisd/examples/* /var/rwhoisd/`)

2. Run the rwhois_indexer like so: `/usr/local/bin/rwhois_indexer -c
/var/rwhoisd/rwhoisd.conf -i -s txt`

- this information needs to go in a pkg/README file.


3. Make applicable changes to rwhoisd.conf ('userid: _rwhoisd' and
'use-syslog: YES' should be the only options you need to change)

- the code should be patched so that this isn't needed, particularly
the userid setting, there should be no chance of somebody running this
as root by mistake. (@newuser/@newgroup lines also need updating to a
free uid/gid, these ones are taken).


4. Run the daemon (`cd /var/rwhoisd  rwhoisd`).

There should be an rc script for this.


Then you can test it using telnet to port 4321 (just enter '10.0.0.1'
after connecting if you're using the sample data); it binds to all
inet4 interfaces.

I didn't look in detail, but does it really not have v6 support?







rwhoisd.tar.gz
Description: GNU Zip compressed data


Re: [NEW] net/rwhoisd

2013-08-16 Thread Andrew Klettke

The easiest way would be to:

1. Copy the contents of the example directory into a directory that 
_rwhoisd owns (I like to use /var/rwhoisd, so `cp -R 
/usr/local/share/doc/rwhoisd/examples/* /var/rwhoisd/`)


2. Run the rwhois_indexer like so: `/usr/local/bin/rwhois_indexer -c 
/var/rwhoisd/rwhoisd.conf -i -s txt`


3. Make applicable changes to rwhoisd.conf ('userid: _rwhoisd' and 
'use-syslog: YES' should be the only options you need to change)


4. Run the daemon (`cd /var/rwhoisd  rwhoisd`).

Then you can test it using telnet to port 4321 (just enter '10.0.0.1' 
after connecting if you're using the sample data); it binds to all inet4 
interfaces.


Thanks,

Andrew Klettke
Systems Admin
Optic Fusion

On 08/16/2013 04:11 PM, Chris Cappuccio wrote:

hey
do you have templates or some simple way of configuring this bastard to 
actually output data?

Andrew Klettke [aklet...@opticfusion.net] wrote:

I had this port working the last time I posted it, but with the
changes to the ports system it needed some updates. It never
actually made it into the ports tree (which is fine), but just in
case there are people using this that have run into problems, I've
been hacking away and got it working again.

Please see ARIN's rwhoisd server port tarball, attached. Testers
would be appreciated, inclusion into the ports tree would be nice,
too.

--
Thanks,

Andrew Klettke
Systems Admin
Optic Fusion








[NEW] net/rwhoisd

2013-08-15 Thread Andrew Klettke
I had this port working the last time I posted it, but with the changes 
to the ports system it needed some updates. It never actually made it 
into the ports tree (which is fine), but just in case there are people 
using this that have run into problems, I've been hacking away and got 
it working again.


Please see ARIN's rwhoisd server port tarball, attached. Testers would 
be appreciated, inclusion into the ports tree would be nice, too.


--
Thanks,

Andrew Klettke
Systems Admin
Optic Fusion



rwhoisd.tar.gz
Description: GNU Zip compressed data


New - net/rwhoisd

2011-01-25 Thread Andrew Klettke
I've completed work on porting ARIN's rwhoisd, it has been tested on and 
has been running just fine on i386 hardware; any testers for different 
architectures?


--
Thanks,

Andrew Klettke
Optic Fusion NOC
253-830-2943



rwhoisd.tgz
Description: application/compressed-tar


Re: rwhoisd

2009-12-23 Thread Andrew Klettke
Alright all, attached is my first attempt at porting. I'm not a C 
developer, just a guy who prefers OpenBSD and needed rwhoisd, so here it is.


If an experienced porter or any interested parties could test and offer 
input on changes I need to make (I followed the Porting Guide, but 
there's a chance I did something wrong here), I'd appreciate it.


Thanks,

Andrew Klettke
Optic Fusion NOC
253-830-2943



Andrew Klettke wrote:
I'm going to start work on porting rwhoisd, is anyone else working on 
this?




rwhoisd.tgz
Description: application/compressed-tar


Re: rwhoisd

2009-12-23 Thread Andrew Klettke

Thanks much Daniel,

I'll get to work on your suggestions and attach a new copy of the port 
when I've finished. Thanks again.


Thanks,

Andrew Klettke
Optic Fusion NOC
253-830-2943



Daniel Dickman wrote:

Hi Andrew, here's some quick feedback to get you started...

1) Don't include the CVS directories in the tar.gz file.

2) See some small changes below for the Makefile. Also, does this 
package have regression tests? If so, you should set those up. If not, 
don't forget to include NO_REGRESS=Yes in the Makefile.


3) For pkg/DESCR, you need to make sure it's less than about 80 
columns. Quick way to get something reasonable would be to use fmt(1). 
i.e. --

fmt DESCR  DESCR.new
mv DESCR.new DESCR

4) As for what you've put in the MESSAGE, you may want to take a look at 
ports that make use of @newgroup and @newuser in their PLISTs. Also see 
pkg_create(1).



--


# $OpenBSD: Makefile,v1.0 2009/12/18 14:09:20 aklettke Exp $

COMMENT =   The Internic referral whois server
DISTNAME =  rwhoisd-1.5.9.6
PKGNAME =   ${DISTNAME}p1

--- Remove the PKGNAME line. Why do you have this?

CATEGORIES =net

HOMEPAGE=   http://projects.arin.net/rwhois/
MAINTAINER= Andrew Klettke aklet...@opticfusion.net

WANTLIB =   c

MASTER_SITES=   ${HOMEPAGE}/ftp/

# GPLv2
PERMIT_PACKAGE_CDROM=   Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=   Yes

PREFIX= /usr/local
EPREFIX=/usr/local

--- Why do you have the PREFIX and EPREFIX lines? I don't see any reason 
for them.

--- PREFIX is automatically set properly by the ports system.

USE_GMAKE=  Yes
CONFIGURE_STYLE=gnu

do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/server/rwhoisd ${PREFIX}/sbin/
.for i in rwhois_deleter rwhois_indexer rwhois_repack
${INSTALL_PROGRAM} ${WRKBUILD}/tools/$i/$i ${PREFIX}/bin/
.endfor

post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rwhoisd
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rwhoisd
.for i in LICENSE README VERSION
${INSTALL_DATA} ${WRKBUILD}/$i ${PREFIX}/share/doc/rwhoisd/
.endfor
${INSTALL_DATA} ${WRKBUILD}/doc/operations_guide.txt 
${WRKBUILD}/doc/security.txt ${PREFIX}/share/doc/rwhoisd/
cp -R ${WRKBUILD}/sample.data/* ${PREFIX}/share/examples/rwhoisd/
${INSTALL_MAN} ${WRKBUILD}/doc/rwhoisd.8 ${PREFIX}/man/man8/
${INSTALL_MAN} ${WRKBUILD}/doc/rwhois_indexer.8 ${PREFIX}/man/man8/



.include bsd.port.mk

  




Re: rwhoisd

2009-12-23 Thread Andrew Klettke

Alright, here's the new version of my rwhoisd port.

Again, this is my first attempt at porting, so any and all guidance is 
welcome.


Thanks,

Andrew Klettke
Optic Fusion NOC
253-830-2943



Andrew Klettke wrote:

Thanks much Daniel,

I'll get to work on your suggestions and attach a new copy of the port 
when I've finished. Thanks again.


Thanks,

Andrew Klettke
Optic Fusion NOC
253-830-2943



Daniel Dickman wrote:

Hi Andrew, here's some quick feedback to get you started...

1) Don't include the CVS directories in the tar.gz file.

2) See some small changes below for the Makefile. Also, does this 
package have regression tests? If so, you should set those up. If 
not, don't forget to include NO_REGRESS=Yes in the Makefile.


3) For pkg/DESCR, you need to make sure it's less than about 80 
columns. Quick way to get something reasonable would be to use 
fmt(1). i.e. --

fmt DESCR  DESCR.new
mv DESCR.new DESCR

4) As for what you've put in the MESSAGE, you may want to take a look 
at ports that make use of @newgroup and @newuser in their PLISTs. 
Also see pkg_create(1).



--


# $OpenBSD: Makefile,v1.0 2009/12/18 14:09:20 aklettke Exp $

COMMENT =The Internic referral whois server
DISTNAME =rwhoisd-1.5.9.6
PKGNAME =${DISTNAME}p1

--- Remove the PKGNAME line. Why do you have this?

CATEGORIES = net

HOMEPAGE=http://projects.arin.net/rwhois/
MAINTAINER= Andrew Klettke aklet...@opticfusion.net

WANTLIB = c

MASTER_SITES=${HOMEPAGE}/ftp/

# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=Yes

PREFIX= /usr/local
EPREFIX= /usr/local

--- Why do you have the PREFIX and EPREFIX lines? I don't see any 
reason for them.

--- PREFIX is automatically set properly by the ports system.

USE_GMAKE=Yes
CONFIGURE_STYLE=gnu

do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/server/rwhoisd ${PREFIX}/sbin/
.for i in rwhois_deleter rwhois_indexer rwhois_repack
${INSTALL_PROGRAM} ${WRKBUILD}/tools/$i/$i ${PREFIX}/bin/
.endfor

post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rwhoisd
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rwhoisd
.for i in LICENSE README VERSION
${INSTALL_DATA} ${WRKBUILD}/$i ${PREFIX}/share/doc/rwhoisd/
.endfor
${INSTALL_DATA} ${WRKBUILD}/doc/operations_guide.txt 
${WRKBUILD}/doc/security.txt ${PREFIX}/share/doc/rwhoisd/

cp -R ${WRKBUILD}/sample.data/* ${PREFIX}/share/examples/rwhoisd/
${INSTALL_MAN} ${WRKBUILD}/doc/rwhoisd.8 ${PREFIX}/man/man8/
${INSTALL_MAN} ${WRKBUILD}/doc/rwhois_indexer.8 ${PREFIX}/man/man8/



.include bsd.port.mk

  




rwhoisd.tar.gz
Description: GNU Zip compressed data


rwhoisd

2009-12-17 Thread Andrew Klettke

I'm going to start work on porting rwhoisd, is anyone else working on this?

--
Thanks

Andrew Klettke
Optic Fusion NOC
253-830-2943