Skip to content
Snippets Groups Projects
Commit d7335c6c authored by ballen4705's avatar ballen4705
Browse files

Guido's changes to make /usr/local the default installation location.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@1702 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 25a76868
No related branches found
No related tags found
No related merge requests found
CHANGELOG for smartmontools CHANGELOG for smartmontools
$Id: CHANGELOG,v 1.405 2004/04/30 06:20:49 dpgilbert Exp $ $Id: CHANGELOG,v 1.406 2004/05/04 21:23:40 ballen4705 Exp $
The most recent version of this file is: The most recent version of this file is:
http://cvs.sourceforge.net/viewcvs.py/smartmontools/sm5/CHANGELOG?sortby=date&view=markup http://cvs.sourceforge.net/viewcvs.py/smartmontools/sm5/CHANGELOG?sortby=date&view=markup
...@@ -30,6 +30,8 @@ NOTES FOR FUTURE RELEASES: see TODO file. ...@@ -30,6 +30,8 @@ NOTES FOR FUTURE RELEASES: see TODO file.
[DG] move SCSI device temperature and start-stop log page output [DG] move SCSI device temperature and start-stop log page output
(smartctl) into --attributes section (was in --info section). (smartctl) into --attributes section (was in --info section).
[GG] change default installation location to /usr/local
[CF] Cygwin smartd: Fixed crash on access of SCSI devices after fork(). [CF] Cygwin smartd: Fixed crash on access of SCSI devices after fork().
[PW] Added TOSHIBA MK4018GAS and the following Maxtor drive families [PW] Added TOSHIBA MK4018GAS and the following Maxtor drive families
......
Smartmontools installation instructions Smartmontools installation instructions
======================================= =======================================
$Id: INSTALL,v 1.44 2004/05/03 15:58:33 ballen4705 Exp $ $Id: INSTALL,v 1.45 2004/05/04 21:23:40 ballen4705 Exp $
Please also see the smartmontools home page: Please also see the smartmontools home page:
http://smartmontools.sourceforge.net/ http://smartmontools.sourceforge.net/
...@@ -152,16 +152,17 @@ Table of contents: ...@@ -152,16 +152,17 @@ Table of contents:
As shown (with no options to ./configure) this defaults to the As shown (with no options to ./configure) this defaults to the
following set of installation directories: following set of installation directories:
--prefix=/usr --prefix=/usr/local
--sbindir=/usr/sbin --sbindir=/usr/local/sbin
--sysconfdir=/etc --sysconfdir=/usr/local/etc
--mandir=/usr/share/man --mandir=/usr/local/share/man
--with-docdir=/usr/share/doc/smartmontools-VERSION --with-docdir=/usr/local/share/doc/smartmontools-VERSION
--with-initscriptdir=/etc/rc.d/init.d --with-initscriptdir=/usr/local/etc/rc.d/init.d
--disable-sample --disable-sample
These will overwrite existing "distribution" installations for Red These will usually not overwrite existing "distribution" installations on
Hat, Slackware, and some other Linux distributions. Linux Systems since the FHS reserves this area for use by the system
administrator.
For different installation locations or distributions, simply add For different installation locations or distributions, simply add
arguments to ./configure as shown in [4] below. arguments to ./configure as shown in [4] below.
...@@ -178,7 +179,8 @@ Note: Please send corrections/additions to: ...@@ -178,7 +179,8 @@ Note: Please send corrections/additions to:
smartmontools-support@lists.sourceforge.net smartmontools-support@lists.sourceforge.net
Debian: Debian:
./configure --prefix=/usr/local If you don't want to overwrite any distribution package, use:
./configure
Filesystem Hierarchy Standard (FHS): Filesystem Hierarchy Standard (FHS):
./configure --sbindir=/usr/local/sbin \ ./configure --sbindir=/usr/local/sbin \
...@@ -188,8 +190,6 @@ Filesystem Hierarchy Standard (FHS): ...@@ -188,8 +190,6 @@ Filesystem Hierarchy Standard (FHS):
--with-docdir=/usr/local/share/doc/smartmontools-VERSION --with-docdir=/usr/local/share/doc/smartmontools-VERSION
Red Hat: Red Hat:
./configure
OR EQUIVALENTLY
./configure --sbindir=/usr/sbin \ ./configure --sbindir=/usr/sbin \
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
...@@ -198,7 +198,7 @@ Red Hat: ...@@ -198,7 +198,7 @@ Red Hat:
Slackware: Slackware:
If you don't want to overwrite any "distribution" package, use: If you don't want to overwrite any "distribution" package, use:
./configure --prefix=/usr/local ./configure
Otherwise use: Otherwise use:
./configure --sbindir=/usr/sbin \ ./configure --sbindir=/usr/sbin \
...@@ -393,31 +393,26 @@ it in a wide window. ...@@ -393,31 +393,26 @@ it in a wide window.
OPTIONS DEFAULT AFFECTS OPTIONS DEFAULT AFFECTS
------- ------- ------- ------- ------- -------
--prefix [NO VALUE] Please see below --prefix /usr/local Please see below
--sbindir /usr/sbin Directory for smartd/smartctl executables; --sbindir ${prefix}/sbin Directory for smartd/smartctl executables;
Contents of smartd/smartctl man pages Contents of smartd/smartctl man pages
--mandir /usr/share/man Directory for smartctl/smartd/smartd.conf man pages --mandir ${prefix}/share/man Directory for smartctl/smartd/smartd.conf man pages
--sysconfdir /etc Directory for smartd.conf; --sysconfdir ${prefix}/etc Directory for smartd.conf;
Contents of smartd executable; Contents of smartd executable;
Contents of smartd/smartd.conf man pages; Contents of smartd/smartd.conf man pages;
Directory for rc.d/init.d/smartd init script Directory for rc.d/init.d/smartd init script
--with-initscriptdir ${sysconfdir}/init.d/rc.d Location of init scripts --with-initscriptdir ${sysconfdir}/init.d/rc.d Location of init scripts
--with-docdir $(prefix)/usr/share/doc/smartmontools-5.X Location of the documentation --with-docdir ${prefix}/share/doc/smartmontools-5.X Location of the documentation
--enable-sample --disable-sample Adds the string '.sample' to the names of the smartd.conf file and the smartd RC file --enable-sample --disable-sample Adds the string '.sample' to the names of the smartd.conf file and the smartd RC file
Here's an example:
If you set --prefix=/home/joe and none of the other four
If you set --prefix and NONE of the other four variables, for example:
./configure --prefix=/home/joe
then the DEFAULT paths will ALL have prefix appended to them.
For example, if you set --prefix=/home/joe and none of the other four
variables then the different directories that are used would be: variables then the different directories that are used would be:
--sbindir /home/joe/usr/sbin --sbindir /home/joe/sbin
--mandir /home/joe/usr/share/man --mandir /home/joe/share/man
--sysconfdir /home/joe/etc --sysconfdir /home/joe/etc
--with-initscriptdir /home/joe/etc/init.d/rc.d --with-initscriptdir /home/joe/etc/init.d/rc.d
--with-docdir /home/joe/usr/share/doc/smartmontools-5.X --with-docdir /home/joe/doc/smartmontools-5.X
This is useful for test installs in a harmless subdirectory somewhere. This is useful for test installs in a harmless subdirectory somewhere.
...@@ -455,16 +450,14 @@ no other options specified (see above for details) ...@@ -455,16 +450,14 @@ no other options specified (see above for details)
Case 1: Case 1:
--enable-sample provided --enable-sample provided
==> Files installed are: ==> Files installed are:
/etc/smartd.conf.sample /usr/local/etc/smartd.conf.sample
/etc/rc.d/init.d/smartd.sample /usr/local/etc/rc.d/init.d/smartd.sample
Case 2: Case 2:
--disable-sample provided or parameter left out --disable-sample provided or parameter left out
==> Files installed are: ==> Files installed are:
/etc/smartd.conf /usr/local/etc/smartd.conf
/etc/rc.d/init.d/smartd /usr/local/etc/rc.d/init.d/smartd
Additional information about using configure can be found here: Additional information about using configure can be found here:
http://www.gnu.org/manual/autoconf-2.57/html_mono/autoconf.html#SEC139 http://www.gnu.org/manual/autoconf-2.57/html_mono/autoconf.html#SEC139
# #
# $Id: configure.in,v 1.73 2004/04/08 18:18:39 ballen4705 Exp $ # $Id: configure.in,v 1.74 2004/05/04 21:23:40 ballen4705 Exp $
# #
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.50) AC_PREREQ(2.50)
...@@ -7,7 +7,7 @@ AC_INIT(smartmontools, 5.31, smartmontools-support@lists.sourceforge.net) ...@@ -7,7 +7,7 @@ AC_INIT(smartmontools, 5.31, smartmontools-support@lists.sourceforge.net)
AC_CONFIG_SRCDIR(smartctl.c) AC_CONFIG_SRCDIR(smartctl.c)
smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"` smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"`
smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.73 2004/04/08 18:18:39 ballen4705 Exp $'` smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.74 2004/05/04 21:23:40 ballen4705 Exp $'`
smartmontools_release_date=2004/03/07 smartmontools_release_date=2004/03/07
smartmontools_release_time="20:57:36 UTC" smartmontools_release_time="20:57:36 UTC"
...@@ -64,7 +64,6 @@ AC_SUBST(CPPFLAGS) ...@@ -64,7 +64,6 @@ AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS) AC_SUBST(LDFLAGS)
AC_SUBST(ASFLAGS) AC_SUBST(ASFLAGS)
AC_PREFIX_DEFAULT(['/usr'])
AC_SUBST([exampledir], ['${docdir}/examplescripts']) AC_SUBST([exampledir], ['${docdir}/examplescripts'])
AC_ARG_WITH(initscriptdir,[AC_HELP_STRING([--with-initscriptdir=dir],[Location of init scripts (default is ${sysconfdir}/rc.d/init.d)])],[initddir="$withval"],[initddir='${sysconfdir}/rc.d/init.d']) AC_ARG_WITH(initscriptdir,[AC_HELP_STRING([--with-initscriptdir=dir],[Location of init scripts (default is ${sysconfdir}/rc.d/init.d)])],[initddir="$withval"],[initddir='${sysconfdir}/rc.d/init.d'])
...@@ -78,10 +77,6 @@ AC_SUBST(smartd_suffix) ...@@ -78,10 +77,6 @@ AC_SUBST(smartd_suffix)
AM_CONDITIONAL(SMARTD_SUFFIX, test $smartd_suffix) AM_CONDITIONAL(SMARTD_SUFFIX, test $smartd_suffix)
if test "$prefix" = "NONE"; then if test "$prefix" = "NONE"; then
dnl no prefix and no sysconfdir, so default to /etc
if test "$sysconfdir" = '${prefix}/etc'; then
AC_SUBST([sysconfdir], ['/etc'])
fi
dnl no prefix and no mandir, so use ${prefix}/share/man as default dnl no prefix and no mandir, so use ${prefix}/share/man as default
if test "$mandir" = '${prefix}/man'; then if test "$mandir" = '${prefix}/man'; then
AC_SUBST([mandir], ['${prefix}/share/man']) AC_SUBST([mandir], ['${prefix}/share/man'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment