Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2012 22:36:37 +0100
From:      claudiu vasadi <claudiu.vasadi@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   porting percona's xtrabackup (currently version 1.6.4)
Message-ID:  <CAM-i3ijLLtwB3wOXO1GK1g=M%2BM6B1=c2ns6YFnbwH_sKU4kFkQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi guys,

The last version of percona's xtrabackup utility in the ports is 1.1. I
think this is a bit old. Therefore, I have written an e-mail to the
maintainer of the port asking if it would be possible to create a newer
version. No answer yet.

Since I'm the curious type of guy, I went ahead and tried it out myself. So
far, I have this:


PORTNAME= xtrabackup
PORTVERSION= 1.6.4
CATEGORIES= databases
MASTER_SITES=
http://www.percona.com/downloads/XtraBackup/XtraBackup-1.6.4/source/

COMMENT= OpenSource version of InnoDB backup with support of Percona
extensions

MAKE_JOBS_SAFE= yes
USE_GMAKE= 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



.include <bsd.port.options.mk>

.if defined(WITH_innodb51_builtin)
.endif

.if defined(WITH_innodb55)
.endif

.if defined(WITH_xtradb51)
.endif

.if defined(WITH_xtradb55)
.endif


.include <bsd.port.mk>


Problems so far:
The xtrabackup archive has no [configure script. Instead, there is 1
script, build.sh that takes care of everything (using bash). Installation
rolls down to:

> AUTO_DOWNLOAD="YES" ./utils/build.sh <engine_option> <<<--- this is where
the dialog box should kick in



My question is:
1) Is there a way to connect this script to the make (I think) command of
the ports framework and to the OPTIONS parameter from the port?



-- 
Best regards,
Claudiu Vasadi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM-i3ijLLtwB3wOXO1GK1g=M%2BM6B1=c2ns6YFnbwH_sKU4kFkQ>