1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00

New port: databases/puppetdb-cli

The PuppetDB CLI project provide Puppet subcommands for querying PuppetDB data,
via `puppet query <query>`, and PuppetDB administrative tasks, `puppet db
<import|export|status>`.

The query subcommand will allow you to query PuppetDB using either the upcoming
PQL syntax of the traditional PuppetDB query syntax (also known as AST).

The db subcommand is a replacement for the older puppetdb <export|import>
commands with faster startup times and much friendlier error messages.

WWW: https://github.com/puppetlabs/puppetdb-cli

With hat:	puppet
This commit is contained in:
Romain Tartière 2018-09-27 09:11:02 +00:00
parent d2f72f8884
commit e4f722d42d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480795
4 changed files with 269 additions and 0 deletions

View File

@ -760,6 +760,7 @@
SUBDIR += proftpd-mod_sql_sqlite
SUBDIR += proftpd-mod_sql_tds
SUBDIR += pspg
SUBDIR += puppetdb-cli
SUBDIR += puppetdb-terminus4
SUBDIR += puppetdb-terminus5
SUBDIR += puppetdb-terminus6

View File

@ -0,0 +1,110 @@
# $FreeBSD$
PORTNAME= puppetdb-cli
PORTVERSION= 1.2.4
CATEGORIES= databases
MAINTAINER= puppet@FreeBSD.org
COMMENT= PuppetDB CLI Tooling
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cargo perl5 ssl
USE_GITHUB= yes
USE_PERL5= build
GH_ACCOUNT= puppetlabs
CARGO_CRATES= advapi32-sys-0.2.0 \
aho-corasick-0.6.4 \
antidote-1.0.0 \
base64-0.6.0 \
bitflags-0.7.0 \
bitflags-0.9.1 \
byteorder-1.2.1 \
cc-1.0.3 \
docopt-0.7.0 \
dtoa-0.4.2 \
foreign-types-0.3.2 \
foreign-types-shared-0.1.1 \
fuchsia-zircon-0.2.1 \
fuchsia-zircon-sys-0.2.0 \
httparse-1.2.3 \
hyper-0.10.13 \
hyper-openssl-0.2.7 \
idna-0.1.4 \
itoa-0.3.4 \
kernel32-sys-0.2.2 \
kitchensink-0.4.2 \
ktmw32-sys-0.1.0 \
language-tags-0.2.2 \
lazy_static-0.2.11 \
libc-0.2.34 \
log-0.3.8 \
matches-0.1.6 \
memchr-2.0.1 \
mime-0.2.6 \
mime_guess-1.8.3 \
multipart-0.12.0 \
num-traits-0.1.41 \
num_cpus-1.7.0 \
ole32-sys-0.2.0 \
openssl-0.9.22 \
openssl-sys-0.9.22 \
percent-encoding-1.0.1 \
phf-0.7.21 \
phf_codegen-0.7.21 \
phf_generator-0.7.21 \
phf_shared-0.7.21 \
pkg-config-0.3.9 \
rand-0.3.18 \
redox_syscall-0.1.32 \
regex-0.2.3 \
regex-syntax-0.4.1 \
rustc-serialize-0.3.24 \
safemem-0.2.0 \
serde-1.0.23 \
serde-transcode-1.0.0 \
serde_json-1.0.7 \
shell32-sys-0.1.1 \
siphasher-0.2.2 \
strsim-0.6.0 \
tempdir-0.3.5 \
thread_local-0.3.4 \
time-0.1.38 \
traitobject-0.1.0 \
typeable-0.1.2 \
unicase-1.4.2 \
unicode-bidi-0.3.4 \
unicode-normalization-0.1.5 \
unreachable-1.0.0 \
url-1.6.0 \
userenv-sys-0.2.0 \
utf8-ranges-1.0.0 \
vcpkg-0.2.2 \
version_check-0.1.3 \
void-1.0.2 \
winapi-0.2.8 \
winapi-build-0.1.1 \
winreg-0.4.0
PLIST_FILES= bin/puppet-db \
bin/puppet-query \
man/man8/puppet-db.8.gz \
man/man8/puppet-query.8.gz \
man/man8/puppetdb_conf.8.gz
post-patch:
${REINPLACE_CMD} -e 's|/etc/puppetlabs|/usr/local/etc|' \
${WRKSRC}/cargo-crates/kitchensink-0.4.2/src/utils.rs \
${WRKSRC}/man/puppetdb_conf.pod
${REINPLACE_CMD} -e 's|\$${outpath}/share/|$${outpath}/|' \
${WRKSRC}/pod2man.sh
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/puppet-db
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/puppet-query
cd ${WRKSRC} && ./pod2man.sh ${STAGEDIR}${MANPREFIX}
.include <bsd.port.mk>

