pkgr 1.7.1 → 1.7.2

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
2
  SHA1:
3
- metadata.gz: 4295eff26d27f2e59538234d2dd56bbd3cd1f414
4
- data.tar.gz: 4cbbec7b378bc664c72f8cf7ab2d146e9311607e
3
+ metadata.gz: 564ea525211c15964819eae121133db41de7584b
4
+ data.tar.gz: 9e8d7b4abc90f369062d3d2523a0f6374c9a341a
5
5
  SHA512:
6
- metadata.gz: 482bb1d56b8d58727326f8e39dfa31b44a6702b04d3d74e871d47b644ed3615233304881b31c8b9fbdfb0dc2f152f689e2ad4129c55c51f386e2ac5b7d431df1
7
- data.tar.gz: ba7d6a6bc42b625d0912edcae450f76717820c8ca80bafff7a3a17af3b536eb794c491256fc78bad55f1ab31dfbb0ffd7efd556ebdd9e7a49eb62d5501a81b3c
6
+ metadata.gz: b78c0884063dbb2eda33c0a072ab788a90e7829f11076ab52f1ab4eba349b2d8ccef416a6544d85e0c6925969bbc1a9d21e98258ed0ef7c5735a3aff842ae204
7
+ data.tar.gz: f44786665247d5b47b9ed224c7315a5110342640e6a87a2f6695a6d85f7a53e92a674b1e422af03d2eb21dc6f38fdd5bd5699f1dc0494b698bae42b55dd1ed15
data/README.md CHANGED
@@ -33,6 +33,7 @@ They may just work.
33
33
  * Ubuntu 16.04 ("xenial")
34
34
  * Ubuntu 14.04 ("trusty")
35
35
  * Ubuntu 12.04 ("precise")
36
+ * Debian 10 ("buster")
36
37
  * Debian 9 ("stretch")
37
38
  * Debian 8 ("jessie")
38
39
  * Debian 7 ("wheezy")
@@ -23,3 +23,7 @@ debian-9:
23
23
  - libssl1.0.2
24
24
  - libssl1.0-dev
25
25
  - default-libmysqlclient-dev
