| 1 | snort-configure: daq-configure pcre-configure daq pcre |
|---|
| 2 | |
|---|
| 3 | export ac_cv_func_malloc_0_nonnull=yes ; \ |
|---|
| 4 | export lt_sys_lib_dlsearch_path_spec="$(ARCH)-uclibc" ; \ |
|---|
| 5 | export lt_sys_lib_search_path_spec="$(ARCH)-uclibc" ; \ |
|---|
| 6 | export CFLAGS="$(COPTS) -fPIC -DNEED_PRINTF -DHAVE_MALLOC=1 -Drpl_malloc=malloc -I$(TOP)/iptables/include -I$(TOP)/iptables/include/libipq/ -I$(TOP)/libnetfilter_queue/include -I$(TOP)/libnfnetlink/include -I$(TOP)/libnet/include" ; \ |
|---|
| 7 | export CPPFLAGS="$(COPTS) -fPIC -DNEED_PRINTF -DHAVE_MALLOC=1 -Drpl_malloc=malloc -I$(TOP)/iptables/include -I$(TOP)/iptables/include/libipq/ -I$(TOP)/libnetfilter_queue/include -I$(TOP)/libnfnetlink/include -I$(TOP)/libnet/include" ; \ |
|---|
| 8 | export LDFLAGS="-L$(TOP)/iptables/libipq -L$(TOP)/libnetfilter_queue/src/.libs $(TOP)/libnetfilter_queue/src/.libs/libnetfilter_queue.a -L$(TOP)/libnet/lib -L$(TOP)/libnfnetlink/src/.libs $(TOP)/libnfnetlink/src/.libs/libnfnetlink.so -L$(TOP)/libdnet/src/.libs -ldnet -lipq -lnet -L$(TOP)/libpcap_noring -lpcap" ;\ |
|---|
| 9 | cd snort && ./configure \ |
|---|
| 10 | --enable-reload \ |
|---|
| 11 | --enable-ipv6 \ |
|---|
| 12 | --libdir=/tmp \ |
|---|
| 13 | --prefix=/usr \ |
|---|
| 14 | --build=$(ARCH)-linux \ |
|---|
| 15 | --host=$(ARCH)-linux-gnu \ |
|---|
| 16 | --without-mysql \ |
|---|
| 17 | --without-postgresql \ |
|---|
| 18 | --enable-pthread \ |
|---|
| 19 | --enable-gre \ |
|---|
| 20 | --enable-dynamicplugin \ |
|---|
| 21 | --enable-react \ |
|---|
| 22 | --enable-active-response \ |
|---|
| 23 | --enable-flexresp3 \ |
|---|
| 24 | --with-libpcre-includes="$(TOP)/pcre" \ |
|---|
| 25 | --with-libpcre_libraries="$(TOP)/pcre/.libs" \ |
|---|
| 26 | --with-libpcap-includes="$(TOP)/libpcap_noring" \ |
|---|
| 27 | --with-libpcap-libraries="$(TOP)/libpcap_noring" \ |
|---|
| 28 | --with-dnet-includes="$(TOP)/libdnet/include" \ |
|---|
| 29 | --with-dnet-libraries="$(TOP)/libdnet/src/.libs" \ |
|---|
| 30 | --with-daq-includes="$(TOP)/daq/install/include" \ |
|---|
| 31 | --with-daq-libraries="$(TOP)/daq/install/lib" \ |
|---|
| 32 | PATH=$(TOP)/daq/install/bin:$(PATH) |
|---|
| 33 | |
|---|
| 34 | snort: pcre |
|---|
| 35 | $(MAKE) -C snort CFLAGS="$(COPTS) -DNEED_PRINTF -I$(TOP)/librpc" |
|---|
| 36 | |
|---|
| 37 | snort-clean: |
|---|
| 38 | $(MAKE) -C snort clean CFLAGS="$(COPTS) -DNEED_PRINTF -I$(TOP)/librpc" |
|---|
| 39 | |
|---|
| 40 | snort-install: |
|---|
| 41 | $(MAKE) -C snort install DESTDIR=$(INSTALLDIR)/snort CFLAGS="$(COPTS) -DNEED_PRINTF -I$(TOP)/librpc" |
|---|
| 42 | rm -rf $(INSTALLDIR)/snort/usr/src |
|---|
| 43 | rm -rf $(INSTALLDIR)/snort/usr/share |
|---|
| 44 | rm -rf $(INSTALLDIR)/snort/usr/lib/pkgconfig |
|---|
| 45 | rm -f $(INSTALLDIR)/snort/usr/lib/snort_dynamicengine/*.la |
|---|
| 46 | rm -f $(INSTALLDIR)/snort/usr/lib/snort_dynamicpreprocessor/*.la |
|---|