Date: Fri, 18 Jan 2013 13:08:52 +0000 (UTC) From: Chris Rees <crees@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r310604 - head/irc/evangeline Message-ID: <201301181308.r0ID8quZ099294@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: crees Date: Fri Jan 18 13:08:52 2013 New Revision: 310604 URL: http://svnweb.freebsd.org/changeset/ports/310604 Log: Stop being INTERACTIVE Be more flexible about TCL versions Modified: head/irc/evangeline/Makefile Modified: head/irc/evangeline/Makefile ============================================================================== --- head/irc/evangeline/Makefile Fri Jan 18 12:50:24 2013 (r310603) +++ head/irc/evangeline/Makefile Fri Jan 18 13:08:52 2013 (r310604) @@ -1,9 +1,5 @@ -# New ports collection makefile for: evangeline -# Date created: 1 Mar 2005 -# Whom: "Edini" <ports@edini.net> -# +# Created by: Edini <ports@edini.net> # $FreeBSD$ -# PORTNAME= evangeline PORTVERSION= 1.1.4 @@ -14,13 +10,13 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}-b1 MAINTAINER= ports@FreeBSD.org COMMENT= IRC Bot based on Eggdrop -LIB_DEPENDS= tcl84.1:${PORTSDIR}/lang/tcl84 - WRKSRC= ${WRKDIR}/${PORTNAME} +USE_TCL= yes USE_GMAKE= yes GNU_CONFIGURE= yes -IS_INTERACTIVE= yes + +PLIST_FILES= bin/evangeline OPTIONS_DEFINE= IPV6 CRYPT OPTIONS_DEFAULT= CRYPT @@ -40,6 +36,25 @@ CONFIGURE_ARGS+= --enable-crypt CONFIGURE_ARGS+= --disable-crypt .endif -PLIST_FILES= bin/evangeline +pre-everything:: + @${ECHO_MSG} 'To redefine the "admin" user name, set ADMIN_NAME' + @${ECHO_MSG} 'To redefine the "Permanent owner" name, set OWNER_NAME' + +post-patch: + @${REINPLACE_CMD} 's,^read usersq,usersq=n,' ${WRKDIR}/evangeline/configure + +# Turns out that putting ADMIN_NAME more than 9 chars creates an overflow... +# Fix that here while replacing the name. +post-configure: +.if !empty(ADMIN_NAME) + @${REINPLACE_CMD} \ + 's,^char admin[^ ]* = [^;]*,const char* admin = "${ADMIN_NAME}",' \ + ${WRKDIR}/evangeline/src/main.c +.endif +.if !empty(OWNER_NAME) + @${REINPLACE_CMD} \ + 's,^char owner[^ ]* = [^;]*,const char* owner = "${OWNER_NAME}",' \ + ${WRKDIR}/evangeline/src/main.c +.endif .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301181308.r0ID8quZ099294>