mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
Switch to graphics/drm-61-kmod
This commit is contained in:
@@ -8,7 +8,7 @@ WWW= https://www.pfsense.org/
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= drm-515-kmod>0:graphics/drm-515-kmod
|
||||
RUN_DEPENDS= drm-61-kmod>0:graphics/drm-61-kmod
|
||||
|
||||
USES= metaport
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
PORTNAME= pfSense-upgrade
|
||||
PORTVERSION= 1.3.15
|
||||
PORTVERSION= 1.3.16
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
|
||||
@@ -1585,10 +1585,13 @@ pkg_upgrade() {
|
||||
delete_annotation=""
|
||||
|
||||
# Upgrade drm if it is in use
|
||||
if pkg-static info -e drm-510-kmod; then
|
||||
_exec "pkg-static install -r ${product} -y ${desired_drm_package}" \
|
||||
"Upgrading drm to ${desired_drm_package}"
|
||||
elif kldstat -qm i915kms; then
|
||||
for _p in ${legacy_drm_packages}; do
|
||||
if pkg-static info -e drm-510-kmod; then
|
||||
_exec "pkg-static install -r ${product} -y ${desired_drm_package}" \
|
||||
"Upgrading drm to ${desired_drm_package}"
|
||||
fi
|
||||
done
|
||||
if kldstat -qm i915kms; then
|
||||
_exec "pkg-static upgrade -r ${product} -f drm-\*" \
|
||||
"Upgrading drm"
|
||||
fi
|
||||
@@ -2160,7 +2163,8 @@ pid_file="/var/run/$(basename $0).pid"
|
||||
logfile="/cf/conf/upgrade_log.txt"
|
||||
upgrade_logfile="/cf/conf/upgrade_log.latest.txt"
|
||||
stdout='/dev/null'
|
||||
desired_drm_package='drm-515-kmod'
|
||||
desired_drm_package='drm-61-kmod'
|
||||
legacy_drm_packages='drm-510-kmod drm-515-kmod'
|
||||
|
||||
# Export necessary PATH
|
||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
||||
|
||||
Reference in New Issue
Block a user