pkgr 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88515b775ce0780722e7b2cf547a055eb389d2b1
4
- data.tar.gz: 90ea8f15d716c46d2a2ae12a0cfaa77b1ecd5d9c
3
+ metadata.gz: 5bc2c3b54c7392441fcb7245dd55d92f50c079d7
4
+ data.tar.gz: 651f0aace529cd1fb2b4094cee35664544febb82
5
5
  SHA512:
6
- metadata.gz: 8574750422452b0efe2a75d4be2703ccac4a8c33c8936c0b781928d25092a1dced9e07f6eb7fc8e92765292043fa30dbb5a59ea3e60658c67573c9b64ac5be0d
7
- data.tar.gz: 1d730a9380f3c66a79f4e596e623028fd0e7637bb559da47b22d35b81f9fea2a184c2cb98878198b6b07e32cfcfafbc91afb5fccc45950844a2ceb215a2ed89e
6
+ metadata.gz: f3056964307ef13fb6d2180451bde13ef3dbdcb1b8e7aaf78aad32de65d075eff37237bcc78559ed20b3ac0626f4840a525f7fa59c828de0c1fadf6ca88fa929
7
+ data.tar.gz: adfc0cc6caa99afa30339503b98a65f8efa5fc9665d2aa67939f209a5f46f538df8e0ce2cc07a95bfdb4b34de53454b0661537dff4de178c1315df650546d38e
data/README.md CHANGED
@@ -29,6 +29,7 @@ They may just work.
29
29
 
30
30
  ## Supported distributions (64bits only)
31
31
 
32
+ * Ubuntu 18.04 ("bionic")
32
33
  * Ubuntu 16.04 ("xenial")
33
34
  * Ubuntu 14.04 ("trusty")
34
35
  * Ubuntu 12.04 ("precise")
@@ -81,6 +82,11 @@ Full command line options are given below:
81
82
  [--architecture=ARCHITECTURE] # Target architecture for the package
82
83
  # Default: x86_64
83
84
  [--runner=RUNNER] # Force a specific runner (e.g. upstart-1.5, sysv-lsb-1.3)
85
+ [--logrotate-frequency=FREQUENCY] # Set logrotate frequency
86
+ # Default: daily
87
+ # Possible values: daily, weekly, monthly, yearly
88
+ [--logrotate-backlog=BACKLOG] # Set logrotate backlog
89
+ # Default: 14
84
90
  [--homepage=HOMEPAGE] # Project homepage (e.g. "https://pkgr.example.org")
85
91
  [--home=HOME] # Project home (e.g. "/usr/share/PACKAGE_HOME")
86
92
  [--description=DESCRIPTION] # Project description
