mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #9443 from mglae/le13_ntfs-3g_addons
New addons: "ntfs-3g for udevil" and "ntfs-tools"
This commit is contained in:
commit
9e959b84fe
26
packages/addons/addon-depends/ntfs-3g_ntfsprogs/package.mk
Normal file
26
packages/addons/addon-depends/ntfs-3g_ntfsprogs/package.mk
Normal file
@ -0,0 +1,26 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="ntfs-3g_ntfsprogs"
|
||||
PKG_VERSION="2022.10.3"
|
||||
PKG_SHA256="f20e36ee68074b845e3629e6bced4706ad053804cbaf062fbae60738f854170c"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/tuxera/ntfs-3g"
|
||||
PKG_URL="https://tuxera.com/opensource/${PKG_NAME}-${PKG_VERSION}.tgz"
|
||||
PKG_DEPENDS_TARGET="toolchain fuse libgcrypt"
|
||||
PKG_LONGDESC="A NTFS driver with read and write support."
|
||||
PKG_TOOLCHAIN="autotools"
|
||||
PKG_BUILD_FLAGS="+lto +speed -sysroot"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--exec-prefix=/usr/ \
|
||||
--disable-dependency-tracking \
|
||||
--disable-library \
|
||||
--enable-posix-acls \
|
||||
--enable-mtab \
|
||||
--enable-ntfsprogs \
|
||||
--disable-crypto \
|
||||
--with-fuse=external \
|
||||
--with-uuid \
|
||||
--disable-mount-helper"
|
||||
|
1
packages/addons/service/ntfs3g/changelog.txt
Normal file
1
packages/addons/service/ntfs3g/changelog.txt
Normal file
@ -0,0 +1 @@
|
||||
initial release
|
BIN
packages/addons/service/ntfs3g/icon/icon.png
Normal file
BIN
packages/addons/service/ntfs3g/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
26
packages/addons/service/ntfs3g/package.mk
Normal file
26
packages/addons/service/ntfs3g/package.mk
Normal file
@ -0,0 +1,26 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# Copyright (C) 2024-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="ntfs3g"
|
||||
PKG_REV="0"
|
||||
PKG_LICENSE="GPLv3"
|
||||
PKG_DEPENDS_TARGET="toolchain fuse ntfs-3g_ntfsprogs"
|
||||
PKG_SECTION="service"
|
||||
PKG_SHORTDESC="ntfs-3g for udevil"
|
||||
PKG_LONGDESC="ntfs-3g for udevil"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
PKG_IS_ADDON="yes"
|
||||
PKG_ADDON_NAME="ntfs3g"
|
||||
PKG_ADDON_TYPE="xbmc.service"
|
||||
|
||||
addon() {
|
||||
mkdir -p ${ADDON_BUILD}/${PKG_ADDON_ID}/{bin,lib.private}
|
||||
|
||||
cp -PL $(get_install_dir fuse)/usr/lib/libfuse.so.2 \
|
||||
${ADDON_BUILD}/${PKG_ADDON_ID}/lib.private
|
||||
|
||||
cp $(get_install_dir ntfs-3g_ntfsprogs)/usr/bin/ntfs-3g \
|
||||
${ADDON_BUILD}/${PKG_ADDON_ID}/bin
|
||||
patchelf --add-rpath '${ORIGIN}/../lib.private' ${ADDON_BUILD}/${PKG_ADDON_ID}/bin/ntfs-3g
|
||||
}
|
6
packages/addons/service/ntfs3g/source/bin/mount.ntfs3g
Executable file
6
packages/addons/service/ntfs3g/source/bin/mount.ntfs3g
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# Copyright (C) 2024-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
exec /storage/.kodi/addons/service.ntfs3g/bin/ntfs-3g "$@"
|
20
packages/addons/service/ntfs3g/source/default.py
Normal file
20
packages/addons/service/ntfs3g/source/default.py
Normal file
@ -0,0 +1,20 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
import subprocess
|
||||
import xbmc
|
||||
import xbmcaddon
|
||||
|
||||
|
||||
class Monitor(xbmc.Monitor):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
xbmc.Monitor.__init__(self)
|
||||
self.id = xbmcaddon.Addon().getAddonInfo('id')
|
||||
|
||||
def onSettingsChanged(self):
|
||||
subprocess.call(['systemctl', 'restart', self.id])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Monitor().waitForAbort()
|
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=ntfs3g for udevil
|
||||
Before=samba-config.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/mount -o bind /storage/.kodi/addons/service.ntfs3g/bin/mount.ntfs3g /usr/sbin/mount.ntfs
|
||||
ExecStop=/usr/bin/umount /usr/sbin/mount.ntfs
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
1
packages/addons/tools/ntfs-progs/changelog.txt
Normal file
1
packages/addons/tools/ntfs-progs/changelog.txt
Normal file
@ -0,0 +1 @@
|
||||
initial release
|
BIN
packages/addons/tools/ntfs-progs/icon/icon.png
Normal file
BIN
packages/addons/tools/ntfs-progs/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
23
packages/addons/tools/ntfs-progs/package.mk
Normal file
23
packages/addons/tools/ntfs-progs/package.mk
Normal file
@ -0,0 +1,23 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="ntfs-progs"
|
||||
PKG_REV="0"
|
||||
PKG_LICENSE="GPLv3"
|
||||
PKG_DEPENDS_TARGET="toolchain fuse ntfs-3g_ntfsprogs"
|
||||
PKG_SECTION="tools"
|
||||
PKG_SHORTDESC="ntfs-3g tools for the NTFS filesystem"
|
||||
PKG_LONGDESC="ntfs-3g tools for the NTFS filesystem: mkntfs, ntfs-3g.probe, ntfsfix, ntfslabel and ntfsresize"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
PKG_IS_ADDON="yes"
|
||||
PKG_ADDON_NAME="NTFS Tools"
|
||||
PKG_ADDON_TYPE="xbmc.python.script"
|
||||
|
||||
addon() {
|
||||
PKG_NTFS_INSTALL=$(get_install_dir ntfs-3g_ntfsprogs)
|
||||
mkdir -p ${ADDON_BUILD}/${PKG_ADDON_ID}/bin/
|
||||
cp -P ${PKG_NTFS_INSTALL}/usr/bin/{ntfs-3g.probe,ntfsfix} ${ADDON_BUILD}/${PKG_ADDON_ID}/bin
|
||||
cp -P ${PKG_NTFS_INSTALL}/usr/sbin/{mkntfs,ntfslabel,ntfsresize} \
|
||||
${ADDON_BUILD}/${PKG_ADDON_ID}/bin
|
||||
}
|
7
packages/addons/tools/ntfs-progs/source/default.py
Normal file
7
packages/addons/tools/ntfs-progs/source/default.py
Normal file
@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# Copyright (C) 2024-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
import xbmcgui
|
||||
|
||||
dialog = xbmcgui.Dialog()
|
||||
dialog.ok('', 'This is a console-only addon')
|
Loading…
x
Reference in New Issue
Block a user