Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gocryptfs] Add fuse kernel module #331

Merged
merged 40 commits into from
May 3, 2021
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1d86a93
First working version of gocryptfs package
Mar 22, 2021
78054e9
Fix timestamp of gocryptfs package
Mar 22, 2021
63509b5
Remove trailing spaces
Mar 22, 2021
dcea1c5
Merge branch 'testing' into testing
plan5 Mar 23, 2021
69ad7cb
Update package/gocryptfs/package
plan5 Mar 23, 2021
c802e74
Remove the v from srcver
plan5 Mar 23, 2021
df2f49d
gocryptfs: put srcdir variable in quotes
plan5 Mar 23, 2021
ac119e9
Switch build image to golang:v1.5 and remove golang makedeps
Mar 23, 2021
c460fd8
Merge branch 'testing' of https://www.github.com/plan5/toltec into te…
Mar 23, 2021
856ab5b
Merge branch 'testing' into testing
plan5 Mar 23, 2021
a5eeaf4
Quote all variables
Mar 23, 2021
caa8160
Merge branch 'testing' of https://www.github.com/plan5/toltec into te…
Mar 23, 2021
889945c
Remove obsolete makedeps (git)
Mar 23, 2021
576713f
Create fusemodule dir based on wireguard dir
Mar 24, 2021
ac090f1
Merge branch 'testing' into testing
matteodelabre Apr 4, 2021
40eb8cc
depends field renamed to installdepends in latest testing
matteodelabre Apr 4, 2021
f4f2432
Create fusemodule package recipe from wireguard recipe
Apr 6, 2021
10217f8
Fix variables that were broken after removing for-loop references
Apr 6, 2021
96df8e6
Fix minor errors
Apr 6, 2021
ac2b4d0
Merge branch 'testing' into plan5-fusemodule
Apr 6, 2021
a4c4d53
Fix URL and add arch for rm1 only
Apr 6, 2021
ee1b07f
Remove gocryptfs from fusemodule branch
Apr 7, 2021
17d779f
Fix archs specification in fusemodule recipe
Apr 7, 2021
3bfa8eb
Merge branch 'testing' into plan5-fusemodule
Eeems Apr 7, 2021
da9ae41
Rename fusemodule -> fuse
Apr 8, 2021
5acef15
Remove optional (empty) fields
Apr 8, 2021
7f72962
Merge branch 'plan5-fusemodule' of https://www.github.com/plan5/tolte…
Apr 8, 2021
fb7d247
Rename package dir to reflect new package name
Apr 8, 2021
90e85be
Conditional installation of fuse module (for rm1 only)
Apr 8, 2021
6c12eb4
Add $arch check to configure, postremove and postupgrade
Apr 8, 2021
017cdc5
Fix shebang
Apr 8, 2021
9fd7f49
Fix MSG
Apr 8, 2021
853578c
Change from cat << MSG format to echo
Apr 8, 2021
04b8313
Fix that postupgrade and postinstall message
Apr 8, 2021
79a276e
Print every line separately
Apr 8, 2021
5b4b059
Expand tabs in recipe
Apr 8, 2021
bc11dfd
Update package/fuse/package: Add archs for rm1 and rm2
plan5 Apr 8, 2021
82b8249
Merge branch 'testing' into plan5-fusemodule
Eeems Apr 20, 2021
b440376
Merge branch 'testing' into plan5-fusemodule
plan5 Apr 24, 2021
89ba840
Merge branch 'testing' into plan5-fusemodule
Eeems May 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions package/fuse/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#!/usr/bin/env bash
# Copyright (c) 2020 The Toltec Contributors
# SPDX-License-Identifier: MIT

archs=(rm1 rm2)
pkgnames=(fuse)
plan5 marked this conversation as resolved.
Show resolved Hide resolved
pkgdesc="FUSE (Filesystem in Userspace) Kernel Module"
url=https://github.com/libfuse/libfuse
pkgver=1.0.0-1
timestamp=2021-04-06T22:16Z
section=utils
maintainer="plan5 <30434574+plan5@users.noreply.github.com>"
license=GPL-2.0-only
makedepends=(build:bc build:lzop build:git)
flags=(nostrip)

_kernelrepo=https://github.com/remarkable/linux
_kernelrev=1774e2a6a091fdc081324e966d3db0aa9df75c0b
_defconfig=arch/arm/configs/zero-gravitas_defconfig

image=base:v1.3.2

build() {
mkdir pkg
git init linux
(
cd linux
git fetch --depth=1 "$_kernelrepo" "$_kernelrev"
git checkout -f "$_kernelrev"
make mrproper
touch .scmversion
cp "$_defconfig" .config
echo "CONFIG_FUSE_FS=m" >> .config
make olddefconfig
make fs/fuse/fuse.ko
make modules_prepare
)

KERNELRELEASE=$(cat linux/include/config/kernel.release)
export MOD_INSTALL_PATH="pkg/$KERNELRELEASE"
install -D -m 644 linux/fs/fuse/fuse.ko \
"$MOD_INSTALL_PATH/kernel/fs/fuse/fuse.ko"
}

package() {
if [[ $arch = rm1 ]]; then
mkdir -p "$pkgdir/lib/modules"
cp -r "$srcdir/pkg"/* "$pkgdir/lib/modules"
fi
}

configure() {
if [[ $arch = rm1 ]]; then
depmod -a
fi
}

postremove() {
if [[ $arch = rm1 ]]; then
echo 'Fuse (Kernel Module) has been removed.'
echo 'The kernel module will remain loaded until you reboot, or you can attempt'
echo 'to manually remove it by running "modprobe -r fuse".'
depmod -a
fi
}

postupgrade() {
if [[ $arch = rm1 ]]; then
echo 'Fuse (Kernel Module) has been upgraded.'
echo 'The old kernel module will remain loaded until you reboot, or you can'
echo 'attempt to manually remove it by running "modprobe -r fuse".'
fi
}