Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213443 - ocsinventory (New package)
Summary: ocsinventory (New package)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Default Assignee for New Packages
URL:
Whiteboard: sunrise suggested
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2008-03-14 21:28 UTC by Roland Hopferwieser
Modified: 2023-11-10 16:49 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
app-admin/ocsinventory-client-1.01.ebuild (ocsinventory-client-1.01.ebuild,1.86 KB, text/plain)
2008-03-14 21:30 UTC, Roland Hopferwieser
Details
files/ocsinv.adm (ocsinv.adm,93 bytes, text/plain)
2008-03-14 21:31 UTC, Roland Hopferwieser
Details
files/ocsinv.conf (ocsinv.conf,240 bytes, text/plain)
2008-03-14 21:32 UTC, Roland Hopferwieser
Details
Cron file (ocsinventory-client.cron,604 bytes, text/plain)
2008-03-14 21:32 UTC, Roland Hopferwieser
Details
Ebuild for OCS unified agent 1.0.2 (ocsinventory-1.0.1-r1.ebuild,1.26 KB, text/plain)
2009-09-24 17:38 UTC, Arnaud Launay
Details
Metadata for use logrotate (metadata.xml,345 bytes, text/plain)
2009-09-24 17:39 UTC, Arnaud Launay
Details
stripped conf for agent (ocsinventory-agent.cfg,13 bytes, text/plain)
2009-09-24 17:40 UTC, Arnaud Launay
Details
Rename of -client to -agent (ocsinventory-agent.cron,40 bytes, text/plain)
2009-09-24 17:40 UTC, Arnaud Launay
Details
Ebuild for OCS Inventory NG 1.02.1 (ocsinventory-agent-1.02.1.ebuild,1.26 KB, text/plain)
2009-12-11 12:27 UTC, Roland Hopferwieser
Details
Ebuild for OCS inventory NG Server 1.02.1 (ocsinventory-1.02.1.ebuild,1.61 KB, text/plain)
2009-12-11 13:09 UTC, Roland Hopferwieser
Details
OCSNG postinstall message (postinstall-en.txt,737 bytes, text/plain)
2009-12-11 13:31 UTC, Roland Hopferwieser
Details
Ebuild for OCS inventory NG Server 1.02.1 (ocsinventory-1.02.1.ebuild,1.80 KB, text/plain)
2009-12-11 16:13 UTC, Roland Hopferwieser
Details
OCSNG postinstall message (postinstall-en.txt,741 bytes, text/plain)
2009-12-11 16:14 UTC, Roland Hopferwieser
Details
New ebuild ocsinventory-agent (Ocsinventory-Agent-1.1.2.ebuild,962 bytes, text/plain)
2010-04-02 10:14 UTC, Lukasz Urbaniak
Details
ocsinventory-agent-1.1.2.1.ebuild (ocsinventory-agent-1.1.2.1.ebuild,1.84 KB, text/plain)
2011-03-10 18:34 UTC, Roland Hopferwieser
Details
ocsinventory-agent-1.1.2.1.ebuild (ocsinventory-agent-1.1.2.1.ebuild,1.87 KB, text/plain)
2011-03-16 15:14 UTC, Roland Hopferwieser
Details
Ebuild for the latest agent version (ocsinventory-agent-2.0.1.ebuild,2.21 KB, text/plain)
2011-10-11 14:49 UTC, sulfinu
Details
Patch needed for the latest agent version (equery-invocation.patch,670 bytes, patch)
2011-10-11 14:51 UTC, sulfinu
Details | Diff
Ebuild for the latest agent version (ocsinventory-agent-2.0.1.ebuild,2.31 KB, text/plain)
2011-10-11 16:19 UTC, sulfinu
Details
Ebuild for agent version 2.0.3 (ocsinventory-agent-2.0.3.ebuild,2.27 KB, text/plain)
2011-12-05 15:37 UTC, sulfinu
Details
app-admin/ocsinventory-agent-2.0.5.ebuild (ocsinventory-agent-2.0.5.ebuild,2.38 KB, text/plain)
2014-11-19 09:53 UTC, nico
Details
ocsinventory-agent ebuild (ocsinventory-agent-2.1.1.ebuild,1.49 KB, text/plain)
2014-12-10 07:07 UTC, Aleksey Chernov
Details
cron file for ocsinventory-agent 2.1.1 ebuild (etc_crond_ocsinventory-agent,112 bytes, text/plain)
2014-12-10 07:14 UTC, Aleksey Chernov
Details
modules.conf for ocsinventory-agent 2.1.1 ebuild (etc_ocsa_modules.conf,332 bytes, text/plain)
2014-12-10 07:16 UTC, Aleksey Chernov
Details
ocsinventory-agent.conf for ocsinventory-agent 2.1.1 ebuild (etc_ocsa_ocsinventory-agent.cfg,85 bytes, text/plain)
2014-12-10 07:17 UTC, Aleksey Chernov
Details
ocsinventory server 2.1.2 ebuild (ocsinventory-server-2.1.2.ebuild,3.51 KB, text/plain)
2014-12-10 07:22 UTC, Aleksey Chernov
Details
90_ocsinventory-alias.conf for ocsinventory server 2.1.2 ebuild (90_ocsinventory-alias.conf,1022 bytes, text/x-matlab)
2014-12-10 07:22 UTC, Aleksey Chernov
Details
ocsinventory server (webapp part) 2.1.2 ebuild (ocsinventory-webadmin-2.1.2.ebuild,2.01 KB, text/plain)
2014-12-10 07:24 UTC, Aleksey Chernov
Details
dbconfig.inc.php for ocsinventory server (webapp part) 2.1.2 ebuild (dbconfig.inc.php,300 bytes, application/x-php)
2014-12-10 07:24 UTC, Aleksey Chernov
Details
app-admin/ocsinventory-agent-2.0.5.ebuild (ocsinventory-agent-2.0.5.ebuild,2.38 KB, text/plain)
2015-02-11 09:01 UTC, nico
Details
ocsinventory-agent-2.1.1.ebuild (ocsinventory-agent-2.1.1.ebuild,1.51 KB, text/plain)
2015-04-13 05:46 UTC, Aleksey Chernov
Details
ocsinventory-agent-2.1.1.ebuild (ocsinventory-agent-2.1.1.ebuild,1.52 KB, text/plain)
2015-04-13 05:56 UTC, Aleksey Chernov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Hopferwieser 2008-03-14 21:28:53 UTC
Please find attached ocsinventory-client-1.01.ebuild.

