Ports: Fix install actions for the dmidecode port when re-installing the port

When re-installing the port the symlink already exists which causes
'ln -s' to fail.
This commit is contained in:
Gunnar Beutner 2021-04-11 04:02:12 +02:00 committed by Andreas Kling
parent 184fea5fc1
commit 5ae64035a6
Notes: sideshowbarker 2024-07-18 20:33:15 +09:00

View file

@ -17,7 +17,7 @@ install() {
post_install() {
mkdir -p "${SERENITY_BUILD_DIR}/Root/bin"
run make install-bin DESTDIR="${SERENITY_BUILD_DIR}/Root"
ln -s /usr/local/sbin/dmidecode "${SERENITY_BUILD_DIR}/Root/bin/dmidecode"
ln -s /usr/local/sbin/biosdecode "${SERENITY_BUILD_DIR}/Root/bin/biosdecode"
ln -s /usr/local/sbin/vpddecode "${SERENITY_BUILD_DIR}/Root/bin/vpddecode"
ln -sf /usr/local/sbin/dmidecode "${SERENITY_BUILD_DIR}/Root/bin/dmidecode"
ln -sf /usr/local/sbin/biosdecode "${SERENITY_BUILD_DIR}/Root/bin/biosdecode"
ln -sf /usr/local/sbin/vpddecode "${SERENITY_BUILD_DIR}/Root/bin/vpddecode"
}