Skip to content

Commit

Permalink
add rustls-ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Oct 22, 2024
1 parent 094de21 commit fd46bf0
Show file tree
Hide file tree
Showing 9 changed files with 145 additions and 10 deletions.
7 changes: 1 addition & 6 deletions graphics/gnome-color-manager/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Created by: FreeBSD GNOME Team <[email protected]>

PORTNAME= gnome-color-manager
PORTVERSION= 3.36.0
PORTREVISION= 1
Expand All @@ -9,6 +7,7 @@ DIST_SUBDIR= gnome

MAINTAINER= [email protected]
COMMENT= Session framework for the GNOME desktop to manage color profiles
WWW= https://git.gnome.org/browse/gnome-color-manager

LICENSE= gpl2
LICENSE_FILE= ${WRKSRC}/COPYING
Expand All @@ -33,8 +32,4 @@ USE_LDCONFIG= yes
INSTALLS_ICONS= yes
MESON_ARGS= -Dtests=false

post-patch:
@${REINPLACE_CMD} -e "s|'share/man/man1'|'man/man1'|g" \
${WRKSRC}/man/meson.build

.include <bsd.port.mk>
2 changes: 0 additions & 2 deletions graphics/gnome-color-manager/pkg-descr
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
GNOME Color Manager is a session framework for the GNOME desktop environment
that makes it easy to manage easy to manage, install and generate color
profiles.

WWW: https://git.gnome.org/browse/gnome-color-manager
2 changes: 0 additions & 2 deletions mail/p5-Net-SMTP-SSL/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


PORTNAME= Net-SMTP-SSL
PORTVERSION= 1.04
CATEGORIES= mail perl5
Expand Down
1 change: 1 addition & 0 deletions security/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ SUBDIR += py-scramp
SUBDIR += py-service-identity
SUBDIR += py-trustme
SUBDIR += rhash
SUBDIR += rustls-ffi
SUBDIR += seahorse
SUBDIR += secure_delete
SUBDIR += security-advisory-client
Expand Down
33 changes: 33 additions & 0 deletions security/rustls-ffi/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
PORTNAME= rustls-ffi
DISTVERSIONPREFIX= v
DISTVERSION= 0.13.0
CATEGORIES= security

MAINTAINER= [email protected]
COMMENT= FFI bindings for the rustls TLS library
WWW= https://github.com/rustls/rustls-ffi

LICENSE= apache2 iscl mit
LICENSE_COMB= dual
LICENSE_FILE_apache2= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_iscl= ${WRKSRC}/LICENSE-ISC
LICENSE_FILE_mit= ${WRKSRC}/LICENSE-MIT

BUILD_DEPENDS= cargo-cbuild:devel/cargo-c

USES= cargo
USE_LDCONFIG= yes

USE_GITHUB= yes
GH_ACCOUNT= rustls

do-build:
@${CARGO_CARGO_RUN} cbuild --verbose --verbose ${CARGO_BUILD_ARGS}

do-install:
@${CARGO_CARGO_RUN} cinstall --verbose --verbose \
--destdir "${FAKE_DESTDIR}" \
--prefix "${TRUE_PREFIX}" \
${CARGO_INSTALL_ARGS}