Open Computer and Software Inventory Next Generation is an application designed to help a network or system administrator keep track of the computers configuration and software that are installed on the network.

http://www.ocsinventory-ng.org/index.php?page=English

I removed the ng from the name because I didn't find a former version with that name.

I will also add a ebuild for the ocsinventory-server soon.
Comment 1 Roland Hopferwieser 2008-03-14 21:30:46 UTC
Created attachment 146162 [details]
app-admin/ocsinventory-client-1.01.ebuild
Comment 2 Roland Hopferwieser 2008-03-14 21:31:51 UTC
Created attachment 146163 [details]
files/ocsinv.adm
Comment 3 Roland Hopferwieser 2008-03-14 21:32:13 UTC
Created attachment 146165 [details]
files/ocsinv.conf
Comment 4 Roland Hopferwieser 2008-03-14 21:32:53 UTC
Created attachment 146166 [details]
Cron file
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-16 21:02:58 UTC
(this is an automated message based on filtering criteria that matched this bug)
'EBUILD' is in the KEYWORDS which should mean that there is a ebuild attached 
to this bug.
This bug is assigned to maintainer-wanted which means that it is not in the 
main tree.
Heuristics show that no Gentoo developer has commented on your ebuild.

Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Because this is a mass message, we are also asking you to be patient with us. 
We anticipate a large number of requests in a short time. 

Thanks,
On behalf of the Gentoo Sunrise Team,
Jeremy.

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 6 Arnaud Launay 2009-09-24 17:37:51 UTC
Updated the ebuild to reflect the new unified agent; use ocsinventory-agent everywhere, metadata.xml included
Comment 7 Arnaud Launay 2009-09-24 17:38:49 UTC
Created attachment 205123 [details]
Ebuild for OCS unified agent 1.0.2

Ebuild modified, corrected and pass repoman
Comment 8 Arnaud Launay 2009-09-24 17:39:28 UTC
Created attachment 205124 [details]
Metadata for use logrotate
Comment 9 Arnaud Launay 2009-09-24 17:40:21 UTC
Created attachment 205126 [details]
stripped conf for agent

