From owner-freebsd-ports@FreeBSD.ORG Wed Feb 8 23:07:53 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B84A5106564A for ; Wed, 8 Feb 2012 23:07:53 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 354BA8FC0A for ; Wed, 8 Feb 2012 23:07:52 +0000 (UTC) Received: by lagz14 with SMTP id z14so1437212lag.13 for ; Wed, 08 Feb 2012 15:07:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DgyldShl9793BmyqS5+CIn/fuzbBCUGENehTi6cVaFY=; b=Z/mc/IRQ9JEK0cB/72TsgDZueRx+jcZev7M+7+9PS/9tWgoPGYEh4dC4c6pSbv4Bk2 v83phxK4amXZoDJ2GOWyukFdTUeI2XcOk5pM1KRiJolLoaOHpKae+5CkAjBXNJxkUxT/ PbhU02bFh4hMpDA//xfR7p7btfOE1U2TYLLtc= MIME-Version: 1.0 Received: by 10.152.147.202 with SMTP id tm10mr18512438lab.49.1328742471588; Wed, 08 Feb 2012 15:07:51 -0800 (PST) Received: by 10.152.114.197 with HTTP; Wed, 8 Feb 2012 15:07:51 -0800 (PST) In-Reply-To: <4F32F20B.1050102@p6m7g8.com> References: <4F32F20B.1050102@p6m7g8.com> Date: Thu, 9 Feb 2012 00:07:51 +0100 Message-ID: From: claudiu vasadi To: "Philip M. Gollucci" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: flo@freebsd.org, freebsd-ports@freebsd.org Subject: Re: porting percona's xtrabackup (currently version 1.6.4) 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: Wed, 08 Feb 2012 23:07:53 -0000 Hi Phillip, I played around a bit and and had some progress. This is what I have now: PORTNAME= xtrabackup PORTVERSION= 1.6.4 CATEGORIES= databases MASTER_SITES= http://www.percona.com/downloads/XtraBackup/XtraBackup-1.6.4/source/ MAINTAINER= claudiu.vasadi@gmail.com COMMENT= OpenSource version of InnoDB backup with support of Percona extensions MAKE_JOBS_SAFE= yes OPTIONS= innodb51_builtin "built-in InnoDB in MySQL 5.1" off \ innodb51 "InnoDB plugin in MySQL 5.1" off \ innodb55 "InnoDB in MySQL 5.5" on \ xtradb51 "Percona Server with XtraDB 5.1" off \ xtradb55 "Percona Server with XtraDB 5.5" off BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \ bzr:${PORTSDIR}/devel/bazaar-ng \ wget:${PORTSDIR}/ftp/wget HAS_CONFIGURE= yes CONFIGURE_ENV= AUTO_DOWNLOAD="yes" CONFIGURE_WRKSRC= ${WRKSRC} CONFIGURE_SCRIPT= utils/build.sh # not really working, allway picking up "innodb51_builtin" (first option) instead of the option selected CONFIGURE_ARGS= ${OPTIONS} .include For the moment, this is my TO-DO list: 1) make $OPTIONS be delivered to the "build.sh" script (I tried via the "CONFIGURE_ARGS" but I guess that's not the way to do it. I also read " bsd.port.mk" but couldn;t see how I could accomplish this) 2) make the "build.sh" script run under a "bash" shell 3) pkg-plist 4) definitely more but I'm tired now Any pointers are greatly appreciated. -- Best regards, Claudiu Vasadi