pkgr 1.7.2 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 564ea525211c15964819eae121133db41de7584b
4
- data.tar.gz: 9e8d7b4abc90f369062d3d2523a0f6374c9a341a
2
+ SHA256:
3
+ metadata.gz: 97cad2ada805d4a5d186aa6e8dac7def0ba3d1d6dc80255ded270149ed4d8333
4
+ data.tar.gz: f6b258481d1081548ba9a6b0f1f0e78002379c7123c1e7bb9c85b9bdab5027b8
5
5
  SHA512:
6
- metadata.gz: b78c0884063dbb2eda33c0a072ab788a90e7829f11076ab52f1ab4eba349b2d8ccef416a6544d85e0c6925969bbc1a9d21e98258ed0ef7c5735a3aff842ae204
7
- data.tar.gz: f44786665247d5b47b9ed224c7315a5110342640e6a87a2f6695a6d85f7a53e92a674b1e422af03d2eb21dc6f38fdd5bd5699f1dc0494b698bae42b55dd1ed15
6
+ metadata.gz: 5c8606fde8bdb86b138c3079289177f4ec28db16e174ea5f328fe477933c6a2aaf37499321e009fe34777696c08abf7e472b3ea802af6a20cb5ba1945965d456
7
+ data.tar.gz: '0179edc432d6f0f8f2c81ec5f1bafd306112463fe7029778397d75436e430245a7985989ff5c2ad6d11aa895c510b689969cfc4600a9462f2386a8f05ff6cb72'
data/README.md CHANGED
@@ -29,14 +29,18 @@ They may just work.
29
29
 
30
30
  ## Supported distributions (64bits only)
31
31
 
32
+ * Ubuntu 22.04 ("jammy")
33
+ * Ubuntu 20.04 ("focal")
32
34
  * Ubuntu 18.04 ("bionic")
33
35
  * Ubuntu 16.04 ("xenial")
34
36
  * Ubuntu 14.04 ("trusty")
35
37
  * Ubuntu 12.04 ("precise")
38
+ * Debian 11 ("bullseye")
36
39
  * Debian 10 ("buster")
37
40
  * Debian 9 ("stretch")
38
41
  * Debian 8 ("jessie")
39
42
  * Debian 7 ("wheezy")
43
+ * RHEL/CentOS 8
40
44
  * RHEL/CentOS 7
41
45
  * RHEL/CentOS 6
42
46
  * Suse Linux Enterprise Server 12
