From c3ea7ba327a4c58da809539e11a02526ff240e41 Mon Sep 17 00:00:00 2001 From: dani-77 Date: Tue, 1 Oct 2024 13:41:34 +0100 Subject: [PATCH] udiskie: 2.5.3 --- udiskie/.checksums | 3 ++ udiskie/.pkgfiles | 103 +++++++++++++++++++++++++++++++++++++++ udiskie/50-udiskie.rules | 18 +++++++ udiskie/README | 15 ++++++ udiskie/spkgbuild | 23 +++++++++ 5 files changed, 162 insertions(+) create mode 100644 udiskie/.checksums create mode 100644 udiskie/.pkgfiles create mode 100644 udiskie/50-udiskie.rules create mode 100644 udiskie/README create mode 100644 udiskie/spkgbuild diff --git a/udiskie/.checksums b/udiskie/.checksums new file mode 100644 index 0000000..046f8ec --- /dev/null +++ b/udiskie/.checksums @@ -0,0 +1,3 @@ +f6625a9d8d79836dc4fa1939714ef1e4a3f74852a518ab3cf192a5f7af3c34b0bf3c8a0c8a2a8e914b808d375487fde9bd60e3b4c51b8313f05782c03bcc4929 50-udiskie.rules +be828ee0e8c21e115772735ca6e20d46a53ed0ce8a720c590422d3080dacd6e1321f8cdac9dc1d93144660d9f860d13dbf58c26ed46cd234e33ec95f0cac6274 README +ff23929f2e1258d4c40a86dec2034d3c68848a9d1e76196c46e621bfcc52abd0c9746023cef248cd74967f37e555c563f1e872ab07732ff1e9f63a24bc6299e6 v2.5.3.tar.gz diff --git a/udiskie/.pkgfiles b/udiskie/.pkgfiles new file mode 100644 index 0000000..652a375 --- /dev/null +++ b/udiskie/.pkgfiles @@ -0,0 +1,103 @@ +udiskie-2.5.3-1 +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/polkit-1/ +drwxr-xr-x root/root etc/polkit-1/rules.d/ +-rwxr-xr-x root/root etc/polkit-1/rules.d/50-udiskie.rules +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/udiskie +-rwxr-xr-x root/root usr/bin/udiskie-info +-rwxr-xr-x root/root usr/bin/udiskie-mount +-rwxr-xr-x root/root usr/bin/udiskie-umount +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/python3.12/ +drwxr-xr-x root/root usr/lib/python3.12/site-packages/ +drwxr-xr-x root/root usr/lib/python3.12/site-packages/udiskie-2.5.3-py3.12.egg-info/ +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie-2.5.3-py3.12.egg-info/PKG-INFO +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie-2.5.3-py3.12.egg-info/SOURCES.txt +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie-2.5.3-py3.12.egg-info/dependency_links.txt +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie-2.5.3-py3.12.egg-info/entry_points.txt +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie-2.5.3-py3.12.egg-info/requires.txt +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie-2.5.3-py3.12.egg-info/top_level.txt +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie-2.5.3-py3.12.egg-info/zip-safe +drwxr-xr-x root/root usr/lib/python3.12/site-packages/udiskie/ +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__init__.py +drwxr-xr-x root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/ +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/__init__.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/__init__.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/appindicator.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/appindicator.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/async_.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/async_.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/automount.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/automount.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/cache.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/cache.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/cli.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/cli.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/common.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/common.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/config.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/config.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/dbus.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/dbus.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/depend.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/depend.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/locale.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/locale.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/mount.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/mount.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/notify.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/notify.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/prompt.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/prompt.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/tray.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/tray.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/udisks2.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/__pycache__/udisks2.cpython-312.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/appindicator.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/async_.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/automount.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/cache.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/cli.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/common.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/config.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/dbus.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/depend.py +drwxr-xr-x root/root usr/lib/python3.12/site-packages/udiskie/icons/ +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/__init__.py +drwxr-xr-x root/root usr/lib/python3.12/site-packages/udiskie/icons/__pycache__/ +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/__pycache__/__init__.cpython-312.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/__pycache__/__init__.cpython-312.pyc +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/udiskie-checkbox-checked.svg +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/udiskie-checkbox-unchecked.svg +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/udiskie-detach.svg +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/udiskie-eject.svg +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/udiskie-lock.svg +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/udiskie-mount.svg +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/udiskie-submenu.svg +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/udiskie-unlock.svg +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/icons/udiskie-unmount.svg +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/locale.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/mount.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/notify.py +-rw-rw-r-- root/root usr/lib/python3.12/site-packages/udiskie/password_dialog.ui +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/prompt.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/tray.py +-rw-r--r-- root/root usr/lib/python3.12/site-packages/udiskie/udisks2.py +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/bash-completion/ +drwxr-xr-x root/root usr/share/bash-completion/completions/ +-rw-rw-r-- root/root usr/share/bash-completion/completions/udiskie +-rw-rw-r-- root/root usr/share/bash-completion/completions/udiskie-info +-rw-rw-r-- root/root usr/share/bash-completion/completions/udiskie-mount +-rw-rw-r-- root/root usr/share/bash-completion/completions/udiskie-umount +drwxr-xr-x root/root usr/share/licenses/ +drwxr-xr-x root/root usr/share/licenses/udiskie/ +-rw-r--r-- root/root usr/share/licenses/udiskie/LICENSE +drwxr-xr-x root/root usr/share/zsh/ +drwxr-xr-x root/root usr/share/zsh/site-functions/ +-rw-r--r-- root/root usr/share/zsh/site-functions/_udiskie +-rw-r--r-- root/root usr/share/zsh/site-functions/_udiskie-canonical_paths +-rw-r--r-- root/root usr/share/zsh/site-functions/_udiskie-mount +-rw-r--r-- root/root usr/share/zsh/site-functions/_udiskie-umount diff --git a/udiskie/50-udiskie.rules b/udiskie/50-udiskie.rules new file mode 100644 index 0000000..733b69d --- /dev/null +++ b/udiskie/50-udiskie.rules @@ -0,0 +1,18 @@ +polkit.addRule(function(action, subject) { + var YES = polkit.Result.YES; + var permission = { + // only required for udisks1: + "org.freedesktop.udisks.filesystem-mount": YES, + "org.freedesktop.udisks.luks-unlock": YES, + "org.freedesktop.udisks.drive-eject": YES, + "org.freedesktop.udisks.drive-detach": YES, + // only required for udisks2: + "org.freedesktop.udisks2.filesystem-mount": YES, + "org.freedesktop.udisks2.encrypted-unlock": YES, + "org.freedesktop.udisks2.eject-media": YES, + "org.freedesktop.udisks2.power-off-drive": YES + }; + if (subject.isInGroup("storage")) { + return permission[action.id]; + } +}); diff --git a/udiskie/README b/udiskie/README new file mode 100644 index 0000000..71d2183 --- /dev/null +++ b/udiskie/README @@ -0,0 +1,15 @@ +README for udiskie + +REQUIREMENTS + +POST-INSTALL + +1. Create Group storage + +2. Add your user to storage Group + +3. Optional: + Add udiskie to your .xinitrc + + Example: + exec udiskie -at & diff --git a/udiskie/spkgbuild b/udiskie/spkgbuild new file mode 100644 index 0000000..b10efcb --- /dev/null +++ b/udiskie/spkgbuild @@ -0,0 +1,23 @@ +# description : Automounter for removable media. +# homepage : https://github.com/coldfix/udiskie +# depends : udisks2 python3-gobject python3-docopt gtk libnotify + +name=udiskie +version=2.5.3 +release=1 +noextract="" +backup="" +source="https://github.com/coldfix/$name/archive/refs/tags/v$version.tar.gz 50-udiskie.rules README" + +build() { + cd $name-$version + python3 setup.py build + python3 setup.py install --root=$PKG --optimize=1 --skip-build + install -Dm644 COPYING "$PKG/usr/share/licenses/$name/LICENSE" + install -dm755 "$PKG/usr/share/zsh/site-functions" + install -m644 completions/zsh/* "$PKG/usr/share/zsh/site-functions" + + install -Dm755 $SRC/50-udiskie.rules $PKG/etc/polkit-1/rules.d/50-udiskie.rules + + rm -rf $PKG/usr/share/locale/ +}