diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile index 51e896237c60..5a0a863275b2 100644 --- a/ports-mgmt/Makefile +++ b/ports-mgmt/Makefile @@ -1,80 +1,81 @@ COMMENT = Ports for managing, installing, and developing FreeBSD ports and packages SUBDIR += bsdadminscripts2 SUBDIR += caronade SUBDIR += chucky SUBDIR += create-rb-port SUBDIR += dialog4ports SUBDIR += dialog4ports-static SUBDIR += distilator SUBDIR += fallout SUBDIR += fastest_pkg SUBDIR += freebsd-bugzilla-cli SUBDIR += genpatch SUBDIR += genplist SUBDIR += hs-cabal2tuple SUBDIR += hs-panopticum SUBDIR += jailaudit SUBDIR += lsknobs SUBDIR += mkreadmes SUBDIR += modules2tuple SUBDIR += octopkg SUBDIR += p5-FreeBSD-Portindex SUBDIR += p5-FreeBSD-Ports SUBDIR += p5-FreeBSD-Ports-INDEXhash SUBDIR += packagekit SUBDIR += parfetch-overlay SUBDIR += pchecker SUBDIR += pkg SUBDIR += pkg-devel SUBDIR += pkg-graph SUBDIR += pkg-provides SUBDIR += pkg-rmleaf SUBDIR += pkg_cleanup SUBDIR += pkg_cutleaves SUBDIR += pkg_jail SUBDIR += pkg_replace SUBDIR += pkg_rmleaves SUBDIR += pkg_search SUBDIR += pkg_tree SUBDIR += pkgcompare SUBDIR += pkgs_which SUBDIR += port-authoring-tools SUBDIR += port-index-uniquifier SUBDIR += port-maintenance-tools SUBDIR += portal SUBDIR += portconf SUBDIR += portconfig SUBDIR += portdowngrade SUBDIR += portest SUBDIR += portfind SUBDIR += portfmt SUBDIR += portgraph SUBDIR += portgrep SUBDIR += portless SUBDIR += portlint SUBDIR += portmaster SUBDIR += portrac SUBDIR += ports-tools SUBDIR += portscout + SUBDIR += portsdb SUBDIR += portsearch SUBDIR += portshaker SUBDIR += portshaker-config SUBDIR += portsreinstall SUBDIR += porttools SUBDIR += porttree SUBDIR += portupdate-scan SUBDIR += portupgrade SUBDIR += portupgrade-devel SUBDIR += poudriere SUBDIR += poudriere-devel SUBDIR += psearch SUBDIR += py-FreeBSD-ports SUBDIR += py-pytoport SUBDIR += py-skog SUBDIR += reprise SUBDIR += sccache-overlay SUBDIR += synth SUBDIR += wanted-ports .include diff --git a/ports-mgmt/portsdb/Makefile b/ports-mgmt/portsdb/Makefile new file mode 100644 index 000000000000..4134a39bff3e --- /dev/null +++ b/ports-mgmt/portsdb/Makefile @@ -0,0 +1,35 @@ +PORTNAME= portsdb +DISTVERSION= 0.2 +CATEGORIES= ports-mgmt + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Program that imports the FreeBSD ports tree into an SQLite database +WWW= https://github.com/yurivict/freebsd-portsdb + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= sqlite3:databases/sqlite3 + +USE_GITHUB= yes +GH_ACCOUNT= yurivict +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} +.endfor + ${INSTALL_DATA} ${WRKSRC}/schema.sql ${STAGEDIR}${PREFIX}/libexec/${PORTNAME} + ${RLN} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/import.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-import + +.include diff --git a/ports-mgmt/portsdb/distinfo b/ports-mgmt/portsdb/distinfo new file mode 100644 index 000000000000..0840eb31d11a --- /dev/null +++ b/ports-mgmt/portsdb/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1669891315 +SHA256 (yurivict-freebsd-portsdb-0.2_GH0.tar.gz) = c2b8927a3b287731078dac3f24a47e2b23a0c9438e09b6644076d03364b5594f +SIZE (yurivict-freebsd-portsdb-0.2_GH0.tar.gz) = 6423 diff --git a/ports-mgmt/portsdb/pkg-descr b/ports-mgmt/portsdb/pkg-descr new file mode 100644 index 000000000000..8222419ff6bd --- /dev/null +++ b/ports-mgmt/portsdb/pkg-descr @@ -0,0 +1,2 @@ +PortsDB is a program that imports the FreeBSD ports tree into an +SQLite database. diff --git a/ports-mgmt/portsdb/pkg-message b/ports-mgmt/portsdb/pkg-message new file mode 100644 index 000000000000..378286bf37cb --- /dev/null +++ b/ports-mgmt/portsdb/pkg-message @@ -0,0 +1,8 @@ +[ +{ type: install + message: <