freebsd-ports/net/nepenthes/pkg-deinstall
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
1.1 KiB
Bash

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