freebsd-ports/russian/pgp.language/files/pkg-deinstall.in
Edwin Groothuis 7c118eb26f Unbreak port by fixing pkg-plist and adding pkg-install and
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!
2005-11-04 05:45:15 +00:00

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