Hi, is possible to compile and install OpenSer in same directory estructure as Debian packages? I mean:
/usr/sbin/openser* /usr/lib/openser/modules/ /etc/openser/
I could copy /etc/init.d/openser from Debian and use option "-f /etc/openser" but I'd like to know if there is a "cleaner" way.
Is it necessary to modify sources for it?
Thanks.
Inaki,
Should be possible to do using the Makefiles.
-- Alex
On Tue, 23 Oct 2007, Iñaki Baz Castillo wrote:
Hi, is possible to compile and install OpenSer in same directory estructure as Debian packages? I mean:
/usr/sbin/openser* /usr/lib/openser/modules/ /etc/openser/
I could copy /etc/init.d/openser from Debian and use option "-f /etc/openser" but I'd like to know if there is a "cleaner" way.
Is it necessary to modify sources for it?
Thanks.
-- Iñaki Baz Castillo
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
-- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : +1-678-954-0670 Direct : +1-678-954-0671
2007/10/23, Iñaki Baz Castillo ibc@aliax.net:
Hi, is possible to compile and install OpenSer in same directory estructure as Debian packages? I mean:
/usr/sbin/openser* /usr/lib/openser/modules/ /etc/openser/
Try this:
LOCALBASE=/usr make all cfg-target=/etc//openser/ modules-dir=/usr/lib/openser/modules
Hi, Iñaki...
As said by Peter, You can redirect the installation directories playing with the directory parameters of make, but it won't touch the internals of OPENSERCTL, p.ex.. So pay special attention on this kind of issues. I once try it on OpenSUSE and give up due to all the work related to this ajustments... Maybe the new 1.3 building process is more 'inteligent', but don't know.
Edson
-----Original Message----- From: users-bounces@openser.org [mailto:users-bounces@openser.org] On Behalf Of Peter Lemenkov Sent: terça-feira, 23 de outubro de 2007 17:55 To: Iñaki Baz Castillo Cc: users@openser.org Subject: Re: [OpenSER-Users] How to compile OpenSer to get /etc/openser and/usr/sbin/openser and /usr/lib/openser?
2007/10/23, Iñaki Baz Castillo ibc@aliax.net:
Hi, is possible to compile and install OpenSer in same directory
estructure as
Debian packages? I mean:
/usr/sbin/openser* /usr/lib/openser/modules/ /etc/openser/
Try this:
LOCALBASE=/usr make all cfg-target=/etc//openser/ modules-dir=/usr/lib/openser/modules
-- With best regards!
El Martes, 23 de Octubre de 2007, Peter Lemenkov escribió:
2007/10/23, Iñaki Baz Castillo ibc@aliax.net:
Hi, is possible to compile and install OpenSer in same directory estructure as Debian packages? I mean:
/usr/sbin/openser* /usr/lib/openser/modules/ /etc/openser/
Try this:
LOCALBASE=/usr make all cfg-target=/etc//openser/ modules-dir=/usr/lib/openser/modules
Humm, it didn't work. It still uses /usr/local.
And if I set prefix=/usr then it creates things like: /usr/usr/lib/openser/modules
Anyway I realize that this is complex (thanks too to Edson comment) so I'll leav all in /usr.
Thanks a lot for your help.
El Miércoles, 24 de Octubre de 2007, Juha Heinanen escribió:
Iñaki Baz Castillo writes:
Hi, is possible to compile and install OpenSer in same directory estructure as Debian packages?
you can generate debian openser packages from debian source and the install the packages.
Ok, I see now the "make deb" and sources/packaging/debian-*
There are 3 subdirectories: - debian - debian-sarge - debian-etch
Differences between debian (sid) and debian-etch are just some dependencies names: - debian-etch: libsnmp9-dev libdb4.4-dev - debian: libsnmp-dev libdb4.5-dev
But the Makefile just talks about "debian" dir:
deb: ln -sf packaging/debian dpkg-buildpackage -rfakeroot -tc $(DEBBUILD_EXTRA_OPTIONS) rm -f debian
In case I'm in Debian Etch, should I rename "debian-etch" to "debian" or modify the Makefile ("debian" -> "debian-etch").
Thanks.
On Wednesday 24 October 2007, Iñaki Baz Castillo wrote:
Ok, I see now the "make deb" and sources/packaging/debian-*
There are 3 subdirectories:
- debian
- debian-sarge
- debian-etch
Differences between debian (sid) and debian-etch are just some dependencies names:
- debian-etch: libsnmp9-dev libdb4.4-dev
- debian: libsnmp-dev libdb4.5-dev
But the Makefile just talks about "debian" dir:
deb: ln -sf packaging/debian dpkg-buildpackage -rfakeroot -tc $(DEBBUILD_EXTRA_OPTIONS) rm -f debian
In case I'm in Debian Etch, should I rename "debian-etch" to "debian" or modify the Makefile ("debian" -> "debian-etch").
Hello Iñaki,
'make deb' builds only unstable at the moment. You can either modify the makefile to point to etch, or add a link from debian to packaging/debian-etch and run the dpkg-buildpackage command you quoted above.
Cheers,
Henning
El Miércoles, 24 de Octubre de 2007, Henning Westerholt escribió:
On Wednesday 24 October 2007, Iñaki Baz Castillo wrote:
Ok, I see now the "make deb" and sources/packaging/debian-*
There are 3 subdirectories:
- debian
- debian-sarge
- debian-etch
Differences between debian (sid) and debian-etch are just some dependencies names:
- debian-etch: libsnmp9-dev libdb4.4-dev
- debian: libsnmp-dev libdb4.5-dev
But the Makefile just talks about "debian" dir:
deb: ln -sf packaging/debian dpkg-buildpackage -rfakeroot -tc $(DEBBUILD_EXTRA_OPTIONS) rm -f debian
In case I'm in Debian Etch, should I rename "debian-etch" to "debian" or modify the Makefile ("debian" -> "debian-etch").
Hello Iñaki,
'make deb' builds only unstable at the moment. You can either modify the makefile to point to etch, or add a link from debian to packaging/debian-etch and run the dpkg-buildpackage command you quoted above.
Ok, thanks a lot.