Codebase list fusioninventory-agent / 302c199
Import Debian changes 2.2.3-3 fusioninventory-agent (2.2.3-3) unstable; urgency=low * Add a post{inst,rm} scripts to prepeare and clean up the config file, thanks Andreas Beckmann (closes: #679299) * Depends on libio-socket-ssl-perl instead of libnet-ssleay-perl directly * Migrate debian/copyright to Machine-readable format * Add a B-D on libio-socket-ssl-perl * Backport SSL cert from upstream, the ones from the archive were expired, thanks Gregor Herrmann and Lucas Nussbaum (closes: #684855) Gonéri Le Bouder authored 11 years ago Guillaume Bougard committed 5 years ago
10 changed file(s) with 546 addition(s) and 94 deletion(s). Raw diff Collapse all Expand all
0 fusioninventory-agent (2.2.3-3) unstable; urgency=low
1
2 * Add a post{inst,rm} scripts to prepeare and clean up
3 the config file, thanks Andreas Beckmann (closes: #679299)
4 * Depends on libio-socket-ssl-perl instead of libnet-ssleay-perl
5 directly
6 * Migrate debian/copyright to Machine-readable format
7 * Add a B-D on libio-socket-ssl-perl
8 * Backport SSL cert from upstream, the ones from the archive were expired,
9 thanks Gregor Herrmann and Lucas Nussbaum (closes: #684855)
10
11 -- Gonéri Le Bouder <goneri@rulezlan.org> Wed, 11 Jul 2012 12:11:55 -0300
12
013 fusioninventory-agent (2.2.3-2) unstable; urgency=low
114
215 * Add a dependency on ucf (closes: #679299)
1010 libipc-run-perl, libhttp-proxy-perl, libtext-template-perl,
1111 libjson-perl, libio-capture-perl,
1212 libtest-simple-perl, libtest-mockmodule-perl,
13 libhttp-server-simple-authen-perl, libhttp-daemon-perl
13 libhttp-server-simple-authen-perl, libhttp-daemon-perl,
14 libio-socket-ssl-perl
1415 Standards-Version: 3.9.3
1516 Homepage: http://fusioninventory.org/
1617 Vcs-Browser: http://git.debian.org/?p=users/goneri/fusioninventory-agent.git;a=summary
2526 libfile-which-perl, libxml-treepp-perl, libyaml-perl, libtext-template-perl,
2627 libjson-perl, pciutils, libhttp-daemon-perl,
2728 Suggests: smartmontools, read-edid
29 Recommends: libio-socket-ssl-perl
2830 Description: Hardware and software inventory tool (client)
2931 FusionInventory Agent is an application designed to help a network
3032 or system administrator to keep track of the hardware and software
0 It was downloaded from http://search.cpan.org/dist/FusionInventory-Agent/
0 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Contact: FusionInventory Team
2 Source: http://search.cpan.org/dist/FusionInventory-Agent/
3 Upstream-Name: FusionInventory-Agent
14
2 Upstream maintainer: Gonéri Le Bouder <goneri@rulezlan.org>
5 Files: *
6 Copyright: 2006-2010 OCS Inventory contributors
7 2010 FusionInventory Team
8 2007 Gonéri Le Bouder <goneri@rulezlan.org>
9 2008 Jean Parpaillon <jean.parpaillon@kerlabs.com>
10 2005-2010 Mandriva SA
11 License: GPL-2+
12 This program is free software; you can redistribute it
13 and/or modify it under the terms of the GNU General Public
14 License as published by the Free Software Foundation; either
15 version 2 of the License, or (at your option) any later
16 version.
17 .
18 This program is distributed in the hope that it will be
19 useful, but WITHOUT ANY WARRANTY; without even the implied
20 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
21 PURPOSE. See the GNU General Public License for more
22 details.
23 .
24 You should have received a copy of the GNU General Public
25 License along with this package; if not, write to the Free
26 Software Foundation, Inc., 51 Franklin St, Fifth Floor,
27 Boston, MA 02110-1301 USA
28 .
29 On Debian systems, the full text of the GNU General Public
30 License version 2 can be found in the file
31 `/usr/share/common-licenses/GPL-2'.
332
4 Copyright 2006-2010 OCS Inventory contributors
5 Copyright 2010 FusionInventory Team
6 Copyright 2005 Mandriva
7 Copyright 2007 Gonéri Le Bouder <goneri@rulezlan.org>
8 Copyright 2008 Jean Parpaillon <jean.parpaillon@kerlabs.com>
33 Files: debian/*
34 Copyright: 2012, Gonéri Le Bouder <goneri@rulezlan.org>
35 License: GPL-2+
36 This program is free software; you can redistribute it
37 and/or modify it under the terms of the GNU General Public
38 License as published by the Free Software Foundation; either
39 version 2 of the License, or (at your option) any later
40 version.
41 .
42 This program is distributed in the hope that it will be
43 useful, but WITHOUT ANY WARRANTY; without even the implied
44 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
45 PURPOSE. See the GNU General Public License for more
46 details.
47 .
48 You should have received a copy of the GNU General Public
49 License along with this package; if not, write to the Free
50 Software Foundation, Inc., 51 Franklin St, Fifth Floor,
51 Boston, MA 02110-1301 USA
52 .
53 On Debian systems, the full text of the GNU General Public
54 License version 2 can be found in the file
55 `/usr/share/common-licenses/GPL-2'.
956
10
11 License:
12
13 lib/FusionInventory/Agent/Task/Inventory/OS/Generic/Screen.pm
14 and memconf are released under this license:
15 This program is free software; you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation; either version 2 of the License, or
18 (at your option) any later version.
19
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24
25 The rest of the files are released under this license:
26 This program is free software; you can redistribute it and/or modify
27 it under the terms of the GNU General Public License as published by
28 the Free Software Foundation; either version 2 of the License, or
29 (at your option) any later version.
30
31 This program is distributed in the hope that it will be useful,
32 but WITHOUT ANY WARRANTY; without even the implied warranty of
33 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 GNU General Public License for more details.
35
36 On Debian GNU/Linux systems, the complete text of the GNU General
37 Public License can be found in `/usr/share/common-licenses/GPL-2'.
38
39
40 The Debian packaging is Copyright (C) 2007-2010,Pierre Chifflier,
41 Benoit Mortier and Gonéri Le Bouder and is licensed under the
42 GPLv2, see `/usr/share/common-licenses/GPL-2'.
43
0 #! /bin/sh
1 set -e
2
3 #DEBHELPER#
4
5 case "$1" in
6 configure)
7 [ -d "/etc/fusioninventory" ] || mkdir "/etc/fusioninventory"
8 ucf /usr/share/doc/fusioninventory-agent/agent.cfg /etc/fusioninventory/agent.cfg
9 ucfr fusioninventory-agent /etc/fusioninventory/agent.
10 esac
11
12 exit 0
0 #!/bin/sh
1 # postrm script for fusioninventory-agent
2 #
3 # see: dh_installdeb(1)
4
0 #! /bin/sh
51 set -e
6
7 # summary of how this script can be called:
8 # * <postrm> `remove'
9 # * <postrm> `purge'
10 # * <old-postrm> `upgrade' <new-version>
11 # * <new-postrm> `failed-upgrade' <old-version>
12 # * <new-postrm> `abort-install'
13 # * <new-postrm> `abort-install' <old-version>
14 # * <new-postrm> `abort-upgrade' <old-version>
15 # * <disappearer's-postrm> `disappear' <overwriter>
16 # <overwriter-version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
19
20
21 case "$1" in
22 purge)
23 ucf --purge /etc/fusioninventory/agent.cfg
24 rm -rf /var/lib/fusioninventory-agent
25 ;;
26
27 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
28 ;;
29
30 *)
31 echo "postrm called with unknown argument \`$1'" >&2
32 exit 1
33 ;;
34 esac
35
36 # dh_installdeb will replace this with shell code automatically
37 # generated by other debhelper scripts.
382
393 #DEBHELPER#
404
5 case "$1" in
6 remove)
7 # This package is being removed, but its configuration has not yet
8 # been purged.
9 :
10
11 # Remove diversion
12 : dpkg-divert --package foo --remove --rename \
13 : --divert /usr/bin/other.real /usr/bin/other
14
15 # ldconfig is NOT needed during removal of a library, only during
16 # installation
17
18 ;;
19 purge)
20 # This package has previously been removed and is now having
21 # its configuration purged from the system.
22 :
23
24 # we mimic dpkg as closely as possible, so we remove configuration
25 # files with dpkg backup extensions too:
26 ### Some of the following is from Tore Anderson:
27 for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist; do
28 rm -f /etc/fusioninventory/agent.conf$ext
29 done
30
31 # remove the configuration file itself
32 rm -f /etc/fusioninventory/agent.conf
33 rm -r /etc/fusioninventory
34
35 # and finally clear it out from the ucf database
36 if which ucf >/dev/null; then
37 ucf --purge /etc/fusioninventory/agent.conf
38 fi
39 if which ucfr >/dev/null; then
40 ucfr --purge foo /etc/fusioninventory/agent.conf
41 fi
42
43 ;;
44 disappear)
45 if test "$2" != overwriter; then
46 echo "$0: undocumented call to \`postrm $*'" 1>&2
47 exit 0
48 fi
49 # This package has been completely overwritten by package $3
50 # (version $4). All our files are already gone from the system.
51 # This is a special case: neither "prerm remove" nor "postrm remove"
52 # have been called, because dpkg didn't know that this package would
53 # disappear until this stage.
54 :
55
56 ;;
57 upgrade)
58 # About to upgrade FROM THIS VERSION to version $2 of this package.
59 # "prerm upgrade" has been called for this version, and "preinst
60 # upgrade" has been called for the new version. Last chance to
61 # clean up.
62 :
63
64 ;;
65 failed-upgrade)
66 # About to upgrade from version $2 of this package TO THIS VERSION.
67 # "prerm upgrade" has been called for the old version, and "preinst
68 # upgrade" has been called for this version. This is only used if
69 # the previous version's "postrm upgrade" couldn't handle it and
70 # returned non-zero. (Fix old postrm bugs here.)
71 :
72
73 ;;
74 abort-install)
75 # Back out of an attempt to install this package. Undo the effects of
76 # "preinst install...". There are two sub-cases.
77 :
78
79 if test "${2+set}" = set; then
80 # When the install was attempted, version $2's configuration
81 # files were still on the system. Undo the effects of "preinst
82 # install $2".
83 :
84
85 else
86 # We were being installed from scratch. Undo the effects of
87 # "preinst install".
88 :
89
90 fi ;;
91 abort-upgrade)
92 # Back out of an attempt to upgrade this package from version $2
93 # TO THIS VERSION. Undo the effects of "preinst upgrade $2".
94 :
95
96 ;;
97 *) echo "$0: didn't understand being called with \`$1'" 1>&2
98 exit 0;;
99 esac
100
41101 exit 0
42
43
00 pciutils-pciids.diff
1 ssl_cert_backport.diff
0 diff --git a/t/ssl/cnf/ca.cnf b/t/ssl/cnf/ca.cnf
1 index efd29d7..d9cd935 100644
2 --- a/t/ssl/cnf/ca.cnf
3 +++ b/t/ssl/cnf/ca.cnf
4 @@ -21,7 +21,7 @@ authorityKeyIdentifier = keyid:always,issuer:always
5 default_ca = default_ca
6
7 [ default_ca ]
8 -dir = t/ssl
9 +dir = .
10 certificate = $dir/crt/ca.pem
11 private_key = $dir/key/ca.pem
12 certs = $dir/crt # Where the issued certs are kept
13 @@ -31,7 +31,7 @@ database = $dir/index.txt # database index file.
14 new_certs_dir = $dir/new # default place for new certs.
15 crl_dir = $dir/crl # Where the issued crl are kept
16
17 -default_days = 730 # how long to certify for
18 +default_days = 3650 # how long to certify for
19 default_crl_days= 30 # how long before next CRL
20 default_md = md5 # which md to use.
21 preserve = no # keep passed DN ordering
22 diff --git a/t/ssl/crt/good.pem b/t/ssl/crt/good.pem
23 index 90fe0bc..3e5a323 100644
24 --- a/t/ssl/crt/good.pem
25 +++ b/t/ssl/crt/good.pem
26 @@ -2,69 +2,69 @@ Certificate:
27 Data:
28 Version: 1 (0x0)
29 Serial Number: 1 (0x1)
30 - Signature Algorithm: md5WithRSAEncryption
31 + Signature Algorithm: md5WithRSAEncryption
32 Issuer: O=fusioninventory.org, OU=test certification authority, CN=test_ca/emailAddress=test@fusioninventory.org
33 Validity
34 - Not Before: Jul 29 20:21:23 2010 GMT
35 - Not After : Jul 28 20:21:23 2012 GMT
36 + Not Before: Aug 1 15:43:22 2012 GMT
37 + Not After : Jul 30 15:43:22 2022 GMT
38 Subject: O=fusioninventory.org, OU=trusted test certificate, CN=localhost/emailAddress=test@fusioninventory.org
39 Subject Public Key Info:
40 Public Key Algorithm: rsaEncryption
41 Public-Key: (2048 bit)
42 Modulus:
43 - 00:b6:21:74:de:3d:8c:65:2a:8e:32:54:ca:6a:ab:
44 - f7:8c:2b:01:4d:b0:9a:39:1c:85:bd:26:5b:67:c4:
45 - b8:b0:26:73:59:e2:f0:4a:a1:0d:99:32:d0:54:18:
46 - ae:ae:f2:8e:42:ef:71:1a:3f:f9:1e:df:7f:81:4e:
47 - 7c:a3:53:e8:6d:b2:82:b0:76:d0:ea:f7:83:42:6a:
48 - 66:85:a3:98:69:b0:07:ea:38:b5:5d:62:9d:6f:b3:
49 - a1:64:39:c4:a3:94:c3:cb:fd:a7:d1:4a:01:ce:99:
50 - b6:dd:83:ed:29:48:96:63:09:9b:96:86:d6:6c:fa:
51 - 35:82:19:65:42:be:16:c0:65:ef:50:22:25:ad:2a:
52 - 9a:a3:21:e4:76:42:28:bb:7a:9b:4f:7d:11:78:5a:
53 - a6:04:fc:33:03:30:e9:6a:ae:f0:8c:d5:67:43:17:
54 - 07:06:43:d6:bc:f9:61:b3:68:a5:1c:04:c6:a7:93:
55 - 23:7b:fe:15:35:97:3c:60:0b:78:22:54:a6:3d:4c:
56 - 9d:52:3b:33:23:ad:c1:a7:08:24:0b:e5:5d:9c:cb:
57 - 39:18:68:b3:80:61:76:e3:6f:81:c8:0e:fa:b9:33:
58 - 36:56:a7:e8:43:10:a8:03:91:55:57:f2:73:ff:b2:
59 - ac:85:bc:0d:af:9e:fd:a4:fe:40:00:e8:9b:7f:d0:
60 - c4:53
61 + 00:c7:15:c2:3f:2d:59:57:04:a8:0f:e9:2d:49:59:
62 + 3a:c6:5b:0e:36:c9:b5:8c:e7:7d:5e:2c:9f:7f:d9:
63 + 66:41:71:4f:38:69:de:fb:62:ae:7f:3c:41:82:99:
64 + 78:6c:fe:5c:ed:82:0d:a0:27:43:bd:6f:32:36:be:
65 + 54:87:ae:a2:1a:21:d5:b3:58:cc:ff:63:65:ba:f2:
66 + 10:5b:03:c8:51:77:37:20:a9:21:6d:d0:43:fc:89:
67 + 9b:29:49:14:aa:46:9f:cf:0b:74:7a:c0:ea:af:b4:
68 + eb:25:e7:b5:d4:35:57:65:ee:f5:db:a2:c3:94:5f:
69 + cd:01:db:5a:14:4c:9c:a4:22:51:94:14:8c:8c:54:
70 + fc:a5:a9:ca:93:09:5f:eb:e4:37:23:fb:1e:87:b4:
71 + a5:8c:85:df:3e:16:78:a4:84:29:e0:3f:b8:db:c8:
72 + b9:fd:2e:d2:b5:83:c4:dc:f6:8f:e4:80:2e:36:57:
73 + f2:15:8c:bc:d1:96:ae:c6:04:37:03:6d:cc:a6:5c:
74 + 00:8f:d8:48:4e:49:0e:62:cf:55:68:6c:30:37:8f:
75 + 9e:30:ae:5c:5c:d9:77:45:35:49:68:08:65:f0:61:
76 + 6a:77:3c:9e:e1:e0:73:74:a8:5d:69:44:18:cf:d3:
77 + 63:17:76:80:e9:5f:63:33:dc:0e:cc:cf:a7:c6:be:
78 + 29:81
79 Exponent: 65537 (0x10001)
80 Signature Algorithm: md5WithRSAEncryption
81 - d0:91:39:7a:e6:d8:71:4c:ef:fc:a5:f9:bd:3d:e8:e7:3b:59:
82 - 83:ec:26:0a:67:ee:4a:7b:ca:0c:41:ed:a6:98:14:4a:06:09:
83 - f7:1c:76:e7:68:72:7e:10:e0:4e:f9:98:07:f1:10:86:2b:6c:
84 - 8d:53:c5:82:f0:f5:02:0b:a8:8d:44:b9:8d:0b:f7:7e:4e:11:
85 - dd:e6:2e:a0:37:e1:b9:16:1c:25:f5:29:52:31:8b:38:e2:89:
86 - db:49:89:2c:f0:35:a9:06:d7:b7:e5:70:9f:fa:27:a7:b2:ec:
87 - 3c:b8:bc:33:d8:f6:f3:7e:e9:80:73:e2:5c:99:a0:a5:ce:2e:
88 - 08:9c:2d:96:d8:2d:c9:38:4b:ed:76:7a:fa:fc:2f:ac:32:62:
89 - ba:16:e5:36:3a:ea:8b:22:1d:8c:fd:18:2c:c9:b2:83:91:5b:
90 - 61:9e:8e:11:a2:ab:ad:09:99:1e:00:56:37:d6:d3:e9:f3:97:
91 - d2:2a:65:41:a4:44:db:1b:e2:ae:51:69:f0:38:f9:29:4f:b0:
92 - 57:9b:60:3a:b1:aa:8d:8c:31:11:d9:64:12:8a:c0:ab:c4:5a:
93 - 02:08:3c:ef:2d:f2:14:67:ef:97:9a:d7:85:df:18:a1:47:15:
94 - cb:9c:f8:2b:1a:d9:c0:f5:b2:d1:58:66:a0:ef:df:44:6c:d7:
95 - ce:a6:59:bf
96 + 45:a9:47:c1:9c:80:66:7c:47:92:e5:87:d5:69:d1:be:91:19:
97 + ca:cd:1f:16:c9:7b:d8:45:7b:6b:f8:06:fb:d4:83:93:54:65:
98 + 15:6f:0e:fb:d9:2e:1d:08:c5:37:d2:83:56:ab:6a:4e:24:27:
99 + a5:e6:79:84:30:62:3f:16:b5:c1:13:83:6b:8e:04:d3:ac:f9:
100 + 13:ec:bf:a5:e3:d7:89:c9:a6:17:bd:32:d1:0d:fc:c7:e0:c1:
101 + 56:88:4c:f9:7f:ad:f9:10:21:1e:96:a9:43:77:00:68:61:8c:
102 + ae:84:c8:20:30:83:52:c4:8a:b2:0c:9c:e6:6b:1e:5c:6a:5a:
103 + 3c:33:43:cd:c8:48:a2:58:9f:ad:19:92:e9:8d:85:37:fe:c7:
104 + e7:23:d9:4d:47:18:15:80:a4:5f:f5:f6:03:ae:f2:89:a0:61:
105 + a5:cf:6c:24:a8:8c:1b:01:55:87:7e:a1:06:ce:5b:5e:3a:07:
106 + c2:32:cf:af:10:71:46:ab:40:80:4e:e3:44:3f:ef:9b:5a:f7:
107 + f7:fd:39:9e:5d:40:98:44:8b:d0:1d:ac:d3:c0:b7:8b:48:04:
108 + db:4e:85:15:6d:f9:9a:6e:1e:3e:f6:fc:5c:a8:b1:99:3c:4c:
109 + 5d:0b:97:87:45:ff:98:fd:9a:f8:47:bf:51:49:96:2b:0b:7b:
110 + e8:9c:df:40
111 -----BEGIN CERTIFICATE-----
112 MIIDczCCAlsCAQEwDQYJKoZIhvcNAQEEBQAwgYAxHDAaBgNVBAoTE2Z1c2lvbmlu
113 dmVudG9yeS5vcmcxJTAjBgNVBAsTHHRlc3QgY2VydGlmaWNhdGlvbiBhdXRob3Jp
114 dHkxEDAOBgNVBAMUB3Rlc3RfY2ExJzAlBgkqhkiG9w0BCQEWGHRlc3RAZnVzaW9u
115 -aW52ZW50b3J5Lm9yZzAeFw0xMDA3MjkyMDIxMjNaFw0xMjA3MjgyMDIxMjNaMH4x
116 +aW52ZW50b3J5Lm9yZzAeFw0xMjA4MDExNTQzMjJaFw0yMjA3MzAxNTQzMjJaMH4x
117 HDAaBgNVBAoTE2Z1c2lvbmludmVudG9yeS5vcmcxITAfBgNVBAsTGHRydXN0ZWQg
118 dGVzdCBjZXJ0aWZpY2F0ZTESMBAGA1UEAxMJbG9jYWxob3N0MScwJQYJKoZIhvc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V/r5Dcj+x6HtKWMhd8+FnikhCngP7jbyLn9LtK1g8Tc9o/kgC42
136 +V/IVjLzRlq7GBDcDbcymXACP2EhOSQ5iz1VobDA3j54wrlxc2XdFNUloCGXwYWp3
137 +PJ7h4HN0qF1pRBjP02MXdoDpX2Mz3A7Mz6fGvimBAgMBAAEwDQYJKoZIhvcNAQEE
138 +BQADggEBAEWpR8GcgGZ8R5Llh9Vp0b6RGcrNHxbJe9hFe2v4BvvUg5NUZRVvDvvZ
139 +Lh0IxTfSg1arak4kJ6XmeYQwYj8WtcETg2uOBNOs+RPsv6Xj14nJphe9MtEN/Mfg
140 +wVaITPl/rfkQIR6WqUN3AGhhjK6EyCAwg1LEirIMnOZrHlxqWjwzQ83ISKJYn60Z
141 +kumNhTf+x+cj2U1HGBWApF/19gOu8omgYaXPbCSojBsBVYd+oQbOW146B8Iyz68Q
142 +cUarQIBO40Q/75ta9/f9OZ5dQJhEi9AdrNPAt4tIBNtOhRVt+ZpuHj72/FyosZk8
143 +TF0Ll4dF/5j9mvhHv1FJlisLe+ic30A=
144 -----END CERTIFICATE-----
145 diff --git a/t/ssl/key/ca.pem b/t/ssl/key/ca.pem
146 index f131645..3caf2e4 100644
147 --- a/t/ssl/key/ca.pem
148 +++ b/t/ssl/key/ca.pem
149 @@ -1,30 +1,27 @@
150 ------BEGIN ENCRYPTED PRIVATE KEY-----
151 -MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIk1RxLj1MgGkCAggA
152 -MBQGCCqGSIb3DQMHBAibQ2NS4+8FHQSCBMiP9wNXU4tO44RNix6C3dUa3/P+fQ2N
153 -MvmGVJDmJDp3iq+RDKG8O29Qnv/h7/9L6cud8meQ56E4rrI9vw7Lmu325QSAfkqz
154 -xFnBpcJ1YufDfKcd8Asm+v/vpRYQw9pnkir0NLOhPAz1nwKbxV0sArDUBdwKpVbi
155 -0OXGg3XARIRrvdstIuaGIB5PApKAfNI++v60/8gA45Y6Nc6KwcezXc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fubjgjt7wPEYVq+0ZLVGFT1IHY6NcQ0fvcDxLi
172 -TLok84gbIv6Txdtyqbty4KVoECVp5TlywgAkbGQYuMNJptJEPb96ph2yoCcfj1A/
173 -L+sTglZUJmJpiAHug4kOttj1TflXA85PGZkg+FX2KLmJDWoPpjp4vJMoD/oIwJI6
174 -o8Oj/Gn/GJHIylmojZm7QtLDxGVgKTKskPPgZkrgyLzUnX9X+1GDj5r9ITrkKPng
175 -5mQB2YBf52iKCXZOwOT2LAY2Mkm/tI7uGi0zn1YDWnc6KxUpHcrIACsPw/TsTMiE
176 -uOEPREioDiq3+9dhR9k+w3JBz/Qh7fpWVRNlgCSkGZdY0t8EJLxWA5cXtkLEXBev
177 -mfTsxk2pJyPXbmF7LQN7LXWEiAerxQW3pbZ3VBjP7ZElZ5mE3OIQRs+oYVC7akNO
178 -XSk=
179 ------END ENCRYPTED PRIVATE KEY-----
180 +-----BEGIN RSA PRIVATE KEY-----
181 +MIIEpAIBAAKCAQEA5iT5gIoUDfhM5iV79GyAAhWvoGaBB0w2zuS9rTFJniybx5EV
182 +lmYxBzmUBo6gFoUp5nQe98HKnK6vFV+wpCGi5HTqaptTXo4a+e7MWxmTfhY0MJQA
183 +FLUuNob2n2EW9GUB2kroEGE57beuW07l+jNjbggMhujhU+fDPq2CJH2vDKijPF61
184 +346i/V+qlo5eMTNeD7FUTN0aCjELPSO/9FVrTlU6boLr67rK39s4/xVXwJtijE7x
185 +NK8OdGg9KPei2mwRs/aHzuM5dewyi89XQ9QlIH7EDm1MMi76vIcKJPD7NJ7XRUGj
186 +DywWK2C16FJVTrTO3MGQykrGi6tNSPHDfTsZfwIDAQABAoIBAQDN9osfwPK/qdZQ
187 +JX2wOiW5N+UsHHAestNeBxHE3JYwq2VijXIPXjdEawARejTE0rmz13obamBEJoTk
188 +EPYJfVzFLejYLVfICE8WG+LhKJt5vK9KRjloTtkjzVcLPZ2IbJji3iSe/BQWrUqp
189 +xotEhhbW0vc7CVEWgRSXlDojJCOzo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CHnCPawOPnohh/GxXjlYcmeRHLy1oGVw==
206 +-----END RSA PRIVATE KEY-----
207 diff --git a/t/ssl/key/good.pem b/t/ssl/key/good.pem
208 index e8eeccf..7fcd48e 100644
209 --- a/t/ssl/key/good.pem
210 +++ b/t/ssl/key/good.pem
211 @@ -1,28 +1,28 @@
212 -----BEGIN PRIVATE KEY-----
213 -MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC2IXTePYxlKo4y
214 -VMpqq/eMKwFNsJo5HIW9JltnxLiwJnNZ4vBKoQ2ZMtBUGK6u8o5C73EaP/ke33+B
215 -TnyjU+htsoKwdtDq94NCamaFo5hpsAfqOLVdYp1vs6FkOcSjlMPL/afRSgHOmbbd
216 -g+0pSJZjCZuWhtZs+jWCGWVCvhbAZe9QIiWtKpqjIeR2Qii7eptPfRF4WqYE/DMD
217 -MOlqrvCM1WdDFwcGQ9a8+WGzaKUcBMankyN7/hU1lzxgC3giVKY9TJ1SOzMjrcGn
218 -CCQL5V2cyzkYaLOAYXbjb4HIDvq5MzZWp+hDEKgDkVVX8nP/sqyFvA2vnv2k/kAA
219 -6Jt/0MRTAgMBAAECggEACTcgJq6Oj//bOgi4RTV2TQ1P/5JT+1fKHIv4TAPUJHWN
220 -mJq29c+4VGwRxm+JRyjWseRToLRj8n/0f6JtBAaW2BYULsGUSI9FgPLJRTHF4HMb
221 -s2ozIwp+VMyN+fhCTtSUI5ouB5TrCn0Ul5i5Q0F8+n3d9XvVFaaDVpXaXcoodIud
222 -6Od2q/8l8aPJJIpHRgzYaGiEJgxpUyuFMoBFM5au1Z2CnThrDzs5tPngiJIcy4pd
223 -3ccO6fUrYAwAv9/krqX0ZrNrV3cwqtS98bNIMYnsW0Z/dCQzqRZMmvI58gJVA0mL
224 -22VFq3f8/tzoL6JNm6pHSfUVlNNj2UWxIl7qO6NKQQKBgQDppuCzLwkmG0Kniw9P
225 -Y2IZ6CxeqEwGxP0J6kXKnUiSVamuSQ9fsYaoKd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ulL+WOvoEJwQQ8lYTAAd0EwMkTDl/Gto
258 +Aior7f5zXn6gyjKYNTmYeTMTBn/s56lV2WKjpaW0nMETaSRTk+foSU1d/iMCgYEA
259 +vvTAOyAqpXniTXY95YaoLjMprCupWCcyDTkTG/LOSzPN7Mh6VNhukzuZVYx9+CrT
260 +5+zejJNam9jeNB9xu3WBcL2J/0SSL8Us5tgMhAUiBYfW6WLOJvixaqqvcaUQzHM3
261 +6HwQx4oMOQ87SFsoVwlHInlcR59Dirt68fkHy56yn6sCgYBavwk3GC50aPNHfoOc
262 +g/czYvS6t+3MB2R9mN/ED3iDiLwzZPsn4wtmvXREYvz3n7YVehYQmpXLAJklgaQv
263 +DXwf8lgETXpM82gOZT5n7Rhozd53tYL1qGcRgNWOjxGhi0bmOAC5ZnwsJyOr75EY
264 +0ZkVwULxMKpoN7ZgRRK1lqXXrA==
265 -----END PRIVATE KEY-----
2828 [ ! -f t/xml/response.t ] || rm t/xml/response.t
2929 # HTTP::Server::Simple::Authen is missing
3030 [ ! -f t/components/client/ssl.t ] || rm t/components/client/ssl.t
31 [ ! -f t/apps/agent.t ] || rm t/apps/agent.t
3132 endif
3233 dh_clean
+0
-13
debian/tools/gen-ppa.sh less more
0 #!/bin/sh
1
2 VERSION=`dpkg-parsechangelog | awk '/Version/ {print $2}'`
3 UBUREV=1
4
5 echo $VERSION
6
7 for dist in natty maverick lucid hardy; do
8 git checkout HEAD -- debian/changelog
9 dch --force-distribution -v $VERSION$dist$UBUREV -D $dist "Backport for $dist"
10 dpkg-buildpackage -S -D -sa -i.git
11 dput ppa ../fusioninventory-agent_$VERSION$dist${UBUREV}_source.changes
12 done
0 #!/usr/bin/perl
1 use strict;
2 use warnings;
3 use Data::Dumper;
4 use Dpkg::Control::Info;
5 use Dpkg::Changelog::Debian;
6
7 $ENV{'DEBFULLNAME'} = 'Gonéri Le Bouder';
8 $ENV{'EMAIL'} = 'goneri@rulezlan.org';
9
10 my %dropTest = (
11 'fusioninventory-agent' => [
12 't/components/client/ocs/response.t', 't/xml/response.t',
13 't/components/logger.t', 't/components/client/ssl.t',
14 't/components/client/connection.t', 't/01compile.t',
15 't/apps/agent.t',
16 ],
17 'libfusioninventory-agent-task-deploy-perl' => [ 't/server.t', ]
18
19 );
20
21 my %newDeps = (
22 'Depends' => {
23 'libfusioninventory-agent-task-esx-perl' => [ 'libio-socket-ssl-perl' ],
24 },
25 'Build-Depends' => {
26 'libfusioninventory-agent-task-esx-perl' => [ 'libio-socket-ssl-perl' ]
27
28 }
29
30 );
31
32 open RULES, "<debian/rules";
33 my @origin_rules = <RULES>;
34 close RULES;
35 open RULES, ">debian/rules";
36 foreach (@origin_rules) {
37 s/BACKPORT = no/BACKPORT = yes/;
38 print RULES;
39 }
40 close RULES;
41
42 sub bpDeps {
43 my ($pkg) = @_;
44
45 my $name = $pkg->{Package} || $pkg->{Source};
46 foreach my $section (qw/Build-Depends Build-Depends-Indep Depends/) {
47 next unless $pkg->{$section};
48 $pkg->{$section} =~ s/\s*\n//g;
49 my @list = split( /,/, $pkg->{$section} );
50
51 my @listFinal;
52 foreach (@list) {
53 s/^\s*//;
54 next if $_ eq "libhttp-daemon-perl";
55 next if $_ eq "libhttp-server-simple-authen-perl";
56 next if $_ eq "libhttp-cookies-perl";
57 push @listFinal, $_;
58 }
59 if ( $newDeps{$section}->{$name} ) {
60 push @listFinal, $_ foreach ( @{ $newDeps{$section}->{$name} } );
61 }
62 $pkg->{$section} = join( ",\n", @listFinal );
63 }
64
65 }
66
67 my $c = Dpkg::Control::Info->new("debian/control");
68
69 my $s = $c->get_source();
70 bpDeps($s);
71 use Data::Dumper;
72
73 my @pList = $c->get_packages();
74 foreach my $p (@pList) {
75 bpDeps($p);
76 }
77
78 open my $f, ">debian/control";
79 $c->output($f);
80
81 foreach ( @{ $dropTest{ $s->{Source} } } ) {
82 unlink($_);
83 }
84
85 my $changelog = Dpkg::Changelog::Debian->new();
86 $changelog->load('debian/changelog');
87 use Data::Dumper;
88 if ( $changelog->[0]->get_distributions() ne 'squeeze-backports' ) {
89 system("dch --bpo");
90 }
91
92 my $lastVersion = $changelog->[ @$changelog - 1 ]->get_version();
93 if ( `rmadison $s->{Source} -s squeeze-backports` =~ /^[^\|]*\|\s(\S+)~bpo6/ ) {
94 $lastVersion = "-v$1";
95 }
96 print "lastVersion: $lastVersion\n";
97 system( "dpkg-buildpackage", "-i", "-sa", "-v$lastVersion" );