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

ntfs3g - usrmerge sbin, bin, usr/sbin to usr/bin/ #44339

Merged
merged 1 commit into from
Mar 3, 2025
Merged
Changes from all commits
Commits
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
87 changes: 59 additions & 28 deletions ntfs-3g.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
package:
name: ntfs-3g
version: 2022.10.3
epoch: 1
epoch: 20
description: Stable, full-featured, read-write NTFS
copyright:
- license: GPL-2.0-only
dependencies:
runtime:
- merged-sbin
- ntfs-3g-progs=${{package.full-version}}
- wolfi-baselayout

environment:
contents:
Expand All @@ -32,14 +37,18 @@ pipeline:

- runs: |
autoreconf -fiv
mkdir -p ${{targets.destdir}}
mkdir -p ${{targets.destdir}}/usr

- uses: autoconf/configure
with:
opts: --sbin=/usr/bin --prefix=/usr

- uses: autoconf/make

- runs: mkdir -p ${{targets.destdir}}/lib

- uses: autoconf/make-install
with:
opts: rootbindir=/usr/bin rootsbindir=/usr/bin rootlibdir=/usr/lib

- uses: strip

Expand All @@ -48,6 +57,10 @@ subpackages:
pipeline:
- uses: split/static
description: ntfs-3g static
dependencies:
runtime:
- merged-sbin
- wolfi-baselayout

- name: ntfs-3g-doc
pipeline:
Expand All @@ -56,13 +69,19 @@ subpackages:
test:
pipeline:
- uses: test/docs
dependencies:
runtime:
- merged-sbin
- wolfi-baselayout

- name: ntfs-3g-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- merged-sbin
- ntfs-3g
- wolfi-baselayout
description: ntfs-3g dev
test:
pipeline:
Expand All @@ -74,55 +93,67 @@ subpackages:
- name: ntfs-3g-libs
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/lib/
mv ${{targets.destdir}}/lib/*.so.* ${{targets.subpkgdir}}/lib/
mkdir -p ${{targets.subpkgdir}}/usr/lib/
mv ${{targets.destdir}}/usr/lib/*.so.* ${{targets.subpkgdir}}/usr/lib/
test:
pipeline:
- uses: test/ldd-check
with:
packages: $(basename ${{targets.contextdir}})
dependencies:
runtime:
- merged-sbin
- wolfi-baselayout

- name: ntfs-3g-progs
dependencies:
runtime:
- merged-sbin
- wolfi-baselayout
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/sbin
mv ${{targets.destdir}}/usr ${{targets.destdir}}/lib ${{targets.subpkgdir}}/
mkdir -p ${{targets.subpkgdir}}/usr/
mv ${{targets.destdir}}/usr ${{targets.subpkgdir}}
rm -fr ${{targets.subpkgdir}}/lib ${{targets.subpkgdir}}/usr/lib
# Cleanup the sbin/mount.{lowntfs-3g,mount.ntfs-3g} which are always installed
# to /sbin for some reason
mv ${{targets.destdir}}/sbin/* ${{targets.subpkgdir}}/usr/bin/
rmdir ${{targets.destdir}}/sbin
test:
pipeline:
- runs: |
lowntfs-3g --version
mkfs.ntfs --help
mkfs.ntfs --version
mkntfs --help
mkntfs --version
mount.lowntfs-3g --version
mount.ntfs-3g --version
ntfs-3g --help 2>&1 | grep "Third Generation NTFS Driver"
ntfs-3g --version 2>&1 | grep "${{package.version}}"
ntfs-3g.probe --help
ntfscat --version
ntfscat --help
ntfscluster --version
ntfscat --version
ntfsclone --help
ntfsclone --version
ntfscluster --help
ntfsfix --version
ntfscluster --version
ntfscp --help
ntfscp --version
ntfsfix --help
ntfsinfo --version
ntfsfix --version
ntfsinfo --help
mkfs.ntfs --version
mkfs.ntfs --help
mkntfs --version
mkntfs --help
ntfsclone --version
ntfsclone --help
ntfscp --version
ntfscp --help
ntfslabel --version
ntfsinfo --version
ntfslabel --help
ntfsresize --version
ntfslabel --version
ntfsresize --help
ntfsundelete --version
ntfsresize --version
ntfsundelete --help
ntfsundelete --version

test:
pipeline:
- runs: |
ntfs-3g --help 2>&1 | grep "Third Generation NTFS Driver"
ntfs-3g --version 2>&1 | grep "${{package.version}}"
lowntfs-3g --version
mount.lowntfs-3g --version
mount.ntfs-3g --version
- uses: test/emptypackage

update:
enabled: true
Expand Down
Loading