26
+ debian-10:
27
+ - libssl1.1
28
+ - libssl-dev
29
+ - default-libmysqlclient-dev
@@ -1,4 +1,4 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v206-1
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
@@ -0,0 +1,4 @@
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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
@@ -1,3 +1,3 @@
1
- https://github.com/pkgr/heroku-buildpack-ruby.git#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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#v183-1,BUILDPACK_NODE_VERSION="0.6.8"
1
+ https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
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
@@ -28,6 +28,7 @@ usage() {
28
28
  echo " $APP_NAME logs [--tail|-n NUMBER]"
29
29
  echo " $APP_NAME config:get VAR"
30
30
  echo " $APP_NAME config:set VAR=VALUE"
31
+ echo " $APP_NAME config:unset VAR"
31
32
  echo " $APP_NAME configure"
32
33
  echo " $APP_NAME reconfigure"
33
34
  echo " $APP_NAME restart"
@@ -46,6 +47,7 @@ usage() {
46
47
  echo ""
47
48
  echo " $APP_NAME restart [process]"
48
49
  echo " This will restart the application (or the given process), in a distribution-independent manner."
50
+ exit 64
49
51
  }
50
52
 
51
53
  DEFAULT_FILE=$(_p "/etc/default/${APP_NAME}")
@@ -59,7 +61,19 @@ for file in $(_p "${APP_HOME}/.profile.d")/*.sh; do
59
61
  done
60
62
 
61
63
  if [ "$APP_CLI" != "" ] ; then
62
- exec $APP_HOME/bin/$APP_CLI "$@"
64
+ cli_path="$APP_CLI"
65
+ if [ ! -e "$cli_path" ]; then
66
+ cli_path="$APP_HOME/$APP_CLI"
67
+ fi
68
+ if [ ! -e "$cli_path" ]; then
69
+ cli_path="$APP_HOME/bin/$APP_CLI"
70
+ fi
71
+ if [ -e "$cli_path" ]; then
72
+ exec "$cli_path" "$@"
73
+ else
74
+ echo "Error: the given CLI ($APP_CLI) does not point to any valid executable"
75
+ exit 1
76
+ fi
63
77
  fi
64
78
 
65
79
  if [ ! -w "$(_p "/etc/${APP_NAME}/conf.d")" ] ; then
@@ -367,13 +381,18 @@ reconfigure() {
367
381
  configure --reconfigure
368
382
  }
369
383
 
384
+ config_unset() {
385
+ local key="${1}"
386
+ sed -i -r "s/^\s*export\s+${key}.*$//g" $(_p "/etc/${APP_NAME}/conf.d")/*
387
+ }
388
+
370
389
  config_set() {
371
390
  # http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02
372
391
  local key="${1%%=*}"
373
392
  local value="${1#*=}"
374
393
  local file=$(_p "/etc/${APP_NAME}/conf.d/other")
375
394
  touch "$file"
376
- sed -i -r "s/^\s*export\s+${key}.*$//g" $(_p "/etc/${APP_NAME}/conf.d")/*
395
+ config_unset "$key"
377
396
  echo "export ${key}=\"${value}\"" >> "${file}"
378
397
  sed -i '/^\s*$/d' "$file"
379
398
  }
@@ -466,10 +485,14 @@ while : ; do
466
485
  show_env
467
486
  break;;
468
487
 
488
+ config:unset)
489
+ [ $# -lt 2 ] && usage
490
+ config_unset "$2"
491
+ break;;
492
+
469
493
  config:set)
470
494
  [ $# -lt 2 ] && usage
471
495
  config_set "$2"
472
-
473
496
  break;;
474
497
 
475
498
  config:get)
@@ -4,6 +4,11 @@ default:
4
4
  - libxml2
5
5
  - libxslt
6
6
  - libevent
7
- - postgresql-libs
8
7
  - mysql-libs
9
8
  - sqlite
9
+ centos-6:
10
+ - postgresql-libs
11
+ centos-7:
12
+ - postgresql-libs
13
+ centos-8:
14
+ - libpq
@@ -30,7 +30,8 @@ module Pkgr
30
30
  def target
31
31
  {
32
32
  "centos-6" => "el:6",
33
- "centos-7" => "el:7"
33
+ "centos-7" => "el:7",
34
+ "centos-8" => "el:8"
34
35
  }.fetch(slug, slug.sub("-", ":"))
35
36
  end
36
37
 
@@ -14,7 +14,7 @@ module Pkgr
14
14
 
15
15
  def runner
16
16
  @runner ||= case release
17
- when /^8/, /^9/
17
+ when /^8/, /^9/, /^10/
18
18
  Runner.new("systemd", "default", "systemctl")
19
19
  else
20
20
  Runner.new("sysv", "lsb-3.1", "update-rc.d")
@@ -11,10 +11,10 @@ module Pkgr
11
11
 
12
12
  def runner
13
13
  @runner ||= case release
14
- when /^16.04/
15
- Runner.new("systemd", "default", "systemctl")
16
- else
14
+ when /^12.04/, /^14.04/
17
15
  Runner.new("upstart", "1.5", "initctl")
16
+ else
17
+ Runner.new("systemd", "default", "systemctl")
18
18
  end
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module Pkgr
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
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.7.1
4
+ version: 1.7.2
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-05-18 00:00:00.000000000 Z
11
+ date: 2019-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -132,6 +132,8 @@ files:
132
132
  - data/buildpacks/amazon-2015
133
133
  - data/buildpacks/centos-6
134
134
  - data/buildpacks/centos-7
135
+ - data/buildpacks/centos-8
136
+ - data/buildpacks/debian-10
135
137
  - data/buildpacks/debian-6
136
138
  - data/buildpacks/debian-7
137
139
  - data/buildpacks/debian-8