View | Details | Raw Unified | Return to bug 276559 | Differences between
and this patch

Collapse All | Expand All

(-)databases/pgbackrest/Makefile (-12 / +18 lines)
Lines 1-6 Link Here
1
PORTNAME=	pgbackrest
1
PORTNAME=	pgbackrest
2
DISTVERSIONPREFIX=	release/
2
DISTVERSIONPREFIX=	release/
3
DISTVERSION=	2.49
3
DISTVERSION=	2.51
4
CATEGORIES=	databases
4
CATEGORIES=	databases
5
5
6
MAINTAINER=	schoutm@gmail.com
6
MAINTAINER=	schoutm@gmail.com
Lines 8-38 Link Here
8
WWW=		https://pgbackrest.org/
8
WWW=		https://pgbackrest.org/
9
9
10
LICENSE=	MIT
10
LICENSE=	MIT
11
LICENSE_FILE=	${WRKSRC}/../LICENSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
12
12
13
LIB_DEPENDS=	liblz4.so:archivers/liblz4 \
13
LIB_DEPENDS=	liblz4.so:archivers/liblz4 \
14
		libyaml.so:textproc/libyaml
14
		libyaml.so:textproc/libyaml
15
15
16
USES=		gmake gnome pkgconfig pgsql ssl
16
USES=		gnome meson pgsql pkgconfig python ssl
17
USE_GITHUB=	yes
17
USE_GNOME=	libxml2
18
USE_GNOME=	libxml2
18
GNU_CONFIGURE=	yes
19
19
20
USE_GITHUB=	yes
20
MESON_ARGS+=	-Dconfigdir="${LOCALBASE}/etc/pgbackrest"
21
21
22
WRKSRC_SUBDIR=	src
22
BINARY_ALIAS=	python3=${PYTHON_CMD}
23
23
24
ALL_TARGET=
24
OPTIONS_DEFINE=		LZ4 SFTP ZSTD
25
OPTIONS_DEFAULT=	LZ4
25
26
26
CONFIGURE_ARGS=	--with-configdir="${LOCALBASE}/etc/pgbackrest"
27
SFTP_DESC=	Enable SFTP storage support
27
28
28
OPTIONS_DEFINE=	ZSTD
29
LZ4_LIB_DEPENDS=	liblz4.so:archivers/liblz4
30
LZ4_MESON_ON=		-Dliblz4=enabled
31
LZ4_MESON_OFF=		-Dliblz4=disabled
29
32
33
SFTP_LIB_DEPENDS=	libssh2.so:security/libssh2
34
SFTP_MESON_ON=		-Dlibssh2=enabled
35
SFTP_MESON_OFF=		-Dlibssh2=disabled
36
30
ZSTD_LIB_DEPENDS=	libzstd.so:archivers/zstd
37
ZSTD_LIB_DEPENDS=	libzstd.so:archivers/zstd
31
ZSTD_CONFIGURE_OFF=	ac_cv_lib_zstd_ZSTD_isError=no
38
ZSTD_MESON_ON=		-Dlibzstd=enabled
32
ZSTD_CONFIGURE_ON=	ac_cv_lib_zstd_ZSTD_isError=yes
39
ZSTD_MESON_OFF=		-Dlibzstd=disabled
33
40
34
post-install:
41
post-install:
35
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pgbackrest
36
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/pgbackrest
42
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/pgbackrest
37
43
38
.include <bsd.port.mk>
44
.include <bsd.port.mk>
(-)databases/pgbackrest/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1704919820
1
TIMESTAMP = 1712155789
2
SHA256 (pgbackrest-pgbackrest-release-2.49_GH0.tar.gz) = 32a2d1bd504cc13f6e01533811104da39e2e842cdd8a7ba87293021cf03162f3
2
SHA256 (pgbackrest-pgbackrest-release-2.51_GH0.tar.gz) = 9fa6760032927de448251fb1e5b824e2d17caf560796e74947275b72dc20ed2a
3
SIZE (pgbackrest-pgbackrest-release-2.49_GH0.tar.gz) = 6162457
3
SIZE (pgbackrest-pgbackrest-release-2.51_GH0.tar.gz) = 6119922
(-)databases/pgbackrest/files/patch-meson.build (+28 lines)
Line 0 Link Here
1
--- meson.build.orig	2024-04-10 11:23:05 UTC
2
+++ meson.build
3
@@ -144,7 +144,7 @@ lib_bz2 = cc.find_library('bz2')
4
 lib_bz2 = cc.find_library('bz2')
5
 
6
 # Find optional lz4 library
7
-lib_lz4 = dependency('liblz4', required: false)
8
+lib_lz4 = dependency('liblz4', required: get_option('liblz4'))
9
 
10
 if lib_lz4.found()
11
     configuration.set('HAVE_LIBLZ4', true, description: 'Is liblz4 present?')
12
@@ -168,14 +168,14 @@ configuration.set('ZLIB_CONST', true, description: 'Re
13
 configuration.set('ZLIB_CONST', true, description: 'Require zlib const input buffer')
14
 
15
 # Find optional libssh2 library
16
-lib_ssh2 = dependency('libssh2', required: false)
17
+lib_ssh2 = dependency('libssh2', required: get_option('libssh2'))
18
 
19
 if lib_ssh2.found()
20
     configuration.set('HAVE_LIBSSH2', true, description: 'Is libssh2 present?')
21
 endif
22
 
23
 # Find optional zstd library
24
-lib_zstd = dependency('libzstd', version: '>=1.0', required: false)
25
+lib_zstd = dependency('libzstd', version: '>=1.0', required: get_option('libzstd'))
26
 
27
 if lib_zstd.found()
28
     configuration.set('HAVE_LIBZST', true, description: 'Is libzstd present?')
(-)databases/pgbackrest/files/patch-meson__options.txt (+8 lines)
Line 0 Link Here
1
--- meson_options.txt.orig	2024-03-24 20:53:22 UTC
2
+++ meson_options.txt
3
@@ -1,2 +1,5 @@ option('fatal-errors', type: 'boolean', value: false, 
4
 option('configdir', type: 'string', value: '/etc/pgbackrest', description: 'Configuration directory')
5
 option('fatal-errors', type: 'boolean', value: false, description: 'Stop compilation on first error')
6
+option('liblz4', type: 'feature', value: 'auto', description: 'Enable LZ4 compression support')
7
+option('libssh2', type: 'feature', value: 'auto', description: 'Enable SFTP storage support')
8
+option('libzstd', type: 'feature', value: 'auto', description: 'Enable Zstandard compression support')
(-)databases/pgbackrest/files/patch-src_meson.build (+10 lines)
Line 0 Link Here
1
--- src/meson.build.orig	2024-03-24 20:53:22 UTC
2
+++ src/meson.build
3
@@ -284,5 +284,6 @@ executable(
4
         lib_xml,
5
         lib_z,
6
         lib_zstd,
7
-    ]
8
+    ],
9
+    install: true,
10
 )

Return to bug 276559