svn commit: r310604 - head/irc/evangeline
Chris Rees
crees at FreeBSD.org
Fri Jan 18 13:08:53 UTC 2013
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 at edini.net>
-#
+# Created by: Edini <ports at edini.net>
# $FreeBSD$
-#
PORTNAME= evangeline
PORTVERSION= 1.1.4
@@ -14,13 +10,13 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}-b1
MAINTAINER= ports at 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>
More information about the svn-ports-head
mailing list