This may need a bit more work, as it needs to be edited after installation
Comment 10 Arnaud Launay 2009-09-24 17:40:48 UTC
Created attachment 205127 [details]
Rename of -client to -agent

rename cron file from -client to -agent
Comment 11 Jesse Adelman 2009-11-05 04:33:06 UTC
I searched, but didn't find ocsinventory-server on g.b.o. Was that ever started?
Comment 12 Roland Hopferwieser 2009-12-11 12:27:01 UTC
Created attachment 212694 [details]
Ebuild for OCS Inventory NG 1.02.1

Based on the ebuild of Arnaud Launay with small changes.

Keep /var/lib/ocsinventory-agent
Add dependencies x11-misc/read-edid and sys-apps/pciutils, remove sys-apps/smartmontools

I think the current version number is 1.2.1 because the 1.3(beta) is the next.
Comment 13 Roland Hopferwieser 2009-12-11 13:09:21 UTC
Created attachment 212695 [details]
Ebuild for OCS inventory NG Server 1.02.1

There are smaller issues I haven't fixed yet, which have no impact on functionality.

1. I use perl-gcpan/XML-Entities in dependencies because there is no XML-Entities package in portage. You can create it using
  g-cpan -i XML::Entities

2. ${MY_HTDOCSDIR}/dbconfig.inc.php is world readable. You should set it to 640 after the webapp-config command.

3. The postinstall suggests to use /ocsinventory as destination of webapp-config, but this path is normally used by the agents. It is recommended to use /ocsreports or something. E.g.
  webapp-config -I -h localhost -d ocsreports ocsinventory 1.02.1
Comment 14 Roland Hopferwieser 2009-12-11 13:31:23 UTC
Created attachment 212703 [details]
OCSNG postinstall message
Comment 15 Roland Hopferwieser 2009-12-11 16:13:26 UTC
Created attachment 212712 [details]
Ebuild for OCS inventory NG Server 1.02.1

Sorry, I forgot to install subdirectories to ocsreports.

I did also some changes to obsolete issue 2 in comment #13.
Comment 16 Roland Hopferwieser 2009-12-11 16:14:37 UTC
Created attachment 212714 [details]
OCSNG postinstall message
Comment 17 Lukasz Urbaniak 2010-04-02 10:14:49 UTC
Created attachment 226255 [details]
New ebuild ocsinventory-agent
Comment 18 Juan Manuel Docile 2010-07-13 21:09:24 UTC
Sorry about this, how can i get and install "XML-Entities" without internet?

Thanks.

