Installation in alternative directory only works for some files
System: FreeBSD 10.2
svn revision: 5161
Tried to install binaries in alternative folder but main binaries have been installe in default sbin folder.
Here is my command and output:
- make install bindir=/opt/kannel/sbin
/usr/bin/install -c -d /opt/kannel/sbin
for prog in wmlscript/wmlsc wmlscript/wmlsdasm utils/seewbmp utils/mtbatch utils/decode_emimsg gw-config; do /usr/bin/install -c $prog /opt/kannel/sbin/`basename $prog`; done
test -r /opt/kannel/sbin/gw-config || ln -sf gw-config /opt/kannel/sbin/gw-config
/usr/bin/install -c -d /usr/local/sbin
for prog in gw/bearerbox gw/smsbox gw/wapbox utils/run_kannel_box; do /usr/bin/install -c $prog /usr/local/sbin/`basename $prog`; done
As you can see, binaries like wmlscript/wmlsc and utils/seewbmp are installed to the directory provided through bindir, but the main binaries like bearerbox and smsbox are installed to directory /usr/local/sbin.
I have tried with gmake but the result is the same.
#1 Updated by Alexander Malysh about 4 years ago
- Status changed from New to Rejected
have you read INSTALL file? [[https://redmine.kannel.org/projects/kannel/repository/entry/trunk/INSTALL]]
or try with bindir=xxx sbindir=xxx
Installation Names ==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.