]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ipfilter/test/expected/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ipfilter / test / expected / Makefile
1 #
2 # (C)opyright 2007 by Darren Reed.
3 #
4 # See the IPFILTER.LICENCE file for details on licencing.
5 #
6 all: i19
7
8 i19: i19.dist Makefile
9         -if [ "`grep LOG_SECURITY /usr/include/sys/syslog.h 2>&1`" = "" ] ; then \
10                 if [ "`grep LOG_AUDIT /usr/include/sys/syslog.h 2>&1`" = "" ] ; then \
11                                 sed -e 's/security/!!!/g' i19.dist > i19.p1; \
12                 else \
13                                 sed -e 's/security/audit/g' i19.dist > i19.p1; \
14                 fi \
15         else \
16                 /bin/cp i19.dist i19.p1; \
17         fi
18         -if [ "`grep LOG_AUTHPRIV /usr/include/sys/syslog.h 2>&1`" = "" ] ; then \
19                 sed -e 's/authpriv/!!!/g' i19.p1 > i19.p2; \
20         else \
21                 /bin/cp i19.p1 i19.p2; \
22         fi
23         -if [ "`grep LOG_LOGALERT /usr/include/sys/syslog.h 2>&1`" = "" ] ; then \
24                 sed -e 's/logalert/!!!/g' i19.p2 > i19.p1; \
25         else \
26                 /bin/cp i19.p2 i19.p1; \
27         fi
28         -if [ "`grep LOG_FTP /usr/include/sys/syslog.h 2>&1`" = "" ] ; then \
29                 sed -e 's/ftp/!!!/g' i19.p1 > i19.p2; \
30         else \
31                 /bin/cp i19.p1 i19.p2; \
32         fi
33         -if [ "`egrep 'LOG_CRON.*15' /usr/include/sys/syslog.h 2>&1`" != "" ] ; then \
34                 sed -e 's/cron/cron2/g' i19.p2 > i19; \
35         else \
36                 /bin/cp i19.p2 i19; \
37         fi
38         /bin/rm i19.p?
39
40 clean:
41         /bin/rm -f i19