Merge pull request #9446 from mglae/le12_ntfs-3g_addons

New addons: "ntfs-3g for udevil" and "ntfs-tools"
This commit is contained in:
Christian Hewitt 2024-11-20 07:59:36 +04:00 committed by GitHub
commit 398ecea051
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 122 additions and 0 deletions

View 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"

View File

@ -0,0 +1 @@
initial release

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View 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 overrides the NTFS3 kernel driver with the NTFS-3G userspace driver used in older LibreELEC releases."
PKG_TOOLCHAIN="manual"
PKG_IS_ADDON="yes"
PKG_ADDON_NAME="NTFS-3G"
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
}

View 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 "$@"

View 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()

View File

@ -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

View File

@ -0,0 +1 @@
initial release

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View 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
}

View 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')