Perforce unter Cygwin

Um ein Windows-Perforce unter Cygwin laufen zu lassen, müssen die Pfade entsprechend angepasst werden, da die Windows-Perforce-Clients für den Client-Root die Windows-Pfad-Notation verwenden.

Die Anpassung kann mit der folgenden Bash-Wrapper-Funktion angepasst werden:

[geshi lang=bash]
ntp4 ()
{
here=”`cygpath -w \”$PWD\”`”;
PWD=”$here” //c/Program\ Files/Perforce/p4 “$@”
}
[/geshi]

Quelle: http://maillist.perforce.com/pipermail/perforce-user/2001-September/006820.html

Work related to Courier-Server

I wrote this article originally back in 2005 and updated it the last time on 2007-10-14. It was originally available at http://www.georglutz.de/wiki/CourierServer.  The information you find below might be rather outdated now and I don’t plan to work on it further, but I put it in the blog for archival purposes on this particular date – Georg in June 2011.

Continue reading “Work related to Courier-Server”

Broken RPM installation of MoinMoin

The RPM-Installation of MoinMoin (at least versions 1.5.6 and 1.5.7) is somehow broken. The typo lays in the spec file inside the tarball. There the changelog section contains an invalid date: “Do” instead of “Thu”. In order to work with “rpmbuild -ta” you need to correct it to “Thu” and recreate the tarball.

apcupsd under RHEL/CentOS

The following is a quick’n dirty HOWTO for installing apcupsd under Redhat Enterprise Linux / CentOS 4 as it is not really trivial.

  • untar the tarball
  • cd to the newly created directory apcupsd-x.y.z
  • call configure to build the appropriate Makefile for the platform
  • copy the tarball to whereever your _topdir resides, e.g. /home/user/rpm/SOURCES
  • copy the file Release\_Notes also to /home/user/rpm/SOURCES and create there a zipped tarball named Release_Notes-x.y.z-r.tar.gz (versions numbers must match those defined in apcupsd.spec)
  • call rpmbuild -ba –define “build\_rhel4 1” –define “build\_usb 1” apcupsd.spec
  • install it and adjust /etc/apcupsd.conf to your needs.

Important point: You must assure that after a system shutdown when mains power comes back, your computer starts automatically. In my case this has not happend. I had to tweak manually /etc/init.d/halt to not issue a “halt -p” (-p stands for power down). Its enough to comment out the line which extends the HALTARGS variable.

mirror cygwin for local installation – enhanced version of mkcygwget

If you plan to install cygwin on a couple of computers or on a host with limited internet access you might want to have a local mirror of the installation packages for setup.exe . There’s already a handy script called mkcygwegt which does the job for you. All you have to do is to provide a mirror URL. It downloads setup.ini then parses it and generates a file which consists of the apporpriate wget calls (cygwget).

However, I was not really contend with this script and improved a bit the way how cygwget is generated: Continue reading “mirror cygwin for local installation – enhanced version of mkcygwget”