aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Engelhardt <lukas.engelhardt@gmx.de>2025-10-21 14:39:02 +0000
committerBernhard Froehlich <decke@FreeBSD.org>2025-10-21 14:39:02 +0000
commit95880936fb194458bbe156cd583c5192ca5ec39a (patch)
tree6e1e696f713900544e7eb6c9b8b802e12c76da81
parentf7ec0dae84d350078acafda3dd06378c3fea06df (diff)
databases/pg-safeupdate: Add new port
PostgreSQL extension to block unconditional UPDATE/DELETE PR: 290229
-rw-r--r--databases/Makefile1
-rw-r--r--databases/pg-safeupdate/Makefile22
-rw-r--r--databases/pg-safeupdate/distinfo3
-rw-r--r--databases/pg-safeupdate/pkg-descr4
4 files changed, 30 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 9e2eaa683ef9..c72410ad7363 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -538,6 +538,7 @@
SUBDIR += percona-orchestrator
SUBDIR += percona-toolkit
SUBDIR += pg-gvm
+ SUBDIR += pg-safeupdate
SUBDIR += pg.el
SUBDIR += pgFormatter
SUBDIR += pg_activity
diff --git a/databases/pg-safeupdate/Makefile b/databases/pg-safeupdate/Makefile
new file mode 100644
index 000000000000..9227fd7ce1e9
--- /dev/null
+++ b/databases/pg-safeupdate/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= pg-safeupdate
+PORTVERSION= 1.5
+CATEGORIES= databases
+PKGNAMEPREFIX= postgresql${PGSQL_VER:S/.//}-
+
+MAINTAINER= lukas.engelhardt@gmx.de
+COMMENT= PostgreSQL extension to block unconditional UPDATE/DELETE
+
+LICENSE= PostgreSQL
+
+USES= gmake pgsql
+WANT_PGSQL= server
+
+USE_GITHUB= yes
+GH_ACCOUNT= eradman
+
+PLIST_FILES= lib/postgresql/safeupdate.so
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/safeupdate.so
+
+.include <bsd.port.mk>
diff --git a/databases/pg-safeupdate/distinfo b/databases/pg-safeupdate/distinfo
new file mode 100644
index 000000000000..4adbb9131d76
--- /dev/null
+++ b/databases/pg-safeupdate/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1752409235
+SHA256 (eradman-pg-safeupdate-1.5_GH0.tar.gz) = 1b8742e7b2bf98275adda77cd92f5a2fd702f97d09a216c6273252894fb026f1
+SIZE (eradman-pg-safeupdate-1.5_GH0.tar.gz) = 3578
diff --git a/databases/pg-safeupdate/pkg-descr b/databases/pg-safeupdate/pkg-descr
new file mode 100644
index 000000000000..c97a51cdb3ab
--- /dev/null
+++ b/databases/pg-safeupdate/pkg-descr
@@ -0,0 +1,4 @@
+Safeupdate is a simple extension to PostgreSQL that raises an error if UPDATE
+and DELETE are executed without specifying conditions. This extension was
+initially designed to protect data from accidental obliteration of data that is
+writable by PostgREST.