mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
14 lines
246 B
Bash
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
|