From owner-freebsd-ports Tue Sep 25 5:20: 9 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (unknown [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 275B737B41C for ; Tue, 25 Sep 2001 05:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8PCK1I42722; Tue, 25 Sep 2001 05:20:01 -0700 (PDT) (envelope-from gnats) Received: from isis.isnic.is (isis.isnic.is [193.4.58.14]) by hub.freebsd.org (Postfix) with SMTP id 99A9737B401 for ; Tue, 25 Sep 2001 05:11:13 -0700 (PDT) Received: (qmail 89540 invoked by uid 0); 25 Sep 2001 12:11:12 -0000 Message-Id: <20010925121112.89539.qmail@isis.isnic.is> Date: 25 Sep 2001 12:11:12 -0000 From: Olafur Osvaldsson Reply-To: Olafur Osvaldsson To: FreeBSD-gnats-submit@freebsd.org Cc: nbm@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/30814: Added option to specify the mysql server for vpopmail Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30814 >Category: ports >Synopsis: Added option to specify the mysql server for vpopmail >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 25 05:20:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Olafur Osvaldsson >Release: FreeBSD 4.4-STABLE i386 >Organization: Internet a Islandi hf. >Environment: System: FreeBSD isis.isnic.is 4.4-STABLE FreeBSD 4.4-STABLE #2: Fri Sep 21 01:14:26 GMT 2001 root@isis.isnic.is:/usr/obj/usr/src/sys/VA1220 i386 >Description: I run the mysql server on a seperate machine and my guess is that many other do, so making this an option would be nice. >How-To-Repeat: >Fix: *** Makefile.orig Tue Sep 25 11:38:24 2001 --- Makefile Tue Sep 25 11:31:14 2001 *************** *** 48,53 **** --- 48,54 ---- # WITH_MYSQL_USER - the username for connecting to the MySQL server (root) # WITH_MYSQL_PASSWD - the password for connecting to the MySQL server (gipgap) # WITH_MYSQL_DB - the name of the MySQL database to use (vpopmail) + # WITH_MYSQL_SERVER - the name of the server with the MySQL database (localhost) # VCHKPW_GID - the group ID of the new vchkpw group (89) # VPOPMAIL_UID - the user ID of the new vpopmail user (89) # *************** *** 126,131 **** --- 127,135 ---- .endif .if defined(WITH_MYSQL_DB) ${PERL} -pi -e "s/(#define MYSQL_DATABASE.*)vpopmail(.*)/\$$1${WITH_MYSQL_DB}\$$2/" ${WRKSRC}/vmysql.h + .endif + .if defined(WITH_MYSQL_SERVER) + ${PERL} -pi -e "s/(#define MYSQL_SERVER.*)localhost(.*)/\$$1${WITH_MYSQL_SERVER}\$$2/" ${WRKSRC}/vmysql.h .endif .endif >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message