-.\" $Id: apache-mmstat.8,v 1.2 2003/07/02 08:35:13 mmondor Exp $
+.\" $Id: apache-mmstat.8,v 1.3 2003/07/02 17:20:55 mmondor Exp $
.\"
.\" Copyright (C) 2003, Matthew Mondor
.\" All rights reserved.
for confirmation and as such, a valevolent replacement would not be able to
cause unexpected results other than to close the socket or not accept packets.
.El
-.Pp
-.Sh INSTALLATION
-Compiling the utility is as simple as invoking the
-.Nm make.sh
-script from within the
-.Nm apache-mmstat/
-directory.
-.Pp
-The binary is standalone and should normally be copied as
-.Nm /usr/local/libexec/apache-mmstat .
-It's permissions should normally allow the apache server to execute it.
-Allowing normal users to have access to that executable should not harm the
-system since the application will immediately exit if it detects that it
-hasn't been launched by the superuser. However here are the permissions of the
-application on my system:
-.Bd -literal -offset indent
--rwx------ 1 root www 23150 Jul 2 00:20 apache-mmstat
-.Ed
.Sh CONFIGURATION
This in no way aims to replace an apache manual, obviously. However, some
basics are necessary for
--- /dev/null
+#!/bin/sh
+# $Id: makepart.sh,v 1.1 2003/07/02 17:20:55 mmondor Exp $
+
+. ../mmlib/makedefs.sh
+
+OBJS='apache-mmstat.o'
+BIN1='apache-mmstat'
+
+if [ "$1" = "clean" ]; then
+ show $RM $OBJS $BIN1
+ exit 0
+fi
+
+INCDIR="-I../mmlib $STDINC"
+LIBDIR="$STDLIB"
+LIBS='../mmlib/libmmondor.a -lc'
+
+for obj in $OBJS; do
+ if [ ! -f $obj ]; then
+ src=`$ECHO $obj | $SED 's/\.o$/.c/'`
+ show $CC $CFLAGS -c $INCDIR $src
+ fi
+done
+
+show $CC $CFLAGS -o $BIN1 $INCDIR $LIBDIR $BIN1.o $LIBS
#!/bin/sh
-# $Id: clean.sh,v 1.1 2002/12/11 10:11:06 mmondor Exp $
+# $Id: clean.sh,v 1.2 2003/07/02 17:20:52 mmondor Exp $
. mmlib/makefuncs.sh
cd mmstatd/src/
clean mmstatd
cd ../../
+cd apache-mmstat/
+clean apache-mmstat
+cd ../
#cd mmsucom/
#clean mmsucom
#!/bin/sh
-# $Id: install.sh,v 1.7 2003/06/18 01:15:20 mmondor Exp $
+# $Id: install.sh,v 1.8 2003/07/02 17:20:52 mmondor Exp $
if [ "$1" = "help" ]; then
echo
instman mmstat.3 3
instman mmhash.3 3
cd ../
+cd apache-mmstat/
+instman apache-mmstat.8 8
+cd ../
cd mmpasswd/
instbin mmpasswd 750 $MMADMINGROUP
startbin mmstatd $MMCONFDIR/mmstatd.conf
fi
cd ../../
+cd apache-mmstat/
+instbin apache-mmstat 700
+cd ../
cd mmftpd/src/
instuser $MMFTPDUSER $MMFTPDGROUP
echo
echo "*** Please read the following man pages ***"
echo
-echo "all users: mmstat(8), mmstatd(8), mmstatd.conf(5) mmpasswd(8)"
+echo "all users: mmstat(8), mmstatd(8), mmstatd.conf(5), mmpasswd(8),"
+echo " apache-mmstat(8)"
echo "mmftpd users: mmftpd(8), mmftpd.conf(5), mmftpdpasswd(5)"
echo "mmmail users: mmmail(8), mmsmtpd(8), mmsmtpd.conf(5), mmpop3d(8),"
echo " mmpop3d.conf(5)"
#!/bin/sh
-# $Id: make.sh,v 1.1 2002/12/11 10:11:07 mmondor Exp $
+# $Id: make.sh,v 1.2 2003/07/02 17:20:52 mmondor Exp $
. mmlib/makefuncs.sh
clean mmstatd
makebin mmstatd
cd ../../
+cd apache-mmstat/
+clean apache-mmstat
+makebin apache-mmstat
+cd ../
cd mmftpd/src/
clean mmftpd
#!/bin/sh
-# $Id: clean.sh,v 1.1 2003/01/01 14:54:11 mmondor Exp $
+# $Id: clean.sh,v 1.2 2003/07/02 17:20:57 mmondor Exp $
. ../mmlib/makefuncs.sh
cd mmstatd/src/
clean mmstatd
cd ../../
+
+cd apache-mmstat/
+clean apache-mmstat
+cd ../
#!/bin/sh
-# $Id: install.sh,v 1.4 2003/06/18 01:15:20 mmondor Exp $
+# $Id: install.sh,v 1.5 2003/07/02 17:20:57 mmondor Exp $
if [ "$1" = "help" ]; then
echo
instman mmstat.3 3
instman mmhash.3 3
cd ../
+cd apache-mmstat/
+instman apache-mmstat.8 8
+cd ../
cd mmstatd/src/
instuser $MMSTATDUSER $MMSTATDGROUP
startbin mmstatd $MMCONFDIR/mmstatd.conf
fi
cd ../../
+cd apache-mmstat/
+instbin apache-mmstat 700
echo
echo "*** Please read the following man pages ***"
echo
-echo "mmstat(8), mmstatd(8), mmstatd.conf(5)"
+echo "mmstat(8), mmstatd(8), mmstatd.conf(5), apache-mmstat(8)"
echo "source auditors: mmstat(3), mmlist(3), mmpool(3), mmhash(3)"
echo
echo "Thank you for using mmsoftware."
#!/bin/sh
-# $Id: make.sh,v 1.1 2003/01/01 14:54:11 mmondor Exp $
+# $Id: make.sh,v 1.2 2003/07/02 17:20:57 mmondor Exp $
. ../mmlib/makefuncs.sh
makebin mmstatd
cd ../../
+cd apache-mmstat/
+clean apache-mmstat
+makebin apache-mmstat
+cd ../../
+
echo
echo 'You may now ./install.sh help or ./install.sh to install/upgrade'
echo