Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2012 21:21:34 +0100
From:      claudiu vasadi <claudiu.vasadi@gmail.com>
To:        "Philip M. Gollucci" <pgollucci@gmail.com>
Cc:        flo@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: porting percona's xtrabackup (currently version 1.6.4)
Message-ID:  <CAM-i3iikjRRSx5iRm0kTrUy8qJ8Kg1%2BruQmt45FYOJNJpfNVJw@mail.gmail.com>
In-Reply-To: <CAM-i3ihfKtfmg4wHGi27ZLpCtq8otahEWatAA5ebEzZT-H%2BEeg@mail.gmail.com>
References:  <CAM-i3ijLLtwB3wOXO1GK1g=M%2BM6B1=c2ns6YFnbwH_sKU4kFkQ@mail.gmail.com> <4F32F20B.1050102@p6m7g8.com> <CAM-i3ihfKtfmg4wHGi27ZLpCtq8otahEWatAA5ebEzZT-H%2BEeg@mail.gmail.com>

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

A bit more progress 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 \
                INNODB55        "InnoDB in MySQL 5.5"            off \
        XTRADB51        "Percona Server with XtraDB 5.1"    off \
                XTRADB55        "Percona Server with XtraDB 5.5"    off

BUILD_DEPENDS=  bash:${PORTSDIR}/shells/bash \
        wget:${PORTSDIR}/ftp/wget \
        automake-1.11:${PORTSDIR}/devel/automake

HAS_CONFIGURE=        yes
CONFIGURE_ENV=        AUTO_DOWNLOAD="yes"
CONFIGURE_WRKSRC=    ${WRKSRC}
CONFIGURE_SCRIPT=    utils/build.sh


.include <bsd.port.options.mk>

.if defined(WITH_INNODB51_BUILTIN)
   CONFIGURE_ARGS+=    innodb51_builtin
.endif

.if defined(WITH_INNODB55)
   CONFIGURE_ARGS+=    innodb55
.endif

.if defined(WITH_XTRADB51)
   RUN_DEPENDS+=    bzr:${PORTSDIR}/devel/bazaar-ng
   CONFIGURE_ARGS+=    xtradb51
.endif

.if defined(WITH_XTRADB55)
   RUN_DEPENDS+=        bzr:${PORTSDIR}/devel/bazaar-ng
   CONFIGURE_ARGS+=    xtradb55
.endif


NO_BUILD=        yes
NO_INSTALL=        yes




#
# install process goes here
#

.include <bsd.port.mk>




At this point, the port builds correctly according to the ${OPTIONS}
selected but am stuck @ the installation part now.
The problem is that the "build.sh" script creates a dir for each option
selected and that's where the executable(s) reside. For more info on the
dir name for each option, see
http://www.percona.com/doc/percona-xtrabackup/installation/compiling_xtrabackup.html(the
table at the very bottom).

Basically, I'm left with these points:
# 1) make install (cp the correct executables to the proper location and
adjust line 87 of "innobackupex" to point to the location of the "
xtrabackup" utility)
# 2) man pages
# 3) pkg_plist
# 4) make the port safe (if no option is selected (not by default) warn and
exit)


Any thoughts ?

-- 
Best regards,
Claudiu Vasadi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM-i3iikjRRSx5iRm0kTrUy8qJ8Kg1%2BruQmt45FYOJNJpfNVJw>