1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/ports-mgmt/portsearch/pkg-install

14 lines
246 B
Bash

#!/bin/sh
if [ "${2}" = "POST-INSTALL" ] ; then
db_prefix="/var/db/portsearch"
arch=`uname -m`
db_old="${db_prefix}/1-${arch}"
if [ -d "${db_old}" ] ; then
rel=`uname -r`
mv -f "${db_old}" "${db_prefix}/${rel%%.*}-${arch}"
fi
fi
# EOF