diff --git a/x11/Makefile b/x11/Makefile index 2318ff802b6f..33ed03c7d1d5 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -1,674 +1,675 @@ COMMENT = Ports to support the X window system SUBDIR += 3ddesktop SUBDIR += 9box SUBDIR += 9menu SUBDIR += aclip SUBDIR += admiral SUBDIR += alacritty SUBDIR += albert SUBDIR += alttab SUBDIR += aminal SUBDIR += antimicrox SUBDIR += appmenu-registrar SUBDIR += appres SUBDIR += apwal SUBDIR += arandr SUBDIR += arcan-trayicon SUBDIR += aterm SUBDIR += autorandr SUBDIR += babl SUBDIR += bbappconf SUBDIR += bbdock SUBDIR += bbrun SUBDIR += beforelight SUBDIR += bemenu SUBDIR += bgrot SUBDIR += bgs SUBDIR += bitmap SUBDIR += bmpanel2 SUBDIR += brisk-menu SUBDIR += budgie SUBDIR += budgie-desktop SUBDIR += budgie-screensaver SUBDIR += cde SUBDIR += cde-25 SUBDIR += cde-devel SUBDIR += chayang SUBDIR += cinnamon SUBDIR += cinnamon-desktop SUBDIR += cinnamon-menus SUBDIR += cinnamon-screensaver SUBDIR += cinnamon-session SUBDIR += cl-clx SUBDIR += cl-clx-sbcl SUBDIR += clipcat SUBDIR += cliphist SUBDIR += clipman SUBDIR += compton-conf SUBDIR += conlecterm SUBDIR += controllermap SUBDIR += cool-retro-term SUBDIR += coreterminal SUBDIR += damask SUBDIR += darktile SUBDIR += deforaos-integration SUBDIR += deforaos-keyboard SUBDIR += deforaos-libdesktop SUBDIR += deforaos-locker SUBDIR += deskmenu SUBDIR += disman SUBDIR += dmenu SUBDIR += dmenu2 SUBDIR += docker-tray SUBDIR += dsbautostart SUBDIR += dsbxinput SUBDIR += dwlb SUBDIR += dwmblocks SUBDIR += dxpc SUBDIR += dzen2 SUBDIR += eaglemode SUBDIR += editres SUBDIR += elementary-terminal SUBDIR += emprint SUBDIR += erun SUBDIR += eterm SUBDIR += evilvte SUBDIR += evtest SUBDIR += eww SUBDIR += fbdesk SUBDIR += fbpanel SUBDIR += find-cursor SUBDIR += fireflies SUBDIR += florence SUBDIR += flruler SUBDIR += fnott SUBDIR += foot SUBDIR += fstobdf SUBDIR += fuzzel SUBDIR += gbsddialog SUBDIR += gdm SUBDIR += glcapsviewer SUBDIR += gmrun SUBDIR += gnome SUBDIR += gnome-clipboard-daemon SUBDIR += gnome-console SUBDIR += gnome-desktop SUBDIR += gnome-menus SUBDIR += gnome-pie SUBDIR += gnome-session SUBDIR += gnome-shell SUBDIR += gnome-shell-extensions SUBDIR += gnome-terminal SUBDIR += gnustep-app SUBDIR += grabc SUBDIR += grim SUBDIR += grimshot SUBDIR += gromit SUBDIR += gromit-mpx SUBDIR += gskrab SUBDIR += gstreamer1-plugins-x SUBDIR += gstreamer1-plugins-ximagesrc SUBDIR += gtk-app-menu SUBDIR += gtk-theme-switch2 SUBDIR += gtkchtheme SUBDIR += gtklock SUBDIR += gtkterm2 SUBDIR += guake SUBDIR += gxkb SUBDIR += habak SUBDIR += hamclock SUBDIR += hhpc SUBDIR += hs-xmobar SUBDIR += hsetroot SUBDIR += hybrid-bar SUBDIR += hypridle + SUBDIR += hyprlock SUBDIR += hyprpaper SUBDIR += hyprpicker SUBDIR += i3bar-river SUBDIR += i3blocks SUBDIR += i3lock-color SUBDIR += iceauth SUBDIR += ico SUBDIR += idesk SUBDIR += imwheel SUBDIR += innerspace SUBDIR += inputplug SUBDIR += j4-dmenu-desktop SUBDIR += jbxvt SUBDIR += jgmenu SUBDIR += kanshi SUBDIR += kb2mb2 SUBDIR += kde-baseapps SUBDIR += kde5 SUBDIR += kde6 SUBDIR += kdisplay SUBDIR += keybinder SUBDIR += keybinder-gtk3 SUBDIR += keyboardcast SUBDIR += keynav SUBDIR += kf5-frameworkintegration SUBDIR += kf5-frameworks SUBDIR += kf5-kactivities SUBDIR += kf5-kactivities-stats SUBDIR += kf5-kded SUBDIR += kf5-kdelibs4support SUBDIR += kf5-kglobalaccel SUBDIR += kf5-kinit SUBDIR += kf5-krunner SUBDIR += kf5-kwayland SUBDIR += kf5-kwindowsystem SUBDIR += kf5-plasma-framework SUBDIR += kf6-frameworkintegration SUBDIR += kf6-frameworks SUBDIR += kf6-kded SUBDIR += kf6-kglobalaccel SUBDIR += kf6-krunner SUBDIR += kf6-kwindowsystem SUBDIR += kickoff SUBDIR += kitty SUBDIR += konsole SUBDIR += konsole-devel SUBDIR += lavalauncher SUBDIR += lemonbar SUBDIR += lemonbar-xft SUBDIR += libICE SUBDIR += libSM SUBDIR += libX11 SUBDIR += libXScrnSaver SUBDIR += libXau SUBDIR += libXcm SUBDIR += libXcomposite SUBDIR += libXcursor SUBDIR += libXdamage SUBDIR += libXdmcp SUBDIR += libXext SUBDIR += libXfixes SUBDIR += libXi SUBDIR += libXinerama SUBDIR += libXpm SUBDIR += libXpresent SUBDIR += libXrandr SUBDIR += libXrender SUBDIR += libXres SUBDIR += libXtst SUBDIR += libXv SUBDIR += libXvMC SUBDIR += libXxf86dga SUBDIR += libXxf86vm SUBDIR += libclipboard SUBDIR += libei SUBDIR += libexo SUBDIR += libfakekey SUBDIR += libfm SUBDIR += libfm-extra SUBDIR += libfm-qt SUBDIR += libgnomekbd SUBDIR += libinput SUBDIR += libmatekbd SUBDIR += libsx SUBDIR += libsynaptics SUBDIR += libwacom SUBDIR += libxcb SUBDIR += libxcvt SUBDIR += libxdg-basedir SUBDIR += libxfce4menu SUBDIR += libxfce4util SUBDIR += libxkbcommon SUBDIR += libxkbfile SUBDIR += libxklavier SUBDIR += libxshmfence SUBDIR += lightdm SUBDIR += lightdm-gtk-greeter SUBDIR += lightdm-gtk-greeter-settings SUBDIR += lilyterm SUBDIR += linux-c7-libxkbcommon SUBDIR += linux-c7-pixman SUBDIR += linux-c7-xcb-util SUBDIR += linux-c7-xcb-util-image SUBDIR += linux-c7-xcb-util-keysyms SUBDIR += linux-c7-xorg-libs SUBDIR += linux-nvidia-libs SUBDIR += linux-nvidia-libs-304 SUBDIR += linux-nvidia-libs-340 SUBDIR += linux-nvidia-libs-390 SUBDIR += linux-nvidia-libs-470 SUBDIR += listres SUBDIR += lsw SUBDIR += luit SUBDIR += lumina SUBDIR += lumina-core SUBDIR += lumina-coreutils SUBDIR += lupe SUBDIR += lxde-meta SUBDIR += lxhotkey SUBDIR += lxmenu-data SUBDIR += lxpanel SUBDIR += lxqt-about SUBDIR += lxqt-globalkeys SUBDIR += lxqt-runner SUBDIR += lxrandr SUBDIR += ly SUBDIR += mako SUBDIR += mate SUBDIR += mate-applet-appmenu SUBDIR += mate-applets SUBDIR += mate-base SUBDIR += mate-desktop SUBDIR += mate-dock-applet SUBDIR += mate-menus SUBDIR += mate-panel SUBDIR += mate-screensaver SUBDIR += mate-session-manager SUBDIR += mate-terminal SUBDIR += menu-cache SUBDIR += menulibre SUBDIR += metalock SUBDIR += mkcomposecache SUBDIR += mlterm SUBDIR += mons SUBDIR += mrxvt SUBDIR += mrxvt-devel SUBDIR += multi-aterm SUBDIR += mxascii SUBDIR += mxico SUBDIR += nezd SUBDIR += nfy SUBDIR += numlockx SUBDIR += nvidia-driver SUBDIR += nvidia-driver-304 SUBDIR += nvidia-driver-340 SUBDIR += nvidia-driver-390 SUBDIR += nvidia-driver-470 SUBDIR += nvidia-hybrid-graphics SUBDIR += nvidia-secondary-driver SUBDIR += nvidia-secondary-driver-390 SUBDIR += nvidia-settings SUBDIR += nvidia-xconfig SUBDIR += nwg-bar SUBDIR += nwg-dock SUBDIR += nwg-dock-hyprland SUBDIR += nwg-drawer SUBDIR += nwg-launchers SUBDIR += nwg-look SUBDIR += nwg-menu SUBDIR += nxcomp SUBDIR += openrgb SUBDIR += oscar SUBDIR += p5-Clipboard SUBDIR += p5-X11-GUITest SUBDIR += p5-X11-IdleTime SUBDIR += p5-X11-Protocol SUBDIR += p5-X11-Protocol-Other SUBDIR += p5-X11-Resolution SUBDIR += p5-X11-XCB SUBDIR += p5-X11-Xlib SUBDIR += p5-XTerm-Conf SUBDIR += pcdm SUBDIR += perwindowlayoutd SUBDIR += pipeglade SUBDIR += pixman SUBDIR += plank SUBDIR += plasma-wayland-protocols SUBDIR += plasma5-kactivitymanagerd SUBDIR += plasma5-kgamma5 SUBDIR += plasma5-kscreen SUBDIR += plasma5-kwayland-integration SUBDIR += plasma5-layer-shell-qt SUBDIR += plasma5-libkscreen SUBDIR += plasma5-plasma SUBDIR += plasma5-plasma-bigscreen SUBDIR += plasma5-plasma-desktop SUBDIR += plasma5-plasma-integration SUBDIR += plasma5-plasma-workspace SUBDIR += plasma6-kactivitymanagerd SUBDIR += plasma6-kgamma SUBDIR += plasma6-kglobalacceld SUBDIR += plasma6-kscreen SUBDIR += plasma6-kwayland SUBDIR += plasma6-layer-shell-qt SUBDIR += plasma6-libkscreen SUBDIR += plasma6-libplasma SUBDIR += plasma6-plasma SUBDIR += plasma6-plasma-activities SUBDIR += plasma6-plasma-activities-stats SUBDIR += plasma6-plasma-desktop SUBDIR += plasma6-plasma-integration SUBDIR += plasma6-plasma-workspace SUBDIR += pmenu SUBDIR += polybar SUBDIR += printscreen SUBDIR += py-autotiling SUBDIR += py-caffeine-ng SUBDIR += py-i3-quickterm SUBDIR += py-i3ipc SUBDIR += py-mouseinfo SUBDIR += py-pyautogui SUBDIR += py-pynput SUBDIR += py-pyscreenshot SUBDIR += py-pyscreeze SUBDIR += py-python-xapp SUBDIR += py-pyvirtualdisplay SUBDIR += py-screeninfo SUBDIR += py-xcffib SUBDIR += py-xdot SUBDIR += qimageblitz SUBDIR += qt5-qev SUBDIR += qt5-x11extras SUBDIR += qterminal SUBDIR += remontoire SUBDIR += rendercheck SUBDIR += rgb SUBDIR += rio SUBDIR += rlaunch SUBDIR += rofi SUBDIR += rofi-calc SUBDIR += rofi-emoji SUBDIR += rofi-file-browser-extended SUBDIR += rofi-pass SUBDIR += rofi-wayland SUBDIR += roxterm SUBDIR += rsibreak SUBDIR += rubygem-gnome SUBDIR += runner SUBDIR += rxvt-unicode SUBDIR += sakura SUBDIR += salut SUBDIR += sandbar SUBDIR += sbxkb SUBDIR += screen-message SUBDIR += screengrab SUBDIR += screenkey SUBDIR += scripts SUBDIR += sddm SUBDIR += sdwmbar SUBDIR += sessreg SUBDIR += setlayout SUBDIR += setxkbmap SUBDIR += sfwbar SUBDIR += shaderbg SUBDIR += shikane SUBDIR += shotman SUBDIR += showkeys SUBDIR += showmethekey SUBDIR += simplestroke SUBDIR += sirula SUBDIR += slick-greeter SUBDIR += slim SUBDIR += slock SUBDIR += slop SUBDIR += slurp SUBDIR += smproxy SUBDIR += somebar SUBDIR += sprop SUBDIR += squeekboard SUBDIR += srandrd SUBDIR += sselp SUBDIR += stalonetray SUBDIR += startup-notification SUBDIR += sterm SUBDIR += stjerm SUBDIR += swarp SUBDIR += sway-audio-idle-inhibit SUBDIR += swaybg SUBDIR += swayfloatingswitcher SUBDIR += swayidle SUBDIR += swayimg SUBDIR += swaylock SUBDIR += swaylock-effects SUBDIR += swaylock-plugin SUBDIR += swaync SUBDIR += swayr SUBDIR += swayrbar SUBDIR += swaysettings SUBDIR += sxhkd SUBDIR += sxmo-wayout SUBDIR += sxpc SUBDIR += tabbed SUBDIR += taiga SUBDIR += temperature.app SUBDIR += terminal.app SUBDIR += terminator SUBDIR += terminology SUBDIR += tessen SUBDIR += thingylaunch SUBDIR += tilda SUBDIR += tilix SUBDIR += tint SUBDIR += tofi SUBDIR += trayer SUBDIR += ulauncher SUBDIR += urxvt-font-size SUBDIR += urxvt-perls SUBDIR += vdesk SUBDIR += viewres SUBDIR += virglrenderer SUBDIR += virtboard SUBDIR += virtualgl SUBDIR += wallutils SUBDIR += wapanel SUBDIR += watershot SUBDIR += way-displays SUBDIR += waybar SUBDIR += wayidle SUBDIR += wayland-logout SUBDIR += waylock SUBDIR += wayout SUBDIR += wbar SUBDIR += wcm SUBDIR += wdisplays SUBDIR += wdm SUBDIR += wev SUBDIR += wezterm SUBDIR += wf-shell SUBDIR += windowtolayer SUBDIR += wl-clipboard SUBDIR += wl-mirror SUBDIR += wlogout SUBDIR += wlopm SUBDIR += wlr-randr SUBDIR += wlr-which-key SUBDIR += wlrctl SUBDIR += wmappl SUBDIR += wmblob SUBDIR += wmbutton SUBDIR += wmcliphist SUBDIR += wmctrl SUBDIR += wmdrawer SUBDIR += wmenu SUBDIR += wmfocus SUBDIR += wmsystemtray SUBDIR += wmutils-core SUBDIR += wmutils-opt SUBDIR += wob SUBDIR += wofi SUBDIR += workrave SUBDIR += wscreensaver SUBDIR += wshowkeys SUBDIR += wtype SUBDIR += wvkbd SUBDIR += x-on-resize SUBDIR += x11perf SUBDIR += x3270 SUBDIR += xantfarm SUBDIR += xapp SUBDIR += xascii SUBDIR += xauth SUBDIR += xautolock SUBDIR += xautomation SUBDIR += xbacklight SUBDIR += xballoon SUBDIR += xbanish SUBDIR += xbiff SUBDIR += xbindkeys SUBDIR += xbitmaps SUBDIR += xbrightness SUBDIR += xcalc SUBDIR += xcalib SUBDIR += xcape SUBDIR += xcb SUBDIR += xcb-imdkit SUBDIR += xcb-proto SUBDIR += xcb-util SUBDIR += xcb-util-cursor SUBDIR += xcb-util-errors SUBDIR += xcb-util-image SUBDIR += xcb-util-keysyms SUBDIR += xcb-util-renderutil SUBDIR += xcb-util-wm SUBDIR += xcb-util-xrm SUBDIR += xclickroot SUBDIR += xclip SUBDIR += xclipboard SUBDIR += xcm SUBDIR += xcmd SUBDIR += xcmsdb SUBDIR += xcoloredit SUBDIR += xcolors SUBDIR += xconsole SUBDIR += xcursorgen SUBDIR += xcut SUBDIR += xdg-desktop-portal-gnome SUBDIR += xdg-desktop-portal-gtk SUBDIR += xdg-desktop-portal-hyprland SUBDIR += xdg-desktop-portal-luminous SUBDIR += xdg-desktop-portal-wlr SUBDIR += xdialog SUBDIR += xditview SUBDIR += xdm SUBDIR += xdo SUBDIR += xdotool SUBDIR += xdpyinfo SUBDIR += xdriinfo SUBDIR += xdtm SUBDIR += xedit SUBDIR += xev SUBDIR += xeyes SUBDIR += xf86dga SUBDIR += xfce4-appmenu-plugin SUBDIR += xfce4-clipman-plugin SUBDIR += xfce4-conf SUBDIR += xfce4-dashboard SUBDIR += xfce4-docklike-plugin SUBDIR += xfce4-goodies SUBDIR += xfce4-screensaver SUBDIR += xfce4-screenshooter-plugin SUBDIR += xfce4-taskmanager SUBDIR += xfce4-terminal SUBDIR += xfce4-verve-plugin SUBDIR += xfce4-whiskermenu-plugin SUBDIR += xfce4-windowck-plugin SUBDIR += xfd SUBDIR += xfishtank SUBDIR += xforward SUBDIR += xgamma SUBDIR += xgc SUBDIR += xhost SUBDIR += xidle SUBDIR += xinit SUBDIR += xinput SUBDIR += xkb-switch SUBDIR += xkbcomp SUBDIR += xkbctrl SUBDIR += xkbevd SUBDIR += xkbind SUBDIR += xkblayout-state SUBDIR += xkbprint SUBDIR += xkbset SUBDIR += xkbutils SUBDIR += xkeyboard-config SUBDIR += xkeycaps SUBDIR += xkeywrap SUBDIR += xkill SUBDIR += xload SUBDIR += xloadimage SUBDIR += xlockmore SUBDIR += xlogo SUBDIR += xlsatoms SUBDIR += xlsclients SUBDIR += xlupe SUBDIR += xmag SUBDIR += xman SUBDIR += xmangekyou SUBDIR += xmascot SUBDIR += xmenu SUBDIR += xmessage SUBDIR += xmh SUBDIR += xmodmap SUBDIR += xmore SUBDIR += xmotd SUBDIR += xmsg SUBDIR += xmx SUBDIR += xnee SUBDIR += xnotify SUBDIR += xob SUBDIR += xorg SUBDIR += xorg-apps SUBDIR += xorg-cf-files SUBDIR += xorg-docs SUBDIR += xorg-libraries SUBDIR += xorg-minimal SUBDIR += xorgproto SUBDIR += xpr SUBDIR += xpra SUBDIR += xpra-html5 SUBDIR += xprintidle SUBDIR += xprompt SUBDIR += xprop SUBDIR += xrandr SUBDIR += xrdb SUBDIR += xrefresh SUBDIR += xrestop SUBDIR += xrootconsole SUBDIR += xrsh SUBDIR += xrsi SUBDIR += xscope SUBDIR += xscreensaver SUBDIR += xscreensaver.app SUBDIR += xsel-conrad SUBDIR += xset SUBDIR += xsetroot SUBDIR += xsettingsd SUBDIR += xskyroot SUBDIR += xsm SUBDIR += xsnow SUBDIR += xss-lock SUBDIR += xssstate SUBDIR += xstarroll SUBDIR += xstdcmap SUBDIR += xstroke SUBDIR += xtacy SUBDIR += xterm SUBDIR += xtermcontrol SUBDIR += xtermset SUBDIR += xtestpicture SUBDIR += xtitle SUBDIR += xtoolwait SUBDIR += xtrans SUBDIR += xtrlock SUBDIR += xtset SUBDIR += xvattr SUBDIR += xvidtune SUBDIR += xvinfo SUBDIR += xvkbd SUBDIR += xvmcinfo SUBDIR += xvt SUBDIR += xwatchwin SUBDIR += xwayland-run SUBDIR += xwaylandvideobridge SUBDIR += xwd SUBDIR += xwininfo SUBDIR += xwinwrap SUBDIR += xwit SUBDIR += xwud SUBDIR += xxkb SUBDIR += xzoom SUBDIR += yad SUBDIR += yakuake SUBDIR += yalias SUBDIR += yeahconsole SUBDIR += yelp SUBDIR += zenity SUBDIR += zutty .include diff --git a/x11/hyprlock/Makefile b/x11/hyprlock/Makefile new file mode 100644 index 000000000000..4e76c8614dd0 --- /dev/null +++ b/x11/hyprlock/Makefile @@ -0,0 +1,67 @@ +PORTNAME= hyprlock +PORTVERSION= s20240223 +CATEGORIES= x11 wayland + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Hyprland's GPU-accelerated screen locking utility #' +WWW= https://github.com/hyprwm/hyprlock + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols +LIB_DEPENDS= libhyprlang.so:devel/hyprlang \ + libdrm.so:graphics/libdrm \ + libwayland-client.so:graphics/wayland \ + libxkbcommon.so:x11/libxkbcommon +RUN_DEPENDS= unix-selfauth-helper>0:security/unix-selfauth-helper + +USES= compiler:c++11-lib cmake gl gnome pkgconfig +USE_GITHUB= yes +USE_GL= egl gbm +USE_GNOME= cairo pango +GH_ACCOUNT= hyprwm +GH_TAGNAME= 8969351 +LDFLAGS+= -Wl,--as-needed # pango deps +PLIST_FILES= bin/${PORTNAME} \ + etc/pam.d/${PORTNAME} + +# XXX Drop after FreeBSD 14.0 EOL around 2025-03-01 +.if exists(/usr/lib/libc++.so) && !exists(/usr/include/c++/v1/__format/write_escaped.h) +CXXFLAGS+= -fexperimental-library +.endif + +# XXX Drop after FreeBSD 13.3 EOL around 2025-07-01 +.if exists(/usr/lib/libc++.so) && !exists(/usr/include/c++/v1/__chrono/time_zone.h) +LIB_DEPENDS+= libdate-tz.so:devel/date +USES+= localbase:ldflags +.endif + +post-install: + ${INSTALL_DATA} ${WRKSRC}/pam/${PORTNAME} \ + ${STAGEDIR}${PREFIX}/etc/pam.d/${PORTNAME} + +# XXX Drop after FreeBSD 13.2 EOL around 2024-05-01 (don't forget distinfo) +.if ${CXX} == c++ && exists(/usr/lib/libc++.so) +.if !exists(/usr/include/c++/v1/expected) || make(makesum) || make(fetch) +USES+= llvm:min=16,build,export +PATH:= ${LLVM_PREFIX}/bin:${PATH} # XXX _CMAKE_TOOLCHAIN_SUFFIX vs. devel/llvm* +CONFIGURE_ENV+= CC="${CC}" CXX="${CXX}" CPP="${CPP}" + +# XXX Move into separate port and standardize via USES +GH_TUPLE+= llvm:llvm-project:llvmorg-16.0.1:libcxx +CXXFLAGS+= -nostdinc++ -isystem${WRKDIR}/libcxx_prefix/include/c++/v1 +# Don't link against new libc++ as it's not necessary +#LDFLAGS+= -nostdlib++ -L${WRKDIR}/libcxx_prefix/lib -l:libc++.a -lcxxrt + +pre-configure: bundled-libcxx +bundled-libcxx: + @${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \ + -DLIBCXX_INCLUDE_BENCHMARKS:BOOL=OFF \ + -DCMAKE_INSTALL_PREFIX:PATH=${WRKDIR}/libcxx_prefix \ + -B ${WRKDIR}/libcxx_build -S ${WRKSRC_libcxx}/libcxx + @${DO_MAKE_BUILD:NDESTDIR*} install -C ${WRKDIR}/libcxx_build +.endif +.endif # exists(/usr/lib/libc++.so) + +.include diff --git a/x11/hyprlock/distinfo b/x11/hyprlock/distinfo new file mode 100644 index 000000000000..4a6e36a1b566 --- /dev/null +++ b/x11/hyprlock/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1708723748 +SHA256 (hyprwm-hyprlock-s20240223-8969351_GH0.tar.gz) = c30cefee520fa06f6f955b5f65fb8ba117a7d32faf8ecf860176b1654a6afabe +SIZE (hyprwm-hyprlock-s20240223-8969351_GH0.tar.gz) = 49265 +SHA256 (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = b5a9ff1793b1e2d388a3819bf35797002b1d2e40bb35a10c65605e0ea1435271 +SIZE (llvm-llvm-project-llvmorg-16.0.1_GH0.tar.gz) = 179289803 diff --git a/x11/hyprlock/files/patch-pam b/x11/hyprlock/files/patch-pam new file mode 100644 index 000000000000..044b0af3a847 --- /dev/null +++ b/x11/hyprlock/files/patch-pam @@ -0,0 +1,21 @@ +"su" has "auth sufficient pam_self.so" but a screen locker is +supposed to ask for password regardless. + +pam_unix(8) requires root priveleges to access master.passwd(5), +so try authenticating via setuid helper first. + +--- pam/hyprlock.orig 1970-01-01 00:00:00 UTC ++++ pam/hyprlock +@@ -0,0 +1 @@ ++auth include unix-selfauth +--- src/core/Password.cpp.orig 2024-02-23 21:29:08 UTC ++++ src/core/Password.cpp +@@ -30,7 +30,7 @@ std::shared_ptr CPassw + const pam_conv localConv = {conv, NULL}; + pam_handle_t* handle = NULL; + +- int ret = pam_start("su", getlogin(), &localConv, &handle); ++ int ret = pam_start("hyprlock", getlogin(), &localConv, &handle); + + if (ret != PAM_SUCCESS) { + result->success = false; diff --git a/x11/hyprlock/pkg-descr b/x11/hyprlock/pkg-descr new file mode 100644 index 000000000000..c84e12082d3d --- /dev/null +++ b/x11/hyprlock/pkg-descr @@ -0,0 +1,8 @@ +Hyprland's simple, yet multi-threaded and GPU-accelerated screen +locking utility. + +Features: + - uses the secure ext-session-lock protocol + - full support for fractional-scale + - fully GPU accelerated + - multi-threaded resource acquisition for no hitches