summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-12-05 09:05:18 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-12-05 09:05:18 +0000
commit05c14c6459b2c60f281f1ff5e09a21acbae5e84c (patch)
tree6bdda25abd50a31e44b6783641f13f08c8f30212 /src/configure
parentcleaned parser a bit (diff)
fixed install target
added initscript and default file referring to rinetd in manpage git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@31 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/configure b/src/configure
index 4afa358..b07190b 100755
--- a/src/configure
+++ b/src/configure
@@ -33,7 +33,7 @@ CFLAGS='-g -O2'
LDFLAGS='-g -Wall -O2'
PREFIX='/usr/local'
-SBINDIR=''
+BINDIR=''
ETCDIR=''
MANDIR=''
INSTALLMANPAGE=1
@@ -44,7 +44,7 @@ print_usage() {
echo "configure --help print this"
echo " --target=<TARGET> build target i.e. Linux (default: autodetect)"
echo " --prefix=<PREFIX> the installation prefix (default: /usr/local)"
- echo " --sbindir=<DIR> the path to the sbin directory (default: $PREFIX/sbin)"
+ echo " --bindir=<DIR> the path to the bin directory (default: $PREFIX/bin)"
echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc"
echo " --mandir=<DIR> the path to the system man pages (default: $PREFIX/share/man)"
echo " --no-manpage dont't install manpage"
@@ -61,8 +61,8 @@ do
--prefix=*)
PREFIX=${arg#--prefix=}
;;
- --sbindir=*)
- SBINDIR=${arg#--sbindir=}
+ --bindir=*)
+ BINDIR=${arg#--bindir=}
;;
--sysconfdir=*)
ETCDIR=${arg#--sysconfdir=}
@@ -116,8 +116,8 @@ case $TARGET in
;;
esac
-if [ -z "$SBINDIR" ]; then
- SBINDIR=$PREFIX/sbin
+if [ -z "$BINDIR" ]; then
+ BINDIR=$PREFIX/bin
fi
if [ -z "$ETCDIR" ]; then
@@ -147,7 +147,7 @@ FLEX := flex
BISON := bison
PREFIX := '$PREFIX'
-SBINDIR := '$SBINDIR'
+BINDIR := '$BINDIR'
ETCDIR := '$ETCDIR'
EOF
@@ -193,7 +193,7 @@ cat >> config.h <<EOF
#define TARGET "$TARGET"
#define PREFIX "$PREFIX"
-#define SBINDIR "$SBINDIR"
+#define BINDIR "$BINDIR"
#define ETCDIR "$ETCDIR"
#define CONFFILE "$ETCDIR/tcpproxy.conf"