#!/bin/sh
# This is a shell archive
echo x pgloader3
mkdir -p pgloader3 > /dev/null 2>&1
echo x pgloader3/Makefile
sed 's/^X//' > pgloader3/Makefile << 'SHAR_END'
X# $FreeBSD: head/databases/pgloader3/Makefile 550670 2020-09-30 09:48:11Z antoine $
X
XPORTNAME=	pgloader
XPORTVERSION=	3.6.2
XDISTVERSIONPREFIX=	v
XCATEGORIES=	databases
X
XMAINTAINER=	freebsd-washroom@duhanic.com
XCOMMENT=	Data loading and migration tool for PostgreSQL using the COPY command.
X
XLICENSE=	PostgreSQL
X
XBUILD_DEPENDS=	sbcl:lang/sbcl \
X		curl:ftp/curl
XLIB_DEPENDS=	libsqlite3.so:databases/sqlite3 \
X		libtdsodbc.so:databases/freetds
X
XUSES=		gmake
X
XCONFLICTS=	pgloader-2*
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	dimitri
X
XPLIST_FILES=	bin/pgloader
X
X# new default:
XMAKE_ARGS=	CL=sbcl
X
X# breaks when built parallely:
XMAKE_JOBS_UNSAFE=	yes
X
X# don't strip away SBCL/CCL:
XSTRIP=
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/build/bin/pgloader ${STAGEDIR}${PREFIX}/bin/pgloader
X
X.include <bsd.port.mk>
SHAR_END
echo x pgloader3/distinfo
sed 's/^X//' > pgloader3/distinfo << 'SHAR_END'
XTIMESTAMP = 1610660671
XSHA256 (dimitri-pgloader-v3.6.2_GH0.tar.gz) = 33f87df9cb8f9a36f9836cd691ad6dfa72ae76200a12fe01ee89584f3b771ae7
XSIZE (dimitri-pgloader-v3.6.2_GH0.tar.gz) = 3717111
SHAR_END
echo x pgloader3/pkg-descr
sed 's/^X//' > pgloader3/pkg-descr << 'SHAR_END'
Xpgloader loads data from various sources into PostgreSQL. It can transform the data it reads on the fly and submit raw SQL before and after the loading. It uses the COPY PostgreSQL protocol to stream the data into the server, and manages errors by filling a pair of reject.dat and reject.log files.
X
XThanks to being able to load data directly from a database source, pgloader also supports from migrations from other productions to PostgreSQL. In this mode of operations, pgloader handles both the schema and data parts of the migration, in a single unmanned command, allowing to implement Continuous Migration.
X
XWWW: https://pgloader.io
SHAR_END
echo x pgloader3/pkg-plist
sed 's/^X//' > pgloader3/pkg-plist << 'SHAR_END'
Xbin/pgloader
SHAR_END
exit