@@ -50,23 +54,25 @@ See [Packager.io][packager-io] for examples of apps packaged with `pkgr` (Gitlab
50
54
 
51
55
  ## Installation
52
56
 
53
- You can find DEB and RPM packages for a wide range of distributions on Packager.io:
57
+ Docker images are available for the most recent distributions. If you don't
58
+ have docker or are interested in older distributions, you can also install
59
+ `pkgr` as a ruby gem:
54
60
 
55
- <https://packager.io/gh/crohr/pkgr>
56
-
57
- Or, installing as a gem, on debian-based machines:
58
-
59
- sudo apt-get update
60
- sudo apt-get install -y build-essential ruby1.9.1-full rubygems1.9.1
61
- sudo gem install pkgr
61
+ gem install pkgr
62
62
 
63
63
  ## Usage
64
64
 
65
65
  To package your app, execute `pkgr` against your app's repository:
66
66
 
67
+ # if using the ruby gem, you need to run it under the distribution you want to package for:
67
68
  pkgr package path/to/app/repo
68
69
 
69
- The resulting `.deb` or `.rpm` package will be in your current working directory. That is, you need to run `pkgr` on the target distribution for which you want to generate a package.
70
+ # if using a docker image, you can run it from any host OS:
71
+ docker run --rm -it -v $(pwd):/app -v /tmp/cache:/cache pkgr/ubuntu:20.04
72
+ docker run --rm -it -v $(pwd):/app -v /tmp/cache:/cache pkgr/el:8
73
+ docker run --rm -it -v $(pwd):/app -v /tmp/cache:/cache pkgr/debian:10
74
+
75
+ The resulting `.deb` or `.rpm` package will be in your current working directory.
70
76
 
71
77
  Full command line options are given below:
72
78
 
@@ -147,7 +153,7 @@ Finally, it's a great way to share your open source software with your users and
147
153
 
148
154
  * Uses Heroku buildpacks to embed all the dependencies related to your application runtime within the debian package. For a Rails app for instance, this means that `pkgr` will embed the specific ruby runtime you asked for, along with all the gems specified in your Gemfile. However, all other dependencies you may need must be specified as additional system dependencies (see Usage). This avoids the 'packaging-the-world' approach used by other tools such as omnibus (with the pros and cons that come with it), but it still allows you to use the latest and greatest libraries for your language of choice. See this [blog post][background-pkgr] for more background.
149
155
 
150
- [background-pkgr]: http://blog.packager.io/post/81988994454/why-i-made-pkgr-io-digressions-on-software-packaging
156
+ [background-pkgr]: https://blog.packager.io/posts/1-why-i-made-packager-io-digressions-on-software-packaging
151
157
 
152
158
  * Gives you a nice executable, which closely replicates the Heroku toolbelt utility. For instance, assuming you're packaging an app called `my-app`, you can do the following:
153
159
 
@@ -9,5 +9,10 @@ default:
9
9
  - libxslt-devel
10
10
  - libevent-devel
11
11
  - postgresql-devel
12
- - mysql-devel
13
12
  - sqlite-devel
13
+ centos-6:
14
+ - mysql-devel
15
+ centos-7:
16
+ - mariadb-devel
17
+ centos-8:
18
+ - mariadb-devel
@@ -27,3 +27,7 @@ debian-10:
27
27
  - libssl1.1
28
28
  - libssl-dev
29
29
  - default-libmysqlclient-dev
30
+ debian-11:
31
+ - libssl1.1
32
+ - libssl-dev
33
+ - default-libmysqlclient-dev
@@ -19,3 +19,7 @@ ubuntu-16.04:
19
19
  - libssl1.0.0
20
20
  ubuntu-18.04:
21
21
  - libssl1.0.0
22
+ ubuntu-20.04:
23
+ - libssl1.1
24
+ ubuntu-22.04:
25
+ - libssl3
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -0,0 +1,4 @@
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
+ https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
+ https://github.com/kr/heroku-buildpack-go.git
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-ruby.git,CURL_CONNECT_TIMEOUT=60,CURL_TIMEOUT=300
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
- https://github.com/heroku/heroku-buildpack-nodejs.git#v106
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -0,0 +1,4 @@
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
+ https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
+ https://github.com/kr/heroku-buildpack-go.git
@@ -0,0 +1,4 @@
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v242-1
2
+ https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v197
4
+ https://github.com/kr/heroku-buildpack-go.git
data/data/cli/cli.sh.erb CHANGED
@@ -110,14 +110,24 @@ show_env() {
110
110
  env -i ROOT_PATH=${ROOT_PATH} ${0} run env | sort
111
111
  }
112
112
 
113
+ logs_files() {
114
+ files=$(shopt -s nullglob dotglob; echo $(_p "/var/log/${APP_NAME}")/*.log)
115
+ echo "$files"
116
+ }
117
+
113
118
  logs_opt() {
119
+ files=$(logs_files)
120
+ if [ "$files" == "" ]; then
121
+ return
122
+ fi
123
+
114
124
  if [ "$1" == "" ]; then
115
- for file in $(_p "/var/log/${APP_NAME}")/*.log ; do
125
+ for file in $files ; do
116
126
  echo "==> ${file} <=="
117
127
  cat "${file}"
118
128
  done
119
129
  else
120
- tail $(_p "/var/log/${APP_NAME}")/*.log "$@"
130
+ tail $files "$@"
121
131
  fi
122
132
  }
123
133
  logs_systemd() {
@@ -135,7 +145,11 @@ logs() {
135
145
  }
136
146
 
137
147
  tail_logs_opt() {
138
- tail -f $(_p "/var/log/${APP_NAME}")/*.log
148
+ files=$(logs_files)
149
+ if [ "$files" == "" ]; then
150
+ return
151
+ fi
152
+ tail -f $files
139
153
  }
140
154
  tail_logs_systemd() {
141
155
  journalctl -u "$APP_NAME-*" -f "$@"
@@ -168,7 +182,7 @@ process_index() {
168
182
  if [ -f "$(_p "${APP_HOME}/Procfile")" ]; then
169
183
  index="$(cat "$(_p "${APP_HOME}/Procfile")" | grep -ve '^#' | grep -n "$process_name:" | cut -f 1 -d ':')"
170
184
  else
171
- index=0
185
+ index=1
172
186
  fi
173
187
  echo $(($index - 1))
174
188
  }
@@ -4,7 +4,6 @@ default:
4
4
  - libxml2
5
5
  - libxslt
6
6
  - libevent
7
- - mysql-libs
8
7
  - sqlite
9
8
  centos-6:
10
9
  - postgresql-libs
@@ -1,5 +1,4 @@
1
1
  default:
2
- - mysql-common
3
2
  - libpq5
4
3
  - libsqlite3-0
5
4
  - openssl
@@ -7,7 +6,6 @@ default:
7
6
  - libxslt1.1
8
7
  debian-6:
9
8
  - libssl0.9.8
10
- - libmysqlclient16
11
9
  - libevent-1.4-2
12
10
  - libevent-core-1.4-2
13
11
  - libevent-extra-1.4-2
@@ -15,7 +13,6 @@ debian-6:
15
13
  - libreadline6
16
14
  debian-7:
17
15
  - libssl1.0.0
18
- - libmysqlclient18
19
16
  - libevent-2.0-5
20
17
  - libevent-core-2.0-5
21
18
  - libevent-extra-2.0-5
@@ -23,7 +20,6 @@ debian-7:
23
20
  - libreadline6
24
21
  debian-8:
25
22
  - libssl1.0.0
26
- - libmysqlclient18
27
23
  - libevent-2.0-5
28
24
  - libevent-core-2.0-5
29
25
  - libevent-extra-2.0-5
@@ -31,7 +27,6 @@ debian-8:
31
27
  - libreadline6
32
28
  debian-9:
33
29
  - libssl1.0.2
34
- - libmariadbclient18
35
30
  - libevent-2.0-5
36
31
  - libevent-core-2.0-5
37
32
  - libevent-extra-2.0-5
@@ -7,9 +7,6 @@ default:
7
7
  - sqlite3
8
8
  - shadow
9
9
  sles-11:
10
- - libmysqlclient15
11
- - libmysqlclient_r15
12
10
  - postgresql
13
11
  sles-12:
14
- - libmysqlclient18
15
12
  - postgresql
@@ -1,5 +1,4 @@
1
1
  default:
2
- - mysql-common
3
2
  - libpq5
4
3
  - libsqlite3-0
5
4
  - openssl
@@ -8,35 +7,40 @@ default:
8
7
  ubuntu-10.04:
9
8
  - libreadline5
10
9
  - libssl0.9.8
11
- - libmysqlclient16
12
10
  - libevent-1.4-2
13
11
  - libevent-core-1.4-2
14
12
  - libevent-extra-1.4-2
15
13
  ubuntu-12.04:
16
14
  - libreadline6
17
15
  - libssl1.0.0
18
- - libmysqlclient18
19
16
  - libevent-2.0-5
20
17
  - libevent-core-2.0-5
21
18
  - libevent-extra-2.0-5
22
19
  ubuntu-14.04:
23
20
  - libreadline6
24
21
  - libssl1.0.0
25
- - libmysqlclient18
26
22
  - libevent-2.0-5
27
23
  - libevent-core-2.0-5
28
24
  - libevent-extra-2.0-5
29
25
  ubuntu-16.04:
30
26
  - libreadline6
31
27
  - libssl1.0.0
32
- - libmysqlclient20
33
28
  - libevent-2.0-5
34
29
  - libevent-core-2.0-5
35
30
  - libevent-extra-2.0-5
36
31
  ubuntu-18.04:
37
32
  - libreadline7
38
33
  - libssl1.0.0
39
- - libmysqlclient20
40
34
  - libevent-2.1-6
41
35
  - libevent-core-2.1-6
42
36
  - libevent-extra-2.1-6
37
+ ubuntu-20.04:
38
+ - libreadline8
39
+ - libssl1.1
40
+ - libevent-2.1-7
41
+ - libevent-core-2.1-7
42
+ - libevent-extra-2.1-7
43
+ ubuntu-22.04:
44
+ - libreadline8
45
+ - libssl3
46
+ - libev4
@@ -27,6 +27,10 @@ chown ${APP_USER}.${APP_GROUP} /var/db/${APP_NAME}
27
27
  chmod 0750 /etc/${APP_NAME} /etc/${APP_NAME}/conf.d
28
28
  find /etc/${APP_NAME} -type f -exec chmod 0640 {} +
29
29
 
30
+ <% if crons.any? %>
31
+ mkdir -p "<%= crons_dir %>"
32
+ <% end %>
33
+
30
34
  <% crons.each do |cron| %>
31
35
  rm -f <%= cron.destination %>
32
36
  cp <%= cron.source %> <%= cron.destination %>
data/lib/pkgr/builder.rb CHANGED
@@ -166,6 +166,7 @@ module Pkgr
166
166
  # Write cron files
167
167
  def setup_crons
168
168
  crons_dir = File.join("/", distribution.crons_dir)
169
+ config.crons_dir = crons_dir
169
170
 
170
171
  config.crons.map! do |cron_path|
171
172
  Cron.new(File.expand_path(cron_path, config.home), File.join(crons_dir, File.basename(cron_path)))
@@ -24,7 +24,7 @@ module Pkgr
24
24
  def initialize(url, type = :builtin, env = nil)
25
25
  @uuid = Digest::SHA1.hexdigest(url)
26
26
  @url, @branch = url.split("#")
27
- @branch ||= "master"
27
+ @branch ||= "main"
28
28
  @type = type
29
29
  @env = env || Env.new
30
30
  end
@@ -14,7 +14,7 @@ module Pkgr
14
14
 
15
15
  def runner
16
16
  @runner ||= case release
17
- when /^8/, /^9/, /^10/
17
+ when /^8/, /^9/, /^10/, /^11/
18
18
  Runner.new("systemd", "default", "systemctl")
19
19
  else
20
20
  Runner.new("sysv", "lsb-3.1", "update-rc.d")
@@ -41,7 +41,7 @@ module Pkgr
41
41
  Dir.glob(File.join(output_dir, "*deb")).each do |package|
42
42
  puts "-----> Verifying package #{File.basename(package)}"
43
43
  Dir.mktmpdir do |dir|
44
- verify_package = Mixlib::ShellOut.new %{dpkg-deb -x #{package} #{dir}}
44
+ verify_package = Mixlib::ShellOut.new %{dpkg-deb -x "#{package}" "#{dir}"}
45
45
  verify_package.logger = Pkgr.logger
46
46
  verify_package.run_command
47
47
  verify_package.error!
@@ -20,7 +20,12 @@ module Pkgr
20
20
  end
21
21
 
22
22
  def package_install_command(packages)
23
- "sudo zypper refresh ; sudo zypper install -y #{packages.map{|package| "\"#{package}\""}.join(" ")}"
23
+ # --no-gpg-checks helps with outdated repos for SLES
24
+ zypper_flags = []
25
+ if release.to_i <= 12
26
+ zypper_flags.push("--no-gpg-checks")
27
+ end
28
+ "sudo zypper refresh ; sudo zypper #{zypper_flags.join(" ")} install -y #{packages.map{|package| "\"#{package}\""}.join(" ")}"
24
29
  end
25
30
 
26
31
  def installer_dependencies
@@ -37,6 +37,10 @@ class EnvValue < String
37
37
  "#{f}#{self}#{b}"
38
38
  end
39
39
 
40
+ def strip
41
+ self.class.new(super)
42
+ end
43
+
40
44
  def unquote
41
45
  s = self.dup
42
46
 
data/lib/pkgr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pkgr
2
- VERSION = "1.7.2"
2
+ VERSION = "1.9.0"
3
3
  end
data/lib/pkgr.rb CHANGED
@@ -2,6 +2,14 @@ require 'pkgr/version'
2
2
  require 'pkgr/cli'
3
3
  require 'pkgr/dispatcher'
4
4
  require 'mixlib/log'
5
+ require 'yaml'
6
+
7
+ # https://stackoverflow.com/questions/71191685/visit-psych-nodes-alias-unknown-alias-default-psychbadalias/71192990#71192990
8
+ module YAML
9
+ class << self
10
+ alias_method :load, :unsafe_load if YAML.respond_to? :unsafe_load
11
+ end
12
+ end
5
13
 
6
14
  module Pkgr
7
15
  extend Mixlib::Log
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Rohr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-03 00:00:00.000000000 Z
11
+ date: 2022-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -134,6 +134,7 @@ files:
134
134
  - data/buildpacks/centos-7
135
135
  - data/buildpacks/centos-8
136
136
  - data/buildpacks/debian-10
137
+ - data/buildpacks/debian-11
137
138
  - data/buildpacks/debian-6
138
139
  - data/buildpacks/debian-7
139
140
  - data/buildpacks/debian-8
@@ -146,6 +147,8 @@ files:
146
147
  - data/buildpacks/ubuntu-14.04
147
148
  - data/buildpacks/ubuntu-16.04
148
149
  - data/buildpacks/ubuntu-18.04
150
+ - data/buildpacks/ubuntu-20.04
151
+ - data/buildpacks/ubuntu-22.04
149
152
  - data/cli/cli.sh.erb
150
153
  - data/dependencies/amazon.yml
151
154
  - data/dependencies/centos.yml
@@ -217,8 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
220
  - !ruby/object:Gem::Version
218
221
  version: '1.3'
219
222
  requirements: []
220
- rubyforge_project:
221
- rubygems_version: 2.6.11
223
+ rubygems_version: 3.2.22
222
224
  signing_key:
223
225
  specification_version: 4
224
226
  summary: Package any Ruby, NodeJS or Go app as a deb or rpm package