pkg-deinstall scripts. Note to future PR submitters: If your port changes anything from other ports, make sure it's changed back when it gets deinstalled!
18 lines
357 B
Bash
18 lines
357 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
cd %%PREFIX%%/share/pgp
|
|
|
|
if grep -l -q '^Language.*=.*ru' config.txt ; then
|
|
cp config.txt config.txt.bak
|
|
sed -e 's/^Language = ru$/Language = en/' < config.txt.bak > config.txt
|
|
rm config.txt.bak
|
|
fi
|
|
|
|
if [ -f language.txt-ru ]; then
|
|
cp language.txt-ru language.txt
|
|
fi
|
|
|
|
%%LOCALBASE%%/bin/pgp > /dev/null 2>/dev/null
|
|
exit 0
|