From nobody Thu Dec 01 11:03:41 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NNCqd5X10z4hqcX; Thu, 1 Dec 2022 11:03:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NNCqd4ZgPz3HYZ; Thu, 1 Dec 2022 11:03:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669892621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fbAOZZDtTVT/QuGs9jyzmABHFFegtPPiDBoawX9VoX0=; b=aBZb2Xe7O1ginSlu8Hfm36RV7h78Lfdw8Oh9wFcsfb/tKkulLTOXzXP48BTg6h3eL9S6q4 9XiXkfu8846QayNeApFQ56f9EFzHgYLJxDcbqqO/CUadxIhok9j64G1vNBxA/kOee9el6W hov7j/vQK28hp6U00VUAH149P6lS0GbjdrIHjdLhRJROnr8Z9QGxZ+jSjjjjJzRiq/ij9+ HO0J3OzdaWV2JcinJ6TEyP+al5j20haKGZE4VkQ3PfzSlVsbizuJ66TvVAnGRUXM4tLmbO skRrYmkNvUq/pWF44CIoZMAd5YTC4Ab9T8OVbR6ab+R+NSBG5WARy7Dqd00kZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669892621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fbAOZZDtTVT/QuGs9jyzmABHFFegtPPiDBoawX9VoX0=; b=YPBsC7MjvxjBfKDV/BYWdnm6eh4FZefZZGjQJMZYbWUnz+5aRSYjOpp/OIZUlBnsyDfSDa 7XbbArBlB5+6E+b7TzBENCnrZ3E5TCN1SDyl5VPqL20lYWsGcUoxhjX8ZvJmBCx2mmJ35w HdMokgj9i91qaprKb3HRvnlv9aI0Ok+5NzKVApfhwn01NV7xb0BO2gzYEIUf/uuyEp7kOL 0e8AT1cSfThuV/SehH1eN7PUPpZ3ux4kiQIJNLPHMzJt+fGIuRLQ/b0gl6r+fTe0qUKfDB 89PLZUwBY1pvZi50gQDaQApBSWpu3v2EqXAXmBbd0MHhqujm3qQGGIvsZAQC4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669892621; a=rsa-sha256; cv=none; b=K2L2cco9tyadvosWVOamMJk9NgXH23O7uLYH6+0fXL4yvpqhgZog+CPn8pAkZihNjL9Ipz uK5Y0gzl9E9VlIm54BIsOZfafGYw/PwcV0pvu6xfd5W2VfXo+JddqsxTgrwmyHtzxf92lT 15TnLyRowyav4UbMmGAMAr2nxwwLOazj6163UjhHyY8NT8vw4bTjt9qqMy6Hyf3yWyum6A RhShMCT5fWey8ohEnPRtTMeIc/yXrooUPynicF8utTWwG0tES/RtkEvwt8i/vl4r8jeu7o 47HAuMVprkhbKNOdgCfXP45cnV8DFn9rlmN+xabZGWfhATPukxvnelEdICluZA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NNCqd3b7rzZVL; Thu, 1 Dec 2022 11:03:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2B1B3fv7093556; Thu, 1 Dec 2022 11:03:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B1B3fPi093555; Thu, 1 Dec 2022 11:03:41 GMT (envelope-from git) Date: Thu, 1 Dec 2022 11:03:41 GMT Message-Id: <202212011103.2B1B3fPi093555@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: bcba6ffb4d19 - main - ports-mgmt/portsdb: New port: Program that imports the FreeBSD ports tree into an SQLite database List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bcba6ffb4d1926c73a3ff9a15649dc2f443a9127 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=bcba6ffb4d1926c73a3ff9a15649dc2f443a9127 commit bcba6ffb4d1926c73a3ff9a15649dc2f443a9127 Author: Yuri Victorovich AuthorDate: 2022-12-01 11:02:48 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-01 11:03:38 +0000 ports-mgmt/portsdb: New port: Program that imports the FreeBSD ports tree into an SQLite database --- ports-mgmt/Makefile | 1 + ports-mgmt/portsdb/Makefile | 35 +++++++++++++++++++++++++++++++++++ ports-mgmt/portsdb/distinfo | 3 +++ ports-mgmt/portsdb/pkg-descr | 2 ++ ports-mgmt/portsdb/pkg-message | 8 ++++++++ 5 files changed, 49 insertions(+) diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile index 51e896237c60..5a0a863275b2 100644 --- a/ports-mgmt/Makefile +++ b/ports-mgmt/Makefile @@ -57,6 +57,7 @@ SUBDIR += portrac SUBDIR += ports-tools SUBDIR += portscout + SUBDIR += portsdb SUBDIR += portsearch SUBDIR += portshaker SUBDIR += portshaker-config 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: <