mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
70497625fb
long-term archival storage. It seeks to make it practical not only to manage large archives, but to use the information therein on a daily basis instead of relegating it to offline storage. WWW: http://www.archiveopteryx.org/ Approved by: pgj (mentor)
21 lines
326 B
Bash
21 lines
326 B
Bash
#!/bin/sh
|
|
|
|
PKGNAME=$1
|
|
TARGET=$2
|
|
|
|
RMDIR=/bin/rmdir
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo "Usage: $0 [PKGNAME] [DEINSTALL | POST-DEINSTALL]"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$TARGET" = POST-DEINSTALL ]; then
|
|
for i in /var/db/aox/jail /var/db/aox/messages /var/run/aox; do
|
|
${RMDIR} ${i} 2>/dev/null
|
|
done
|
|
${RMDIR} /var/db/aox 2>/dev/null
|
|
fi
|
|
|
|
exit 0
|