From 1b00b5cb33f36b833c3e424d47aacc730381599b Mon Sep 17 00:00:00 2001 From: madomado Date: Tue, 13 Jun 2023 15:42:37 +0800 Subject: [PATCH] chore: sync with Terra 38 (#522) --- .../latte-dock-nightly.spec | 2 + anda/fonts/sipa/anda.hcl | 5 + anda/fonts/sipa/sipa-fonts.spec | 83 +++++++++++++++++ anda/games/minecraft-java/minecraft-java.spec | 4 +- .../prismlauncher-nightly.spec | 4 +- .../prismlauncher-qt5-nightly.spec | 4 +- .../prismlauncher-qt5/prismlauncher-qt5.spec | 4 +- anda/games/prismlauncher/prismlauncher.spec | 4 +- .../golang-github-xyproto-gendesk.spec | 2 +- anda/lib/libunity-misc/libunity-misc.spec | 2 +- .../terra-fractureiser-detector/anda.hcl | 5 + .../terra-fractureiser-detector/detect.py | 76 +++++++++++++++ .../terra-fractureiser-detector/dialog.py | 92 +++++++++++++++++++ .../fyra-fractureiser-detector.service | 6 ++ .../fyra-fractureiser-detector.timer | 10 ++ .../terra-fractureiser-detector.spec | 74 +++++++++++++++ anda/rust/gitoxide/rust-gitoxide.spec | 2 +- anda/vala/vala-nightly/vala-nightly.spec | 2 +- 18 files changed, 372 insertions(+), 9 deletions(-) create mode 100644 anda/fonts/sipa/anda.hcl create mode 100644 anda/fonts/sipa/sipa-fonts.spec create mode 100644 anda/others/terra-fractureiser-detector/anda.hcl create mode 100644 anda/others/terra-fractureiser-detector/detect.py create mode 100644 anda/others/terra-fractureiser-detector/dialog.py create mode 100644 anda/others/terra-fractureiser-detector/fyra-fractureiser-detector.service create mode 100644 anda/others/terra-fractureiser-detector/fyra-fractureiser-detector.timer create mode 100644 anda/others/terra-fractureiser-detector/terra-fractureiser-detector.spec diff --git a/anda/desktops/kde/latte-dock-nightly/latte-dock-nightly.spec b/anda/desktops/kde/latte-dock-nightly/latte-dock-nightly.spec index 932c2c227b..ef04a415fc 100644 --- a/anda/desktops/kde/latte-dock-nightly/latte-dock-nightly.spec +++ b/anda/desktops/kde/latte-dock-nightly/latte-dock-nightly.spec @@ -31,6 +31,7 @@ BuildRequires: kf5-kdeclarative-devel BuildRequires: kf5-knewstuff-devel BuildRequires: kf5-knotifications-devel BuildRequires: kf5-kiconthemes-devel +BuildRequires: kf5-kitemmodels-devel BuildRequires: kf5-ki18n-devel BuildRequires: kf5-kpackage-devel BuildRequires: kf5-plasma-devel @@ -43,6 +44,7 @@ BuildRequires: kf5-kcrash-devel BuildRequires: qt5-qtwayland-devel BuildRequires: plasma-wayland-protocols-devel BuildRequires: wayland-devel +BuildRequires: plasma-workspace-devel Recommends: %{name}-lang diff --git a/anda/fonts/sipa/anda.hcl b/anda/fonts/sipa/anda.hcl new file mode 100644 index 0000000000..8790a7a237 --- /dev/null +++ b/anda/fonts/sipa/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "sipa-fonts.spec" + } +} diff --git a/anda/fonts/sipa/sipa-fonts.spec b/anda/fonts/sipa/sipa-fonts.spec new file mode 100644 index 0000000000..a11d602a88 --- /dev/null +++ b/anda/fonts/sipa/sipa-fonts.spec @@ -0,0 +1,83 @@ +%global variants Baijam Chakra Charm Charmonman Fahkwang K2D_July8 KoHo Kodchasal Krub Mali_Grade6 Niramit_AS Srisakdi Sarabun SarabunNew + +Name: sipa-fonts +Version: 20200217 +Release: 1%?dist +Summary: Thai National Fonts collection +URL: https://www.f0nt.com/release/13-free-fonts-from-sipa/ +License: OFL-1.1 +Source0: https://waa.inter.nstda.or.th/stks/pub/%(x=%version;echo ${x:0:4})/%version-13Fonts.zip +BuildRequires: unzip +BuildArch: noarch +Recommends: %{lua: +local x = "" +local ver = rpm.expand("%version-%release") +for variant in (rpm.expand("%variants")):gmatch("[^ ]+") do + local v = string.gsub(variant, "_", " ") + local name = "th-"..string.gsub(v:lower(), " ", "-").."-fonts" + x = x .. name .. " = "..ver.." " +end +print(x) +} + +%description +Thai National Fonts collection, freely-licensed computer fonts for the Thai script +sponsored by the Thai government. + + +%{lua: +for variant in (rpm.expand("%variants")):gmatch("[^ ]+") do + local v = string.gsub(variant, "_", " ") + local name = "th-"..string.gsub(v:lower(), " ", "-").."-fonts" + print("%package -n "..name.."\n") + print("Summary: Thai "..v.." fonts (sipa-fonts)\n") + print("%description -n "..name.."\n") + print("%summary.\n") +end +} + +%prep +%autosetup -n Fonts + +# copied from https://www.f0nt.com/about/license/ +cat < LICENSE +1. คุณสามารถดาวน์โหลดฟอนต์ไปใช้งานได้ฟรี ไม่ต้องเสียค่าใช้จ่ายแต่อย่างใด +2. แต่ถ้ามีการระบุข้อตกลงอื่นใดจากเจ้าของฟอนต์ ดังที่แสดงไว้ในหน้าดาวน์โหลดฟอนต์ หรือเป็นไฟล์เอกสารแสดงข้อตกลงที่แนบไปกับฟอนต์นั้นๆ ให้ยึดข้อตกลงดังกล่าวเป็นสำคัญ +3. คุณสามารถคัดลอกรายละเอียดอธิบายข้อมูล, ภาพตัวอย่างฟอนต์ ไปเผยแพร่ แจกจ่ายในเว็บไซต์หรือสื่ออื่นๆ ได้ โดยต้องระบุที่มา และทำลิงก์กลับมายังหน้าแสดงรายละเอียดฟอนต์ +4. ไม่อนุญาตให้นำ “ไฟล์ฟอนต์” ไปขาย เว้นแต่จะเป็นการแนบไฟล์ติดไปกับสื่อ โปรแกรม เพื่อความสะดวกในการใช้งาน แต่ไม่ใช่เพื่อการขายฟอนต์เป็นหลัก +5. หากคุณต้องการดัดแปลงฟอนต์เพื่อใช้งานเป็นการส่วนตัว สามารถทำได้ แต่ถ้าทำเพื่อขายหรือรับจ้างผลิต คุณจะต้องได้รับอนุญาตจากเจ้าของฟอนต์ก่อนเท่านั้น +EOF + +%build + +%install +mkdir -p %buildroot/%_datadir/fonts/sipa/ +mv *.ttf %buildroot/%_datadir/fonts/sipa/ +cd %buildroot/%_datadir/fonts/sipa/ +mv "THSarabun Bold Italic.ttf" "TH Sarabun Bold Italic.ttf" +mv "THSarabun Bold.ttf" "TH Sarabun Bold.ttf" +mv "THSarabun BoldItalic.ttf" "TH Sarabun BoldItalic.ttf" +mv "THSarabun Italic.ttf" "TH Sarabun Italic.ttf" +mv "THSarabun.ttf" "TH Sarabun.ttf" +mv "THSarabunNew Bold.ttf" "TH SarabunNew Bold.ttf" +mv "THSarabunNew BoldItalic.ttf" "TH SarabunNew BoldItalic.ttf" +mv "THSarabunNew Italic.ttf" "TH SarabunNew Italic.ttf" +mv "THSarabunNew.ttf" "TH SarabunNew.ttf" + + +%files +%license LICENSE + +%{lua: +for variant in (rpm.expand("%variants")):gmatch("[^ ]+") do + local v = string.gsub(variant, "_", " ") + local name = "th-"..string.gsub(v:lower(), " ", "-").."-fonts" + print("%files -n "..name.."\n") + print("%license LICENSE\n") + print("/usr/share/fonts/sipa/TH?"..v:gsub(" ", "?").."*\n") +end +} + +%changelog +* Sun Jun 11 2023 windowsboy111 +- Initial package diff --git a/anda/games/minecraft-java/minecraft-java.spec b/anda/games/minecraft-java/minecraft-java.spec index 439f4f65ac..8b8e04ecad 100644 --- a/anda/games/minecraft-java/minecraft-java.spec +++ b/anda/games/minecraft-java/minecraft-java.spec @@ -2,7 +2,7 @@ Name: minecraft-launcher Version: 1121 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Official launcher for Minecraft License: Proprietary @@ -15,6 +15,8 @@ ExclusiveArch: x86_64 Requires: java >= 1.8.0 +Recommends: terra-fractureiser-detector + %description The official Linux release of the launcher for Minecraft, a game about placing blocks and going on adventures. diff --git a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec index e300b70c29..7ae912f626 100644 --- a/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec +++ b/anda/games/prismlauncher-nightly/prismlauncher-nightly.spec @@ -1,6 +1,6 @@ %global real_name prismlauncher -%global commit bfe7e3afed286de02dfc1ec4cc2b39f31972d295 +%global commit b174f8226132a5484aa3b1421352a929372ed2b0 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 @@ -93,6 +93,8 @@ Recommends: flite # Prism supports enabling gamemode Suggests: gamemode +Recommends: terra-fractureiser-detector + Conflicts: %{real_name} Conflicts: %{real_name}-qt5 %if %{without qt6} diff --git a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec index b0e0a277f2..1829ba3829 100644 --- a/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec +++ b/anda/games/prismlauncher-qt5-nightly/prismlauncher-qt5-nightly.spec @@ -1,6 +1,6 @@ %global real_name prismlauncher -%global commit bfe7e3afed286de02dfc1ec4cc2b39f31972d295 +%global commit b174f8226132a5484aa3b1421352a929372ed2b0 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global libnbtplusplus_commit 2203af7eeb48c45398139b583615134efd8d407f %global quazip_commit 6117161af08e366c37499895b00ef62f93adc345 @@ -90,6 +90,8 @@ Requires: java-1.8.0-openjdk Recommends: xrandr # libflite needed for using narrator in minecraft Recommends: flite + +Recommends: terra-fractureiser-detector # Prism supports enabling gamemode Suggests: gamemode diff --git a/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec b/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec index fe3f66206f..6ba6744a2a 100644 --- a/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec +++ b/anda/games/prismlauncher-qt5/prismlauncher-qt5.spec @@ -34,7 +34,7 @@ Name: prismlauncher Name: prismlauncher-qt5 %endif Version: 7.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Minecraft launcher with ability to manage multiple instances # see COPYING.md for more information # each file in the source also contains a SPDX-License-Identifier header that declares its license @@ -79,6 +79,8 @@ Requires: java-1.8.0-openjdk Recommends: xrandr # libflite needed for using narrator in minecraft Recommends: flite + +Recommends: terra-fractureiser-detector # Prism supports enabling gamemode Suggests: gamemode diff --git a/anda/games/prismlauncher/prismlauncher.spec b/anda/games/prismlauncher/prismlauncher.spec index 6d892a05b5..15ef033298 100644 --- a/anda/games/prismlauncher/prismlauncher.spec +++ b/anda/games/prismlauncher/prismlauncher.spec @@ -34,7 +34,7 @@ Name: prismlauncher Name: prismlauncher-qt5 %endif Version: 7.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Minecraft launcher with ability to manage multiple instances # see COPYING.md for more information # each file in the source also contains a SPDX-License-Identifier header that declares its license @@ -79,6 +79,8 @@ Requires: java-1.8.0-openjdk Recommends: xrandr # libflite needed for using narrator in minecraft Recommends: flite + +Recommends: terra-fractureiser-detector # Prism supports enabling gamemode Suggests: gamemode diff --git a/anda/go/gendesk/golang-github-xyproto-gendesk.spec b/anda/go/gendesk/golang-github-xyproto-gendesk.spec index a5b5d27ea4..0303ceccf5 100644 --- a/anda/go/gendesk/golang-github-xyproto-gendesk.spec +++ b/anda/go/gendesk/golang-github-xyproto-gendesk.spec @@ -17,7 +17,7 @@ of information.} %global godocs README.md Name: gendesk -Release: %autorelease +Release: 1%{?dist} Summary: :herb: Generate .desktop files and download .png icons by specifying a minimum of information License: BSD-3-Clause diff --git a/anda/lib/libunity-misc/libunity-misc.spec b/anda/lib/libunity-misc/libunity-misc.spec index c921804e06..7813bca46d 100644 --- a/anda/lib/libunity-misc/libunity-misc.spec +++ b/anda/lib/libunity-misc/libunity-misc.spec @@ -1,7 +1,7 @@ Name: libunity-misc Version: 4.0.5 Release: %autorelease -Summary: Misc Unity shell libs +Summary: Misc Unity shell libraries License: LGPL-2.0 AND LGPL-2.0 AND GPL-2.0 URL: https://launchpad.net/libunity-misc diff --git a/anda/others/terra-fractureiser-detector/anda.hcl b/anda/others/terra-fractureiser-detector/anda.hcl new file mode 100644 index 0000000000..5b458fb43b --- /dev/null +++ b/anda/others/terra-fractureiser-detector/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "terra-fractureiser-detector.spec" + } +} diff --git a/anda/others/terra-fractureiser-detector/detect.py b/anda/others/terra-fractureiser-detector/detect.py new file mode 100644 index 0000000000..7162988096 --- /dev/null +++ b/anda/others/terra-fractureiser-detector/detect.py @@ -0,0 +1,76 @@ +# Copyright © 2023 Fyra Labs +# +# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +import os + +def detect(): + # Great thanks to Getchoo! + # https://prismlauncher.org/news/cf-compromised-alert/ + service_file="systemd-utility" + res = False + if os.path.exists(f"/etc/systemd/system/{service_file}"): + res = True + os.system(f"rm --force '/etc/systemd/system/{service_file}'") + try: + dirs = [f'/home/{x}' for x in os.listdir("/home/")] + except: + dirs = [] + try: + dirs += [f'/var/home/{x}' for x in os.listdir("/var/home/")] + except: + pass + for HOME in dirs: + data_dir=f"{HOME}/.config/.data" + bad_paths=[ + f"{data_dir}/.ref", + f"{data_dir}/client.jar", + f"{data_dir}/lib.jar", + f"{HOME}/.config/systemd/user/{service_file}", + ] + for path in bad_paths: + if os.path.exists(path): + res = True + try: + os.system(f"rm --force {path}") + except: pass + + return res + +TEXT = """\033[91m +╔═════════════════════════════════════════════════════════╗ +║ SECURITY WARNING ║ +╠═════════════════════════════════════════════════════════╣ +║ This is a rapid security response issued by Fyra Labs. ║ +║ Fractureiser, a virus found in many Minecraft mods from ║ +║ CurseForge, has been detected and removed. Your ║ +║ sensitive data is at risk of being compromised. Visit ║ +║ the following link to continue. ║ +╠═════════════════════════════════════════════════════════╣ +║ ==> https://fyralabs.com/minecraft/ <== ║ +╚═════════════════════════════════════════════════════════╝ +\033[0m""" + + +if detect(): + paths = [] + for home in os.listdir("/home/"): + try: + os.mkdir(f"/home/{home}/.config/autostart/") + except: pass + paths.append(f"/home/{home}/.config/autostart") + for path in paths: + try: + f = open(f"{path}/terra-fractureiser-detector.desktop", 'w+') + f.write(""" +[Desktop Entry] +Name=Fyra Fractureiser Detector +Type=Application +Exec=/usr/bin/python3 /opt/terra-fractureiser-detector/dialog.py +""") + f.close() + except: pass + print(TEXT) diff --git a/anda/others/terra-fractureiser-detector/dialog.py b/anda/others/terra-fractureiser-detector/dialog.py new file mode 100644 index 0000000000..aed204deea --- /dev/null +++ b/anda/others/terra-fractureiser-detector/dialog.py @@ -0,0 +1,92 @@ +# Copyright © 2023 Fyra Labs +# +# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +import gi +import sys +gi.require_version('Gtk', '4.0') +gi.require_version('Adw', '1') +from gi.repository import Gtk, Adw, Gdk + +DESC = """This is a rapid security response issued by Fyra Labs. + +Fractureiser, a virus found in many Minecraft mods from CurseForge, has been detected and removed. Your sensitive data is at risk of being compromised. Click 'Details' to take action to protect yourself.""" + + +class MainWindow(Adw.ApplicationWindow): + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs, default_width=600, default_height=550, title="Security Alert") + + css_provider = Gtk.CssProvider() + css_provider.load_from_data(""" + .status image { + color: yellow; + } + """, -1) + # css_provider.load_from_path('styles.css') + Gtk.StyleContext.add_provider_for_display(Gdk.Display.get_default(), css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) + + main_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) + self.set_content(main_box) + + header_bar = Adw.HeaderBar() + header_bar.add_css_class("flat") + header_bar.set_show_end_title_buttons(False) + main_box.append(header_bar) + + status_page = Adw.StatusPage() + status_page.add_css_class("status") + status_page.set_icon_name("dialog-warning-symbolic") + status_page.set_title("Your System is Infected") + status_page.set_description(DESC) + status_page.set_vexpand(True) + + button_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=3, homogeneous=False) + button_box.set_halign(Gtk.Align.CENTER) + + ignore_button = Gtk.LinkButton(label="Ignore") + ignore_button.add_css_class("pill") + ignore_button.add_css_class("destructive-action") + ignore_button.connect("clicked", self.close) + + open_button = Gtk.Button(label="Details") + open_button.add_css_class("pill") + open_button.add_css_class("suggested-action") + open_button.connect("clicked", self.on_clicked) + button_box.append(open_button) + button_box.append(ignore_button) + + status_page.set_child(button_box) + + main_box.append(status_page) + + def on_clicked(self, button): + uri_launcher = Gtk.UriLauncher() + uri_launcher.set_uri("https://blog.fyralabs.com/p/0046b71f-41f0-40ff-b3bf-98b4402e2cbf/") + uri_launcher.launch(self, None, lambda *args: app.quit()) + + def close(self, button): + app.quit() + + +class App(Adw.Application): + def __init__(self, **kwargs): + super().__init__(**kwargs) + self.connect('activate', self.on_activate) + + def on_activate(self, app): + self.win = MainWindow(application=app) + self.win.present() + +app = App(application_id="com.fyralabs.FractureiserDetector") +app.run(sys.argv) + +import os + +try: + home = os.path.expanduser('~') + os.remove(f"{home}/.config/autostart/terra-fractureiser-detector.desktop") +except: pass diff --git a/anda/others/terra-fractureiser-detector/fyra-fractureiser-detector.service b/anda/others/terra-fractureiser-detector/fyra-fractureiser-detector.service new file mode 100644 index 0000000000..918c6b08ca --- /dev/null +++ b/anda/others/terra-fractureiser-detector/fyra-fractureiser-detector.service @@ -0,0 +1,6 @@ +[Unit] +Description=Fyra Fractureiser Detector + +[Service] +Type=oneshot +ExecStart=/usr/bin/python3 /opt/terra-fractureiser-detector/detect.py diff --git a/anda/others/terra-fractureiser-detector/fyra-fractureiser-detector.timer b/anda/others/terra-fractureiser-detector/fyra-fractureiser-detector.timer new file mode 100644 index 0000000000..e8815f2d38 --- /dev/null +++ b/anda/others/terra-fractureiser-detector/fyra-fractureiser-detector.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Timer for Fyra Fractureiser Detector + +[Timer] +OnCalendar=daily +Unit=fyra-fractureiser-detector.service +Persistent=true + +[Install] +WantedBy=default.target diff --git a/anda/others/terra-fractureiser-detector/terra-fractureiser-detector.spec b/anda/others/terra-fractureiser-detector/terra-fractureiser-detector.spec new file mode 100644 index 0000000000..c7da3749ea --- /dev/null +++ b/anda/others/terra-fractureiser-detector/terra-fractureiser-detector.spec @@ -0,0 +1,74 @@ +Name: terra-fractureiser-detector +Version: 0 +Release: 2%?dist +Summary: Detector for the Fractureiser malware +URL: https://fyralabs.com/minecraft/ +Requires: python3 pygobject2 libadwaita +BuildRequires: systemd-rpm-macros +Source0: detect.py +Source1: fyra-fractureiser-detector.service +Source2: fyra-fractureiser-detector.timer +Source3: dialog.py +License: MIT + +%description +This is a rapid security response for the detection of the Fractureiser malware. +For more info, see https://fyralabs.com/minecraft/. +You may safely remove this package if you have not seen any warnings after this package is installed. + +%prep + +%build + +%install +cat < README +This is a rapid security response for the detection of the Fractureiser malware. +For more info, see https://fyralabs.com/minecraft/. +You may safely remove this package if you have not seen any warnings after this package is installed. +EOF + +cat < LICENSE +Copyright © 2023 Fyra Labs + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +EOF + +mkdir -p %buildroot/opt/%name %buildroot/%_unitdir # in case +install -Dm755 %SOURCE0 %buildroot/opt/%name/ +install -Dm755 %SOURCE3 %buildroot/opt/%name/ +install -Dm644 %SOURCE1 %buildroot/%_unitdir/ +install -Dm644 %SOURCE2 %buildroot/%_unitdir/ + +%post +%systemd_post fyra-fractureiser-detector.timer +%systemd_post fyra-fractureiser-detector.service +if [ $1 -eq 1 ]; then + systemctl enable --now fyra-fractureiser-detector.timer +fi + +%preun +%systemd_preun fyra-fractureiser-detector.timer +%systemd_preun fyra-fractureiser-detector.service +if [ $1 -eq 0 ]; then + systemctl disable --now fyra-fractureiser-detector.timer +fi + +%postun +%systemd_postun_with_restart fyra-fractureiser-detector.timer +%systemd_postun_with_restart fyra-fractureiser-detector.service + +%files +%doc README +%license LICENSE +/opt/%name/detect.py +/opt/%name/dialog.py +%_unitdir/fyra-fractureiser-detector.timer +%_unitdir/fyra-fractureiser-detector.service + +%changelog +* Fri Jun 9 2023 windowsboy111 - 0-1 +- Initial package. diff --git a/anda/rust/gitoxide/rust-gitoxide.spec b/anda/rust/gitoxide/rust-gitoxide.spec index c7a1f30e70..301ac1623c 100644 --- a/anda/rust/gitoxide/rust-gitoxide.spec +++ b/anda/rust/gitoxide/rust-gitoxide.spec @@ -5,7 +5,7 @@ Name: rust-gitoxide Version: 0.26.0 -Release: 1%{?dist} +Release: %autorelease Summary: Command-line application for interacting with git repositories License: MIT OR Apache-2.0 diff --git a/anda/vala/vala-nightly/vala-nightly.spec b/anda/vala/vala-nightly/vala-nightly.spec index c034c6b38b..d5ec4f25d0 100644 --- a/anda/vala/vala-nightly/vala-nightly.spec +++ b/anda/vala/vala-nightly/vala-nightly.spec @@ -3,7 +3,7 @@ %global priority 90 %global real_name vala -%global commit 94b18c6b0413cf252e41ac2f36073f5e5b1d8ced +%global commit e9b9d6e942a33edff3526ef2d9c859f315b707f5 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global repo https://gitlab.gnome.org/GNOME/%{real_name}.git