blob: 4bd489e809f9a0842ebe2f0b00ee1c620827a26d [file] [log] [blame] [raw]
#
# (C)opyright 2007 by Darren Reed.
#
# See the IPFILTER.LICENCE file for details on licencing.
#
all: i19
i19: i19.dist Makefile
-if [ "`grep '13<<3' /usr/include/sys/syslog.h 2>&1`" = "" ] ; then \
sed -e 's/security/!!!/g' i19.dist > i19.p1; \
else \
x=`sed -ne '/13<<3/s/.*LOG_\([A-Z_]*\).*/\1/p' /usr/include/sys/syslog.h | tr '[A-Z]' '[a-z]'`; \
sed -e "s/security/$$x/g" i19.dist > i19.p1; \
fi
-if [ "`grep LOG_AUTHPRIV /usr/include/sys/syslog.h 2>&1`" = "" ] ; then \
sed -e 's/authpriv/!!!/g' i19.p1 > i19.p2; \
else \
/bin/cp i19.p1 i19.p2; \
fi
/bin/rm i19.p1
-if [ "`grep LOG_FTP /usr/include/sys/syslog.h 2>&1`" = "" ] ; then \
sed -e 's/ftp/!!!/g' i19.p2 > i19.p1; \
else \
/bin/cp i19.p2 i19.p1; \
fi
/bin/mv -f i19.p1 i19.p2
-if [ "`grep LOG_LOGALERT /usr/include/sys/syslog.h 2>&1`" = "" ] ; then \
sed -e 's/logalert/!!!/g' i19.p2 > i19; \
else \
/bin/cp i19.p2 i19; \
fi
/bin/rm i19.p2
clean:
/bin/rm -f i19