Makefile question

Roman Neuhauser neuhauser at
Tue Jun 14 11:24:48 GMT 2005

# gabor.kovesdan at / 2005-06-14 10:52:25 +0200:
> It is the DALnet's BahamutIRCD. You can grab it from 
> Try to install it with specifying --prefix, 
> --bindir, --libdir, ... even if You specify all of the pathnames, every 
> file go directly to --prefix. But I'm interested, whether You can find a 
> better solution.

    Ok, I see the problem now. This one is a bit funny, and "fixing" the
    authors' preference for relocatable binaries will require a bit of
    tweaking so that MPATH etc in include/config.h end up qualified with
    the desired paths. I don't feel like playing with autoconf right
    now, so I don't have a "better" solution, just a hack.

    I'm attaching a possible irc/bahamut/Makefile.  I haven't bothered
    creating pkg-plist or testing the compiled product beyond what you
    see below (which BTW shows that ircd exits with 0 (success) even if
    it outputs what looks like a reaction to an error condition; that's
    a bit unorthodox):

    roman at isis ports/irc/bahamut 1053:0 > /tmp/bahamut/sbin/ircd

    bahamut-1.8(03) booting...
    Security related issues should be sent to coders at
    All other issues should be sent to dalnet-src at

    Error changing directory to ircd.conf location
    Server not started
    roman at isis ports/irc/bahamut 1054:0 >

    You'll need to chase down the rest of such problems (if there are
    any left) and patch them.

How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.   
-------------- next part --------------
# New ports collection makefile for:	bahamut
# Date created:				Tue Jun 14 11:27:56 CEST 2005
# Whom:					Roman Neuhauser <neuhauser at>
# $FreeBSD$

PORTNAME=	bahamut
EXTRACT_SUFX=	-release.tar.gz

MAINTAINER=	ports at
COMMENT=	Internet Relay Chat Daemon (IRCd) designed for DALnet


LOGDIR?=	/var/log
PIDDIR?=	/var/run

MOTD=		${DATADIR}/ircd.motd
DOCFILES=	opers.txt reference.conf template.conf
TOOLFILES=	mkpasswd convert_conf

		-e '/^#define[	 ](S?M|H)PATH[	 ]/s,,&"${DATADIR}/" ,' \
		-e '/^#define[	 ]LPATH[	 ]/s,,&"${LOGDIR}/" ,' \
		-e '/^#define[	 ]PPATH[	 ]/s,,&"${PIDDIR}/" ,' \

	${INSTALL_PROGRAM} ${WRKSRC}/src/ircd ${PREFIX}/sbin/ircd
	[ -e ${MOTD} ] || ${TOUCH} ${MOTD}

.include <>

More information about the freebsd-ports mailing list