Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2012 14:05:03 +0100
From:      claudiu vasadi <claudiu.vasadi@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   porting percona's xtrabackup (currently version 1.6.4) - call for testing
Message-ID:  <CAM-i3igf%2BsDWqL=scnB0je6A1dFi0kMXbmArr7pyERjzNBipqg@mail.gmail.com>

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

I just finished the "Makefile" for percona's xtrbackup utility version
1.6.4. Before submitting I would appreciate if some of you could test it
and advise if anything should be adjusted.

Thx.




Here it is:

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

BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
wget:${PORTSDIR}/ftp/wget \
${AUTOMAKE}:${PORTSDIR}/devel/automake
RUN_DEPENDS= perl:${PORTSDIR}/lang/perl5.10

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

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

PLIST_FILES= bin/tar4ibd

.include <bsd.port.options.mk>

.if defined(WITH_INNODB51_BUILTIN)
CONFIGURE_ARGS+= innodb51_builtin
PLIST_FILES= bin/tar4ibd \
bin/xtrabackup_51 \
bin/innobackupex-1.5.1
do-install:
${CP} ${WRKSRC}/libtar-1.2.11/libtar/tar4ibd ${LOCALBASE}/bin
${CP} ${WRKSRC}/mysql-5.1/storage/innobase/xtrabackup/xtrabackup_51
${LOCALBASE}/bin
${SED} -e '87s/autodetect/\/usr\/local\/bin\/xtrabackup_51/' < \
${WRKSRC}/innobackupex > ${LOCALBASE}/bin/innobackupex-1.5.1
.endif

.if defined(WITH_INNODB55)
CONFIGURE_ARGS+= innodb55
PLIST_FILES= bin/tar4ibd \
bin/xtrabackup_innodb55 \
bin/innobackupex-1.5.1
do-install:
${CP} ${WRKSRC}/libtar-1.2.11/libtar/tar4ibd ${LOCALBASE}/bin
${CP} ${WRKSRC}/mysql-5.5/storage/innobase/xtrabackup/xtrabackup_innodb55
${LOCALBASE}/bin
${SED} -e '87s/autodetect/\/usr\/local\/bin\/xtrabackup_innodb55/' < \
${WRKSRC}/innobackupex > ${LOCALBASE}/bin/innobackupex-1.5.1
.endif

.if defined(WITH_XTRADB51)
RUN_DEPENDS+= bzr:${PORTSDIR}/devel/bazaar-ng
CONFIGURE_ARGS+= xtradb51
PLIST_FILES= bin/tar4ibd \
bin/xtrabackup \
bin/innobackupex-1.5.1
do-install:
${CP} ${WRKSRC}/libtar-1.2.11/libtar/tar4ibd ${LOCALBASE}/bin
${CP}
${WRKSRC}/percona-server-5.1-xtrabackup/Percona-Server/storage/innodb_plugin/xtrabackup/xtrabackup
\
${LOCALBASE}/bin
${SED} -e '87s/autodetect/\/usr\/local\/bin\/xtrabackup/' < \
${WRKSRC}/innobackupex > ${LOCALBASE}/bin/innobackupex-1.5.1
.endif

.if defined(WITH_XTRADB55)
RUN_DEPENDS+= bzr:${PORTSDIR}/devel/bazaar-ng
CONFIGURE_ARGS+= xtradb55
PLIST_FILES= bin/tar4ibd \
bin/xtrabackup_xtradb55 \
bin/innobackupex-1.5.1
do-install:
${CP} ${WRKSRC}/libtar-1.2.11/libtar/tar4ibd ${LOCALBASE}/bin
${CP}
${WRKSRC}/percona-server-5.5-xtrabackup/Percona-Server-5.5/storage/innobase/xtrabackup_xtradb55
\
${LOCALBASE}/bin
${SED} -e '87s/autodetect/\/usr\/local\/bin\/xtradb55/' < \
${WRKSRC}/innobackupex > ${LOCALBASE}/bin/innobackupex-1.5.1
.endif

NO_BUILD= yes

.include <bsd.port.mk>


-----
end Makefile
-----


distinfo:

SHA256 (xtrabackup-1.6.4.tar.gz) =
627499844ac4e0c9799b5e5b26bebaaf47b9dec99fd69dfe2597495876ff52da
SIZE (xtrabackup-1.6.4.tar.gz) = 931057



-- 
Best regards,
Claudiu Vasadi



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