Fwd: Logwatch CVS patches
"Kirk Bauer" <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
---------- Forwarded message ---------- From: Craig Ruff <[email protected]> Date: Nov 27, 2007 9:28 AM Subject: Logwatch CVS patches To: [email protected] For logwatch CVS 2007/11/26. First patch (make-missing-dir-diff) lets install_logwatch.sh make a missing man page directory Solaris when installed in a non-standard location. Second patch (install-prefix-diff) sets install_logwatch.sh to use a single common directory for everything when passed the --prefix option. -- Craig Ruff NCAR [email protected] 303-497-1211 P.O. Box 3000 Boulder, CO 80307 -- Kirk Bauer <[email protected]> http://linux.kaybee.org | www.logwatch.org Author, Automating UNIX & Linux Administration _______________________________________________ Logwatch-Devel mailing list [email protected] http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
make-missing-dir-diff
(text/plain, 770 B)
*** install_logwatch.sh.orig Tue Nov 27 09:06:38 2007
--- install_logwatch.sh Tue Nov 27 09:07:34 2007
***************
*** 228,235 ****
else
if [ $OS = "SunOS" ]; then
#Go for the safe install rather then editing man.cf
install -m 0644 logwatch.8 $MANDIR/man1m
! catman -w -M /usr/share/man/man1m
else
install -m 0755 -d $MANDIR/man8
install -m 0644 logwatch.8 $MANDIR/man8
--- 228,236 ----
else
if [ $OS = "SunOS" ]; then
#Go for the safe install rather then editing man.cf
+ mkdir -p $MANDIR/man1m > /dev/null 2>&1
install -m 0644 logwatch.8 $MANDIR/man1m
! catman -w -M $MANDIR/man1m
else
install -m 0755 -d $MANDIR/man8
install -m 0644 logwatch.8 $MANDIR/man8
install-prefix-diff
(text/plain, 1.1 KB)
*** install_logwatch.sh.orig Tue Nov 27 09:23:36 2007 --- install_logwatch.sh Tue Nov 27 09:21:30 2007 *************** *** 56,61 **** --- 56,92 ---- PERLEXE="/usr/bin/perl" MANDIR="/usr/share/man" + ac_prev= + for ac_option + do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + case $ac_option in + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + *) + echo "Unknown option '$ac_option'" + ;; + esac + done + + if [ "x$prefix" != "x" ]; then + BASEDIR=$prefix + CONFIGDIR=$BASEDIR/etc + TEMPDIR=$BASEDIR/tmp + MANDIR=$BASEDIR/man + fi + #Talk to user printf "#################################\n" printf "Preparing to install Logwatch\n"