summaryrefslogtreecommitdiff
path: root/x11/sddm/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'x11/sddm/files/patch-CMakeLists.txt')
-rw-r--r--x11/sddm/files/patch-CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11/sddm/files/patch-CMakeLists.txt b/x11/sddm/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..2a7e3aa57836
--- /dev/null
+++ b/x11/sddm/files/patch-CMakeLists.txt
@@ -0,0 +1,16 @@
+1) On FreeBSD X is normally started on VT9.
+2) The shutdown command uses '-p' and not '-P' on FreeBSD.
+
+--- CMakeLists.txt.orig 2016-08-28 11:54:03 UTC
++++ CMakeLists.txt
+@@ -143,8 +143,8 @@ if(SYSTEMD_FOUND)
+ set(REBOOT_COMMAND "/usr/bin/systemctl reboot")
+ else()
+ set(SYSTEMD_FOUND 0)
+- set(MINIMUM_VT 7)
+- set(HALT_COMMAND "/sbin/shutdown -h -P now")
++ set(MINIMUM_VT 9)
++ set(HALT_COMMAND "/sbin/shutdown -h -p now")
+ set(REBOOT_COMMAND "/sbin/shutdown -r now")
+ endif()
+ add_feature_info("systemd" SYSTEMD_FOUND "systemd support")