local_pac 0.1.10 → 0.1.11
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.
- data/lib/local_pac/config.rb +5 -5
- data/lib/local_pac/git.rb +1 -1
- data/lib/local_pac/git_repository.rb +2 -2
- data/lib/local_pac/logger.rb +1 -1
- data/lib/local_pac/template_file.rb +1 -1
- data/lib/local_pac/template_repository.rb +1 -1
- data/lib/local_pac/version.rb +1 -1
- data/share/archlinux/PKGBUILD +5 -3
- data/share/archlinux/local_pac.install +4 -1
- metadata +1 -1
data/lib/local_pac/config.rb
CHANGED
@@ -37,11 +37,11 @@ module LocalPac
|
|
37
37
|
fail Exceptions::ConfigFileNotReadable, "Sorry, but there was a problem reading the config file: #{e.message}."
|
38
38
|
end
|
39
39
|
|
40
|
-
option :log_sink, File.join(ENV['HOME'], '.local', 'share', 'local_pac', 'log')
|
41
|
-
option :local_storage, File.join(ENV['HOME'], '.local', 'share', 'local_pac', 'data')
|
42
|
-
option :executable, File.expand_path('../../../bin/local_pac', __FILE__)
|
43
|
-
option :pid_file, File.join(ENV['HOME'], '.local', 'share', 'local_pac', 'run', 'pid')
|
44
|
-
option :gem_path, Gem.path
|
40
|
+
option :log_sink, File.expand_path(File.join(ENV['HOME'], '.local', 'share', 'local_pac', 'log'))
|
41
|
+
option :local_storage, File.expand_path(File.join(ENV['HOME'], '.local', 'share', 'local_pac', 'data'))
|
42
|
+
option :executable, File.expand_path(File.expand_path('../../../bin/local_pac', __FILE__))
|
43
|
+
option :pid_file, File.expand_path(File.join(ENV['HOME'], '.local', 'share', 'local_pac', 'run', 'pid'))
|
44
|
+
option :gem_path, Gem.path.collect {|p| File.expand_path(p) }
|
45
45
|
|
46
46
|
def to_s
|
47
47
|
result = []
|
data/lib/local_pac/git.rb
CHANGED
@@ -9,10 +9,10 @@ module LocalPac
|
|
9
9
|
public
|
10
10
|
|
11
11
|
def initialize(storage_path, compressor_engine = JavaScriptCompressor, file_creator = PacFile)
|
12
|
-
@storage_path = storage_path
|
12
|
+
@storage_path = File.expand_path(storage_path)
|
13
13
|
javascript_compressor = compressor_engine.new
|
14
14
|
|
15
|
-
create unless ::File.exists? storage_path
|
15
|
+
create unless ::File.exists? @storage_path
|
16
16
|
|
17
17
|
mutex = Mutex.new
|
18
18
|
mutex.synchronize do
|
data/lib/local_pac/logger.rb
CHANGED
data/lib/local_pac/version.rb
CHANGED
data/share/archlinux/PKGBUILD
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Maintainer: Max Meyer <dev@fedux.org>
|
2
2
|
pkgname=local_pac
|
3
|
-
pkgver=0.1.
|
3
|
+
pkgver=0.1.10
|
4
4
|
pkgrel=1
|
5
5
|
pkgdesc="local pacfile serving server"
|
6
6
|
arch=(i686 x86_64)
|
@@ -11,7 +11,7 @@ install=${pkgname}.install
|
|
11
11
|
makedepends=(rubygems filegen)
|
12
12
|
source=(http://gems.rubyforge.org/gems/$pkgname-$pkgver.gem)
|
13
13
|
noextract=($pkgname-$pkgver.gem)
|
14
|
-
sha256sums=('
|
14
|
+
sha256sums=('48af235bc6aa8b5a9d647e1a177d6d25eab10626ba946cfd75b81b8126805cab')
|
15
15
|
|
16
16
|
package() {
|
17
17
|
cd "$srcdir"
|
@@ -32,7 +32,9 @@ package() {
|
|
32
32
|
install -d ${pkgdir}$_log_dir
|
33
33
|
install -d ${pkgdir}$_config_dir
|
34
34
|
|
35
|
-
|
35
|
+
msg "Starting download of gems. Don't get alert that the download takes a lot of time. Since rubygems 2.2.0 a new algorithm to resolve dependencies is used. Upgrade to > 2.2.0 via sudo /usr/bin/gem update --system to improve performance."
|
36
|
+
|
37
|
+
GEM_HOME="${pkgdir}${_library_dir}" GEM_ROOT="${pkgdir}${_library_dir}" GEM_PATH="${pkgdir}${_library_dir}" /usr/bin/gem install --env-shebang --wrappers --no-ri --no-rdoc --install-dir ${pkgdir}${_library_dir} $pkgname
|
36
38
|
|
37
39
|
install -D -m 644 ${pkgdir}${_share_dir}/archlinux/config.yaml ${pkgdir}${_examples_dir}/config.yaml.example
|
38
40
|
|
@@ -1,10 +1,13 @@
|
|
1
1
|
post_install() {
|
2
|
+
echo ""
|
2
3
|
echo "Please place a config file at one of the following places:"
|
4
|
+
echo ""
|
3
5
|
echo " * $HOME/.config/local_pac/config.yaml"
|
4
6
|
echo " * $HOME/.local_pac/config.yaml"
|
5
7
|
echo " * /etc/local_pac/config.yaml"
|
6
|
-
|
8
|
+
echo ""
|
7
9
|
echo "An example config file can be found at \"/usr/share/local_pac/examples/config.yaml.example\""
|
10
|
+
echo ""
|
8
11
|
}
|
9
12
|
|
10
13
|
post_upgrade() {
|