Sha256: bcee81985a65d34f7f7400c52ac142d89cfa74b6718c8a6e74a9d1058d8ea1af
Contents?: true
Size: 1.31 KB
Versions: 4
Compression:
Stored size: 1.31 KB
Contents
require 'upm/freshports_search' UPM::Tool.new "pkg" do os "FreeBSD" command "install", "pkg install", root: true command "update", "pkg update", root: true command "upgrade", "pkg upgrade", root: true command "info", "pkg clean", root: true command "audit", "pkg audit", root: true command "verify", "pkg check --checksums", root: true command "files", "pkg list", paged: true command "search", "pkg search", paged: true, highlight: true command "search-sources" do |*args| query = args.join(" ") FreshportsSearch.new.search!(query) end command "log", "grep pkg: /var/log/messages", paged: true command "build" do |*args| # svn checkout --depth empty svn://svn.freebsd.org/ports/head /usr/ports # cd /usr/ports # svn update --set-depth files # svn update Mk # svn update Templates # svn update Tools # svn update --set-depth files $category # cd $category # svn update $port puts "Not implemented" end command "info", "pkg info", paged: true command "list" do |args| if args.any? query = args.join run "pkg", "info", grep: query, highlight: query, paged: true else run "pkg", "info", paged: true end end command "mirrors" do print_files("/etc/pkg/FreeBSD.conf", exclude: /^(#|$)/) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
upm-0.1.15 | lib/upm/tools/pkg.rb |
upm-0.1.14 | lib/upm/tools/pkg.rb |
upm-0.1.13 | lib/upm/tools/pkg.rb |
upm-0.1.12 | lib/upm/tools/pkg.rb |