Mailinglist Archive: opensuse (856 mails)

< Previous Next >
Re: [opensuse] Re: building smartmontools
04.10.2016 23:19, Carlos E. R. пишет:

./configure --prefix=/usr
binary install path: /usr/sbin
man page install path: /usr/share/man
doc file install path: /usr/share/doc/smartmontools
examples install path: /usr/share/doc/smartmontools/examplescripts
drive database file: /usr/share/smartmontools/drivedb.h
database update script: /usr/sbin/update-smart-drivedb
download tools: curl wget lynx svn
local drive database: /usr/etc/smart_drivedb.h
smartd config file: /usr/etc/smartd.conf
smartd warning script: /usr/etc/
smartd plugin path: /usr/etc/smartd_warning.d
smartd initd script: /usr/etc/init.d/smartd.initd

How is it done? I always have built for /usr/local, but not this time, and
I'm stuck.

Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/smartmontools]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]

It seems I may have to tune almost each single path, and that doesn't seem
correct to me. :-?

Actually you just need to additionally set --sysconfdir and may be
--libexecdir, everything else looks to default to correct path under
/usr. That is what build system does. "rpm --eval %configure" shows
configure invocation used by default when building packages. Or you can
look into smartmontools spec file to call configure exactly as package does.

< Previous Next >