tpkg 2.3.3 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +20 -0
  5. data/Portfile +39 -0
  6. data/Portfile.template +39 -0
  7. data/README.md +43 -0
  8. data/Rakefile +468 -18
  9. data/bin/gem2tpkg +2 -2
  10. data/bin/tpkg +18 -13
  11. data/bin/tpkg_uploader +132 -0
  12. data/ca.pem +1 -0
  13. data/control +7 -0
  14. data/depend +3 -0
  15. data/externals-etch/authorized_keys +40 -0
  16. data/externals-etch/group +9 -0
  17. data/externals-etch/iptables +38 -0
  18. data/externals-etch/limits +30 -0
  19. data/externals-etch/nfs +30 -0
  20. data/externals-etch/sudo +30 -0
  21. data/externals-etch/supplemental_groups +8 -0
  22. data/externals-etch/sysctl +30 -0
  23. data/externals-etch/user +41 -0
  24. data/externals/group +39 -0
  25. data/externals/supplemental_groups +48 -0
  26. data/externals/user +39 -0
  27. data/lib/tpkg.rb +260 -991
  28. data/lib/tpkg/os.rb +164 -0
  29. data/lib/tpkg/os/debian.rb +159 -0
  30. data/lib/tpkg/os/freebsd.rb +113 -0
  31. data/lib/tpkg/os/macosx.rb +113 -0
  32. data/lib/tpkg/os/redhat.rb +173 -0
  33. data/lib/tpkg/os/solaris.rb +101 -0
  34. data/lib/tpkg/os/windows.rb +26 -0
  35. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify.rb +67 -0
  36. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/errors.rb +127 -0
  37. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/kwalify.schema.yaml +58 -0
  38. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/main.rb +442 -0
  39. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/messages.rb +173 -0
  40. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/meta-validator.rb +275 -0
  41. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/parser/base.rb +127 -0
  42. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/parser/yaml.rb +841 -0
  43. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/rule.rb +559 -0
  44. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/templates/genclass-java.eruby +222 -0
  45. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/templates/genclass-php.eruby +104 -0
  46. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/templates/genclass-ruby.eruby +113 -0
  47. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/types.rb +156 -0
  48. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/util.rb +158 -0
  49. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/util/assert-text-equal.rb +46 -0
  50. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/util/hash-interface.rb +18 -0
  51. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/util/hashlike.rb +51 -0
  52. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/util/option-parser.rb +220 -0
  53. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/util/ordered-hash.rb +57 -0
  54. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/util/testcase-helper.rb +112 -0
  55. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/validator.rb +282 -0
  56. data/lib/tpkg/thirdparty/kwalify-0.7.2/lib/kwalify/yaml-parser.rb +870 -0
  57. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh.rb +219 -0
  58. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/agent.rb +179 -0
  59. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/constants.rb +18 -0
  60. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/key_manager.rb +219 -0
  61. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/methods/abstract.rb +60 -0
  62. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/methods/hostbased.rb +71 -0
  63. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/methods/keyboard_interactive.rb +66 -0
  64. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/methods/password.rb +39 -0
  65. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/methods/publickey.rb +92 -0
  66. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/pageant.rb +183 -0
  67. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/authentication/session.rb +134 -0
  68. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/buffer.rb +340 -0
  69. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/buffered_io.rb +198 -0
  70. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/config.rb +205 -0
  71. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/connection/channel.rb +630 -0
  72. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/connection/constants.rb +33 -0
  73. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/connection/session.rb +597 -0
  74. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/connection/term.rb +178 -0
  75. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/errors.rb +85 -0
  76. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/key_factory.rb +102 -0
  77. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/known_hosts.rb +129 -0
  78. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/loggable.rb +61 -0
  79. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/packet.rb +102 -0
  80. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/prompt.rb +93 -0
  81. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/proxy/command.rb +75 -0
  82. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/proxy/errors.rb +14 -0
  83. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/proxy/http.rb +94 -0
  84. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/proxy/socks4.rb +70 -0
  85. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/proxy/socks5.rb +142 -0
  86. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/ruby_compat.rb +43 -0
  87. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/service/forward.rb +288 -0
  88. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/test.rb +89 -0
  89. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/test/channel.rb +129 -0
  90. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/test/extensions.rb +152 -0
  91. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/test/kex.rb +44 -0
  92. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/test/local_packet.rb +51 -0
  93. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/test/packet.rb +81 -0
  94. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/test/remote_packet.rb +38 -0
  95. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/test/script.rb +157 -0
  96. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/test/socket.rb +64 -0
  97. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/algorithms.rb +384 -0
  98. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/cipher_factory.rb +97 -0
  99. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/constants.rb +30 -0
  100. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/hmac.rb +31 -0
  101. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/hmac/abstract.rb +79 -0
  102. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/hmac/md5.rb +12 -0
  103. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/hmac/md5_96.rb +11 -0
  104. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/hmac/none.rb +15 -0
  105. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/hmac/sha1.rb +13 -0
  106. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/hmac/sha1_96.rb +11 -0
  107. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/identity_cipher.rb +55 -0
  108. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/kex.rb +13 -0
  109. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb +208 -0
  110. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb +77 -0
  111. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/openssl.rb +127 -0
  112. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/packet_stream.rb +235 -0
  113. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/server_version.rb +71 -0
  114. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/session.rb +276 -0
  115. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/transport/state.rb +206 -0
  116. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/verifiers/lenient.rb +30 -0
  117. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/verifiers/null.rb +12 -0
  118. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/verifiers/strict.rb +53 -0
  119. data/lib/tpkg/thirdparty/net-ssh-2.1.0/lib/net/ssh/version.rb +62 -0
  120. data/lib/tpkg/version.rb +3 -0
  121. data/man/man1/cpan2tpkg.1 +82 -0
  122. data/man/man1/gem2tpkg.1 +120 -0
  123. data/man/man1/tpkg.1 +411 -0
  124. data/pkginfo +8 -0
  125. data/postinstall.solaris +11 -0
  126. data/postremove.solaris +16 -0
  127. data/schema/schema-1.0.5.yml +0 -0
  128. data/schema/schema-1.0.6.yml +0 -0
  129. data/schema/schema-1.0.7.yml +0 -0
  130. data/schema/schema-1.0.8.yml +0 -0
  131. data/schema/schema-1.0.9.yml +0 -0
  132. data/schema/schema.yml +0 -0
  133. data/schema/tpkg-1.0.0.dtd +0 -0
  134. data/schema/tpkg-1.0.1.dtd +0 -0
  135. data/schema/tpkg-1.0.2.dtd +0 -0
  136. data/schema/tpkg-1.0.3.dtd +0 -0
  137. data/schema/tpkg-1.0.4.dtd +0 -0
  138. data/schema/tpkg-1.0.5.dtd +0 -0
  139. data/schema/tpkg-1.0.6.dtd +0 -0
  140. data/schema/tpkg-1.0.7.dtd +0 -0
  141. data/schema/tpkg-1.0.8.dtd +0 -0
  142. data/schema/tpkg-1.0.9.dtd +0 -0
  143. data/schema/tpkg.dtd +0 -0
  144. data/test/TODO +30 -0
  145. data/test/premadetestpkg/pkg_without_file_metadata-1.0-1.tpkg +0 -0
  146. data/test/test_checksum.rb +53 -0
  147. data/test/test_compress.rb +55 -0
  148. data/test/test_conflict.rb +41 -0
  149. data/test/test_crontabs.rb +398 -0
  150. data/test/test_dependency.rb +1113 -0
  151. data/test/test_downgrade.rb +80 -0
  152. data/test/test_download.rb +95 -0
  153. data/test/test_encrypt.rb +136 -0
  154. data/test/test_filemetadata.rb +131 -0
  155. data/test/test_initscript.rb +93 -0
  156. data/test/test_install.rb +186 -0
  157. data/test/test_lock.rb +82 -0
  158. data/test/test_make.rb +410 -0
  159. data/test/test_metadata.rb +805 -0
  160. data/test/test_misc.rb +379 -0
  161. data/test/test_options.rb +1711 -0
  162. data/test/test_os.rb +193 -0
  163. data/test/test_os_debian.rb +99 -0
  164. data/test/test_os_freebsd.rb +89 -0
  165. data/test/test_os_macosx.rb +79 -0
  166. data/test/test_os_redhat.rb +124 -0
  167. data/test/test_os_solaris.rb +85 -0
  168. data/test/test_os_windows.rb +26 -0
  169. data/test/test_query.rb +134 -0
  170. data/test/test_remove.rb +539 -0
  171. data/test/test_tar.rb +99 -0
  172. data/test/test_unpack.rb +977 -0
  173. data/test/test_upgrade.rb +398 -0
  174. data/test/test_version.rb +54 -0
  175. data/test/testcmds/crontab +14 -0
  176. data/test/testcmds/debian/apt-cache +145 -0
  177. data/test/testcmds/debian/dpkg-query +16 -0
  178. data/test/testcmds/freebsd/pkg_info +13 -0
  179. data/test/testcmds/macosx/port +35 -0
  180. data/test/testcmds/redhat/rpmbuild +6 -0
  181. data/test/testcmds/redhat/yum +90 -0
  182. data/test/testcmds/solaris/pkginfo +25 -0
  183. data/test/testcmds/solaris/pkgutil +36 -0
  184. data/test/testpkg/reloc/encfile +2 -0
  185. data/test/testpkg/reloc/file +2 -0
  186. data/test/testpkg/reloc/precryptfile +1 -0
  187. data/test/testpkg/reloc/precryptfile.plaintext +3 -0
  188. data/test/testpkg/tpkg-bad-ownergroup.xml +25 -0
  189. data/test/testpkg/tpkg-bad-ownergroup.yml +18 -0
  190. data/test/testpkg/tpkg-default-perms.xml +28 -0
  191. data/test/testpkg/tpkg-default-perms.yml +20 -0
  192. data/test/testpkg/tpkg-good-ownergroup.xml +25 -0
  193. data/test/testpkg/tpkg-good-ownergroup.yml +18 -0
  194. data/test/testpkg/tpkg-nativedeps.yml +13 -0
  195. data/test/testpkg/tpkg-nofiles.xml +14 -0
  196. data/test/testpkg/tpkg-nofiles.yml +9 -0
  197. data/test/testpkg/tpkg.xml +35 -0
  198. data/test/testpkg/tpkg.yml +25 -0
  199. data/test/tpkgtest.rb +300 -0
  200. data/tpkg.conf +16 -0
  201. data/tpkg.gemspec +24 -0
  202. data/tpkg.spec +28 -0
  203. data/tpkg.xml +17 -0
  204. data/tpkg_profile.sh +32 -0
  205. metadata +306 -31
