murakumo 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,5 +18,13 @@ else
18
18
  exit 1
19
19
  end
20
20
 
21
+ bin_dir = ((RbConfig::CONFIG['bindir'] rescue nil) || '').strip
22
+
21
23
  `cp -i #{gem_dir}/murakumo-*/etc/murakumo.server #{INIT_D_DIR}/murakumo`
22
24
  `chmod 755 #{INIT_D_DIR}/murakumo`
25
+
26
+ unless bin_dir.empty?
27
+ `sed -i -r 's|^# processname:.*|# processname: #{bin_dir}/murakumo|' #{INIT_D_DIR}/murakumo`
28
+ `sed -i -r 's|^prog=.*|prog=#{bin_dir}/murakumo|' #{INIT_D_DIR}/murakumo`
29
+ `sed -i -r 's|^ctlprog=.*|ctlprog=#{bin_dir}/mrkmctl|' #{INIT_D_DIR}/murakumo`
30
+ end
data/etc/murakumo.server CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/bin/sh
2
2
  # chkconfig: 345 11 89
3
3
  # description: The internal DNS server which manages name information using a gossip protocol.
4
- # processname: /usr/local/bin/murakumo
4
+ # processname: /usr/bin/murakumo
5
5
  # config: /etc/murakumo.yml
6
6
 
7
- prog=/usr/local/bin/murakumo
8
- ctlprog=/usr/local/bin/mrkmctl
7
+ prog=/usr/bin/murakumo
8
+ ctlprog=/usr/bin/mrkmctl
9
9
  conf=/etc/murakumo.yml
10
10
 
11
11
  if [ "$1" != "configure" -a ! -e "$conf" ]; then
@@ -1,5 +1,5 @@
1
1
  module Murakumo
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
 
4
4
  # Priority
5
5
  MASTER = 1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: murakumo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel