Initial commit

This commit is contained in:
2025-12-14 09:56:13 +02:00
commit 90f2d754c3
4 changed files with 73 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Exclude bpm archives
*.bpm
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
# Github repository
REPO="tuxera/ntfs-3g"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
echo "$TAG_NAME"
+16
View File
@@ -0,0 +1,16 @@
name: ntfs-3g
description: NTFS filesystem driver and utilities
version: 2022.10.3
revision: 1
url: https://github.com/tuxera/ntfs-3g
license: GPL2-or-later,LGPL2-or-later
architecture: any
type: source
depends:
- fuse2
- util-linux
downloads:
- url: https://github.com/tuxera/ntfs-3g/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 8bd7749ea9d8534c9f0664d48b576e90b96d45ec8803c9427f6ffaa2f0dde299
+46
View File
@@ -0,0 +1,46 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
# The prepare function is executed in the root of the temp directory
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
cd "$BPM_SOURCE"
autoreconf -fi
# Install binaries in usr/bin and usr/sbin
sed -i 's|$(DESTDIR)/sbin|$(DESTDIR)/usr/sbin|' {ntfsprogs,src}/Makefile.in
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
./configure --prefix=/usr \
--mandir=/usr/share/man \
--disable-ldconfig \
--disable-static \
--with-fuse=external \
--enable-xattr-mappings \
--enable-posix-acls \
--enable-extras \
--enable-crypto
make
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" rootbindir=/usr/bin install
# Move mount binaries
mv "$BPM_OUTPUT"/usr/sbin/mount* -t "$BPM_OUTPUT"/usr/bin
# Create symlink for mounting NTFS partitions
ln -sf ntfs-3g "${BPM_OUTPUT}"/usr/bin/mount.ntfs
# Remove documentation for non-existent file
rm "$BPM_OUTPUT"/usr/share/man/man8/ntfsfallocate.8
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/ntfs-3g/
}