@@ -198,5 +204,3 @@ Issue getting nokogiri to compile? Try the following based on this [comment](htt
198
204
  ## Copyright
199
205
 
200
206
  See LICENSE (MIT)
201
-
202
-
@@ -13,5 +13,9 @@ ubuntu-10.04:
13
13
  - libssl0.9.8
14
14
  ubuntu-12.04:
15
15
  - libssl1.0.0
16
+ ubuntu-14.04:
17
+ - libssl1.0.0
16
18
  ubuntu-16.04:
17
19
  - libssl1.0.0
20
+ ubuntu-18.04:
21
+ - libssl1.0.0
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
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#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
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#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v164-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
2
  https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
3
  https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
4
  https://github.com/kr/heroku-buildpack-go.git
@@ -0,0 +1,4 @@
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
2
+ https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
3
+ https://github.com/heroku/heroku-buildpack-nodejs.git#v106
4
+ https://github.com/kr/heroku-buildpack-go.git
@@ -5,23 +5,38 @@ default:
5
5
  - openssl
6
6
  - libxml2
7
7
  - libxslt1.1
8
- - libreadline5
9
- - libreadline6
10
8
  ubuntu-10.04:
9
+ - libreadline5
11
10
  - libssl0.9.8
12
11
  - libmysqlclient16
13
12
  - libevent-1.4-2
14
13
  - libevent-core-1.4-2
15
14
  - libevent-extra-1.4-2
16
15
  ubuntu-12.04:
16
+ - libreadline6
17
+ - libssl1.0.0
18
+ - libmysqlclient18
19
+ - libevent-2.0-5
20
+ - libevent-core-2.0-5
21
+ - libevent-extra-2.0-5
22
+ ubuntu-14.04:
23
+ - libreadline6
17
24
  - libssl1.0.0
18
25
  - libmysqlclient18
19
26
  - libevent-2.0-5
20
27
  - libevent-core-2.0-5
21
28
  - libevent-extra-2.0-5
22
29
  ubuntu-16.04:
30
+ - libreadline6
23
31
  - libssl1.0.0
24
32
  - libmysqlclient20
25
33
  - libevent-2.0-5
26
34
  - libevent-core-2.0-5
27
35
  - libevent-extra-2.0-5
36
+ ubuntu-18.04:
37
+ - libreadline7
38
+ - libssl1.0.0
39
+ - libmysqlclient20
40
+ - libevent-2.1-6
41
+ - libevent-core-2.1-6
42
+ - libevent-extra-2.1-6
@@ -1,8 +1,8 @@
1
1
  # <%= name %> logs:
2
2
  /var/log/<%= name %>/*.log {
3
- daily
3
+ <%= logrotate_frequency %>
4
4
  missingok
5
- rotate 14
5
+ rotate <%= logrotate_backlog %>
6
6
  compress
7
7
  delaycompress
8
8
  notifempty
@@ -51,6 +51,15 @@ module Pkgr
51
51
  method_option :runner,
52
52
  :type => :string,
53
53
  :desc => "Force a specific runner (e.g. upstart-1.5, sysv-lsb-1.3)"
54
+ method_option :logrotate_frequency,
55
+ :type => :string,
56
+ :desc => "Set logrotate backlog",
57
+ :enum => %w(daily weekly monthly yearly),
58
+ :default => "daily"
59
+ method_option :logrotate_backlog,
60
+ :type => :numeric,
61
+ :desc => "Set logrotate backlog",
62
+ :default => 14
54
63
  method_option :homepage,
55
64
  :type => :string,
56
65
  :desc => "Project homepage"
@@ -92,6 +92,14 @@ module Pkgr
92
92
  @table[:home] || "/opt/#{name}"
93
93
  end
94
94
 
95
+ def logrotate_frequency
96
+ @table[:logrotate_frequency] || "daily"
97
+ end
98
+
99
+ def logrotate_backlog
100
+ @table[:logrotate_backlog] || 14
101
+ end
102
+
95
103
  def user
96
104
  @table[:user] || name
97
105
  end
@@ -252,6 +260,8 @@ module Pkgr
252
260
  args.push "--buildpack_list \"#{buildpack_list}\"" unless buildpack_list.nil? || buildpack_list.empty?
253
261
  args.push "--force-os \"#{force_os}\"" unless force_os.nil? || force_os.empty?
254
262
  args.push "--runner \"#{runner}\"" unless runner.nil? || runner.empty?
263
+ args.push "--logrotate-frequency \"#{logrotate_frequency}\"" unless logrotate_frequency.nil? || logrotate_frequency.empty?
264
+ args.push "--logrotate-backlog \"#{logrotate_backlog}\"" unless logrotate_backlog.nil?
255
265
  args.push "--env #{env.variables.map{|v| "\"#{v}\""}.join(" ")}" if env.present?
256
266
  args.push "--auto" if auto
257
267
  args.push "--verbose" if verbose
@@ -1,3 +1,3 @@
1
1
  module Pkgr
2
- VERSION = "1.6.0"
2
+ VERSION = "1.7.0"
3
3
  end
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.6.0
4
+ version: 1.7.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: 2018-01-26 00:00:00.000000000 Z
11
+ date: 2018-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -143,6 +143,7 @@ files:
143
143
  - data/buildpacks/ubuntu-12.04
144
144
  - data/buildpacks/ubuntu-14.04
145
145
  - data/buildpacks/ubuntu-16.04
146
+ - data/buildpacks/ubuntu-18.04
146
147
  - data/cli/cli.sh.erb
147
148
  - data/dependencies/amazon.yml
148
149
  - data/dependencies/centos.yml