New project name: bsdcontrol.rb

This commit is contained in:
0x1eef 2024-03-20 17:28:59 -03:00
parent 1d6fe41d39
commit a34066c47b
13 changed files with 17 additions and 17 deletions

View file

@ -1,7 +1,7 @@
PATH
remote: .
specs:
hbsdctl.rb (0.1.0)
bsdcontrol.rb (0.1.0)
GEM
remote: https://rubygems.org/
@ -18,7 +18,7 @@ PLATFORMS
ruby
DEPENDENCIES
hbsdctl.rb!
bsdcontrol.rb!
rake-compiler (= 1.2.0)
test-unit (~> 3.6)

View file

@ -1,6 +1,6 @@
## About
hbsdctl.rb provides Ruby bindings for libhbsdcontrol from the
bsdcontrol.rb provides Ruby bindings for libhbsdcontrol from the
[hardenedbsd](https://hardenedbsd.org) project. Through
this library, you can query what features are available and if
root: enable, disable or query the status of a feature for a
@ -58,21 +58,21 @@ BSD::Control
## Documentation
A complete API reference is available at
[0x1eef.github.io/x/hbsdctl.rb](https://0x1eef.github.io/x/hbsdctl.rb).
[0x1eef.github.io/x/bsdcontrol.rb](https://0x1eef.github.io/x/bsdcontrol.rb).
## Install
**Rubygems.org**
hbsdctl.rb can be installed via rubygems.org.
bsdcontrol.rb can be installed via rubygems.org.
gem install hbsdctl.rb
gem install bsdcontrol.rb
## Sources
* [GitHub](https://github.com/0x1eef/hbsdctl.rb)
* [GitLab](https://gitlab.com/0x1eef/hbsdctl.rb)
* [git.hardenedbsd.org](https://git.hardenedbsd.org/0x1eef/hbsdctl.rb)
* [GitHub](https://github.com/0x1eef/bsdcontrol.rb)
* [GitLab](https://gitlab.com/0x1eef/bsdcontrol.rb)
* [git.hardenedbsd.org](https://git.hardenedbsd.org/0x1eef/bsdcontrol.rb)
## License

View file

@ -1,12 +1,12 @@
require "bundler/setup"
require "rake/extensiontask"
Rake::ExtensionTask.new("hbsdctl.rb")
Rake::ExtensionTask.new("bsdcontrol.rb")
task default: %w[clobber compile test]
desc "Run C linter"
namespace :clang do
task :format do
sh "clang-format -style=file:.clang-format -i ext/hbsdctl.rb/*.c"
sh "clang-format -style=file:.clang-format -i ext/bsdcontrol.rb/*.c"
end
end

View file

@ -1,14 +1,14 @@
require_relative "lib/bsd/control/version"
Gem::Specification.new do |gem|
gem.name = "hbsdctl.rb"
gem.name = "bsdcontrol.rb"
gem.authors = ["0x1eef"]
gem.email = ["0x1eef@protonmail.com"]
gem.homepage = "https://git.hardenedbsd.org/0x1eef/hbsdctl.rb#readme"
gem.homepage = "https://git.hardenedbsd.org/0x1eef/bsdcontrol.rb#readme"
gem.version = BSD::Control::VERSION
gem.licenses = ["0BSD"]
gem.files = `git ls-files`.split($/)
gem.require_paths = ["lib"]
gem.extensions = %w[ext/hbsdctl.rb/extconf.rb]
gem.extensions = %w[ext/bsdcontrol.rb/extconf.rb]
gem.summary = "Ruby bindings for libhbsdcontrol"
gem.description = gem.summary
gem.add_development_dependency "rake-compiler", "= 1.2.0"

View file

@ -4,7 +4,7 @@
#include "feature.h"
void
Init_hbsdctl(void)
Init_bsdcontrol(void)
{
VALUE rb_mBSD = rb_const_get(rb_cObject, rb_intern("BSD")),
rb_mControl = rb_const_get(rb_mBSD, rb_intern("Control")),

View file

@ -1,3 +1,3 @@
require 'mkmf'
$LIBS << ' -lsbuf -lhbsdcontrol'
create_makefile("hbsdctl.rb")
create_makefile("bsdcontrol.rb")

View file

@ -1,4 +1,4 @@
module BSD
require_relative "bsd/control"
require_relative "hbsdctl.rb.so"
require_relative "bsdcontrol.rb.so"
end