Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
app-admin/fusioninventory-agent-2.2.7
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
olivierweb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2002
Posts: 113
Location: France

PostPosted: Thu Jul 18, 2013 3:25 pm    Post subject: app-admin/fusioninventory-agent-2.2.7 Reply with quote

I needed to install fusioninventory on my work computer. This is the ebuild I made:

Code:

EAPI=3

inherit perl-module

MY_PN="FusionInventory-Agent"
DESCRIPTION="Powerful inventory and package deployment system"
HOMEPAGE="http://www.fusioninventory.org/"
SRC_URI="http://forge.fusioninventory.org/attachments/download/867/FusionInventory-Agent-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE=""

DEPEND="
        sys-apps/dmidecode
        dev-perl/File-Which
        dev-perl/IO-Socket-SSL
        dev-perl/UNIVERSAL-require
        dev-perl/XML-TreePP
"
RDEPEND="${DEPEND}"

MY_P=${MY_PN}-${PV}
S=${WORKDIR}/${MY_P}
myconf="SYSCONFDIR=/etc/fusioninventory"

src_install() {
        emake install
        dodir /usr/var/fusioninventory/
}

pkg_postinst() {
        elog "To configure Fusioninventory-agent,"
        elog "edit the file /etc/fusioninventory/agent.cfg,"
        elog "read the following web page:"
        elog "http://www.fusioninventory.org/documentation/agent/configuration/"
}


It needs dev-perl/XML-TreePP from the perl overlay.

Edit: changes after VoidMage's remarks.
_________________
A decade with Gentoo...


Last edited by olivierweb on Fri Jul 19, 2013 7:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Thu Jul 18, 2013 3:43 pm    Post subject: Reply with quote

While I don't know that much about about perl eclasses, it seems to me that you should have simply inherit from perl-moduleand set MY_PN to FusionInventory-Agent, then most likely you wouldn't have to write those two functions. Especially, that those '/usr/local/' prefixes say it's done wrong.

Also , what purpose should 'IUSE="logrotate"' serve ?
Back to top
View user's profile Send private message
olivierweb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2002
Posts: 113
Location: France

PostPosted: Thu Jul 18, 2013 9:34 pm    Post subject: Reply with quote

Thanks for your reply.

You're right. Something is wrong with the prefix.

I'm not an expert in Ebuild, I know nothing about eclass perl-module.

'IUSE="logrotate"' is a forgotten line from an old copy-pasted file.

I'll try with this eclass and update if I succeed.
Back to top
View user's profile Send private message
olivierweb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2002
Posts: 113
Location: France

PostPosted: Fri Jul 19, 2013 7:40 pm    Post subject: Reply with quote

I've modified the ebuild to use "perl-app". I added some configuration option to install the config to /etc/ .

It seems much better.

Any enhancement is welcome!
_________________
A decade with Gentoo...
Back to top
View user's profile Send private message
lmarcini
Guru
Guru


Joined: 21 Jul 2004
Posts: 531
Location: Champagne sur Seine (France)

PostPosted: Mon Sep 16, 2013 11:39 am    Post subject: Reply with quote

No informations about volumes, apps, network, etc. Same problem with a modified/updated ebuild (updated to 2.3.1 with dev-perl/Module-Install as added dependencie)...

Laurent.
_________________
umount /dev/brain
Back to top
View user's profile Send private message
olivierweb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2002
Posts: 113
Location: France

PostPosted: Mon Sep 16, 2013 7:00 pm    Post subject: Reply with quote

Hi Laurent,

It works well at office.

Maybe updated perl modules broke something. What are your versions?
Back to top
View user's profile Send private message
lmarcini
Guru
Guru


Joined: 21 Jul 2004
Posts: 531
Location: Champagne sur Seine (France)

PostPosted: Tue Sep 17, 2013 7:59 am    Post subject: Reply with quote

Hi Olivier,

I use Perl 5.16. Perhaps, some modules are missing ?
_________________
umount /dev/brain
Back to top
View user's profile Send private message
olivierweb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2002
Posts: 113
Location: France

PostPosted: Thu Sep 19, 2013 10:00 am    Post subject: Reply with quote

Hi,

I'm using perl-5.12.4-r1.

Maybe some dependencies lacks in the ebuild or the new version breaks something.
_________________
A decade with Gentoo...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum