summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMatthias Fechner <mfechner@FreeBSD.org>2023-12-06 14:36:52 +0200
committerMatthias Fechner <mfechner@FreeBSD.org>2023-12-06 14:37:39 +0200
commit0daf0b92152acfc2e2c26ff4420a0dafc6ee0527 (patch)
tree46693c49a901d02220b7c6fad00e21d2d49602e2 /security
parentmath/elementary-calculator: Update version 2.0.2=>2.0.3 (diff)
security/rubygem-devise-two-factor-rails61: Remove expired port
security/rubygem-devise-two-factor-rails61
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/rubygem-devise-two-factor-rails61/Makefile25
-rw-r--r--security/rubygem-devise-two-factor-rails61/distinfo3
-rw-r--r--security/rubygem-devise-two-factor-rails61/files/patch-attr_encrypted48
-rw-r--r--security/rubygem-devise-two-factor-rails61/pkg-descr1
5 files changed, 0 insertions, 78 deletions
diff --git a/security/Makefile b/security/Makefile
index d2572882601f..3addc90ba881 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1096,7 +1096,6 @@
SUBDIR += rubygem-declarative_policy
SUBDIR += rubygem-devise-two-factor
SUBDIR += rubygem-devise-two-factor-rails5
- SUBDIR += rubygem-devise-two-factor-rails61
SUBDIR += rubygem-devise-two-factor-rails70
SUBDIR += rubygem-devise-two-factor41-rails70
SUBDIR += rubygem-devise_pam_authenticatable2
diff --git a/security/rubygem-devise-two-factor-rails61/Makefile b/security/rubygem-devise-two-factor-rails61/Makefile
deleted file mode 100644
index 560958696121..000000000000
--- a/security/rubygem-devise-two-factor-rails61/Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
-PORTNAME= devise-two-factor
-PORTVERSION= 4.0.2
-PORTREVISION= 1
-CATEGORIES= security rubygems
-MASTER_SITES= RG
-PKGNAMESUFFIX= -rails61
-
-MAINTAINER= mfechner@FreeBSD.org
-COMMENT= Barebones two-factor authentication with Devise
-WWW= https://github.com/tinfoil/devise-two-factor
-
-LICENSE= MIT
-LICENSE_FILE= ${WRKSRC}/LICENSE
-
-RUN_DEPENDS= rubygem-activesupport61>=0<7.1:devel/rubygem-activesupport61 \
- rubygem-attr_encrypted>=3<5:security/rubygem-attr_encrypted \
- rubygem-devise-rails61>=4.0<5:devel/rubygem-devise-rails61 \
- rubygem-railties61>=0<7.1:www/rubygem-railties61 \
- rubygem-rotp>=6.0<7:devel/rubygem-rotp
-
-USES= gem
-
-NO_ARCH= yes
-
-.include <bsd.port.mk>
diff --git a/security/rubygem-devise-two-factor-rails61/distinfo b/security/rubygem-devise-two-factor-rails61/distinfo
deleted file mode 100644
index a50db85a2e58..000000000000
--- a/security/rubygem-devise-two-factor-rails61/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1649083406
-SHA256 (rubygem/devise-two-factor-4.0.2.gem) = 6548d2696ed090d27046f888f4fa7380f151e0f823902d46fd9b91e7d0cac511
-SIZE (rubygem/devise-two-factor-4.0.2.gem) = 30208
diff --git a/security/rubygem-devise-two-factor-rails61/files/patch-attr_encrypted b/security/rubygem-devise-two-factor-rails61/files/patch-attr_encrypted
deleted file mode 100644
index 10b05cbe309f..000000000000
--- a/security/rubygem-devise-two-factor-rails61/files/patch-attr_encrypted
+++ /dev/null
@@ -1,48 +0,0 @@
---- devise-two-factor.gemspec.orig 2023-05-07 17:19:51 UTC
-+++ devise-two-factor.gemspec
-@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
-
- s.add_runtime_dependency(%q<railties>.freeze, ["< 7.1"])
- s.add_runtime_dependency(%q<activesupport>.freeze, ["< 7.1"])
-- s.add_runtime_dependency(%q<attr_encrypted>.freeze, [">= 1.3", "< 4", "!= 2"])
-+ s.add_runtime_dependency(%q<attr_encrypted>.freeze, [">= 1.3", "< 5", "!= 2"])
- s.add_runtime_dependency(%q<devise>.freeze, ["~> 4.0"])
- s.add_runtime_dependency(%q<rotp>.freeze, ["~> 6.0"])
- s.add_development_dependency(%q<activemodel>.freeze, [">= 0"])
---- spec/devise/models/two_factor_authenticatable_spec.rb.orig 2023-05-07 17:23:37 UTC
-+++ spec/devise/models/two_factor_authenticatable_spec.rb
-@@ -64,15 +64,31 @@ describe ::Devise::Models::TwoFactorAuthenticatable do
-
- describe 'otp_secret options' do
- it 'should be of the key' do
-- expect(subject.encrypted_attributes[:otp_secret][:key]).to eq('test-key'*8)
-+ if attr_encrypted_is_rails_seven_compatible?
-+ expect(subject.attr_encrypted_encrypted_attributes[:otp_secret][:key]).to eq('test-key'*8)
-+ else
-+ expect(subject.encrypted_attributes[:otp_secret][:key]).to eq('test-key'*8)
-+ end
- end
-
- it 'should be of the mode' do
-- expect(subject.encrypted_attributes[:otp_secret][:mode]).to eq(:per_attribute_iv_and_salt)
-+ if attr_encrypted_is_rails_seven_compatible?
-+ expect(subject.attr_encrypted_encrypted_attributes[:otp_secret][:mode]).to eq(:per_attribute_iv_and_salt)
-+ else
-+ expect(subject.encrypted_attributes[:otp_secret][:mode]).to eq(:per_attribute_iv_and_salt)
-+ end
- end
-
- it 'should be of the mode' do
-- expect(subject.encrypted_attributes[:otp_secret][:algorithm]).to eq('aes-256-cbc')
-+ if attr_encrypted_is_rails_seven_compatible?
-+ expect(subject.attr_encrypted_encrypted_attributes[:otp_secret][:algorithm]).to eq('aes-256-cbc')
-+ else
-+ expect(subject.encrypted_attributes[:otp_secret][:algorithm]).to eq('aes-256-cbc')
-+ end
-+ end
-+
-+ def attr_encrypted_is_rails_seven_compatible?
-+ Gem::Version.new(AttrEncrypted::Version.string) >= Gem::Version.new('4.0.0')
- end
- end
- end
diff --git a/security/rubygem-devise-two-factor-rails61/pkg-descr b/security/rubygem-devise-two-factor-rails61/pkg-descr
deleted file mode 100644
index 316de9a9d77e..000000000000
--- a/security/rubygem-devise-two-factor-rails61/pkg-descr
+++ /dev/null
@@ -1 +0,0 @@
-Barebones two-factor authentication with Devise