itamae-plugin-recipe-bitlbee 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rubocop.yml +13 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +12 -0
- data/README.md +25 -0
- data/Rakefile +16 -0
- data/lib/itamae/plugin/recipe/bitlbee/default.rb +43 -0
- data/lib/itamae/plugin/recipe/bitlbee/discord.rb +59 -0
- data/lib/itamae/plugin/recipe/bitlbee/package.rb +1 -0
- data/lib/itamae/plugin/recipe/bitlbee/version.rb +11 -0
- data/lib/itamae/plugin/recipe/bitlbee.rb +14 -0
- data/sig/itamae/plugin/recipe/bitlbee.rbs +10 -0
- metadata +71 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bc9bf7438840c3e6db3a9d66949cedf55ec6824109ed1d5fec528126f29f2779
|
4
|
+
data.tar.gz: 320eb01aee116121c866e3355b72f092c9234a2426abe7bd8c52b910d7197378
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 22f761162d73df4c0a08ebf8d1c7ff2ad4f04c1f020ea1477788ba10d6ee953f01fd0593f831c766385e3bea3e5cdc0b27e376ebe71dd92cb59f7400004ccef7
|
7
|
+
data.tar.gz: 2504975278622413db4b574f27b58b0b2018c189f205fc9a49345cf089b5a5c9c2bd7c0399825f4e72317caa9e14ffb52fd8d46498289ac32614ca998e10059f
|
data/.rubocop.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Itamae::Plugin::Recipe::Bitlbee
|
2
|
+
|
3
|
+
## Installation
|
4
|
+
|
5
|
+
Install the gem and add to the application's `Gemfile` by executing: `bundle add itamae-plugin-recipe-bitlbee`.
|
6
|
+
If Bundler is not being used to manage dependencies, install the gem by executing: `gem install itamae-plugin-recipe-bitlbee`.
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
include_recipe "bitlbee"
|
12
|
+
```
|
13
|
+
|
14
|
+
## Development
|
15
|
+
|
16
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
17
|
+
Then, run `rake test` to run the tests.
|
18
|
+
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
19
|
+
|
20
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
21
|
+
To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
Bug reports and pull requests are welcome.
|
data/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rake/testtask"
|
5
|
+
|
6
|
+
Rake::TestTask.new(:test) do |t|
|
7
|
+
t.libs << "test"
|
8
|
+
t.libs << "lib"
|
9
|
+
t.test_files = FileList["test/**/*_test.rb"]
|
10
|
+
end
|
11
|
+
|
12
|
+
require "rubocop/rake_task"
|
13
|
+
|
14
|
+
RuboCop::RakeTask.new
|
15
|
+
|
16
|
+
task default: %i[test rubocop]
|
@@ -0,0 +1,43 @@
|
|
1
|
+
node.reverse_merge!(
|
2
|
+
{
|
3
|
+
bitlbee: {
|
4
|
+
mastodon: {
|
5
|
+
enable: false
|
6
|
+
},
|
7
|
+
discord: {
|
8
|
+
enable: false
|
9
|
+
},
|
10
|
+
service: {
|
11
|
+
name: "bitlbee",
|
12
|
+
actions: [:start, :enable]
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
)
|
17
|
+
|
18
|
+
node.validate! do
|
19
|
+
{
|
20
|
+
bitlbee: {
|
21
|
+
mastodon: {
|
22
|
+
enable: boolean
|
23
|
+
},
|
24
|
+
discord: {
|
25
|
+
enable: boolean
|
26
|
+
},
|
27
|
+
service: {
|
28
|
+
name: string,
|
29
|
+
actions: array_of(symbol)
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
include_recipe "package"
|
36
|
+
|
37
|
+
package "bitlbee-plugin-mastodon" if node[:bitlbee][:mastodon][:enable]
|
38
|
+
|
39
|
+
include_recipe "discord" if node[:bitlbee][:discord][:enable]
|
40
|
+
|
41
|
+
service node[:bitlbee][:service][:name] do
|
42
|
+
action node[:bitlbee][:service][:actions]
|
43
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
node.reverse_merge!(
|
2
|
+
{
|
3
|
+
bitlbee: {
|
4
|
+
discord: {
|
5
|
+
repo: "/tmp/bitlbee-discord"
|
6
|
+
}
|
7
|
+
}
|
8
|
+
}
|
9
|
+
)
|
10
|
+
|
11
|
+
node.validate! do
|
12
|
+
{
|
13
|
+
bitlbee: {
|
14
|
+
discord: {
|
15
|
+
repo: string
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# bitlbee-discord / Build dependencies [1]
|
22
|
+
#
|
23
|
+
# [1] https://github.com/sm00th/bitlbee-discord/#build-dependencies
|
24
|
+
|
25
|
+
include_recipe "package"
|
26
|
+
package "bitlbee-dev"
|
27
|
+
|
28
|
+
package "libglib2.0-0"
|
29
|
+
package "libglib2.0-dev"
|
30
|
+
|
31
|
+
package "autotools-dev"
|
32
|
+
|
33
|
+
git node[:bitlbee][:discord][:repo] do
|
34
|
+
repository "https://github.com/sm00th/bitlbee-discord"
|
35
|
+
end
|
36
|
+
|
37
|
+
# bitlbee-discord / Building and Installing [2]
|
38
|
+
#
|
39
|
+
# [2] https://github.com/sm00th/bitlbee-discord/#building-and-installing
|
40
|
+
|
41
|
+
execute "generate autotools configuration" do
|
42
|
+
command "./autogen.sh"
|
43
|
+
cwd node[:bitlbee][:discord][:repo]
|
44
|
+
end
|
45
|
+
|
46
|
+
execute "configure" do
|
47
|
+
command "./configure"
|
48
|
+
cwd node[:bitlbee][:discord][:repo]
|
49
|
+
end
|
50
|
+
|
51
|
+
execute "build" do
|
52
|
+
command "make"
|
53
|
+
cwd node[:bitlbee][:discord][:repo]
|
54
|
+
end
|
55
|
+
|
56
|
+
execute "install" do
|
57
|
+
command "make install"
|
58
|
+
cwd node[:bitlbee][:discord][:repo]
|
59
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
package "bitlbee"
|
metadata
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: itamae-plugin-recipe-bitlbee
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- gemmaro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-12-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: itamae
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: Itamae plugin recipe Bitlbee is a Itamae plugin, for installing Bitlbee
|
28
|
+
and its plugins and starting its service.
|
29
|
+
email:
|
30
|
+
- gemmaro.dev@gmail.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- ".rubocop.yml"
|
36
|
+
- CHANGELOG.md
|
37
|
+
- Gemfile
|
38
|
+
- README.md
|
39
|
+
- Rakefile
|
40
|
+
- lib/itamae/plugin/recipe/bitlbee.rb
|
41
|
+
- lib/itamae/plugin/recipe/bitlbee/default.rb
|
42
|
+
- lib/itamae/plugin/recipe/bitlbee/discord.rb
|
43
|
+
- lib/itamae/plugin/recipe/bitlbee/package.rb
|
44
|
+
- lib/itamae/plugin/recipe/bitlbee/version.rb
|
45
|
+
- sig/itamae/plugin/recipe/bitlbee.rbs
|
46
|
+
homepage: https://codeberg.org/gemmaro/itamae-plugin-recipe-bitlbee
|
47
|
+
licenses: []
|
48
|
+
metadata:
|
49
|
+
homepage_uri: https://codeberg.org/gemmaro/itamae-plugin-recipe-bitlbee
|
50
|
+
source_code_uri: https://codeberg.org/gemmaro/itamae-plugin-recipe-bitlbee.git
|
51
|
+
changelog_uri: https://codeberg.org/gemmaro/itamae-plugin-recipe-bitlbee/src/branch/main/CHANGELOG.md
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 2.6.0
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
requirements: []
|
67
|
+
rubygems_version: 3.3.26
|
68
|
+
signing_key:
|
69
|
+
specification_version: 4
|
70
|
+
summary: Itamae plugin for Bitlbee
|
71
|
+
test_files: []
|