pallet 1.2.1 → 1.5.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.
- data/CHANGELOG +42 -0
- data/README +55 -0
- data/lib/installer.rb +106 -0
- data/lib/pallet.rb +18 -8
- data/lib/pallet/deb.rb +387 -268
- data/share/debian/source/changelog +7 -0
- data/share/debian/source/control +19 -0
- data/share/debian/source/rules +25 -0
- data/share/debian/source/substvars +2 -0
- metadata +16 -26
- data/lib/dependencies.rb +0 -44
- data/lib/install_spec.rb +0 -89
- data/share/debian/changelog +0 -7
- data/share/debian/compat +0 -1
- data/share/debian/conffiles +0 -1
- data/share/debian/config +0 -8
- data/share/debian/control +0 -12
- data/share/debian/copyright +0 -7
- data/share/debian/dirs +0 -1
- data/share/debian/docs +0 -1
- data/share/debian/install +0 -1
- data/share/debian/postinst +0 -3
- data/share/debian/postrm +0 -3
- data/share/debian/rules +0 -61
- data/share/debian/templates +0 -10
@@ -0,0 +1,19 @@
|
|
1
|
+
Source: #PACKAGE#
|
2
|
+
Maintainer: #USERNAME# <#EMAIL#>
|
3
|
+
Section: #SECTION#
|
4
|
+
Priority: #PRIORITY#
|
5
|
+
Build-Depends: #PALLET_DEPS#, #BUILD_DEPS#
|
6
|
+
Standards-Version: #POLICY#
|
7
|
+
|
8
|
+
Package: #PACKAGE#
|
9
|
+
Architecture: #ARCHITECTURE#
|
10
|
+
Section: #SECTION#
|
11
|
+
Priority: #PRIORITY#
|
12
|
+
Depends: ${shlibs:Depends}, ${misc:Depends}, #DEPENDS#
|
13
|
+
Recommends: #RECOMMENDS#
|
14
|
+
Suggests: #SUGGESTS#
|
15
|
+
Conflicts: #CONFLICTS#
|
16
|
+
Provides: #PROVIDES#
|
17
|
+
Enhances: #ENHANCES#
|
18
|
+
Description: #SUMMARY#
|
19
|
+
#DESCRIPTION#
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/make -f
|
2
|
+
|
3
|
+
build:
|
4
|
+
rake package:#TASKNAME#:build
|
5
|
+
|
6
|
+
clean:
|
7
|
+
rake package:#TASKNAME#:clean
|
8
|
+
|
9
|
+
# Either binary-indep or binary-arch, depending on which one isn't
|
10
|
+
# actually used. Both must be present.
|
11
|
+
binary-#TARGET-UNUSED#:
|
12
|
+
|
13
|
+
# Either binary-indep or binary-arch, depending on which one is
|
14
|
+
# actually used. Both must be present.
|
15
|
+
binary-#TARGET-USED#: build
|
16
|
+
rake package:#TASKNAME#:package
|
17
|
+
# dh_strip
|
18
|
+
# dh_makeshlibs
|
19
|
+
# dh_shlibdeps
|
20
|
+
# dh_gencontrol
|
21
|
+
# dh_md5sums
|
22
|
+
# dh_builddeb
|
23
|
+
|
24
|
+
binary: binary-indep binary-arch
|
25
|
+
.PHONY: build clean binary-indep binary-arch binary
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: pallet
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.
|
7
|
-
date: 2007-
|
6
|
+
version: 1.5.0
|
7
|
+
date: 2007-06-03 00:00:00 -04:00
|
8
8
|
summary: Automated packaging tool for different languages and OSes
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
|
-
email:
|
11
|
+
email: stephen@touset.org
|
12
12
|
homepage:
|
13
13
|
rubyforge_project:
|
14
|
-
description:
|
14
|
+
description: Pallet is a tool to allow developers to package their software for a multitude of operating system packaging formats. Currently-supported package types include Ruby Gems and Debian packages.
|
15
15
|
autorequire:
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
@@ -27,28 +27,19 @@ signing_key:
|
|
27
27
|
cert_chain:
|
28
28
|
post_install_message:
|
29
29
|
authors:
|
30
|
-
- Stephen Touset
|
30
|
+
- Stephen Karl Touset
|
31
31
|
files:
|
32
|
-
- lib/
|
33
|
-
- lib/install_spec.rb
|
32
|
+
- lib/installer.rb
|
34
33
|
- lib/pallet.rb
|
35
|
-
- lib/
|
36
|
-
- lib/pallet/gem.rb
|
34
|
+
- lib/pallet
|
37
35
|
- lib/pallet/deb.rb
|
36
|
+
- lib/pallet/gem.rb
|
38
37
|
- share/debian
|
39
|
-
- share/debian/
|
40
|
-
- share/debian/
|
41
|
-
- share/debian/
|
42
|
-
- share/debian/
|
43
|
-
- share/debian/
|
44
|
-
- share/debian/postrm
|
45
|
-
- share/debian/config
|
46
|
-
- share/debian/install
|
47
|
-
- share/debian/conffiles
|
48
|
-
- share/debian/copyright
|
49
|
-
- share/debian/docs
|
50
|
-
- share/debian/rules
|
51
|
-
- share/debian/templates
|
38
|
+
- share/debian/source
|
39
|
+
- share/debian/source/changelog
|
40
|
+
- share/debian/source/control
|
41
|
+
- share/debian/source/rules
|
42
|
+
- share/debian/source/substvars
|
52
43
|
- CHANGELOG
|
53
44
|
- README
|
54
45
|
test_files: []
|
@@ -65,9 +56,8 @@ executables: []
|
|
65
56
|
|
66
57
|
extensions: []
|
67
58
|
|
68
|
-
requirements:
|
69
|
-
|
70
|
-
- dpkg-dev
|
59
|
+
requirements: []
|
60
|
+
|
71
61
|
dependencies:
|
72
62
|
- !ruby/object:Gem::Dependency
|
73
63
|
name: rake
|
data/lib/dependencies.rb
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
module Kernel
|
2
|
-
|
3
|
-
#
|
4
|
-
# Tests to see if we're in rake, and any task given on the command
|
5
|
-
# line is equal to or in the namespace of _name_.
|
6
|
-
#
|
7
|
-
def in_rake_task?(name)
|
8
|
-
$0 =~ /rake/ && ARGV.grep(/\A#{name}/).length != 0
|
9
|
-
end
|
10
|
-
|
11
|
-
#
|
12
|
-
# Requires the library as a build dependency for Pallet, which
|
13
|
-
# ensures it will be loaded whenever the package task is run.
|
14
|
-
#
|
15
|
-
def build_dependency(lib)
|
16
|
-
require lib
|
17
|
-
end
|
18
|
-
|
19
|
-
#
|
20
|
-
# Requires the given library, ignoring any failures if we're in a
|
21
|
-
# package build task.
|
22
|
-
#
|
23
|
-
def runtime_dependency(lib)
|
24
|
-
if in_rake_task? Pallet::NAMESPACE
|
25
|
-
require lib rescue nil
|
26
|
-
else
|
27
|
-
require lib
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
|
33
|
-
#
|
34
|
-
# Override method_missing and const_missing if we're running a pallet
|
35
|
-
# packaging task.
|
36
|
-
#
|
37
|
-
if in_rake_task? Pallet::NAMESPACE
|
38
|
-
module Kernel #:nodoc:
|
39
|
-
def method_missing(name); nil; end
|
40
|
-
end
|
41
|
-
class Module #:nodoc:
|
42
|
-
def const_missing(name); nil; end
|
43
|
-
end
|
44
|
-
end
|
data/lib/install_spec.rb
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
class InstallSpec
|
2
|
-
|
3
|
-
# The directory or file to move from.
|
4
|
-
attr_accessor :source
|
5
|
-
|
6
|
-
# The directory to move any matching files to.
|
7
|
-
attr_accessor :destination
|
8
|
-
|
9
|
-
# Extra attributes for the install specification. Supported
|
10
|
-
# attributes are +:glob+, to change the default globbing pattern, and
|
11
|
-
# +:conf+, which marks the set of files as configuration files.
|
12
|
-
attr_accessor :attributes
|
13
|
-
|
14
|
-
DEFAULT_GLOB = '**/*'
|
15
|
-
EXTRA_SEPARATORS = %r{^/+(.*)/+$}
|
16
|
-
|
17
|
-
#
|
18
|
-
# Initializes the InstallSpec, as a shortcut for InstallSpec#new
|
19
|
-
#
|
20
|
-
def self.[](source, destination, attributes = {})
|
21
|
-
new(source, destination, attributes)
|
22
|
-
end
|
23
|
-
|
24
|
-
#
|
25
|
-
# Initializes the InstallSpec. Available attributes are +:conf+ and
|
26
|
-
# +:glob+. Accepts a block for backwards compatibility, although
|
27
|
-
# this usage is deprecated.
|
28
|
-
#
|
29
|
-
def initialize(source, destination, attributes = {})
|
30
|
-
|
31
|
-
self.source = source
|
32
|
-
self.destination = destination
|
33
|
-
self.attributes = attributes
|
34
|
-
|
35
|
-
# yield for more initialization, for backwards-compatibility
|
36
|
-
# purposes
|
37
|
-
if block_given?
|
38
|
-
puts "WARNING: DEPRECATED USAGE OF INSTALLSPEC. NO LONGER ACCEPTS A BLOCK PARAMETER."
|
39
|
-
yield s = Struct.new(:source, :destination, :glob, :conffiles).new
|
40
|
-
self.source = s.source if s.source
|
41
|
-
self.destination = s.destination if s.destination
|
42
|
-
self.attributes[:glob] = s.glob
|
43
|
-
self.attributes[:conf] = s.conffiles
|
44
|
-
end
|
45
|
-
|
46
|
-
|
47
|
-
# remove any leading /'s, since we should be dealing only with
|
48
|
-
# relative directory paths
|
49
|
-
source.sub! EXTRA_SEPARATORS, '\1'
|
50
|
-
destination.sub! EXTRA_SEPARATORS, '\1'
|
51
|
-
|
52
|
-
# update attributes with the defaults if needed
|
53
|
-
self.attributes[:glob] ||= DEFAULT_GLOB
|
54
|
-
self.attributes[:conf] ||= !! destination.match(%r{/etc|etc/|\Aetc\z})
|
55
|
-
|
56
|
-
end
|
57
|
-
|
58
|
-
#
|
59
|
-
# A hash of all files in _source_ mapping to their destination.
|
60
|
-
#
|
61
|
-
def files
|
62
|
-
hash_to_dest(Dir[pattern].find_all {|f| File.file? f })
|
63
|
-
end
|
64
|
-
|
65
|
-
#
|
66
|
-
# A hash of all directories in _source_ mapped to their destination.
|
67
|
-
#
|
68
|
-
def directories
|
69
|
-
hash_to_dest(Dir[pattern].find_all {|f| File.directory? f } << source)
|
70
|
-
end
|
71
|
-
|
72
|
-
private
|
73
|
-
|
74
|
-
#
|
75
|
-
# The full search pattern to use when looking for files.
|
76
|
-
#
|
77
|
-
def pattern
|
78
|
-
File.directory?(source) ? File.join(source, attributes[:glob]) : source
|
79
|
-
end
|
80
|
-
|
81
|
-
#
|
82
|
-
# Creates a hash mapping everything in _files_ beginning with _source_
|
83
|
-
# to its corresponding location in _destination_.
|
84
|
-
#
|
85
|
-
def hash_to_dest(files)
|
86
|
-
Hash[*files.map {|f| [f, f.sub(/^#{source}/, destination)] }.flatten]
|
87
|
-
end
|
88
|
-
|
89
|
-
end
|
data/share/debian/changelog
DELETED
data/share/debian/compat
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
5
|
data/share/debian/conffiles
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
#CONFFILES#
|
data/share/debian/config
DELETED
data/share/debian/control
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
Source: #PACKAGE#
|
2
|
-
Section: non-free/damballa
|
3
|
-
Priority: extra
|
4
|
-
Maintainer: #USERNAME# <#EMAIL#>
|
5
|
-
Build-Depends: #BUILD_DEPS#
|
6
|
-
Standards-Version: #POLICY#
|
7
|
-
|
8
|
-
Package: #PACKAGE#
|
9
|
-
Architecture: #ARCHITECTURE#
|
10
|
-
Depends: ${shlibs:Depends}, ${misc:Depends}, #DEPENDS#
|
11
|
-
Description: #SUMMARY#
|
12
|
-
#DESCRIPTION#
|
data/share/debian/copyright
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
This package was created automatically using pallet, for #USERNAME#
|
2
|
-
<#EMAIL#> on #DATE#.
|
3
|
-
|
4
|
-
This software is for internal use at Damballa, Inc. only. Copyrights
|
5
|
-
are claimed on all components of this package owned by Damballa.
|
6
|
-
|
7
|
-
No rights to use, distribute, or modify this program are granted.
|
data/share/debian/dirs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
#DIRECTORIES#
|
data/share/debian/docs
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
#DOCS#
|
data/share/debian/install
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
#FILES#
|
data/share/debian/postinst
DELETED
data/share/debian/postrm
DELETED
data/share/debian/rules
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
#!/usr/bin/make -f
|
2
|
-
|
3
|
-
# Uncomment this to turn on verbose mode.
|
4
|
-
#export DH_VERBOSE=1
|
5
|
-
|
6
|
-
# The Debhelper compatibility level to use
|
7
|
-
#export DH_COMPAT=4
|
8
|
-
|
9
|
-
# Debian policy recommended CFLAGS
|
10
|
-
CFLAGS = -g -O2 -Wall
|
11
|
-
|
12
|
-
build: build-stamp
|
13
|
-
build-stamp:
|
14
|
-
dh_testdir
|
15
|
-
#MAKE#
|
16
|
-
touch $@
|
17
|
-
|
18
|
-
clean:
|
19
|
-
dh_testdir
|
20
|
-
dh_testroot
|
21
|
-
rm -f build-stamp
|
22
|
-
exit
|
23
|
-
#CLEAN#
|
24
|
-
dh_clean
|
25
|
-
|
26
|
-
install: build
|
27
|
-
dh_testdir
|
28
|
-
dh_testroot
|
29
|
-
dh_clean
|
30
|
-
dh_installdirs
|
31
|
-
dh_install
|
32
|
-
#INSTALL#
|
33
|
-
|
34
|
-
# Either binary-indep or binary-arch, depending on which one isn't
|
35
|
-
# actually used. Both must be present.
|
36
|
-
binary-#UNUSED-MODE#: build install
|
37
|
-
|
38
|
-
# Either binary-indep or binary-arch, depending on which one is
|
39
|
-
# actually used. Both must be present.
|
40
|
-
binary-#MODE#: build install
|
41
|
-
dh_testdir
|
42
|
-
dh_testroot
|
43
|
-
dh_installchangelogs #CHANGELOG#
|
44
|
-
dh_installdocs -X.svn
|
45
|
-
dh_installdebconf
|
46
|
-
dh_installlogrotate
|
47
|
-
dh_installinit
|
48
|
-
dh_installcron
|
49
|
-
dh_installman
|
50
|
-
dh_strip
|
51
|
-
dh_compress
|
52
|
-
dh_fixperms
|
53
|
-
dh_makeshlibs
|
54
|
-
dh_installdeb
|
55
|
-
dh_shlibdeps
|
56
|
-
dh_gencontrol
|
57
|
-
dh_md5sums
|
58
|
-
dh_builddeb
|
59
|
-
|
60
|
-
binary: binary-indep binary-arch
|
61
|
-
.PHONY: build clean binary-indep binary-arch binary install
|
data/share/debian/templates
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
Template: #PACKAGE#/requirements
|
2
|
-
Type: note
|
3
|
-
Description: Additional requirements must be filled!
|
4
|
-
This package requires the following software or conditions which
|
5
|
-
cannot be fulfilled by apt:
|
6
|
-
.
|
7
|
-
#REQUIREMENTS#
|
8
|
-
.
|
9
|
-
Until you satisfy these requirements, this software WILL NOT WORK. So
|
10
|
-
satisfy them. Now.
|