.include <bsd.port.mk>
32 changes: 32 additions & 0 deletions security/rustls-ffi/Makefile.crates
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
CARGO_CRATES= aho-corasick-1.1.1 \
base64-0.21.5 \
cc-1.0.83 \
cfg-if-1.0.0 \
getrandom-0.2.11 \
libc-0.2.153 \
log-0.4.21 \
memchr-2.6.4 \
once_cell-1.19.0 \
regex-1.9.6 \
regex-automata-0.3.9 \
regex-syntax-0.7.5 \
ring-0.17.5 \
rustls-0.23.4 \
rustls-pemfile-2.1.1 \
rustls-pki-types-1.3.1 \
rustls-webpki-0.102.2 \
rustversion-1.0.14 \
spin-0.9.8 \
subtle-2.5.0 \
untrusted-0.9.0 \
wasi-0.11.0+wasi-snapshot-preview1 \
windows-sys-0.48.0 \
windows-targets-0.48.5 \
windows_aarch64_gnullvm-0.48.5 \
windows_aarch64_msvc-0.48.5 \
windows_i686_gnu-0.48.5 \
windows_i686_msvc-0.48.5 \
windows_x86_64_gnu-0.48.5 \
windows_x86_64_gnullvm-0.48.5 \
windows_x86_64_msvc-0.48.5 \
zeroize-1.7.0
67 changes: 67 additions & 0 deletions security/rustls-ffi/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
TIMESTAMP = 1720257747
SHA256 (rust/crates/aho-corasick-1.1.1.crate) = ea5d730647d4fadd988536d06fecce94b7b4f2a7efdae548f1cf4b63205518ab
SIZE (rust/crates/aho-corasick-1.1.1.crate) = 182812
SHA256 (rust/crates/base64-0.21.5.crate) = 35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9
SIZE (rust/crates/base64-0.21.5.crate) = 77134
SHA256 (rust/crates/cc-1.0.83.crate) = f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0
SIZE (rust/crates/cc-1.0.83.crate) = 68343
SHA256 (rust/crates/cfg-if-1.0.0.crate) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd
SIZE (rust/crates/cfg-if-1.0.0.crate) = 7934
SHA256 (rust/crates/getrandom-0.2.11.crate) = fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f
SIZE (rust/crates/getrandom-0.2.11.crate) = 35391
SHA256 (rust/crates/libc-0.2.153.crate) = 9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd
SIZE (rust/crates/libc-0.2.153.crate) = 740614
SHA256 (rust/crates/log-0.4.21.crate) = 90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c
SIZE (rust/crates/log-0.4.21.crate) = 43442
SHA256 (rust/crates/memchr-2.6.4.crate) = f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167
SIZE (rust/crates/memchr-2.6.4.crate) = 94439
SHA256 (rust/crates/once_cell-1.19.0.crate) = 3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92
SIZE (rust/crates/once_cell-1.19.0.crate) = 33046
SHA256 (rust/crates/regex-1.9.6.crate) = ebee201405406dbf528b8b672104ae6d6d63e6d118cb10e4d51abbc7b58044ff
SIZE (rust/crates/regex-1.9.6.crate) = 254981
SHA256 (rust/crates/regex-automata-0.3.9.crate) = 59b23e92ee4318893fa3fe3e6fb365258efbfe6ac6ab30f090cdcbb7aa37efa9
SIZE (rust/crates/regex-automata-0.3.9.crate) = 610489
SHA256 (rust/crates/regex-syntax-0.7.5.crate) = dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da
SIZE (rust/crates/regex-syntax-0.7.5.crate) = 343366
SHA256 (rust/crates/ring-0.17.5.crate) = fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b
SIZE (rust/crates/ring-0.17.5.crate) = 4147790
SHA256 (rust/crates/rustls-0.23.4.crate) = 8c4d6d8ad9f2492485e13453acbb291dd08f64441b6609c491f1c2cd2c6b4fe1
SIZE (rust/crates/rustls-0.23.4.crate) = 371883
SHA256 (rust/crates/rustls-pemfile-2.1.1.crate) = f48172685e6ff52a556baa527774f61fcaa884f59daf3375c62a3f1cd2549dab
SIZE (rust/crates/rustls-pemfile-2.1.1.crate) = 26161
SHA256 (rust/crates/rustls-pki-types-1.3.1.crate) = 5ede67b28608b4c60685c7d54122d4400d90f62b40caee7700e700380a390fa8
SIZE (rust/crates/rustls-pki-types-1.3.1.crate) = 21637
SHA256 (rust/crates/rustls-webpki-0.102.2.crate) = faaa0a62740bedb9b2ef5afa303da42764c012f743917351dc9a237ea1663610
SIZE (rust/crates/rustls-webpki-0.102.2.crate) = 196881
SHA256 (rust/crates/rustversion-1.0.14.crate) = 7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4
SIZE (rust/crates/rustversion-1.0.14.crate) = 17261
SHA256 (rust/crates/spin-0.9.8.crate) = 6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67
SIZE (rust/crates/spin-0.9.8.crate) = 38958
SHA256 (rust/crates/subtle-2.5.0.crate) = 81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc
SIZE (rust/crates/subtle-2.5.0.crate) = 13909
SHA256 (rust/crates/untrusted-0.9.0.crate) = 8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1
SIZE (rust/crates/untrusted-0.9.0.crate) = 14447
SHA256 (rust/crates/wasi-0.11.0+wasi-snapshot-preview1.crate) = 9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423
SIZE (rust/crates/wasi-0.11.0+wasi-snapshot-preview1.crate) = 28131
SHA256 (rust/crates/windows-sys-0.48.0.crate) = 677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9
SIZE (rust/crates/windows-sys-0.48.0.crate) = 2628884
SHA256 (rust/crates/windows-targets-0.48.5.crate) = 9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c
SIZE (rust/crates/windows-targets-0.48.5.crate) = 6904
SHA256 (rust/crates/windows_aarch64_gnullvm-0.48.5.crate) = 2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8
SIZE (rust/crates/windows_aarch64_gnullvm-0.48.5.crate) = 418492
SHA256 (rust/crates/windows_aarch64_msvc-0.48.5.crate) = dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc
SIZE (rust/crates/windows_aarch64_msvc-0.48.5.crate) = 798483
SHA256 (rust/crates/windows_i686_gnu-0.48.5.crate) = a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e
SIZE (rust/crates/windows_i686_gnu-0.48.5.crate) = 844891
SHA256 (rust/crates/windows_i686_msvc-0.48.5.crate) = 8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406
SIZE (rust/crates/windows_i686_msvc-0.48.5.crate) = 864300
SHA256 (rust/crates/windows_x86_64_gnu-0.48.5.crate) = 53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e
SIZE (rust/crates/windows_x86_64_gnu-0.48.5.crate) = 801619
SHA256 (rust/crates/windows_x86_64_gnullvm-0.48.5.crate) = 0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc
SIZE (rust/crates/windows_x86_64_gnullvm-0.48.5.crate) = 418486
SHA256 (rust/crates/windows_x86_64_msvc-0.48.5.crate) = ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538
SIZE (rust/crates/windows_x86_64_msvc-0.48.5.crate) = 798412
SHA256 (rust/crates/zeroize-1.7.0.crate) = 525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d
SIZE (rust/crates/zeroize-1.7.0.crate) = 19039
SHA256 (rustls-rustls-ffi-v0.13.0_GH0.tar.gz) = 462d9069d655d433249d3d554ad5b5146a6c96c13d0f002934bd274ce6634854
SIZE (rustls-rustls-ffi-v0.13.0_GH0.tar.gz) = 109078
6 changes: 6 additions & 0 deletions security/rustls-ffi/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FFI bindings for the rustls TLS library.
Rustls is a TLS library that aims to provide a good level of cryptographic
security, requires no configuration to achieve that security, and provides
no unsafe features or obsolete cryptography by default.

Rustls implements TLS1.2 and TLS1.3 for both clients and servers.
5 changes: 5 additions & 0 deletions security/rustls-ffi/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include/rustls.h
lib/librustls.a
lib/librustls.so
lib/librustls.so.0.13.0
libdata/pkgconfig/rustls.pc

0 comments on commit fd46bf0

Please sign in to comment.