Archive for the ‘hacking’ Category

cvssproxy build 1

Thursday, August 10th, 2006

On the cvsnt list there has been a lot of activity recently regarding sserver. For some people, setting up and using sserver is a real pain, especially if they use a client/ide that only supports the pserver protocol.

Tony Hoyle made this observation:

I actually wonder if a local proxy would be useful – eg. you connect to localhost:2401 via pserver and it does the relevant handshake and connects in a secure manner.  It’s basically what extnt does I guess, but people do seem to have problems configuring that.

I’ve been thinking about doing something similar for ages, so this was the very excuse I neeed to go and hack some code together. Yes, that right, I build a proof-of-concept sserver proxy for cvs, or cvssproxy for short.

More details are on the cvssproxy page. Enjoy!

removing properties in CVSNT

Friday, July 21st, 2006

Today I got my hands dirty and hacked some CVSNT code.

CVSNT lets you add properties to files under it control, but one thing it didn’t do was let you remove those properties. So, after powering myself up with two very strong cups of caffe latte (thank you Lavazza), I delved into that black hole of code known as admin.cpp and rcs.cpp.

After gisting what was happening, I made the necessary mods to rcs.cpp, et voila, if you now set a property to an empty value, the property is deleted.

sys-apps/xinetd-2.3.14-r1001.ebuild [hackery]

Thursday, March 23rd, 2006

With xinetd, support for Howl was added in 2.3.14, and for Rendezvous in 2.3.8. The slight hiccup is that Rendezvous has morphed into Bonjour. However, since I use Bonjour (or mDNSResponderPosix which is how its called in my gentoo-based system) I spent a few hours last week hacking Bonjour support into xinetd 2.3.14.

For those who want to experience this bit of xinetd and Bonjour hackery now, the patch file you need is xinetd-2.3.14-bonjour.patch. Please note that you must to run autoconf before doing ./configure && make && make install.

For those who use gentoo, I’ve made available an ebuild which applies this patch.

To get this ebuild into your local portage tree do:

# rsync -rztp --delete rsync://rsync.omz13.com/local-portage/sys-apps/xinetd /usr/local/portage/sys-apps

Then emerge =sys-apps/xinetd-2.3.14-r1001

Enjoy.