Changeset 1080

Show
Ignore:
Timestamp:
10/03/06 00:52:52 (5 years ago)
Author:
janl
Message:

Getting better all the time

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/1.3.3rc/INSTALL

    r860 r1080  
    99        - make install-main 
    1010        - create a cron-entry to run "munin-cron" as the user "munin" every 5 
    11           minutes 
    12         - if you want to use the dynamic graphs, configure the cgi directory 
    13           (an example for apache can be found in README-apache-cgi). 
     11          minutes.  You might find cron files for your system in the 
     12          build/resources directory. 
     13 
     14        - if you want to use the dynamic graphs: Configure the cgi 
     15          directory, you will find a apache config example in 
     16          build/resources.  NOTE: Dynamic graphs are not exactly 
     17          perfect. Se also http://munin.projects.linpro.no/wiki/CgiHowto 
    1418 
    1519To install the documentation: 
  • tags/1.3.3rc/Makefile

    r1078 r1080  
    99DIR              = $(shell /bin/pwd | sed 's/^.*\///') 
    1010INFILES          = $(shell find . -name '*.in') 
     11PLUGINS          = $(wildcard node/node.d.$(OSTYPE)/* node/node.d/*) 
     12MANCENTER        = "Munin Documentation" 
     13MAN8             = node/munin-node node/munin-run \ 
     14                        node/munin-node-configure-snmp \ 
     15                        node/munin-node-configure \ 
     16                        server/munin-graph server/munin-update \ 
     17                        server/munin-limits server/munin-html 
     18PODMAN8          = server/munin-cron 
     19PODMAN5          = server/munin.conf node/munin-node.conf 
    1120 
    1221default: build 
     
    7584        $(INSTALL) -m 0755 build/node/munin-run $(SBINDIR)/ 
    7685 
    77 install-node-plugins: build 
    78         for p in build/node/node.d.$(OSTYPE)/* build/node/node.d/*; do                  \ 
    79                 if test -f "$$p" ; then                                                 \ 
    80                         family=`sed -n 's/^#%# family=\(.*\)$$/\1/p' $$p`;              \ 
    81                         test "$$family" || family=contrib;                              \ 
    82                         if echo $(INSTALL_PLUGINS) | grep $$family >/dev/null; then     \ 
    83                                 test -f "$(LIBDIR)/plugins/`basename $$p`"              \ 
    84                                 || $(INSTALL) -m 0755 $$p $(LIBDIR)/plugins/;                   \ 
    85                         fi;                                                             \ 
    86                 fi                                                                      \ 
     86 
     87install-node-plugins: build $(PLUGINS) Makefile Makefile.config 
     88        for p in build/node/node.d.$(OSTYPE)/* build/node/node.d/*; do \ 
     89            if test -f "$$p" ; then                                    \ 
     90                family=`sed -n 's/^#%# family=\(.*\)$$/\1/p' $$p`;     \ 
     91                test "$$family" || family=contrib;                     \ 
     92                if echo $(INSTALL_PLUGINS) |                           \ 
     93                   grep $$family >/dev/null; then                      \ 
     94                        test -f "$(LIBDIR)/plugins/`basename $$p`"     \ 
     95                        || $(INSTALL) -m 0755 $$p $(LIBDIR)/plugins/;  \ 
     96                fi;                                                    \ 
     97            fi                                                         \ 
    8798        done 
    8899        $(INSTALL) -m 0644 build/node/plugins.history $(LIBDIR)/plugins/ 
     
    124135 
    125136build-stamp: $(INFILES) Makefile Makefile.config 
     137        touch build-stamp 
    126138        @for file in $(INFILES); do                     \ 
    127139                destname=`echo $$file | sed 's/.in$$//'`;               \ 
     
    141153                    -e 's|@@PERL@@|$(PERL)|g'                           \ 
    142154                    -e 's|@@PERLLIB@@|$(PERLLIB)|g'                     \ 
    143                     -e 's|@@PYTHON@@|$(PYTHON)|g'                              
    144                     -e 's|@@OSTYPE@@|$(OSTYPE)|g'                              
     155                    -e 's|@@PYTHON@@|$(PYTHON)|g'                       
     156                    -e 's|@@OSTYPE@@|$(OSTYPE)|g'                       
    145157                    -e 's|@@HOSTNAME@@|$(HOSTNAME)|g'                   \ 
    146158                    -e 's|@@MKTEMP@@|$(MKTEMP)|g'                       \ 
     
    153165                    $$file > build/$$destname;                          \ 
    154166        done 
    155         touch build-stamp 
    156  
    157 build-doc: build-doc-stamp Makefile 
     167 
     168build-doc: build-doc-stamp Makefile Makefile.config 
    158169 
    159170build-doc-stamp: 
     171        touch build-doc-stamp 
    160172        mkdir -p build/doc 
    161173        -htmldoc munin-doc-base.html > build/doc/munin-doc.html 
     
    167179        -html2text -style pretty -nobs build/doc/munin-faq.html > build/doc/munin-faq.txt 
    168180 
    169         touch build-doc-stamp 
    170  
    171181build-man: build-man-stamp  
    172182 
    173 build-man-stamp: build 
     183build-man-stamp: build Makefile Makefile.config 
     184        touch build-man-stamp 
    174185        mkdir -p build/doc 
    175         pod2man  --section=8 --release=$(RELEASE) --center="Munin Documentation" \ 
    176                 build/node/munin-node > build/doc/munin-node.8 
    177         pod2man  --section=8 --release=$(RELEASE) --center="Munin Documentation" \ 
    178                 build/node/munin-run > build/doc/munin-run.8 
    179         pod2man  --section=8 --release=$(RELEASE) --center="Munin Documentation" \ 
    180                 build/node/munin-node-configure-snmp > build/doc/munin-node-configure-snmp.8 
    181         pod2man  --section=8 --release=$(RELEASE) --center="Munin Documentation" \ 
    182                 build/node/munin-node-configure > build/doc/munin-node-configure.8 
    183         pod2man  --section=8 --release=$(RELEASE) --center="Munin Documentation" \ 
    184                 build/server/munin-graph > build/doc/munin-graph.8 
    185         pod2man  --section=8 --release=$(RELEASE) --center="Munin Documentation" \ 
    186                 build/server/munin-update > build/doc/munin-update.8 
    187         pod2man  --section=8 --release=$(RELEASE) --center="Munin Documentation" \ 
    188                 build/server/munin-limits > build/doc/munin-limits.8 
    189         pod2man  --section=8 --release=$(RELEASE) --center="Munin Documentation" \ 
    190                 build/server/munin-html > build/doc/munin-html.8 
    191         pod2man  --section=8 --release=$(RELEASE) --center="Munin Documentation" \ 
    192                 server/munin-cron.pod > build/doc/munin-cron.8 
    193         pod2man  --section=5 --release=$(RELEASE) --center="Munin Documentation" \ 
    194                 server/munin.conf.pod > build/doc/munin.conf.5 
    195         pod2man  --section=5 --release=$(RELEASE) --center="Munin Documentation" \ 
    196                 node/munin-node.conf.pod > build/doc/munin-node.conf.5 
    197  
    198         touch build-man-stamp 
     186        for f in $(MAN8); do \ 
     187           pod2man --section=8 --release=$(RELEASE) --center=$(MANCENTER) build/"$$f" > build/doc/`basename $$f`.8; \ 
     188        done 
     189        for f in $(PODMAN8); do \ 
     190           pod2man --section=8 --release=$(RELEASE) --center=$(MANCENTER) "$$f".pod > build/doc/`basename $$f .pod`.8; \ 
     191        done 
     192        for f in $(PODMAN5); do \ 
     193           pod2man --section=5 --release=$(RELEASE) --center=$(MANCENTER) "$$f".pod > build/doc/`basename $$f .pod`.5; \ 
     194        done 
     195 
    199196 
    200197deb: