View | Details | Raw Unified | Return to bug 181255
Collapse All | Expand All

(-)/root/src/redports/databases/xtrabackup/Makefile (-26 / +7 lines)
Lines 2-20 Link Here
2
# $FreeBSD: databases/xtrabackup/Makefile 322330 2013-07-05 14:31:43Z wg $
2
# $FreeBSD: databases/xtrabackup/Makefile 322330 2013-07-05 14:31:43Z wg $
3
3
4
PORTNAME=	xtrabackup
4
PORTNAME=	xtrabackup
5
PORTVERSION=	2.1.3
5
PORTVERSION=	2.1.4
6
PORTREVISION=	1
7
CATEGORIES=	databases
6
CATEGORIES=	databases
8
MASTER_SITES=	http://downloads.skysql.com/archives/%SUBDIR%/:mysql51,mysql55,mysql56 \
7
MASTER_SITES=	http://www.percona.com/downloads/%SUBDIR%/
9
		http://downloads.mysql.com/archives/%SUBDIR%/:mysql51,mysql55,mysql56 \
10
		http://www.percona.com/downloads/%SUBDIR%/:xtrabackup,percsrc51,percsrc55 \
11
		http://samm.kiev.ua/percona/:percsrc51,percsrc55
12
DISTNAME=	percona-${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
8
DISTNAME=	percona-${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
13
DISTFILES=	mysql-${MYSQL51_SRCVER}.tar.gz:mysql51 mysql-${MYSQL55_SRCVER}.tar.gz:mysql55 \
9
DISTFILES=	percona-xtrabackup-${PORTVERSION}.tar.gz
14
		mysql-${MYSQL56_SRCVER}.tar.gz:mysql56 \
15
		percona-xtrabackup-${PORTVERSION}.tar.gz:xtrabackup \
16
		Percona-Server-5.1.59-13.0-patches.tar.gz:percsrc51 \
17
		Percona-Server-5.5.16-22.0-patches.tar.gz:percsrc55
18
EXTRACT_ONLY=	percona-xtrabackup-${PORTVERSION}.tar.gz
10
EXTRACT_ONLY=	percona-xtrabackup-${PORTVERSION}.tar.gz
19
11
20
MAINTAINER=	aleksandr.kuzminsky@percona.com
12
MAINTAINER=	aleksandr.kuzminsky@percona.com
Lines 28-34 Link Here
28
		bison:${PORTSDIR}/devel/bison
20
		bison:${PORTSDIR}/devel/bison
29
LIB_DEPENDS=	gcrypt:${PORTSDIR}/security/libgcrypt \
21
LIB_DEPENDS=	gcrypt:${PORTSDIR}/security/libgcrypt \
30
		gpg-error:${PORTSDIR}/security/libgpg-error
22
		gpg-error:${PORTSDIR}/security/libgpg-error
31
RUN_DEPENDS=	p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
23
RUN_DEPENDS=	p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql \
24
		qpress:${PORTSDIR}/archivers/qpress
32
25
33
# autotool is in use for 5.1 builds
26
# autotool is in use for 5.1 builds
34
MAKE_JOBS_SAFE=	yes
27
MAKE_JOBS_SAFE=	yes
Lines 38-62 Link Here
38
# MySQL 5.5 using CMAKE
31
# MySQL 5.5 using CMAKE
39
USES=		cmake iconv gettext
32
USES=		cmake iconv gettext
40
33
41
MASTER_SITE_SUBDIR=	mysql-5.1/:mysql51 mysql-5.5/:mysql55 mysql-5.6/:mysql56 \
34
MASTER_SITE_SUBDIR=	XtraBackup/XtraBackup-${PORTVERSION}/source/
42
	XtraBackup/XtraBackup-${PORTVERSION}/source/:xtrabackup \
43
	Percona-Server-5.1/Percona-Server-5.1.59-13.0/source/:percsrc51 \
44
	Percona-Server-5.5/Percona-Server-5.5.16-22.0/source/:percsrc55
45
46
# port needs MySQL sources to build
47
MYSQL51_SRCVER=		5.1.59
48
MYSQL55_SRCVER=		5.5.16
49
MYSQL56_SRCVER=		5.6.10
50
35
51
PLIST_FILES=	bin/xtrabackup bin/xtrabackup_55 bin/xtrabackup_56 bin/xbstream \
36
PLIST_FILES=	bin/xtrabackup bin/xtrabackup_55 bin/xtrabackup_56 bin/xbstream \
52
	bin/innobackupex bin/xbcrypt
37
	bin/innobackupex bin/xbcrypt
53
38
54
pre-build:
39
pre-build:
55
	${CP} ${DISTDIR}/percona-xtrabackup-${PORTVERSION}.tar.gz \
40
	${CP} ${DISTDIR}/percona-xtrabackup-${PORTVERSION}.tar.gz ${WRKSRC}
56
	${DISTDIR}/mysql-${MYSQL51_SRCVER}.tar.gz ${DISTDIR}/mysql-${MYSQL55_SRCVER}.tar.gz \
57
	${DISTDIR}/mysql-${MYSQL56_SRCVER}.tar.gz \
58
	${DISTDIR}/Percona-Server-5.1.59-13.0-patches.tar.gz \
59
	${DISTDIR}/Percona-Server-5.5.16-22.0-patches.tar.gz ${WRKSRC}
60
41
61
do-build:
42
do-build:
62
	cd ${WRKSRC} && ./utils/build.sh xtradb55
43
	cd ${WRKSRC} && ./utils/build.sh xtradb55
(-)/root/src/redports/databases/xtrabackup/distinfo (-12 / +2 lines)
Lines 1-12 Link Here
1
SHA256 (mysql-5.1.59.tar.gz) = f87b99b73c0d936ed892326ebd4c90b1d5c7d5d2ac8832fc62f538db99fb04f7
1
SHA256 (percona-xtrabackup-2.1.4.tar.gz) = bb0d99915458635d4f852f89412417edb7928755f76ec5a9219e67af8eadada7
2
SIZE (mysql-5.1.59.tar.gz) = 24325443
2
SIZE (percona-xtrabackup-2.1.4.tar.gz) = 137107631
3
SHA256 (mysql-5.5.16.tar.gz) = 38a88d5f3a4e0ab1c6722662a2c858c63fd98f0925691400282cb23f1ea29b70
4
SIZE (mysql-5.5.16.tar.gz) = 23816508
5
SHA256 (mysql-5.6.10.tar.gz) = 156c43a7bde1ada8552938c6b8f46162b568bca8ddb76998a645308d93fb70b6
6
SIZE (mysql-5.6.10.tar.gz) = 35174149
7
SHA256 (percona-xtrabackup-2.1.3.tar.gz) = 10c089ac0ad90ac9fc868a36577ba02c6f6b4a488dac716fc4ecb81c107a21d8
8
SIZE (percona-xtrabackup-2.1.3.tar.gz) = 11267387
9
SHA256 (Percona-Server-5.1.59-13.0-patches.tar.gz) = 76f9398d1637c9cfc1b64e35cd272b70ddc71cfb6f00abd2fe6e62918fa920b5
10
SIZE (Percona-Server-5.1.59-13.0-patches.tar.gz) = 1203994
11
SHA256 (Percona-Server-5.5.16-22.0-patches.tar.gz) = 30d14443027cbcef4266385adfeb385af62cf5551ca044ae83539673497be4be
12
SIZE (Percona-Server-5.5.16-22.0-patches.tar.gz) = 1141266
(-)/root/src/redports/databases/xtrabackup/files/patch-build.sh (-38 / +3 lines)
Lines 1-6 Link Here
1
--- utils/build.sh	2013-05-22 19:00:32.000000000 +0200
1
--- utils/build.sh	2013-08-01 15:26:37.000000000 +0200
2
+++ utils/build.sh	2013-07-02 21:36:25.534672963 +0200
2
+++ utils/build.sh	2013-08-13 08:52:57.520334456 +0200
3
@@ -281,6 +281,7 @@
3
@@ -289,6 +289,7 @@
4
                 -DWITH_EXTRA_CHARSETS=all \
4
                 -DWITH_EXTRA_CHARSETS=all \
5
                 -DWITH_EMBEDDED_SERVER=1 \
5
                 -DWITH_EMBEDDED_SERVER=1 \
6
                 -DENABLE_DTRACE=OFF $extra_config_55plus"
6
                 -DENABLE_DTRACE=OFF $extra_config_55plus"
Lines 8-45 Link Here
8
         build_all $type
8
         build_all $type
9
         ;;
9
         ;;
10
 
10
 
11
@@ -316,9 +317,14 @@
12
 	    bzr revert
13
 	    bzr pull --overwrite
14
 	else
15
-	    bzr branch -r tag:Percona-Server-$PS_51_VERSION \
16
-		lp:percona-server/5.1 $branch_dir
17
+	    #bzr branch -r tag:Percona-Server-$PS_51_VERSION \
18
+	#	lp:percona-server/5.1 $branch_dir
19
+	    tar -xvzf Percona-Server-${PS_51_VERSION}-patches.tar.gz
20
+	    ln -sf Percona-Server-${PS_51_VERSION}-patches $branch_dir
21
+	    ln  mysql-${MYSQL_51_VERSION}.tar.gz $branch_dir
22
 	    cd $branch_dir
23
+	    #fix for cmake, from https://bugs.launchpad.net/percona-xtradb/+bug/666223
24
+	    sed -i .orig 's/inline void _increment_page_get_statistics/void _increment_page_get_statistics/' patches/innodb_extend_slow.patch
25
 	fi
26
 
27
 	$MAKE_CMD main
28
@@ -370,9 +376,15 @@
29
 	    bzr revert
30
 	    bzr pull --overwrite
31
 	else
32
-	    bzr branch -r tag:Percona-Server-$PS_55_VERSION \
33
-		lp:percona-server $branch_dir
34
+#	    bzr branch -r tag:Percona-Server-$PS_55_VERSION \
35
+#		lp:percona-server $branch_dir
36
+	    tar -xvzf Percona-Server-${PS_55_VERSION}-patches.tar.gz
37
+	    ln -sf Percona-Server-${PS_55_VERSION}-patches $branch_dir
38
+	    ln mysql-5.5.16.tar.gz $branch_dir
39
 	    cd $branch_dir
40
+	    #fix for cmake, from https://bugs.launchpad.net/percona-xtradb/+bug/666223
41
+	    sed -i .orig 's/inline void _increment_page_get_statistics/void _increment_page_get_statistics/' patches/innodb_extend_slow.patch
42
+
43
 	fi
44
 
45
 	$MAKE_CMD PERCONA_SERVER=Percona-Server-5.5 main

Return to bug 181255