freebsd-ports/net/nepenthes/pkg-install
John Marino 6a49fa15fa Stage net/nepenthese and unbreak on FreeBSD 10+
PR:		193042
Submitted by:	Ports Fury
2014-08-30 20:50:54 +00:00

46 lines
954 B
Bash

#!/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