From b687a849685a43ccb5d3172ee78f0041e81ae1c6 Mon Sep 17 00:00:00 2001 From: Matthew Mondor Date: Wed, 2 Jul 2003 17:20:57 +0000 Subject: [PATCH] *** empty log message *** --- mmsoftware/apache-mmstat/apache-mmstat.8 | 20 +------------------- mmsoftware/apache-mmstat/makepart.sh | 25 +++++++++++++++++++++++++ mmsoftware/clean.sh | 5 ++++- mmsoftware/install.sh | 11 +++++++++-- mmsoftware/make.sh | 6 +++++- mmsoftware/mmstatd/clean.sh | 6 +++++- mmsoftware/mmstatd/install.sh | 9 +++++++-- mmsoftware/mmstatd/make.sh | 7 ++++++- 8 files changed, 62 insertions(+), 27 deletions(-) create mode 100755 mmsoftware/apache-mmstat/makepart.sh diff --git a/mmsoftware/apache-mmstat/apache-mmstat.8 b/mmsoftware/apache-mmstat/apache-mmstat.8 index d0a073d..3ea87c5 100644 --- a/mmsoftware/apache-mmstat/apache-mmstat.8 +++ b/mmsoftware/apache-mmstat/apache-mmstat.8 @@ -1,4 +1,4 @@ -.\" $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. @@ -250,24 +250,6 @@ library expects no reply packet back from 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 diff --git a/mmsoftware/apache-mmstat/makepart.sh b/mmsoftware/apache-mmstat/makepart.sh new file mode 100755 index 0000000..1b53154 --- /dev/null +++ b/mmsoftware/apache-mmstat/makepart.sh @@ -0,0 +1,25 @@ +#!/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 diff --git a/mmsoftware/clean.sh b/mmsoftware/clean.sh index 9ff584d..a5af627 100755 --- a/mmsoftware/clean.sh +++ b/mmsoftware/clean.sh @@ -1,5 +1,5 @@ #!/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 @@ -14,6 +14,9 @@ cd ../ cd mmstatd/src/ clean mmstatd cd ../../ +cd apache-mmstat/ +clean apache-mmstat +cd ../ #cd mmsucom/ #clean mmsucom diff --git a/mmsoftware/install.sh b/mmsoftware/install.sh index bbf73cd..f71cf95 100755 --- a/mmsoftware/install.sh +++ b/mmsoftware/install.sh @@ -1,5 +1,5 @@ #!/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 @@ -118,6 +118,9 @@ instman mmpath.3 3 instman mmstat.3 3 instman mmhash.3 3 cd ../ +cd apache-mmstat/ +instman apache-mmstat.8 8 +cd ../ cd mmpasswd/ instbin mmpasswd 750 $MMADMINGROUP @@ -139,6 +142,9 @@ if [ "$MMLAUNCH" = "TRUE" ]; then startbin mmstatd $MMCONFDIR/mmstatd.conf fi cd ../../ +cd apache-mmstat/ +instbin apache-mmstat 700 +cd ../ cd mmftpd/src/ instuser $MMFTPDUSER $MMFTPDGROUP @@ -180,7 +186,8 @@ cd ../../ 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)" diff --git a/mmsoftware/make.sh b/mmsoftware/make.sh index 01cd3c4..95d71ce 100755 --- a/mmsoftware/make.sh +++ b/mmsoftware/make.sh @@ -1,5 +1,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 @@ -17,6 +17,10 @@ cd mmstatd/src/ clean mmstatd makebin mmstatd cd ../../ +cd apache-mmstat/ +clean apache-mmstat +makebin apache-mmstat +cd ../ cd mmftpd/src/ clean mmftpd diff --git a/mmsoftware/mmstatd/clean.sh b/mmsoftware/mmstatd/clean.sh index 7b39669..77bfe13 100755 --- a/mmsoftware/mmstatd/clean.sh +++ b/mmsoftware/mmstatd/clean.sh @@ -1,5 +1,5 @@ #!/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 @@ -10,3 +10,7 @@ cd ../ cd mmstatd/src/ clean mmstatd cd ../../ + +cd apache-mmstat/ +clean apache-mmstat +cd ../ diff --git a/mmsoftware/mmstatd/install.sh b/mmsoftware/mmstatd/install.sh index 29a72ed..38f8b02 100755 --- a/mmsoftware/mmstatd/install.sh +++ b/mmsoftware/mmstatd/install.sh @@ -1,5 +1,5 @@ #!/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 @@ -87,6 +87,9 @@ instman mmpool.3 3 instman mmstat.3 3 instman mmhash.3 3 cd ../ +cd apache-mmstat/ +instman apache-mmstat.8 8 +cd ../ cd mmstatd/src/ instuser $MMSTATDUSER $MMSTATDGROUP @@ -103,11 +106,13 @@ if [ "$MMLAUNCH" = "TRUE" ]; then 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." diff --git a/mmsoftware/mmstatd/make.sh b/mmsoftware/mmstatd/make.sh index 9cd3e23..d846943 100755 --- a/mmsoftware/mmstatd/make.sh +++ b/mmsoftware/mmstatd/make.sh @@ -1,5 +1,5 @@ #!/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 @@ -13,6 +13,11 @@ clean mmstatd 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 -- 2.9.0