git: f46536d34ace - main - ports-mgmt/portsdb: Update 0.2 -> 0.3

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 01 Jan 2023 22:47:29 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f46536d34acecf5cd885566ba87c0b3fd896fd15

commit f46536d34acecf5cd885566ba87c0b3fd896fd15
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-01 22:47:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-01 22:47:27 +0000

    ports-mgmt/portsdb: Update 0.2 -> 0.3
---
 ports-mgmt/portsdb/Makefile    | 24 ++++++++++++------------
 ports-mgmt/portsdb/distinfo    |  6 +++---
 ports-mgmt/portsdb/pkg-message |  8 --------
 ports-mgmt/portsdb/pkg-plist   | 26 ++++++++++++++++++++++++++
 4 files changed, 41 insertions(+), 23 deletions(-)

diff --git a/ports-mgmt/portsdb/Makefile b/ports-mgmt/portsdb/Makefile
index 4134a39bff3e..0d6a1f71634e 100644
--- a/ports-mgmt/portsdb/Makefile
+++ b/ports-mgmt/portsdb/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	portsdb
-DISTVERSION=	0.2
+DISTVERSION=	0.3
 CATEGORIES=	ports-mgmt
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -18,18 +18,18 @@ GH_PROJECT=	freebsd-portsdb
 NO_BUILD=	yes
 NO_ARCH=	yes
 
-PLIST_FILES=	bin/portsdb-import \
-		libexec/${PORTNAME}/add-port-standalone.sh \
-		libexec/${PORTNAME}/add-port.sh \
-		libexec/${PORTNAME}/import.sh \
-		libexec/${PORTNAME}/schema.sql
-
 do-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
-.for f in import.sh add-port.sh add-port-standalone.sh
-	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
+	# create folder
+	${MKDIR} ${STAGEDIR}${PREFIX}/libexec
+	# copy files
+	${CP} -r ${WRKSRC} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
+	# remove unnecessary files
+.for file in .gitignore LICENSE README.md
+	${RM} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/${file}
+.endfor
+	# create symlinks
+.for prog in import update
+	${RLN} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/${prog}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-${prog}
 .endfor
-	${INSTALL_DATA} ${WRKSRC}/schema.sql ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
-	${RLN} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/import.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-import
 
 .include <bsd.port.mk>
diff --git a/ports-mgmt/portsdb/distinfo b/ports-mgmt/portsdb/distinfo
index 0840eb31d11a..56a9b68c6fc1 100644
--- a/ports-mgmt/portsdb/distinfo
+++ b/ports-mgmt/portsdb/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1669891315
-SHA256 (yurivict-freebsd-portsdb-0.2_GH0.tar.gz) = c2b8927a3b287731078dac3f24a47e2b23a0c9438e09b6644076d03364b5594f
-SIZE (yurivict-freebsd-portsdb-0.2_GH0.tar.gz) = 6423
+TIMESTAMP = 1672612070
+SHA256 (yurivict-freebsd-portsdb-0.3_GH0.tar.gz) = 0861e22b80c2d64c0aa3fdf8b04b95ecbdece08b80ce92527d3a53285bd92197
+SIZE (yurivict-freebsd-portsdb-0.3_GH0.tar.gz) = 13805
diff --git a/ports-mgmt/portsdb/pkg-message b/ports-mgmt/portsdb/pkg-message
deleted file mode 100644
index 378286bf37cb..000000000000
--- a/ports-mgmt/portsdb/pkg-message
+++ /dev/null
@@ -1,8 +0,0 @@
-[
-{ type: install
-  message: <<EOM
-PortsDB needs this patch in the ports tree:
-https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268070
-EOM
-}
-]
diff --git a/ports-mgmt/portsdb/pkg-plist b/ports-mgmt/portsdb/pkg-plist
new file mode 100644
index 000000000000..4c3d3dec2ad3
--- /dev/null
+++ b/ports-mgmt/portsdb/pkg-plist
@@ -0,0 +1,26 @@
+bin/portsdb-import
+bin/portsdb-update
+libexec/portsdb/add-port.sh
+libexec/portsdb/import.sh
+libexec/portsdb/include/functions-import.sh
+libexec/portsdb/include/functions-sql.sh
+libexec/portsdb/include/functions-update.sh
+libexec/portsdb/include/functions.sh
+libexec/portsdb/params.sh
+libexec/portsdb/patches/Mk-portsdb.patch
+libexec/portsdb/periodic/run.sh
+libexec/portsdb/run-sql
+libexec/portsdb/sql-misc-queries/find-broken-ports-maintained-by-{user}.sql
+libexec/portsdb/sql-misc-queries/find-distinct-projects.sql
+libexec/portsdb/sql-misc-queries/find-ports-maintained-by-{user}-with-missing-built-packages.sql
+libexec/portsdb/sql-misc-queries/find-ports-maintained-by-{user}-with-{uses}.sql
+libexec/portsdb/sql-misc-queries/find-ports-maintained-by-{user}.sql
+libexec/portsdb/sql-misc-queries/find-ports-that-have-test-depends.sql
+libexec/portsdb/sql-misc-queries/find-ports-with-missing-built-packages.sql
+libexec/portsdb/sql-misc-queries/find-ports-with-{string}-in-comment.sql
+libexec/portsdb/sql/fix-default-parent-flavor.sql
+libexec/portsdb/sql/schema.sql
+libexec/portsdb/update.sh
+libexec/portsdb/util/copy-tree.sh
+libexec/portsdb/util/number-lines.sh
+libexec/portsdb/util/squeeze-log-into-line.sh