aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Zhilin <mizhka@FreeBSD.org>2021-06-03 11:44:50 +0000
committerMichael Zhilin <mizhka@FreeBSD.org>2021-06-03 11:49:39 +0000
commitc49969ef4f68de362c260f7822e212c8045f7e6a (patch)
treee204b17517eda9c0d670d7d5e22207a26e5d1433
parent7a4ce8f831c4911061f4f465b4bf1e830267d4dc (diff)
downloadports-c49969ef4f68de362c260f7822e212c8045f7e6a.tar.gz
ports-c49969ef4f68de362c260f7822e212c8045f7e6a.zip
databases/pgbackrest: new port, backup tool for PostgreSQL
-rw-r--r--databases/pgbackrest/Makefile36
-rw-r--r--databases/pgbackrest/distinfo3
-rw-r--r--databases/pgbackrest/pkg-descr5
-rw-r--r--databases/pgbackrest/pkg-plist2
4 files changed, 46 insertions, 0 deletions
diff --git a/databases/pgbackrest/Makefile b/databases/pgbackrest/Makefile
new file mode 100644
index 000000000000..0df5f7b68f62
--- /dev/null
+++ b/databases/pgbackrest/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= pgbackrest
+DISTVERSION= 2.33
+CATEGORIES= databases
+
+MAINTAINER= schoutm@gmail.com
+COMMENT= Reliable PostgreSQL Backup & Restore
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/../LICENSE
+
+LIB_DEPENDS= liblz4.so:archivers/liblz4
+
+USES= gmake gnome pkgconfig pgsql ssl
+USE_GNOME= libxml2
+GNU_CONFIGURE= yes
+
+USE_GITHUB= yes
+GH_TAGNAME= release/${DISTVERSION}
+
+WRKSRC_SUBDIR= src
+
+ALL_TARGET=
+
+CONFIGURE_ARGS= --with-configdir="${LOCALBASE}/etc/pgbackrest"
+
+OPTIONS_DEFINE= ZSTD
+
+ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
+ZSTD_CONFIGURE_OFF= ac_cv_lib_zstd_ZSTD_isError=no
+ZSTD_CONFIGURE_ON= ac_cv_lib_zstd_ZSTD_isError=yes
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pgbackrest
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/pgbackrest
+
+.include <bsd.port.mk>
diff --git a/databases/pgbackrest/distinfo b/databases/pgbackrest/distinfo
new file mode 100644
index 000000000000..17541cb0679c
--- /dev/null
+++ b/databases/pgbackrest/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1618942356
+SHA256 (pgbackrest-pgbackrest-2.33-release-2.33_GH0.tar.gz) = 772afaf5cae17fa1fa102c84576b8d6a5074ba3ff510bb86d321c98feebff837
+SIZE (pgbackrest-pgbackrest-2.33-release-2.33_GH0.tar.gz) = 5642397
diff --git a/databases/pgbackrest/pkg-descr b/databases/pgbackrest/pkg-descr
new file mode 100644
index 000000000000..33b92b8d96c9
--- /dev/null
+++ b/databases/pgbackrest/pkg-descr
@@ -0,0 +1,5 @@
+pgBackRest aims to be a reliable, easy-to-use backup and restore solution for
+PostgreSQL that can seamlessly scale up to the largest databases and workloads
+by utilizing algorithms that are optimized for database-specific requirements.
+
+WWW: https://pgbackrest.org/
diff --git a/databases/pgbackrest/pkg-plist b/databases/pgbackrest/pkg-plist
new file mode 100644
index 000000000000..60dbcd9fde28
--- /dev/null
+++ b/databases/pgbackrest/pkg-plist
@@ -0,0 +1,2 @@
+bin/pgbackrest
+@dir %%ETCDIR%%