From owner-freebsd-ports@FreeBSD.ORG Tue Jun 14 11:24:48 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D16716A41C for ; Tue, 14 Jun 2005 11:24:48 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: from isis.sigpipe.cz (fw.sigpipe.cz [62.245.70.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 025D243D48 for ; Tue, 14 Jun 2005 11:24:47 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: by isis.sigpipe.cz (Postfix, from userid 1001) id 870FE1F87BED; Tue, 14 Jun 2005 13:24:45 +0200 (CEST) Date: Tue, 14 Jun 2005 13:24:45 +0200 From: Roman Neuhauser To: =?iso-8859-2?Q?K=F6vesd=E1n_G=E1bor?= Message-ID: <20050614112445.GA2437@isis.sigpipe.cz> Mail-Followup-To: =?iso-8859-2?Q?K=F6vesd=E1n_G=E1bor?= , freebsd-ports@freebsd.org References: <42ADC155.10304@t-hosting.hu> <20050614083019.GC1691@isis.sigpipe.cz> <42AE9AC9.8020008@t-hosting.hu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <42AE9AC9.8020008@t-hosting.hu> User-Agent: Mutt/1.5.9i Cc: freebsd-ports@freebsd.org Subject: Re: Makefile question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 11:24:48 -0000 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline # gabor.kovesdan@t-hosting.hu / 2005-06-14 10:52:25 +0200: > It is the DALnet's BahamutIRCD. You can grab it from > http://bahamut.dal.net/. 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@isis ports/irc/bahamut 1053:0 > /tmp/bahamut/sbin/ircd bahamut-1.8(03) booting... Security related issues should be sent to coders@dal.net All other issues should be sent to dalnet-src@dal.net CONFIGFILE: Error changing directory to ircd.conf location Server not started roman@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. http://bash.org/?255991 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile # New ports collection makefile for: bahamut # Date created: Tue Jun 14 11:27:56 CEST 2005 # Whom: Roman Neuhauser # # $FreeBSD$ # PORTNAME= bahamut PORTVERSION= 1.8.3 CATEGORIES= irc MASTER_SITES= ftp://ftp.dal.net/dalnet/server/bahamut/ \ http://bahamut.dal.net/download/ EXTRACT_SUFX= -release.tar.gz MAINTAINER= ports@FreeBSD.org COMMENT= Internet Relay Chat Daemon (IRCd) designed for DALnet GNU_CONFIGURE= yes USE_REINPLACE= yes REINPLACE_ARGS= -Ei.bak LOGDIR?= /var/log PIDDIR?= /var/run TOOLDIR?= ${PREFIX}/libexec/${PORTNAME} MOTD= ${DATADIR}/ircd.motd DOCFILES= opers.txt reference.conf template.conf TOOLFILES= mkpasswd convert_conf do-patch: ${REINPLACE_CMD} \ -e '/^#define[ ](S?M|H)PATH[ ]/s,,&"${DATADIR}/" ,' \ -e '/^#define[ ]LPATH[ ]/s,,&"${LOGDIR}/" ,' \ -e '/^#define[ ]PPATH[ ]/s,,&"${PIDDIR}/" ,' \ ${WRKSRC}/include/config.h do-install: ${MKDIR} -p ${DATADIR} ${MKDIR} -p ${DOCSDIR} ${MKDIR} -p ${TOOLDIR} ${INSTALL_PROGRAM} ${WRKSRC}/src/ircd ${PREFIX}/sbin/ircd ${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/doc/,} ${DOCSDIR} [ -e ${MOTD} ] || ${TOUCH} ${MOTD} ${INSTALL_SCRIPT} ${TOOLFILES:S,^,${WRKSRC}/tools/,} ${TOOLDIR} .include --0F1p//8PRICkK4MW--