(In reply to comment #13)
> Created an attachment (id=212695) [details]
> Ebuild for OCS inventory NG Server 1.02.1
> 
> There are smaller issues I haven't fixed yet, which have no impact on
> functionality.
> 
> 1. I use perl-gcpan/XML-Entities in dependencies because there is no
> XML-Entities package in portage. You can create it using
>   g-cpan -i XML::Entities
> 
> 2. ${MY_HTDOCSDIR}/dbconfig.inc.php is world readable. You should set it to 640
> after the webapp-config command.
> 
> 3. The postinstall suggests to use /ocsinventory as destination of
> webapp-config, but this path is normally used by the agents. It is recommended
> to use /ocsreports or something. E.g.
>   webapp-config -I -h localhost -d ocsreports ocsinventory 1.02.1
> 

Comment 19 Roland Hopferwieser 2010-07-14 07:26:13 UTC
(In reply to comment #18)
> Sorry about this, how can i get and install "XML-Entities" without internet?
> 
> Thanks.
> 

I don't realy understand your question. If you don't want to use g-cpan, download the package from the CPAN archive (http://search.cpan.org/~sixtease/XML-Entities-0.0307/lib/XML/Entities.pm), install it manually, and remove the XML-Entities dependency from ebuild.
Comment 20 sdfvo87fhk324d98csadc 2010-10-14 06:25:06 UTC
I found XML-Entities-1.0000 installed via g-cpan to not work. I have created an ebuild to installed XML-Entities.

http://bugs.gentoo.org/show_bug.cgi?id=340927
Comment 21 Nguyen Thai Ngoc Duy 2010-10-26 06:15:08 UTC
(In reply to comment #17)
> Created an attachment (id=226255) [details]
> New ocsinventory-agent ebuild
> 

Broken init script (no executable bit, the binary is in /usr/bin why the script looked in /usr/bin).

Also it needs dev-perl/LWP-UserAgent-Determined and dev-perl/Proc-Daemon
Comment 22 Ben Kohler gentoo-dev 2010-12-09 06:06:51 UTC
Very happy to see an ebuild for this!  I tweaked a couple of lines the ebuild to install current 1.3.3 instead, but the chmod 640 on db.config.inc makes it unreadable for apache.  640 apache:apache works fine, but I'm not sure where that should be set in the ebuild.

(In reply to comment #15)
> Created an attachment (id=212712) [details]
> Ebuild for OCS inventory NG Server 1.02.1
> 
> Sorry, I forgot to install subdirectories to ocsreports.
> 
> I did also some changes to obsolete issue 2 in comment #13.
> 

Comment 23 Roland Hopferwieser 2011-03-10 18:34:14 UTC
Created attachment 265481 [details]
ocsinventory-agent-1.1.2.1.ebuild

Based on the ebuild by Lukasz Urbaniak.
Add some dependencies and remove the init-script.
Comment 24 Roland Hopferwieser 2011-03-16 15:14:21 UTC
Created attachment 266133 [details]
ocsinventory-agent-1.1.2.1.ebuild

Instead of the /etc/cron.d/ocsinventory-agent template it will use /etc/cron.daily.
Comment 25 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-04-18 16:35:00 UTC
I never noticed this bug before, but I added ocsng to my overlay a long time ago:

http://git.overlays.gentoo.org/gitweb/?p=dev/jmbsvicetto.git;a=tree;f=net-analyzer/ocsng
Comment 26 sulfinu 2011-10-10 14:50:27 UTC
@Roland Hopferwieser & Jorge Manuel B. S. Vicetto
Shouldn't there be a single ebuild with USE flags "server" and "client"? Jorge Manuel's ebuild installs the only server while Roland's only the (unfortunately outdated) agent. 
Or, if there must be two ebuilds, it would be really great to have them both at the same version and in the same overlay (not to mention the same keywords).

Thanks a lot.
Comment 27 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-10-10 14:57:06 UTC
(In reply to comment #26)
> @Roland Hopferwieser & Jorge Manuel B. S. Vicetto
> Shouldn't there be a single ebuild with USE flags "server" and "client"? Jorge
> Manuel's ebuild installs the only server while Roland's only the (unfortunately
> outdated) agent. 
> Or, if there must be two ebuilds, it would be really great to have them both at
> the same version and in the same overlay (not to mention the same keywords).

I've never worked on a client ebuild, as I only use ocsng as a server.
However, these are two different packages (tarballs), so you can't have a single ebuild for both.
Comment 28 sulfinu 2011-10-11 14:46:45 UTC
Ok, I didn't notice that, but still, agent installations GREATLY outnumber server ones. Are all your clients Windows-based?

I have both corrected Roland's ebuild for the newest version and patched the agent's code to work with the nowadays equery. Results follow.
Comment 29 sulfinu 2011-10-11 14:49:07 UTC
Created attachment 289567 [details]
Ebuild for the latest agent version
Comment 30 sulfinu 2011-10-11 14:51:06 UTC
Created attachment 289569 [details, diff]
Patch needed for the latest agent version
Comment 31 sulfinu 2011-10-11 16:19:29 UTC
Created attachment 289601 [details]
Ebuild for the latest agent version

Small correction plus an ugly workaround for /etc/default/* not doing its job...
Comment 32 sulfinu 2011-12-05 15:37:33 UTC
Created attachment 294871 [details]
Ebuild for agent version 2.0.3
Comment 33 nico 2014-11-19 09:53:18 UTC
Created attachment 389718 [details]
app-admin/ocsinventory-agent-2.0.5.ebuild

- version bump to 2.0.5
- using EAPI=5 instead of EAPI=2
Comment 34 Aleksey Chernov 2014-12-10 07:07:10 UTC
Created attachment 391328 [details]
ocsinventory-agent ebuild

Bump to 2.1.1.
This ebuild requires dev-perl/Proc-PID-File, that ommited in portage, I generate it with g-cpan.

Sorry my english.
Comment 35 Aleksey Chernov 2014-12-10 07:14:46 UTC
Created attachment 391330 [details]
cron file for ocsinventory-agent 2.1.1 ebuild
Comment 36 Aleksey Chernov 2014-12-10 07:16:43 UTC
Created attachment 391332 [details]
modules.conf for ocsinventory-agent 2.1.1 ebuild
Comment 37 Aleksey Chernov 2014-12-10 07:17:52 UTC
Created attachment 391334 [details]
ocsinventory-agent.conf for ocsinventory-agent 2.1.1 ebuild
Comment 38 Aleksey Chernov 2014-12-10 07:22:09 UTC
Created attachment 391336 [details]
ocsinventory server 2.1.2 ebuild

This ebuild uses dev-perl/Apache2-SOAP, that ommited in portage (use g-cpan). But maybe this dependence is useless.

In this ebuild I remove webapp part.
Comment 39 Aleksey Chernov 2014-12-10 07:22:58 UTC
Created attachment 391338 [details]
90_ocsinventory-alias.conf for ocsinventory server 2.1.2 ebuild
Comment 40 Aleksey Chernov 2014-12-10 07:24:20 UTC
Created attachment 391340 [details]
ocsinventory server (webapp part) 2.1.2 ebuild

This is webapp part of ocsinventory server.
Comment 41 Aleksey Chernov 2014-12-10 07:24:59 UTC
Created attachment 391342 [details]
dbconfig.inc.php for ocsinventory server (webapp part) 2.1.2 ebuild
Comment 42 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2014-12-10 16:55:07 UTC
I've added 2.1.2 to my overlay on October 9th.
There are a few "issues" with the ebuild / package that have made me not to add it to the tree yet, but since I've finally "caved in" and updated the install locations to be closer to what upstream does, I'll rethink about adding it to the tree.
Comment 43 nico 2015-02-11 09:01:54 UTC
Created attachment 396172 [details]
app-admin/ocsinventory-agent-2.0.5.ebuild

replace dependancy perl-core/Digest-MD5 with virtual/perl-Digest-MD5
Comment 44 Roland Hopferwieser 2015-04-13 05:23:09 UTC
(In reply to Aleksey Chernov from comment #34)
> Created attachment 391328 [details]
> ocsinventory-agent ebuild
> 
> Bump to 2.1.1.
> This ebuild requires dev-perl/Proc-PID-File, that ommited in portage, I
> generate it with g-cpan.
> 

Is there a reason why you create a fully new ebuild instead of using the last one of nico? Your ebuild has more packages in RDEPEND, while in nico's ebuild some packages are optional and listet in pkg_postinst().
Comment 45 Aleksey Chernov 2015-04-13 05:46:45 UTC
Created attachment 401148 [details]
ocsinventory-agent-2.1.1.ebuild

Updated ebuild for ocsinventory-agent-2.1.1.
Comment 46 Aleksey Chernov 2015-04-13 05:51:19 UTC
(In reply to Roland Hopferwieser from comment #44)
> Is there a reason why you create a fully new ebuild instead of using the
> last one of nico? Your ebuild has more packages in RDEPEND, while in nico's
> ebuild some packages are optional and listet in pkg_postinst().

Matter of taste. And my ebuild for latest 2.1.1 version, not 2.0.5 from nico.
Comment 47 Aleksey Chernov 2015-04-13 05:56:57 UTC
Created attachment 401150 [details]
ocsinventory-agent-2.1.1.ebuild

Added flag 'X' to IUSE for x11-misc/read-edid.
Comment 48 Larry the Git Cow gentoo-dev 2023-11-10 16:49:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e79ec3b1dd7b76c25cf1154aa500a00fcc73881

commit 8e79ec3b1dd7b76c25cf1154aa500a00fcc73881
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2023-11-10 16:48:00 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2023-11-10 16:48:18 +0000

    app-admin/ocsinventory-agent: new package, add 2.10.0
    
    Bug: https://bugs.gentoo.org/213443
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 app-admin/ocsinventory-agent/Manifest              |  1 +
 app-admin/ocsinventory-agent/files/modules.conf    | 10 ++++
 .../files/ocsinventory-agent.cfg                   |  1 +
 .../files/ocsinventory-agent.crond                 |  1 +
 .../files/ocsinventory-agent.service               | 10 ++++
 .../files/ocsinventory-agent.timer                 | 11 +++++
 app-admin/ocsinventory-agent/metadata.xml          |  7 +++
 .../ocsinventory-agent-2.10.0.ebuild               | 54 ++++++++++++++++++++++
 8 files changed, 95 insertions(+)