View File

@ -0,0 +1,147 @@
TIMESTAMP = 1532332053
SHA256 (rust/crates/advapi32-sys-0.2.0.tar.gz) = e06588080cb19d0acb6739808aafa5f26bfb2ca015b2b6370028b44cf7cb8a9a
SIZE (rust/crates/advapi32-sys-0.2.0.tar.gz) = 7217
SHA256 (rust/crates/aho-corasick-0.6.4.tar.gz) = d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4
SIZE (rust/crates/aho-corasick-0.6.4.tar.gz) = 25443
SHA256 (rust/crates/antidote-1.0.0.tar.gz) = 34fde25430d87a9388dadbe6e34d7f72a462c8b43ac8d309b42b0a8505d7e2a5
SIZE (rust/crates/antidote-1.0.0.tar.gz) = 6312
SHA256 (rust/crates/base64-0.6.0.tar.gz) = 96434f987501f0ed4eb336a411e0631ecd1afa11574fe148587adc4ff96143c9
SIZE (rust/crates/base64-0.6.0.tar.gz) = 25720
SHA256 (rust/crates/bitflags-0.7.0.tar.gz) = aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d
SIZE (rust/crates/bitflags-0.7.0.tar.gz) = 10851
SHA256 (rust/crates/bitflags-0.9.1.tar.gz) = 4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5
SIZE (rust/crates/bitflags-0.9.1.tar.gz) = 12406
SHA256 (rust/crates/byteorder-1.2.1.tar.gz) = 652805b7e73fada9d85e9a6682a4abd490cb52d96aeecc12e33a0de34dfd0d23
SIZE (rust/crates/byteorder-1.2.1.tar.gz) = 17841
SHA256 (rust/crates/cc-1.0.3.tar.gz) = a9b13a57efd6b30ecd6598ebdb302cca617930b5470647570468a65d12ef9719
SIZE (rust/crates/cc-1.0.3.tar.gz) = 38442
SHA256 (rust/crates/docopt-0.7.0.tar.gz) = ab32ea6e284d87987066f21a9e809a73c14720571ef34516f0890b3d355ccfd8
SIZE (rust/crates/docopt-0.7.0.tar.gz) = 41313
SHA256 (rust/crates/dtoa-0.4.2.tar.gz) = 09c3753c3db574d215cba4ea76018483895d7bff25a31b49ba45db21c48e50ab
SIZE (rust/crates/dtoa-0.4.2.tar.gz) = 14227
SHA256 (rust/crates/foreign-types-0.3.2.tar.gz) = f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1
SIZE (rust/crates/foreign-types-0.3.2.tar.gz) = 7504
SHA256 (rust/crates/foreign-types-shared-0.1.1.tar.gz) = 00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b
SIZE (rust/crates/foreign-types-shared-0.1.1.tar.gz) = 5672
SHA256 (rust/crates/fuchsia-zircon-0.2.1.tar.gz) = f6c0581a4e363262e52b87f59ee2afe3415361c6ec35e665924eb08afe8ff159
SIZE (rust/crates/fuchsia-zircon-0.2.1.tar.gz) = 22942
SHA256 (rust/crates/fuchsia-zircon-sys-0.2.0.tar.gz) = 43f3795b4bae048dc6123a6b972cadde2e676f9ded08aef6bb77f5f157684a82
SIZE (rust/crates/fuchsia-zircon-sys-0.2.0.tar.gz) = 7005
SHA256 (rust/crates/httparse-1.2.3.tar.gz) = af2f2dd97457e8fb1ae7c5a420db346af389926e36f43768b96f101546b04a07
SIZE (rust/crates/httparse-1.2.3.tar.gz) = 14847
SHA256 (rust/crates/hyper-0.10.13.tar.gz) = 368cb56b2740ebf4230520e2b90ebb0461e69034d85d1945febd9b3971426db2
SIZE (rust/crates/hyper-0.10.13.tar.gz) = 113480
SHA256 (rust/crates/hyper-openssl-0.2.7.tar.gz) = 5ecb3cd8e4d53f8abe7cb2227e66674bb63c1bd0ba60ca9ba7b74ea1e0054891
SIZE (rust/crates/hyper-openssl-0.2.7.tar.gz) = 8301
SHA256 (rust/crates/idna-0.1.4.tar.gz) = 014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d
SIZE (rust/crates/idna-0.1.4.tar.gz) = 289112
SHA256 (rust/crates/itoa-0.3.4.tar.gz) = 8324a32baf01e2ae060e9de58ed0bc2320c9a2833491ee36cd3b4c414de4db8c
SIZE (rust/crates/itoa-0.3.4.tar.gz) = 9921
SHA256 (rust/crates/kernel32-sys-0.2.2.tar.gz) = 7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d
SIZE (rust/crates/kernel32-sys-0.2.2.tar.gz) = 24537
SHA256 (rust/crates/kitchensink-0.4.2.tar.gz) = 395e6cf64c618179ef8a0fc70d6255f2999a885a81ccd408ed6533f3f438c18e
SIZE (rust/crates/kitchensink-0.4.2.tar.gz) = 5455
SHA256 (rust/crates/ktmw32-sys-0.1.0.tar.gz) = 7f9313a869ff779ae08dd990b75a92dc06aa16d771f41305f7286649cd39a0ee
SIZE (rust/crates/ktmw32-sys-0.1.0.tar.gz) = 6270
SHA256 (rust/crates/language-tags-0.2.2.tar.gz) = a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a
SIZE (rust/crates/language-tags-0.2.2.tar.gz) = 12754
SHA256 (rust/crates/lazy_static-0.2.11.tar.gz) = 76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73
SIZE (rust/crates/lazy_static-0.2.11.tar.gz) = 12361
SHA256 (rust/crates/libc-0.2.34.tar.gz) = 36fbc8a8929c632868295d0178dd8f63fc423fd7537ad0738372bd010b3ac9b0
SIZE (rust/crates/libc-0.2.34.tar.gz) = 304756
SHA256 (rust/crates/log-0.3.8.tar.gz) = 880f77541efa6e5cc74e76910c9884d9859683118839d6a1dc3b11e63512565b
SIZE (rust/crates/log-0.3.8.tar.gz) = 17756
SHA256 (rust/crates/matches-0.1.6.tar.gz) = 100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376
SIZE (rust/crates/matches-0.1.6.tar.gz) = 1916
SHA256 (rust/crates/memchr-2.0.1.tar.gz) = 796fba70e76612589ed2ce7f45282f5af869e0fdd7cc6199fa1aa1f1d591ba9d
SIZE (rust/crates/memchr-2.0.1.tar.gz) = 9858
SHA256 (rust/crates/mime-0.2.6.tar.gz) = ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0
SIZE (rust/crates/mime-0.2.6.tar.gz) = 6719
SHA256 (rust/crates/mime_guess-1.8.3.tar.gz) = dc7e82a15629bb4ecd9e72365bf33d1382be91e030f820edb8e2a21c02430da8
SIZE (rust/crates/mime_guess-1.8.3.tar.gz) = 10406
SHA256 (rust/crates/multipart-0.12.0.tar.gz) = 65ea55ea673966fa285eadafb6e7fb03c7328c7bbad60bea23a483e374eeccb3
SIZE (rust/crates/multipart-0.12.0.tar.gz) = 45430
SHA256 (rust/crates/num-traits-0.1.41.tar.gz) = cacfcab5eb48250ee7d0c7896b51a2c5eec99c1feea5f32025635f5ae4b00070
SIZE (rust/crates/num-traits-0.1.41.tar.gz) = 22994
SHA256 (rust/crates/num_cpus-1.7.0.tar.gz) = 514f0d73e64be53ff320680ca671b64fe3fb91da01e1ae2ddc99eb51d453b20d
SIZE (rust/crates/num_cpus-1.7.0.tar.gz) = 9626
SHA256 (rust/crates/ole32-sys-0.2.0.tar.gz) = 5d2c49021782e5233cd243168edfa8037574afed4eba4bbaf538b3d8d1789d8c
SIZE (rust/crates/ole32-sys-0.2.0.tar.gz) = 4227
SHA256 (rust/crates/openssl-0.9.22.tar.gz) = 419ef26bb651d72b6c5a603bcc4e4856a362460e62352dfffa53de91d2e81181
SIZE (rust/crates/openssl-0.9.22.tar.gz) = 144569
SHA256 (rust/crates/openssl-sys-0.9.22.tar.gz) = 5483bdc56756041ba6aa37c9cb59cc2219f012a2a1377d97ad35556ac6676ee7
SIZE (rust/crates/openssl-sys-0.9.22.tar.gz) = 37944
SHA256 (rust/crates/percent-encoding-1.0.1.tar.gz) = 31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831
SIZE (rust/crates/percent-encoding-1.0.1.tar.gz) = 10057
SHA256 (rust/crates/phf-0.7.21.tar.gz) = cb325642290f28ee14d8c6201159949a872f220c62af6e110a56ea914fbe42fc
SIZE (rust/crates/phf-0.7.21.tar.gz) = 3484
SHA256 (rust/crates/phf_codegen-0.7.21.tar.gz) = d62594c0bb54c464f633175d502038177e90309daf2e0158be42ed5f023ce88f
SIZE (rust/crates/phf_codegen-0.7.21.tar.gz) = 2498
SHA256 (rust/crates/phf_generator-0.7.21.tar.gz) = 6b07ffcc532ccc85e3afc45865469bf5d9e4ef5bfcf9622e3cfe80c2d275ec03
SIZE (rust/crates/phf_generator-0.7.21.tar.gz) = 1821
SHA256 (rust/crates/phf_shared-0.7.21.tar.gz) = 07e24b0ca9643bdecd0632f2b3da6b1b89bbb0030e0b992afc1113b23a7bc2f2
SIZE (rust/crates/phf_shared-0.7.21.tar.gz) = 1692
SHA256 (rust/crates/pkg-config-0.3.9.tar.gz) = 3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903
SIZE (rust/crates/pkg-config-0.3.9.tar.gz) = 11055
SHA256 (rust/crates/rand-0.3.18.tar.gz) = 6475140dfd8655aeb72e1fd4b7a1cc1c202be65d71669476e392fe62532b9edd
SIZE (rust/crates/rand-0.3.18.tar.gz) = 57544
SHA256 (rust/crates/redox_syscall-0.1.32.tar.gz) = ab105df655884ede59d45b7070c8a65002d921461ee813a024558ca16030eea0
SIZE (rust/crates/redox_syscall-0.1.32.tar.gz) = 13555
SHA256 (rust/crates/regex-0.2.3.tar.gz) = ac6ab4e9218ade5b423358bbd2567d1617418403c7a512603630181813316322
SIZE (rust/crates/regex-0.2.3.tar.gz) = 193983
SHA256 (rust/crates/regex-syntax-0.4.1.tar.gz) = ad890a5eef7953f55427c50575c680c42841653abd2b028b68cd223d157f62db
SIZE (rust/crates/regex-syntax-0.4.1.tar.gz) = 121453
SHA256 (rust/crates/rustc-serialize-0.3.24.tar.gz) = dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda
SIZE (rust/crates/rustc-serialize-0.3.24.tar.gz) = 45926
SHA256 (rust/crates/safemem-0.2.0.tar.gz) = e27a8b19b835f7aea908818e871f5cc3a5a186550c30773be987e155e8163d8f
SIZE (rust/crates/safemem-0.2.0.tar.gz) = 6450
SHA256 (rust/crates/serde-1.0.23.tar.gz) = 6a7c37d7f192f00041e8a613e936717923a71bc0c9051fc4425a49b104140f05
SIZE (rust/crates/serde-1.0.23.tar.gz) = 62768
SHA256 (rust/crates/serde-transcode-1.0.0.tar.gz) = 749b7fac35f05313d1b3986c0bee75472614aeeb428eec30d18dc66858fb52cc
SIZE (rust/crates/serde-transcode-1.0.0.tar.gz) = 7740
SHA256 (rust/crates/serde_json-1.0.7.tar.gz) = ea28ea0cca944668919bec6af209864a8dfe769fd2b0b723f36b22e20c1bf69f
SIZE (rust/crates/serde_json-1.0.7.tar.gz) = 57909
SHA256 (rust/crates/shell32-sys-0.1.1.tar.gz) = 72f20b8f3c060374edb8046591ba28f62448c369ccbdc7b02075103fb3a9e38d
SIZE (rust/crates/shell32-sys-0.1.1.tar.gz) = 5664
SHA256 (rust/crates/siphasher-0.2.2.tar.gz) = 0df90a788073e8d0235a67e50441d47db7c8ad9debd91cbf43736a2a92d36537
SIZE (rust/crates/siphasher-0.2.2.tar.gz) = 8386
SHA256 (rust/crates/strsim-0.6.0.tar.gz) = b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694
SIZE (rust/crates/strsim-0.6.0.tar.gz) = 8500
SHA256 (rust/crates/tempdir-0.3.5.tar.gz) = 87974a6f5c1dfb344d733055601650059a3363de2a6104819293baff662132d6
SIZE (rust/crates/tempdir-0.3.5.tar.gz) = 10605
SHA256 (rust/crates/thread_local-0.3.4.tar.gz) = 1697c4b57aeeb7a536b647165a2825faddffb1d3bad386d507709bd51a90bb14
SIZE (rust/crates/thread_local-0.3.4.tar.gz) = 11760
SHA256 (rust/crates/time-0.1.38.tar.gz) = d5d788d3aa77bc0ef3e9621256885555368b47bd495c13dd2e7413c89f845520
SIZE (rust/crates/time-0.1.38.tar.gz) = 28500
SHA256 (rust/crates/traitobject-0.1.0.tar.gz) = efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079
SIZE (rust/crates/traitobject-0.1.0.tar.gz) = 1957
SHA256 (rust/crates/typeable-0.1.2.tar.gz) = 1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887
SIZE (rust/crates/typeable-0.1.2.tar.gz) = 901
SHA256 (rust/crates/unicase-1.4.2.tar.gz) = 7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33
SIZE (rust/crates/unicase-1.4.2.tar.gz) = 3907
SHA256 (rust/crates/unicode-bidi-0.3.4.tar.gz) = 49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5
SIZE (rust/crates/unicode-bidi-0.3.4.tar.gz) = 32228
SHA256 (rust/crates/unicode-normalization-0.1.5.tar.gz) = 51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f
SIZE (rust/crates/unicode-normalization-0.1.5.tar.gz) = 290328
SHA256 (rust/crates/unreachable-1.0.0.tar.gz) = 382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56
SIZE (rust/crates/unreachable-1.0.0.tar.gz) = 6355
SHA256 (rust/crates/url-1.6.0.tar.gz) = fa35e768d4daf1d85733418a49fb42e10d7f633e394fccab4ab7aba897053fe2
SIZE (rust/crates/url-1.6.0.tar.gz) = 72377
SHA256 (rust/crates/userenv-sys-0.2.0.tar.gz) = 71d28ea36bbd9192d75bd9fa9b39f96ddb986eaee824adae5d53b6e51919b2f3
SIZE (rust/crates/userenv-sys-0.2.0.tar.gz) = 1749
SHA256 (rust/crates/utf8-ranges-1.0.0.tar.gz) = 662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122
SIZE (rust/crates/utf8-ranges-1.0.0.tar.gz) = 8599
SHA256 (rust/crates/vcpkg-0.2.2.tar.gz) = 9e0a7d8bed3178a8fb112199d466eeca9ed09a14ba8ad67718179b4fd5487d0b
SIZE (rust/crates/vcpkg-0.2.2.tar.gz) = 5870
SHA256 (rust/crates/version_check-0.1.3.tar.gz) = 6b772017e347561807c1aa192438c5fd74242a670a6cffacc40f2defd1dc069d
SIZE (rust/crates/version_check-0.1.3.tar.gz) = 4092
SHA256 (rust/crates/void-1.0.2.tar.gz) = 6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d
SIZE (rust/crates/void-1.0.2.tar.gz) = 2356
SHA256 (rust/crates/winapi-0.2.8.tar.gz) = 167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a
SIZE (rust/crates/winapi-0.2.8.tar.gz) = 455145
SHA256 (rust/crates/winapi-build-0.1.1.tar.gz) = 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc
SIZE (rust/crates/winapi-build-0.1.1.tar.gz) = 669
SHA256 (rust/crates/winreg-0.4.0.tar.gz) = cbf285379f20d7f26abd990d9a566be9d31ab7a9d335299baaa1f0604f5f96af
SIZE (rust/crates/winreg-0.4.0.tar.gz) = 14351
SHA256 (puppetlabs-puppetdb-cli-1.2.4_GH0.tar.gz) = ff10df65af983f48541fcec16a52f2fa25d6bf9e793081506567daa4ded37a83
SIZE (puppetlabs-puppetdb-cli-1.2.4_GH0.tar.gz) = 22726

View File

@ -0,0 +1,11 @@
The PuppetDB CLI project provide Puppet subcommands for querying PuppetDB data,
via `puppet query <query>`, and PuppetDB administrative tasks, `puppet db
<import|export|status>`.
The query subcommand will allow you to query PuppetDB using either the upcoming
PQL syntax of the traditional PuppetDB query syntax (also known as AST).
The db subcommand is a replacement for the older puppetdb <export|import>
commands with faster startup times and much friendlier error messages.
WWW: https://github.com/puppetlabs/puppetdb-cli