summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ocsinventory-agent/Makefile13
-rw-r--r--net/ocsinventory-agent/distinfo13
-rw-r--r--net/ocsinventory-agent/patches/patch-ab22
-rw-r--r--net/ocsinventory-agent/patches/patch-ac26
-rw-r--r--net/ocsinventory-agent/patches/patch-ap13
5 files changed, 50 insertions, 37 deletions
diff --git a/net/ocsinventory-agent/Makefile b/net/ocsinventory-agent/Makefile
index 5c310827861..7dae3e10de3 100644
--- a/net/ocsinventory-agent/Makefile
+++ b/net/ocsinventory-agent/Makefile
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.2 2010/08/21 16:35:20 seb Exp $
+# $NetBSD: Makefile,v 1.3 2010/12/01 21:00:51 bouyer Exp $
#
-
-DISTNAME= OCSNG_UNIX_AGENT-1.02
-PKGNAME= ocsinventory-agent-1.0.2
-PKGREVISION= 1
+VERS= 1.1.2.1
+DISTNAME= Ocsinventory-Agent-${VERS}
+PKGNAME= ocsinventory-agent-${VERS}
CATEGORIES= net
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ocsinventory/}
+MASTER_SITES= http://launchpad.net/ocsinventory-unix-agent/stable-1.1.2/ocsinventory-unix-agent-1.1.2.1/+download/
MAINTAINER= bouyer@NetBSD.org
HOMEPAGE= http://www.ocsinventory-ng.org/
@@ -21,7 +20,7 @@ DEPENDS+= p5-Proc-Daemon-[0-9]*:../../devel/p5-Proc-Daemon
DEPENDS+= dmidecode-[0-9]*:../../sysutils/dmidecode
.endif
-WRKSRC= ${WRKDIR}/Ocsinventory-Agent-1.0.1
+WRKSRC= ${WRKDIR}/Ocsinventory-Agent-${VERS}
BUILD_DEFS+= VARBASE
AUTO_MKDIRS=yes
diff --git a/net/ocsinventory-agent/distinfo b/net/ocsinventory-agent/distinfo
index d93ad4a73ab..c55443d0686 100644
--- a/net/ocsinventory-agent/distinfo
+++ b/net/ocsinventory-agent/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.1.1.1 2009/08/16 18:25:53 bouyer Exp $
+$NetBSD: distinfo,v 1.2 2010/12/01 21:00:51 bouyer Exp $
-SHA1 (OCSNG_UNIX_AGENT-1.02.tar.gz) = 92660745140d1526568a3c02b0b4d8c7286f5e3f
-RMD160 (OCSNG_UNIX_AGENT-1.02.tar.gz) = db3ee9df9d94114b7b6ce5dcd2f0e862729d6056
-Size (OCSNG_UNIX_AGENT-1.02.tar.gz) = 1392033 bytes
+SHA1 (Ocsinventory-Agent-1.1.2.1.tar.gz) = ff8395bd281ddfdb9c3f9106b51aa75ac542f169
+RMD160 (Ocsinventory-Agent-1.1.2.1.tar.gz) = 8cd303df6f760d6ec4f64e79792544c4c8119227
+Size (Ocsinventory-Agent-1.1.2.1.tar.gz) = 1401670 bytes
SHA1 (patch-aa) = 5022b8b1f5e98c43f7da562412bd752956320f05
-SHA1 (patch-ab) = 04e70296c005a710f1b2470451c9872c7716ea26
-SHA1 (patch-ac) = 9be5237057924628cc4d24d7620270aa9a8fd459
+SHA1 (patch-ab) = 6eca9c4fb2f9971a10437e05d40cf0c98bbe2371
+SHA1 (patch-ac) = 352825dd73ab8b9f22d60c8c4056999bf8ff3b3f
SHA1 (patch-ad) = 5160c3ac8ae48eee578be50350c7c4ccfe74b045
SHA1 (patch-ae) = b801ad35b3bf13323e27fe6ebf638e295aa7771d
SHA1 (patch-af) = 8d156a6266ca6c2a7f0d8831585c9ce4e0944394
@@ -18,3 +18,4 @@ SHA1 (patch-al) = dd2ffdd4e9470677c5f0c622ae8e3c5a925843ac
SHA1 (patch-am) = 376f95a684729ce32ded34a1a62d8ef300e52529
SHA1 (patch-an) = 4b1e91e7f1719c84782f541cb3abc6e39f6b94e6
SHA1 (patch-ao) = 87c6edc945e90d990d3db28687113189a723852b
+SHA1 (patch-ap) = 1ccc2218c48355039b6af9732063b430607a70e4
diff --git a/net/ocsinventory-agent/patches/patch-ab b/net/ocsinventory-agent/patches/patch-ab
index 64bdc502577..dd758ab2ff0 100644
--- a/net/ocsinventory-agent/patches/patch-ab
+++ b/net/ocsinventory-agent/patches/patch-ab
@@ -1,15 +1,15 @@
-$NetBSD: patch-ab,v 1.1.1.1 2009/08/16 18:25:53 bouyer Exp $
+$NetBSD: patch-ab,v 1.2 2010/12/01 21:00:51 bouyer Exp $
---- lib/Ocsinventory/Agent/Config.pm.orig 2009-03-22 20:11:09.000000000 +0100
-+++ lib/Ocsinventory/Agent/Config.pm 2009-06-25 15:14:11.000000000 +0200
-@@ -8,9 +8,7 @@
+--- lib/Ocsinventory/Agent/Config.pm.orig 2010-10-12 20:02:53.000000000 +0200
++++ lib/Ocsinventory/Agent/Config.pm 2010-12-01 18:21:25.000000000 +0100
+@@ -67,9 +67,7 @@
- @{$config->{etcdir}} = ();
+ $self->{config}{etcdir} = [];
-- push (@{$config->{etcdir}}, '/etc/ocsinventory');
-- push (@{$config->{etcdir}}, '/usr/local/etc/ocsinventory');
-- push (@{$config->{etcdir}}, '/etc/ocsinventory-agent');
-+ push (@{$config->{etcdir}}, '@PKG_SYSCONFDIR@');
- push (@{$config->{etcdir}}, $ENV{HOME}.'/.ocsinventory');
+- push (@{$self->{config}{etcdir}}, '/etc/ocsinventory');
+- push (@{$self->{config}{etcdir}}, '/usr/local/etc/ocsinventory');
+- push (@{$self->{config}{etcdir}}, '/etc/ocsinventory-agent');
++ push (@{$self->{config}{etcdir}}, '@PKG_SYSCONFDIR@');
+ push (@{$self->{config}{etcdir}}, $ENV{HOME}.'/.ocsinventory'); # Should I?
- if (!$file || !-f $file) {
+ my $file;
diff --git a/net/ocsinventory-agent/patches/patch-ac b/net/ocsinventory-agent/patches/patch-ac
index c152cc3434c..b4ccb987f2f 100644
--- a/net/ocsinventory-agent/patches/patch-ac
+++ b/net/ocsinventory-agent/patches/patch-ac
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.1.1.1 2009/08/16 18:25:53 bouyer Exp $
+$NetBSD: patch-ac,v 1.2 2010/12/01 21:00:51 bouyer Exp $
---- Makefile.PL.orig 2009-03-22 20:18:44.000000000 +0100
-+++ Makefile.PL 2009-08-16 17:56:58.000000000 +0200
+--- Makefile.PL.orig 2010-10-12 20:02:52.000000000 +0200
++++ Makefile.PL 2010-12-01 18:23:35.000000000 +0100
@@ -1,21 +1,6 @@
use inc::Module::Install;
@@ -21,24 +21,24 @@ $NetBSD: patch-ac,v 1.1.1.1 2009/08/16 18:25:53 bouyer Exp $
- return $re;
-}
-
+ require 'lib/Ocsinventory/Agent/Config.pm';
use Config;
- name 'Ocsinventory-Agent';
-@@ -34,7 +19,7 @@
- recommends 'Proc::PID::File' => undef;
+@@ -42,6 +27,8 @@
install_script 'ocsinventory-agent';
--
+
+installdirs 'vendor';
++
# We want a release bundled with the needed dependency to be able to
- # prepare a standealone binay with PAR::Packer
-@@ -47,14 +32,6 @@
+ # prepare a standalone binary with PAR::Packer
+@@ -54,14 +41,6 @@
-if (defined ($ENV{PERL_AUTOINSTALL}) || defined ($ENV{PERL_AUTOINSTALL})) {
-- unlink 'run-postinst';
+- unlink 'run-postinst';
-} else {
- open POSTINST, '>run-postinst' or die $!;
- close POSTINST;
@@ -46,9 +46,9 @@ $NetBSD: patch-ac,v 1.1.1.1 2009/08/16 18:25:53 bouyer Exp $
-
-
if (!can_use('Compress::Zlib')) {
- print "Please install Compress::Zlib if you use an OCS server prior 1.02.\n";
+ print "Please install Compress::Zlib if you use an OCS server prior 1.02.\n";
}
-@@ -77,7 +54,7 @@
+@@ -99,7 +78,7 @@
$archname = $t[0];
};
if ($^O =~ /(linux|bsd)/i && (!$archname ||$archname =~ /(i[3456x]86|x86_64|amd64)/i)) {
@@ -56,4 +56,4 @@ $NetBSD: patch-ac,v 1.1.1.1 2009/08/16 18:25:53 bouyer Exp $
+ foreach (qw/dmidecode pcictl/) {
if (!can_run($_)) {
print "\n";
- print "[WARNING] $_ is needed if you want a complet inventory on x86 and AMD64/x86_64.\n";
+ print "[WARNING] $_ is needed if you want a complete inventory on x86 and AMD64/x86_64.\n";
diff --git a/net/ocsinventory-agent/patches/patch-ap b/net/ocsinventory-agent/patches/patch-ap
new file mode 100644
index 00000000000..e6a564b064d
--- /dev/null
+++ b/net/ocsinventory-agent/patches/patch-ap
@@ -0,0 +1,13 @@
+$NetBSD: patch-ap,v 1.1 2010/12/01 21:00:51 bouyer Exp $
+
+--- lib/Ocsinventory/Agent/Backend/OS/Linux/Storages/3ware.pm.orig 2010-12-01 18:31:01.000000000 +0100
++++ lib/Ocsinventory/Agent/Backend/OS/Linux/Storages/3ware.pm 2010-12-01 18:31:06.000000000 +0100
+@@ -117,7 +117,7 @@
+ # How does this work with multiple older cards where serial for units is not implemented ?
+ # Need to be tested on a system with multiple 3ware cards.
+ if (($hd->{SERIALNUMBER} eq 'AMCC_' . $sn) or ($hd->{MODEL} eq 'Logical_Disk_' . $unit_id)) {
+- $device = %$hd->{NAME};
++ $device = $hd->{NAME};
+ }
+ }
+