@@ -0,0 +1,14 @@
1
+ #!/bin/sh
2
+
3
+ # The test suite calls this script with an invented (i.e. not standard for the
4
+ # crontab command) "-f <filename>" option. We use that filename as if it were
5
+ # the user's crontab and otherwise behave as the normal crontab command.
6
+
7
+ case "$3" in
8
+ '-l')
9
+ cat "$2"
10
+ ;;
11
+ *)
12
+ cp "$3" "$2"
13
+ ;;
14
+ esac
@@ -0,0 +1,145 @@
1
+ #!/bin/sh
2
+
3
+ # These are example outputs captured from running the actual apt-cache
4
+ # command on a Debian system
5
+
6
+ case "$2" in
7
+ # Note that the ruby entry contains backticks, which have been escaped here
8
+ 'ruby1.9.1')
9
+ cat <<-EOF
10
+ Package: ruby1.9.1
11
+ Version: 1.9.3.194-7
12
+ Installed-Size: 252
13
+ Maintainer: akira yamada <akira@debian.org>
14
+ Architecture: amd64
15
+ Replaces: irb1.9.1, rdoc1.9.1, rubygems1.9.1
16
+ Provides: irb1.9.1, rdoc1.9.1, ruby-interpreter, rubygems1.9.1
17
+ Depends: libruby1.9.1 (= 1.9.3.194-7), libc6 (>= 2.2.5)
18
+ Suggests: ruby1.9.1-examples, ri1.9.1, graphviz, ruby1.9.1-dev, ruby-switch
19
+ Conflicts: irb1.9.1 (<< 1.9.1.378-2~), rdoc1.9.1 (<< 1.9.1.378-2~), ri (<= 4.5), ri1.9.1 (<< 1.9.2.180-3~), ruby (<= 4.5), rubygems1.9.1
20
+ Description-en: Interpreter of object-oriented scripting language Ruby
21
+ Ruby is the interpreted scripting language for quick and easy
22
+ object-oriented programming. It has many features to process text
23
+ files and to do system management tasks (as in perl). It is simple,
24
+ straight-forward, and extensible.
25
+ .
26
+ In the name of this package, \`1.9.1' indicates the Ruby library
27
+ compatibility version. This package currently provides the \`1.9.3'
28
+ branch of Ruby, which is compatible with the \`1.9.1' branch.
29
+ Homepage: http://www.ruby-lang.org/
30
+ Description-md5: 5a3bebf22800260bf542248151806d7c
31
+ Tag: devel::interpreter, devel::lang:ruby, interface::commandline,
32
+ role::program, scope::utility
33
+ Section: ruby
34
+ Priority: optional
35
+ Filename: pool/main/r/ruby1.9.1/ruby1.9.1_1.9.3.194-7_amd64.deb
36
+ Size: 208232
37
+ MD5sum: 042621944ea84edd642758fc54f71e46
38
+ SHA1: 6c97de5cb4daaad9e58b91b778eb152fb928a579
39
+ SHA256: 7f71ce8d9be5e33fcd16cbbc6ad67ed2e15e9cf0fe78f589738c2694f9a168fd
40
+
41
+ Package: ruby1.9.1
42
+ Status: install ok installed
43
+ Priority: optional
44
+ Section: ruby
45
+ Installed-Size: 252
46
+ Maintainer: akira yamada <akira@debian.org>
47
+ Architecture: amd64
48
+ Version: 1.9.3.194-3
49
+ Replaces: irb1.9.1, rdoc1.9.1, rubygems1.9.1
50
+ Provides: irb1.9.1, rdoc1.9.1, ruby-interpreter, rubygems1.9.1
51
+ Depends: libruby1.9.1 (= 1.9.3.194-3), libc6 (>= 2.2.5)
52
+ Suggests: ruby1.9.1-examples, ri1.9.1, graphviz, ruby1.9.1-dev, ruby-switch
53
+ Conflicts: irb1.9.1 (<< 1.9.1.378-2~), rdoc1.9.1 (<< 1.9.1.378-2~), ri (<= 4.5), ri1.9.1 (<< 1.9.2.180-3~), ruby (<= 4.5), rubygems1.9.1
54
+ Description-en: Interpreter of object-oriented scripting language Ruby
55
+ Ruby is the interpreted scripting language for quick and easy
56
+ object-oriented programming. It has many features to process text
57
+ files and to do system management tasks (as in perl). It is simple,
58
+ straight-forward, and extensible.
59
+ .
60
+ In the name of this package, \`1.9.1' indicates the Ruby library
61
+ compatibility version. This package currently provides the \`1.9.3'
62
+ branch of Ruby, which is compatible with the \`1.9.1' branch.
63
+ Homepage: http://www.ruby-lang.org/
64
+
65
+ EOF
66
+ ;;
67
+ 'exim4')
68
+ cat <<-EOF
69
+ Package: exim4
70
+ Version: 4.80-7
71
+ Installed-Size: 44
72
+ Maintainer: Exim4 Maintainers <pkg-exim4-maintainers@lists.alioth.debian.org>
73
+ Architecture: all
74
+ Depends: debconf (>= 0.5) | debconf-2.0, debconf (>= 1.4.69) | cdebconf (>= 0.39), exim4-base (>= 4.80), exim4-daemon-light | exim4-daemon-heavy | exim4-daemon-custom
75
+ Description-en: metapackage to ease Exim MTA (v4) installation
76
+ Exim (v4) is a mail transport agent. exim4 is the metapackage depending
77
+ on the essential components for a basic exim4 installation.
78
+ .
79
+ The Debian exim4 packages have their own web page,
80
+ http://wiki.debian.org/PkgExim4. There is also a Debian-specific
81
+ FAQ list. Information about the way the Debian packages are
82
+ configured can be found in
83
+ /usr/share/doc/exim4-base/README.Debian.gz, which additionally contains
84
+ information about the way the Debian binary packages are built. The
85
+ very extensive upstream documentation is shipped in
86
+ /usr/share/doc/exim4-base/spec.txt.gz. To repeat the debconf-driven
87
+ configuration process in a standard setup, invoke dpkg-reconfigure
88
+ exim4-config. There is a Debian-centered mailing list,
89
+ pkg-exim4-users@lists.alioth.debian.org. Please ask Debian-specific
90
+ questions there, and only write to the upstream exim-users mailing
91
+ list if you are sure that your question is not Debian-specific. You
92
+ can find the subscription web page on
93
+ http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
94
+ Homepage: http://www.exim.org/
95
+ Description-md5: 458592f74d76e446735736c1d55ce615
96
+ Tag: implemented-in::c, interface::daemon, mail::delivery-agent, mail::smtp,
97
+ mail::transport-agent, network::service, protocol::ipv6,
98
+ protocol::smtp, protocol::ssl, role::dummy, role::metapackage,
99
+ works-with::mail
100
+ Section: mail
101
+ Priority: standard
102
+ Filename: pool/main/e/exim4/exim4_4.80-7_all.deb
103
+ Size: 7806
104
+ MD5sum: 90b93cb90290d18ee862abe07186fa95
105
+ SHA1: ae1df5e225651cc8638a2f6d016a3b399bf3e0d2
106
+ SHA256: 4764002023e6828b3b336977f8be799440ccce84d0aa19620f9a58606491fa3d
107
+
108
+ Package: exim4
109
+ Status: deinstall ok config-files
110
+ Priority: standard
111
+ Section: mail
112
+ Installed-Size: 44
113
+ Maintainer: Exim4 Maintainers <pkg-exim4-maintainers@lists.alioth.debian.org>
114
+ Architecture: all
115
+ Version: 4.80-5.1
116
+ Config-Version: 4.80-5.1
117
+ Depends: debconf (>= 0.5) | debconf-2.0, debconf (>= 1.4.69) | cdebconf (>= 0.39), exim4-base (>= 4.80), exim4-daemon-light | exim4-daemon-heavy | exim4-daemon-custom
118
+ Description-en: metapackage to ease Exim MTA (v4) installation
119
+ Exim (v4) is a mail transport agent. exim4 is the metapackage depending
120
+ on the essential components for a basic exim4 installation.
121
+ .
122
+ The Debian exim4 packages have their own web page,
123
+ http://wiki.debian.org/PkgExim4. There is also a Debian-specific
124
+ FAQ list. Information about the way the Debian packages are
125
+ configured can be found in
126
+ /usr/share/doc/exim4-base/README.Debian.gz, which additionally contains
127
+ information about the way the Debian binary packages are built. The
128
+ very extensive upstream documentation is shipped in
129
+ /usr/share/doc/exim4-base/spec.txt.gz. To repeat the debconf-driven
130
+ configuration process in a standard setup, invoke dpkg-reconfigure
131
+ exim4-config. There is a Debian-centered mailing list,
132
+ pkg-exim4-users@lists.alioth.debian.org. Please ask Debian-specific
133
+ questions there, and only write to the upstream exim-users mailing
134
+ list if you are sure that your question is not Debian-specific. You
135
+ can find the subscription web page on
136
+ http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users
137
+ Homepage: http://www.exim.org/
138
+
139
+ EOF
140
+ ;;
141
+ 'bogus')
142
+ printf "N: Unable to locate package bogus\n"
143
+ printf "E: No packages found\n" >&2
144
+ ;;
145
+ esac
@@ -0,0 +1,16 @@
1
+ #!/bin/sh
2
+
3
+ # These are example outputs captured from running the actual dpkg-query
4
+ # command on a Debian system
5
+
6
+ case "$3" in
7
+ 'ruby1.9.1')
8
+ printf "ruby1.9.1 1.9.3.194-3 install ok installed\n"
9
+ ;;
10
+ 'exim4')
11
+ printf "exim4 4.80-5.1 deinstall ok config-files\n"
12
+ ;;
13
+ 'bogus')
14
+ printf "dpkg-query: no packages found matching bogus\n" >&2
15
+ ;;
16
+ esac
@@ -0,0 +1,13 @@
1
+ #!/bin/sh
2
+
3
+ # These are example outputs captured from running the actual pkg_info
4
+ # command on a FreeBSD system
5
+
6
+ case "$2" in
7
+ 'curl-*')
8
+ printf "curl-7.24.0\n"
9
+ ;;
10
+ 'bogus')
11
+ printf ""
12
+ ;;
13
+ esac
@@ -0,0 +1,35 @@
1
+ #!/bin/sh
2
+
3
+ # These are example outputs captured from running the actual port
4
+ # command on a Mac OS X system
5
+
6
+ case "$1" in
7
+ 'installed')
8
+ case "$2" in
9
+ 'curl')
10
+ printf "Warning: port definitions are more than two weeks old, consider using selfupdate\n" >&2
11
+ cat <<-EOF
12
+ The following ports are currently installed:
13
+ curl @7.26.0_0+ssl
14
+ curl @7.27.0_1+ssl (active)
15
+ EOF
16
+ ;;
17
+ 'ruby186')
18
+ printf "Warning: port definitions are more than two weeks old, consider using selfupdate\n" >&2
19
+ printf "None of the specified ports are installed.\n"
20
+ ;;
21
+ esac
22
+ ;;
23
+ 'list')
24
+ case "$2" in
25
+ 'curl')
26
+ printf "Warning: port definitions are more than two weeks old, consider using selfupdate\n" >&2
27
+ printf "curl @7.28.1 net/curl\n"
28
+ ;;
29
+ 'ruby186')
30
+ printf "Warning: port definitions are more than two weeks old, consider using selfupdate\n" >&2
31
+ printf "ruby186 @1.8.6-p420 lang/ruby186\n"
32
+ ;;
33
+ esac
34
+ ;;
35
+ esac
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+
3
+ topdir=`echo "$3" | cut -d' ' -f2`
4
+ rpmdir="$topdir/RPMS/noarch"
5
+ mkdir -p "$rpmdir"
6
+ printf "This is a fake rpm" > "$rpmdir/test-1-1.noarch.rpm"
@@ -0,0 +1,90 @@
1
+ #!/bin/sh
2
+
3
+ # These are example outputs captured from running the actual yum command on a
4
+ # CentOS system
5
+
6
+ case "$2" in
7
+ 'installed')
8
+ case "$3" in
9
+ 'curl')
10
+ cat <<-EOF
11
+ Loaded plugins: fastestmirror
12
+ Determining fastest mirrors
13
+ * base: mirror.atlanticmetro.net
14
+ * extras: dallas.tx.mirror.xygenhosting.com
15
+ * updates: mirrordenver.fdcservers.net
16
+ Installed Packages
17
+ Name : curl
18
+ Arch : i686
19
+ Version : 7.19.7
20
+ Release : 26.el6_2.4
21
+ Size : 343 k
22
+ Repo : installed
23
+ From repo : anaconda-CentOS-201207051201.i386
24
+ Summary : A utility for getting files from remote servers (FTP, HTTP, and
25
+ : others)
26
+ URL : http://curl.haxx.se/
27
+ License : MIT
28
+ Description : cURL is a tool for getting files from HTTP, FTP, FILE, LDAP,
29
+ : LDAPS, DICT, TELNET and TFTP servers, using any of the supported
30
+ : protocols. cURL is designed to work without user interaction or
31
+ : any kind of interactivity. cURL offers many useful capabilities,
32
+ : like proxy support, user authentication, FTP upload, HTTP post,
33
+ : and file transfer resume.
34
+
35
+ EOF
36
+ ;;
37
+ 'wget')
38
+ cat <<-EOF
39
+ Loaded plugins: fastestmirror
40
+ Loading mirror speeds from cached hostfile
41
+ * base: mirror.atlanticmetro.net
42
+ * extras: dallas.tx.mirror.xygenhosting.com
43
+ * updates: mirrordenver.fdcservers.net
44
+ EOF
45
+ printf "Error: No matching Packages to list\n" >&2
46
+ ;;
47
+ esac
48
+ ;;
49
+ 'available')
50
+ case "$3" in
51
+ 'curl')
52
+ cat <<-EOF
53
+ Loaded plugins: fastestmirror
54
+ Loading mirror speeds from cached hostfile
55
+ * base: mirror.atlanticmetro.net
56
+ * extras: dallas.tx.mirror.xygenhosting.com
57
+ * updates: mirrordenver.fdcservers.net
58
+ EOF
59
+ printf "Error: No matching Packages to list\n" >&2
60
+ ;;
61
+ 'wget')
62
+ cat <<-EOF
63
+ Loaded plugins: fastestmirror
64
+ Loading mirror speeds from cached hostfile
65
+ * base: mirror.atlanticmetro.net
66
+ * extras: dallas.tx.mirror.xygenhosting.com
67
+ * updates: mirrordenver.fdcservers.net
68
+ Available Packages
69
+ Name : wget
70
+ Arch : i686
71
+ Version : 1.12
72
+ Release : 1.4.el6
73
+ Size : 481 k
74
+ Repo : base
75
+ Summary : A utility for retrieving files using the HTTP or FTP protocols
76
+ URL : http://wget.sunsite.dk/
77
+ License : GPLv3+ and GFDL
78
+ Description : GNU Wget is a file retrieval utility which can use either the HTTP
79
+ : or FTP protocols. Wget features include the ability to work in the
80
+ : background while you are logged out, recursive retrieval of
81
+ : directories, file name wildcard matching, remote file timestamp
82
+ : storage and comparison, use of Rest with FTP servers and Range
83
+ : with HTTP servers to retrieve files over slow or unstable
84
+ : connections, support for Proxy servers, and configurability.
85
+
86
+ EOF
87
+ ;;
88
+ esac
89
+ ;;
90
+ esac
@@ -0,0 +1,25 @@
1
+ #!/bin/sh
2
+
3
+ # These are example outputs captured from running the actual pkginfo
4
+ # command on a Solaris system
5
+
6
+ case "$2" in
7
+ 'CSWcurl')
8
+ cat <<-EOF
9
+ CSWcurl curl - A command line tool and library for client-side URL transfers
10
+ (i386) 7.25.0,REV=2012.04.26
11
+ EOF
12
+ ;;
13
+ 'CSWwget')
14
+ printf "ERROR: information for \"CSWwget\" was not found\n" >&2
15
+ ;;
16
+ 'SUNWzfsu')
17
+ cat <<-EOF
18
+ SUNWzfsu ZFS (Usr)
19
+ (i386) 11.10.0,REV=2006.05.18.01.46
20
+ EOF
21
+ ;;
22
+ 'bogus')
23
+ printf "ERROR: information for \"bogus\" was not found\n" >&2
24
+ ;;
25
+ esac
@@ -0,0 +1,36 @@
1
+ #!/bin/sh
2
+
3
+ # These are example outputs captured from running the actual pkgutil
4
+ # command on a Solaris system
5
+
6
+ case "$3" in
7
+ 'CSWcurl')
8
+ cat <<-EOF
9
+ curl CSWcurl 7.25.0,REV=2012.04.26 118429
10
+ curl_devel_stub CSWcurldevel 7.25.0,REV=2012.04.26 1777
11
+ curl_rt_stub CSWcurlrt 7.25.0,REV=2012.04.26 1829
12
+ libcurl2 CSWlibcurl2 7.11.2,REV=2011.04.29 86010
13
+ libcurl3 CSWlibcurl3 7.15.5,REV=2011.04.29 109615
14
+ libcurl4 CSWlibcurl4 7.25.0,REV=2012.04.26 368611
15
+ libcurl4_feature CSWlibcurl4-feature 7.25.0,REV=2012.04.26 407147
16
+ libcurl_dev CSWlibcurl-dev 7.25.0,REV=2012.04.26 147545
17
+ php5_curl CSWphp5-curl 5.3.10,REV=2012.03.24 31214
18
+ php5curl_stub CSWphp5curl 5.3.10,REV=2012.03.24 2554
19
+ pm_www_curl CSWpm-www-curl 4.15,REV=2011.03.08 46727
20
+ pm_wwwcurl CSWpmwwwcurl 4.15,REV=2011.03.08 1756
21
+ py_curl CSWpy-curl 7.19.0,REV=2011.12.09 73408
22
+ EOF
23
+ ;;
24
+ 'CSWwget')
25
+ cat <<-EOF
26
+ wget CSWwget 1.13.4,REV=2012.05.12 858888
27
+ wgetpaste CSWwgetpaste 2.18,REV=2011.03.28 9560
28
+ EOF
29
+ ;;
30
+ 'SUNWzfsu')
31
+ printf ""
32
+ ;;
33
+ 'bogus')
34
+ printf ""
35
+ ;;
36
+ esac
@@ -0,0 +1,2 @@
1
+ This is a file that should be encrypted in the test package.
2
+
@@ -0,0 +1,2 @@
1
+ This is a regular file to put into the test package
2
+
@@ -0,0 +1 @@
1
+ Salted__T��C���2����E�uF�􎹤�J�5 �d8��0F�߯Ϥ�C�<��rR� `c��Yڵ��l;�v������9�4
@@ -0,0 +1,3 @@
1
+ This is a file that should be pre-encrypted and added to the test package.
2
+ It is encrypted with the password "password"
3
+
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE tpkg SYSTEM "http://tpkg.sourceforge.net/tpkg-1.0.dtd">
3
+ <tpkg>
4
+ <name>testpkg</name>
5
+ <version>1.0</version>
6
+ <package_version>1</package_version>
7
+ <maintainer>Maintainer</maintainer>
8
+ <operatingsystem>OS</operatingsystem>
9
+ <architecture>Architecture</architecture>
10
+ <description>Description</description>
11
+ <bugreporting>Bugreporting info</bugreporting>
12
+ <files>
13
+ <file_defaults>
14
+ <posix>
15
+ <owner>baduser</owner>
16
+ <group>badgroup</group>
17
+ <perms>0444</perms>
18
+ </posix>
19
+ </file_defaults>
20
+ <file>
21
+ <path>file</path>
22
+ <crontab/>
23
+ </file>
24
+ </files>
25
+ </tpkg>
@@ -0,0 +1,18 @@
1
+ name: testpkg
2
+ version: 1.0
3
+ package_version: 1
4
+ maintainer: Maintainer
5
+ operatingsystem: OS
6
+ architecture: Architecture
7
+ description: Description
8
+ bugreporting: Bugreporting info
9
+ files:
10
+ file_defaults:
11
+ posix:
12
+ owner: baduser
13
+ group: badgroup
14
+ perms: 0444
15
+ files:
16
+ - path: file
17
+ crontab: {}
18
+