ports/153689: [patch] net-mgmt/ocsinventory-agent

Tom Judge tom at tomjudge.com
Tue Jan 4 20:00:26 UTC 2011


>Number:         153689
>Category:       ports
>Synopsis:       [patch] net-mgmt/ocsinventory-agent
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 04 20:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Tom Judge
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD tinderbox.home.tomjudge.com 8.1-STABLE FreeBSD 8.1-STABLE #0 r213720: Tue Oct 12 14:02:02 UTC 2010 tj at tinderbox.home.tomjudge.com:/usr/obj/usr/src/sys/GENERIC amd64

>Description:

The attached patch makes it possible to build a package from this port.

Build log:

http://tinderbox.tomjudge.com/tb/logs/8.1-Devel-amd64/Ocsinventory-Agent-1.1.2.1_1,1.log

>How-To-Repeat:
>Fix:

--- net-mgmt-ocsinventory-agent.txt begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/ocsinventory-agent/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- Makefile	6 Nov 2010 18:03:03 -0000	1.10
+++ Makefile	4 Jan 2011 19:40:59 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	Ocsinventory
 PORTVERSION=	1.1.2.1
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://launchpad.net/ocsinventory-unix-agent/stable-1.1.2/ocsinventory-unix-agent-${PORTVERSION}/+download/
@@ -27,8 +28,13 @@
 LICENSE=	GPLv2
 USE_PERL5=	yes
 PERL_CONFIGURE=	yes
-IS_INTERACTIVE=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
 MAN1=		ocsinventory-agent.1
+MAN3=		Ocsinventory::Agent::XML::Inventory.3
+SUB_FILES=	pkg-message
+SUB_LIST=	SITE_PERL=${SITE_PERL}
+
+post-install:
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/ocsinventory-agent/pkg-plist,v
retrieving revision 1.3
diff -u -r1.3 pkg-plist
--- pkg-plist	8 Jun 2009 22:43:20 -0000	1.3
+++ pkg-plist	4 Jan 2011 18:41:47 -0000
@@ -1,4 +1,5 @@
 bin/ocsinventory-agent
+%%SITE_PERL%%/Ocsinventory/Agent.pm
 %%SITE_PERL%%/Ocsinventory/Agent/AccountConfig.pm
 %%SITE_PERL%%/Ocsinventory/Agent/AccountInfo.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend.pm
@@ -44,6 +45,7 @@
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode/Memory.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode/Ports.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode/Slots.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode/UUID.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Hostname.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Ipmi.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Lspci.pm
@@ -53,15 +55,46 @@
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Lspci/Videos.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Packaging.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Packaging/BSDpkg.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Packaging/ByHand.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Gentoo.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Pacman.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Packaging/RPM.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Printers/Cups.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Processes.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Screen.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Users.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/ARM.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/ARM/CPU.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/Alpha.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/Alpha/CPU.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/MIPS.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/MIPS/CPU.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/PowerPC.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/CPU.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Controllers.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/PowerPC/CPU.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/PowerPC/Various.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/SPARC.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/SPARC/CPU.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/i386.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/i386/CPU.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/m68k.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/m68k/CPU.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/LSB.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/ArchLinux.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Debian.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Fedora.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Gentoo.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Knoppix.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Mandrake.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Mandriva.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Redhat.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Slackware.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/SuSE.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Trustix.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Ubuntu.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/VmWare.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Domains.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Drives.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Mem.pm
@@ -69,36 +102,25 @@
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Network/Networks.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Sounds.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Storages.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Sys.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Uptime.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Storages/3ware.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Storages/Adaptec.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Storages/HP.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Storages/Lsilogic.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Storages/ServeRaid.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Debian.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Fedora.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Gentoo.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Knoppix.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Mandrake.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Mandriva.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Redhat.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Slackware.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/SuSE.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Trustix.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Ubuntu.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/LSB.pm
-%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Sys.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Uptime.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Bios.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/CPU.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Domains.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Drives.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Hostname.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/IPv4.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Mem.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Networks.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Packages.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Printers.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Sound.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Storages.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Uptime.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS/Video.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS.pm
@@ -116,12 +138,23 @@
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Solaris/Slots.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Solaris/Storages.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Solaris/Users.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/Xen/XM.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/VmWareESX.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/Vmsystem.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/VmWareDesktop.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/VirtualBox.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/Parallels.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/SolarisZones.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/Qemu.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/Xen.pm
+%%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/Libvirt.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Common.pm
 %%SITE_PERL%%/Ocsinventory/Agent/CompatibilityLayer.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Config.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Network.pm
 %%SITE_PERL%%/Ocsinventory/Agent/Option/Download.pm
 %%SITE_PERL%%/Ocsinventory/Agent/XML/Inventory.pm
+%%SITE_PERL%%/Ocsinventory/Agent/XML/SimpleMessage.pm
 %%SITE_PERL%%/Ocsinventory/Agent/XML/Prolog.pm
 %%SITE_PERL%%/Ocsinventory/Agent/XML/Response.pm
 %%SITE_PERL%%/Ocsinventory/Agent/XML/Response/Inventory.pm
@@ -137,14 +170,24 @@
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/XML/Response
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/XML
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Option
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization/Xen
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/Virtualization
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Solaris
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Network
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/m68k
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/i386
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/SPARC
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/PowerPC
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/MIPS
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/Alpha
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs/ARM
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Archs
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Distro
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux/Storages
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Linux
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/MacOS
+ at dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Printers
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Packaging
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Lspci
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode
@@ -157,3 +200,5 @@
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent/Backend
 @dirrm %%SITE_PERL%%/Ocsinventory/Agent
 @dirrm %%SITE_PERL%%/Ocsinventory
+ at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Ocsinventory/Agent
+ at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Ocsinventory
Index: files/patch-Makefile.PL
===================================================================
RCS file: files/patch-Makefile.PL
diff -N files/patch-Makefile.PL
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-Makefile.PL	4 Jan 2011 18:41:47 -0000
@@ -0,0 +1,12 @@
+--- Makefile.PL.orig	2011-01-04 17:59:37.000000000 +0000
++++ Makefile.PL	2011-01-04 18:00:04.000000000 +0000
+@@ -11,7 +11,8 @@
+ install :: all pure_install doc_install
+ 	$(NOECHO) $(NOOP)';
+ 
+-	$re .= "\n\t[ ! -f run-postinst ] || $^X postinst.pl\n";
++# Disable the post install script
++#	$re .= "\n\t[ ! -f run-postinst ] || $^X postinst.pl\n";
+ 
+     return $re;
+ }
Index: files/pkg-message.in
===================================================================
RCS file: files/pkg-message.in
diff -N files/pkg-message.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/pkg-message.in	4 Jan 2011 18:41:47 -0000
@@ -0,0 +1,12 @@
+*****************************************************************
+
+This port disabled the post installtion script during the build
+process to allow the package to be built without interaction.
+
+If you wish to run this script it is located here:
+    %%SITE_PERL%%/Ocsinventory/postinst.pl
+
+Note: It may not be required to run this script depending on 
+your environment.
+
+*****************************************************************
--- net-mgmt-ocsinventory-agent.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list