dev-ruby/ruby_smb: add 3.3.16

Closes: https://bugs.gentoo.org/928040
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-06-20 07:18:00 +02:00
parent d02df0601b
commit cb1070f07b
No known key found for this signature in database
GPG Key ID: DB347F938654FA34
2 changed files with 66 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST ruby_smb-3.2.5.tar.gz 371107 BLAKE2B 452e93b2623f5354d257588a5b80803285a5b90c97b7f7318971986a9a0c3c18c80b00a0d1a32fba24447ceda73279656a76bc36ee38ea758a274db7cfe43d2c SHA512 15122587f7aa6ee85bcbd4a328b85e6db250b344754d1f059693d2710a8cce2b5ecdf034bd680bd9f2b0f752cf3378fbef9736b81448ac1436505f8aac98ae14
DIST ruby_smb-3.3.16.tar.gz 397139 BLAKE2B 70fe8519486983adc2de6e40c12bff8732b7b3abd3d03aea0cac7e1fe515951e47dc1caf015f7258196248ba627710f4393d4f6533f7ec81167dc4dc8bbeb5e4 SHA512 30d2b75b39cd44a334b91881dcf7037c6b28c855f6cc53e33bee5db02fbfba2865fe847563e0cc424241e44f091904637b48d9fd27daf62dad63cf2cf966bc68

View File

@ -0,0 +1,65 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33"
RUBY_FAKEGEM_TASK_TEST="spec"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
inherit ruby-fakegem
DESCRIPTION="Pure Ruby implementation of the SMB Protocol Family"
HOMEPAGE="https://github.com/rapid7/ruby_smb"
SRC_URI="https://github.com/rapid7/ruby_smb/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="1"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="test"
ruby_add_rdepend "
~dev-ruby/bindata-2.4.15
dev-ruby/openssl-ccm
dev-ruby/openssl-cmac
>=dev-ruby/rubyntlm-0.6.5
>=dev-ruby/windows_error-0.1.4
"
ruby_add_depend "test? ( dev-ruby/rspec )"
PATCHES=(
"${FILESDIR}"/${PN}-3.2.5-import-pathname-no-simplecov.patch
)
all_ruby_prepare() {
sed -i \
-e '/simplecov/Id' \
-e '/coveralls/d' \
-e '/TRAVIS/d' \
-e '1irequire "rubyntlm"; require "time"' \
spec/spec_helper.rb || die
sed -i \
-e '/fivemat/d' \
-e 's/git ls-files -z/find * -print0/' \
${PN}.gemspec || die
sed -i \
-e '/pry-byebug/d' \
-e '/pry-rescue/d' \
-e '/coveralls/d' \
Gemfile || die
sed -i \
-e 's/documentation/progress/' \
.rspec || die
# Avoid specs thar require obsolete ciphers
sed -e '/Encrypts a hash/ s/it/xit/' \
-i spec/lib/ruby_smb/dcerpc/samr/encrypted_nt_owf_password_spec.rb || die
sed -e '/Encrypts correctly/ s/it/xit/' \
-i spec/lib/ruby_smb/dcerpc/samr/sampr_encrypted_user_password_spec.rb || die
sed -e '/\(decrypt_attribute_value\|remove_des_layer\)/ s/describe/xdescribe/' \
-i spec/lib/ruby_smb/dcerpc/drsr_spec.rb || die
}