From d484e45995187563a53c218c5921b9ab9a8d8cbc Mon Sep 17 00:00:00 2001 From: Bahar Kurt Date: Fri, 4 Oct 2024 10:53:46 +0300 Subject: [PATCH] Initial package releases for APFS stuff Includes spec files for linux-apfs-rw module and apfsprogs from GitHub:linux-apfs. --- .../drivers/module-linux-apfs-rw/actions.py | 18 ++++++++ kernel/drivers/module-linux-apfs-rw/pspec.xml | 44 +++++++++++++++++++ .../module-linux-apfs-rw/translations.xml | 8 ++++ kernel/tools/apfsprogs/actions.py | 31 +++++++++++++ kernel/tools/apfsprogs/pspec.xml | 42 ++++++++++++++++++ kernel/tools/apfsprogs/translations.xml | 8 ++++ 6 files changed, 151 insertions(+) create mode 100644 kernel/drivers/module-linux-apfs-rw/actions.py create mode 100644 kernel/drivers/module-linux-apfs-rw/pspec.xml create mode 100644 kernel/drivers/module-linux-apfs-rw/translations.xml create mode 100644 kernel/tools/apfsprogs/actions.py create mode 100644 kernel/tools/apfsprogs/pspec.xml create mode 100644 kernel/tools/apfsprogs/translations.xml diff --git a/kernel/drivers/module-linux-apfs-rw/actions.py b/kernel/drivers/module-linux-apfs-rw/actions.py new file mode 100644 index 0000000000..2ae0033f7b --- /dev/null +++ b/kernel/drivers/module-linux-apfs-rw/actions.py @@ -0,0 +1,18 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Licensed under GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import kerneltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools + +KDIR = kerneltools.getKernelVersion() + +def build(): + autotools.make() + +def install(): + pisitools.insinto("/lib/modules/%s/extra" % KDIR, "*.ko") + pisitools.dodoc("LICENSE", "README*") diff --git a/kernel/drivers/module-linux-apfs-rw/pspec.xml b/kernel/drivers/module-linux-apfs-rw/pspec.xml new file mode 100644 index 0000000000..0183fc22fb --- /dev/null +++ b/kernel/drivers/module-linux-apfs-rw/pspec.xml @@ -0,0 +1,44 @@ + + + + + module-linux-apfs-rw + https://github.com/linux-apfs/linux-apfs-rw + + Bedirhan Kurt + bedirhan.kurt@outlook.com + + GPLv2 + driver + Experimental support for APFS + The Apple File System (APFS) is the copy-on-write filesystem currently used on all Apple devices. This module provides a degree of experimental support on Linux. + https://github.com/linux-apfs/linux-apfs-rw/archive/refs/tags/v0.3.11.tar.gz + + kernel-module-headers + + + + + module-linux-apfs-rw + + kernel + + + /lib/modules + /usr/share/doc + + + noDelta + + + + + + 2024-10-02 + v0.3.11 + Initial build and release for kernel 6.6.50 + Bedirhan Kurt + bedirhan.kurt@outlook.com + + + diff --git a/kernel/drivers/module-linux-apfs-rw/translations.xml b/kernel/drivers/module-linux-apfs-rw/translations.xml new file mode 100644 index 0000000000..593ec13f46 --- /dev/null +++ b/kernel/drivers/module-linux-apfs-rw/translations.xml @@ -0,0 +1,8 @@ + + + + module-linux-apfs-rw + APFS için deneysel destek + Apple Dosya Sistemi (APFS), şu anda tüm Apple cihazlarında kullanılan bir yazarken-kopyala (Copy-on-Write/CoW) dosya sistemidir. Bu modül, Linux için bir düzeye kadar deneysel destek sağlar. + + diff --git a/kernel/tools/apfsprogs/actions.py b/kernel/tools/apfsprogs/actions.py new file mode 100644 index 0000000000..f1f94d79b5 --- /dev/null +++ b/kernel/tools/apfsprogs/actions.py @@ -0,0 +1,31 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +# Licensed under GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +MAKEFLAGS = 'GIT_COMMIT=f31d7c2 \ + DESTDIR=%(prefix)s/%(defaultprefix)s' % { + 'prefix': get.installDIR(), + 'defaultprefix': get.defaultprefixDIR(), + } + +def build(): + autotools.make("-C lib") + autotools.make("-C apfs-label %s" % MAKEFLAGS) + autotools.make("-C apfs-snap %s" % MAKEFLAGS) + autotools.make("-C apfsck %s" % MAKEFLAGS) + autotools.make("-C mkapfs %s" % MAKEFLAGS) + +def install(): + autotools.install("-C apfs-label %s" % MAKEFLAGS) + autotools.install("-C apfs-snap %s" % MAKEFLAGS) + autotools.install("-C apfsck %s" % MAKEFLAGS) + autotools.install("-C mkapfs %s" % MAKEFLAGS) + + pisitools.dodoc("LICENSE", "README*") diff --git a/kernel/tools/apfsprogs/pspec.xml b/kernel/tools/apfsprogs/pspec.xml new file mode 100644 index 0000000000..f72690c5f9 --- /dev/null +++ b/kernel/tools/apfsprogs/pspec.xml @@ -0,0 +1,42 @@ + + + + + apfsprogs + https://github.com/linux-apfs/apfsprogs + + Bedirhan Kurt + bedirhan.kurt@outlook.com + + GPLv2 + driver + Experimental APFS tools for Linux + Apfsprogs is a suite of userspace utilities for working with the Apple File System on Linux. It's intended mainly to help test the Linux kernel module, located at https://github.com/linux-apfs/linux-apfs-rw.git + https://github.com/linux-apfs/apfsprogs/archive/f31d7c2.tar.gz + + + + apfsprogs + + module-linux-apfs-rw + + + /usr/bin + /usr/share/man/man8 + /usr/share/doc + + + noDelta + + + + + + 2024-10-03 + 0.1 + Initial build specs for PiSi. + Bedirhan Kurt + bedirhan.kurt@outlook.com + + + diff --git a/kernel/tools/apfsprogs/translations.xml b/kernel/tools/apfsprogs/translations.xml new file mode 100644 index 0000000000..46bee78828 --- /dev/null +++ b/kernel/tools/apfsprogs/translations.xml @@ -0,0 +1,8 @@ + + + + apfsprogs + Linux için deneysel APFS araçları + Apfsprogs, Apple Dosya Sistemi ile çalışmak için bir kullanıcı-alanı araç setidir. Genellikle https://github.com/linux-apfs/linux-apfs-rw.git adresinde yer alan Linux çekirdek modülünü test etmeye yardım etmek için geliştirilmiştir. + + \ No newline at end of file