diff --git a/net/nepenthes/Makefile b/net/nepenthes/Makefile index 083ab5f9a09e..796364d8734b 100644 --- a/net/nepenthes/Makefile +++ b/net/nepenthes/Makefile @@ -1,51 +1,58 @@ PORTNAME= nepenthes PORTVERSION= 0.2.2 PORTREVISION= 17 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/Nepenthes%20development/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Determine the malware activity on a network WWW= http://nepenthes.carnivore.it/ LIB_DEPENDS= libpcre.so:devel/pcre \ libadns.so:dns/adns \ libcurl.so:ftp/curl \ libmagic.so.1:sysutils/file USES= dos2unix libtool perl5 USE_CXXSTD= gnu++98 USE_GCC= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --localstatedir=/var INSTALL_TARGET= install-strip CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= DEBUG_LOGGING PRELUDE DEBUG_LOGGING_CONFIGURE_ENABLE= debug-logging PRELUDE_LIB_DEPENDS= libprelude.so:security/libprelude PRELUDE_CONFIGURE_ENABLE= prelude post-patch: @${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e \ 's|-Werror|| ; \ s|-D.*_GNU_SOURCE||' @${FIND} ${WRKSRC}/modules -name "*.[ch]pp" -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e \ '//d' @${REINPLACE_CMD} -e \ 's|-I/usr/local/include|| ; \ s|-I/usr/src/contrib/file/|| ; \ s|-L/usr/local/lib|| ; \ s|-R/usr/local/lib||' ${WRKSRC}/configure post-install: - @${MKDIR} ${STAGEDIR}${DATADIR}/signatures + @${MKDIR} ${STAGEDIR}${DATADIR}/signatures \ + ${STAGEDIR}/var/binaries \ + ${STAGEDIR}/var/hexdumps \ + ${STAGEDIR}/var/log/pcap \ + ${STAGEDIR}/var/spool/nepenthes/gotek \ + ${STAGEDIR}/var/spool/nepenthes/submitpostgres \ + ${STAGEDIR}/var/cache/nepenthes/pcap \ + ${STAGEDIR}/var/cache/nepenthes/signatures (cd ${WRKSRC}/modules/shellcode-signatures && ${INSTALL_DATA} \ shellcode-signatures.sc ${STAGEDIR}${DATADIR}/signatures) .include diff --git a/net/nepenthes/pkg-deinstall b/net/nepenthes/pkg-deinstall deleted file mode 100644 index 671f2981d6f0..000000000000 --- a/net/nepenthes/pkg-deinstall +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -if [ "$2" != "DEINSTALL" ]; then - exit 0 -fi - -if cmp -s ${PKG_PREFIX}/share/nepenthes/signatures/shellcode-signatures.sc \ - /var/cache/nepenthes/signatures/shellcode-signatures.sc; then - rm -f /var/cache/nepenthes/signatures/shellcode-signatures.sc -fi - -if [ -d /var/spool/nepenthes/submitpostgres ]; then - rmdir /var/spool/nepenthes/submitpostgres 2>/dev/null || true -fi - -if [ -d /var/spool/nepenthes/gotek ]; then - rmdir /var/spool/nepenthes/gotek 2>/dev/null || true -fi - -if [ -d /var/spool/nepenthes ]; then - rmdir /var/spool/nepenthes 2>/dev/null || true -fi - -if [ -d /var/log/pcap ]; then - rmdir /var/log/pcap 2>/dev/null || true -fi - -if [ -d /var/hexdumps ]; then - rmdir /var/hexdumps 2>/dev/null || true -fi - -if [ -d /var/cache/nepenthes/signatures ]; then - rmdir /var/cache/nepenthes/signatures 2>/dev/null || true -fi - -if [ -d /var/cache/nepenthes/pcap ]; then - rmdir /var/cache/nepenthes/pcap 2>/dev/null || true -fi - -if [ -d /var/cache/nepenthes ]; then - rmdir /var/cache/nepenthes 2>/dev/null || true -fi - -if [ -d /var/binaries ]; then - rmdir /var/binaries 2>/dev/null || true -fi diff --git a/net/nepenthes/pkg-install b/net/nepenthes/pkg-install deleted file mode 100644 index c62009d06b67..000000000000 --- a/net/nepenthes/pkg-install +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -if [ "$2" != "POST-INSTALL" ]; then - exit 0 -fi - -if [ ! -d /var/binaries ]; then - install -d /var/binaries -fi - -if [ ! -d /var/cache/nepenthes ]; then - install -d /var/cache/nepenthes -fi - -if [ ! -d /var/cache/nepenthes/pcap ]; then - install -d /var/cache/nepenthes/pcap -fi - -if [ ! -d /var/cache/nepenthes/signatures ]; then - install -d /var/cache/nepenthes/signatures -fi - -if [ ! -d /var/hexdumps ]; then - install -d /var/hexdumps -fi - -if [ ! -d /var/log/pcap ]; then - install -d /var/log/pcap -fi - -if [ ! -d /var/binaries ]; then - install -d /var/spool/nepenthes -fi - -if [ ! -d /var/binaries ]; then - install -d /var/spool/nepenthes/gotek -fi - -if [ ! -d /var/binaries ]; then - install -d /var/spool/nepenthes/submitpostgres -fi - -if [ ! -f /var/cache/nepenthes/signatures/shellcode-signatures.sc ]; then - install -c ${PKG_PREFIX}/share/nepenthes/signatures/shellcode-signatures.sc \ - /var/cache/nepenthes/signatures -fi diff --git a/net/nepenthes/pkg-plist b/net/nepenthes/pkg-plist index 243f93b5a1c1..98f1afd47d38 100644 --- a/net/nepenthes/pkg-plist +++ b/net/nepenthes/pkg-plist @@ -1,166 +1,175 @@ bin/nepenthes %%ETCDIR%%/download-csend.conf %%ETCDIR%%/download-curl.conf %%ETCDIR%%/download-ftp.conf %%ETCDIR%%/download-link.conf %%ETCDIR%%/download-tftp.conf %%ETCDIR%%/log-download.conf %%ETCDIR%%/log-irc.conf %%ETCDIR%%/log-prelude.conf %%ETCDIR%%/log-surfnet.conf %%ETCDIR%%/module-honeytrap.conf %%ETCDIR%%/module-portwatch.conf %%ETCDIR%%/nepenthes.conf %%ETCDIR%%/nepenthes.conf.dist %%ETCDIR%%/shellcode-generic.conf %%ETCDIR%%/submit-file.conf %%ETCDIR%%/submit-gotek.conf %%ETCDIR%%/submit-http.conf %%ETCDIR%%/submit-mwserv.conf %%ETCDIR%%/submit-norman.conf %%ETCDIR%%/submit-postgres.conf %%ETCDIR%%/vuln-asn1.conf %%ETCDIR%%/vuln-bagle.conf %%ETCDIR%%/vuln-dameware.conf %%ETCDIR%%/vuln-dcom.conf %%ETCDIR%%/vuln-ftpd.conf %%ETCDIR%%/vuln-iis.conf %%ETCDIR%%/vuln-kuang2.conf %%ETCDIR%%/vuln-lsass.conf %%ETCDIR%%/vuln-msdtc.conf %%ETCDIR%%/vuln-msmq.conf %%ETCDIR%%/vuln-mssql.conf %%ETCDIR%%/vuln-mydoom.conf %%ETCDIR%%/vuln-netbiosname.conf %%ETCDIR%%/vuln-netdde.conf %%ETCDIR%%/vuln-optix.conf %%ETCDIR%%/vuln-pnp.conf %%ETCDIR%%/vuln-sasserftpd.conf %%ETCDIR%%/vuln-sub7.conf %%ETCDIR%%/vuln-upnp.conf %%ETCDIR%%/vuln-veritas.conf %%ETCDIR%%/vuln-wins.conf %%ETCDIR%%/x-2.conf lib/nepenthes/dnsresolveadns.a lib/nepenthes/dnsresolveadns.so lib/nepenthes/downloadcreceive.a lib/nepenthes/downloadcreceive.so lib/nepenthes/downloadcsend.a lib/nepenthes/downloadcsend.so lib/nepenthes/downloadcurl.a lib/nepenthes/downloadcurl.so lib/nepenthes/downloadftp.a lib/nepenthes/downloadftp.so lib/nepenthes/downloadhttp.a lib/nepenthes/downloadhttp.so lib/nepenthes/downloadlink.a lib/nepenthes/downloadlink.so lib/nepenthes/downloadrcp.a lib/nepenthes/downloadrcp.so lib/nepenthes/downloadtftp.a lib/nepenthes/downloadtftp.so lib/nepenthes/logdownload.a lib/nepenthes/logdownload.so lib/nepenthes/loghexdump.a lib/nepenthes/loghexdump.so lib/nepenthes/logirc.a lib/nepenthes/logirc.so lib/nepenthes/logprelude.a lib/nepenthes/logprelude.so lib/nepenthes/logsurfnet.a lib/nepenthes/logsurfnet.so lib/nepenthes/modulebridge.a lib/nepenthes/modulebridge.so lib/nepenthes/modulehoneytrap.a lib/nepenthes/modulehoneytrap.so lib/nepenthes/modulepeiros.a lib/nepenthes/modulepeiros.so lib/nepenthes/moduleportwatch.a lib/nepenthes/moduleportwatch.so lib/nepenthes/shellcodegeneric.a lib/nepenthes/shellcodegeneric.so lib/nepenthes/shellcodesignatures.a lib/nepenthes/shellcodesignatures.so lib/nepenthes/shellemuwinnt.a lib/nepenthes/shellemuwinnt.so lib/nepenthes/sqlhandlerpostgres.a lib/nepenthes/sqlhandlerpostgres.so lib/nepenthes/submitfile.a lib/nepenthes/submitfile.so lib/nepenthes/submitgotek.a lib/nepenthes/submitgotek.so lib/nepenthes/submithttp.a lib/nepenthes/submithttp.so lib/nepenthes/submitmwserv.a lib/nepenthes/submitmwserv.so lib/nepenthes/submitnorman.a lib/nepenthes/submitnorman.so lib/nepenthes/submitpostgres.a lib/nepenthes/submitpostgres.so lib/nepenthes/vulnasn1.a lib/nepenthes/vulnasn1.so lib/nepenthes/vulnbagle.a lib/nepenthes/vulnbagle.so lib/nepenthes/vulndameware.a lib/nepenthes/vulndameware.so lib/nepenthes/vulndcom.a lib/nepenthes/vulndcom.so lib/nepenthes/vulnftpd.a lib/nepenthes/vulnftpd.so lib/nepenthes/vulniis.a lib/nepenthes/vulniis.so lib/nepenthes/vulnkuang2.a lib/nepenthes/vulnkuang2.so lib/nepenthes/vulnlsass.a lib/nepenthes/vulnlsass.so lib/nepenthes/vulnmsdtc.a lib/nepenthes/vulnmsdtc.so lib/nepenthes/vulnmsmq.a lib/nepenthes/vulnmsmq.so lib/nepenthes/vulnmssql.a lib/nepenthes/vulnmssql.so lib/nepenthes/vulnmydoom.a lib/nepenthes/vulnmydoom.so lib/nepenthes/vulnnetbiosname.a lib/nepenthes/vulnnetbiosname.so lib/nepenthes/vulnnetdde.a lib/nepenthes/vulnnetdde.so lib/nepenthes/vulnoptix.a lib/nepenthes/vulnoptix.so lib/nepenthes/vulnpnp.a lib/nepenthes/vulnpnp.so lib/nepenthes/vulnrealvnc.a lib/nepenthes/vulnrealvnc.so lib/nepenthes/vulnsasserftpd.a lib/nepenthes/vulnsasserftpd.so lib/nepenthes/vulnsav.a lib/nepenthes/vulnsav.so lib/nepenthes/vulnssh.a lib/nepenthes/vulnssh.so lib/nepenthes/vulnsub7.a lib/nepenthes/vulnsub7.so lib/nepenthes/vulnupnp.a lib/nepenthes/vulnupnp.so lib/nepenthes/vulnveritas.a lib/nepenthes/vulnveritas.so lib/nepenthes/vulnwins.a lib/nepenthes/vulnwins.so lib/nepenthes/x1.a lib/nepenthes/x1.so lib/nepenthes/x2.a lib/nepenthes/x2.so lib/nepenthes/x3.a lib/nepenthes/x3.so lib/nepenthes/x4.a lib/nepenthes/x4.so lib/nepenthes/x5.a lib/nepenthes/x5.so lib/nepenthes/x6.a lib/nepenthes/x6.so lib/nepenthes/x9.a lib/nepenthes/x9.so man/man8/nepenthes.8.gz %%DATADIR%%/README %%DATADIR%%/README.VFS %%DATADIR%%/logo-shaded.svg -%%DATADIR%%/signatures/shellcode-signatures.sc +@sample %%DATADIR%%/signatures/shellcode-signatures.sc /var/cache/nepenthes/signatures/shellcode-signatures.sc +@dir /var/binaries +@dir /var/cache/nepenthes/ +@dir /var/cache/nepenthes/pcap +@dir /var/cache/nepenthes/signatures +@dir /var/hexdumps +@dir /var/log/pcap +@dir /var/spool/nepenthes/ +@dir /var/spool/nepenthes/gotek +@dir /var/spool/nepenthes/submitpostgres