freebsd-ports/ports-mgmt/portsearch/pkg-install

13 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