Changeset 308a8d66df2cbb21de3dd87144c2d4ef3144c8d7

Show
Ignore:
Timestamp:
02/26/08 04:29:45 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1204000185 +0000
git-parent:

[95913dee889ba03c90238c154c279bab53f91c9d]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1204000185 +0000
Message:

rename sample.conf to noit.conf and start on stratcond.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/Makefile.in

    r5f388ee r308a8d6  
    2525SUBS=utils jlog eventer modules noitedit 
    2626 
    27 OBJS=noitd.o noit_listener.o \ 
     27NOIT_OBJS=noitd.o noit_listener.o \ 
    2828        noit_console.o noit_console_state.o noit_console_telnet.o \ 
    2929        noit_check.o noit_check_log.o noit_check_tools.o \ 
    3030        noit_module.o noit_conf.o noit_conf_checks.o noit_tokenizer.o 
    3131 
    32 all:    noitd testcerts 
     32STRATCON_OBJS=stratcond.o noit_listener.o \ 
     33        noit_console.o noit_console_state.o noit_console_telnet.o \ 
     34        noit_conf.o noit_tokenizer.o 
     35 
     36all:    noitd stratcond testcerts 
    3337 
    3438make-subdirs:   serf/.libs/libserf-0.a 
     
    4044        (cd serf && python serfmake) 
    4145 
    42 noitd:  make-subdirs $(OBJS) 
    43         $(CC) -o $@ $(OBJS) \ 
     46noitd:  make-subdirs $(NOIT_OBJS) 
     47        $(CC) -o $@ $(NOIT_OBJS) \ 
     48                $(LDFLAGS) \ 
     49                -Leventer -leventer \ 
     50                -Lutils -lnoit_utils \ 
     51                -Ljlog -ljlog \ 
     52                -Lnoitedit -lnoitedit \ 
     53                $(LIBS) 
     54 
     55stratcond:      make-subdirs $(STRATCON_OBJS) 
     56        $(CC) -o $@ $(STRATCON_OBJS) \ 
    4457                $(LDFLAGS) \ 
    4558                -Leventer -leventer \ 
     
    5568        re2c -o $@ noit_tokenizer.re 
    5669 
     70# This stuff if all cert stuff to make testing the daemons easier 
     71 
     72demoCA: 
     73        mkdir -p demoCA 
     74        touch demoCA/index.txt 
     75        test -f demoCA/serial || echo 00 > demoCA/serial 
     76 
     77test-ca.key: 
     78        openssl genrsa -out test-ca.key 
     79 
     80test-ca.csr:    test-ca.key 
     81        openssl req -key test-ca.key -days 365 -new -out test-ca.csr 
     82 
     83test-ca.crt:    test-ca.key test-ca.csr 
     84        openssl x509 -req -in test-ca.csr -signkey test-ca.key -out test-ca.crt 
     85 
    5786test.key: 
    5887        openssl genrsa -out test.key 
     
    6190        openssl req -key test.key -days 365 -new -out test.csr 
    6291 
    63 test.crt:       test.key test.csr 
    64         openssl x509 -req -in test.csr -signkey test.key -out test.crt 
     92test.crt:       demoCA test.csr test-ca.key 
     93        openssl ca -in test.csr -out test.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120 
    6594 
    6695test-strat.key: 
     
    7099        openssl req -key test-strat.key -days 365 -new -out test-strat.csr 
    71100 
    72 test-strat.crt: test-strat.key test-strat.csr 
    73         openssl x509 -req -in test-strat.csr -signkey test-strat.key -out test-strat.crt 
     101test-strat.crt: demoCA test-strat.csr test-ca.key 
     102        openssl ca -in test-strat.csr -out test-strat.crt -outdir . -keyfile test-ca.key -cert test-ca.crt -days 120 
    74103 
    75 testcerts:      test.key test.crt test-strat.key test-strat.crt 
     104testcerts:      test.key test.crt test-strat.key test-strat.crt test-ca.key test-ca.crt 
    76105 
    77106clean-subdirs: 
     
    80109        done 
    81110 
     111clean-keys: 
     112        test.key test.csr test.crt test-strat.key test-strat.csr test-strat.crt 
     113 
    82114clean:  clean-subdirs 
    83         rm -f *.o noitd test.key test.csr test.crt 
     115        rm -f *.o noitd 
    84116