Koozali.org: home of the SME Server

Editing a Makefile for SME

cydonia

Editing a Makefile for SME
« on: June 20, 2005, 02:56:18 PM »
I installed unixODBC on my SME 6.0.1-1 server and unfortunately it put the config files in /usr/local/etc.

So, i realised I probably had to edit the makefile in someway, and upon looking at it, could see the variables dicating config directory etc.

I'm just wondering though what I should change for SME?  And whether there is a standard practice for handling Makefiles with SME.

I ran it from /usr/src/unixODBC.

Here is the part which I know I have to change, but not sure how much of it apart from $sysconfdir:

SHELL = /bin/sh

srcdir = .
top_srcdir = .

prefix = /usr/local
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include
pkgdatadir = $(datadir)/unixODBC
pkglibdir = $(libdir)/unixODBC
pkgincludedir = $(includedir)/unixODBC
top_builddir = .




Thanks.

DarkMirage

Editing a Makefile for SME
« Reply #1 on: June 20, 2005, 03:23:15 PM »
I don't know if you have a specific reason for building unixODBC, because you could save yourself the trouble: RPM search result
This rpm places the configuration file in /etc.

Since "${prefix}/etc" does not seem to be repeated, I would think that's the only thing you would have to change.

Imho, SME seems to stick with rpm's as much as possible, and create e-smith- (smeserver-) rpm's whenever needed/desired, containing for example templates for configuration.

There should be enough information documented on contribs to get you started if you wish to conform to sme guidelines.

After that the next step would be the dev mailing list..

cydonia

Editing a Makefile for SME
« Reply #2 on: June 20, 2005, 03:42:43 PM »
I have installed unixODBC with the rpm, but I don't think it worked...  It didn't seem to create an odbc.ini file, and I heard reports of unixODBC RPMS causing problems.

Anyway, I was also going to ask how to remove the program if I make from source.  Since I will have to re-make it to fix the dirs.

Any ideas?