aboutsummaryrefslogtreecommitdiffstats
path: root/main/ntfs-3g/APKBUILD
blob: 4babd6b7acc4cb5cd85768d925238866fe00a9d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ntfs-3g
_pkgreal=ntfs-3g_ntfsprogs
pkgver=2017.3.23
pkgrel=3
pkgdesc="Stable, full-featured, read-write NTFS"
url="https://www.tuxera.com/company/open-source/"
arch="all"
license="GPL-2.0-or-later AND LGPL-2.0-or-later"
options="!check" # No test suite
makedepends="attr-dev util-linux-dev linux-headers"
subpackages="$pkgname-static $pkgname-doc $pkgname-dev $pkgname-libs $pkgname-progs"
source="https://tuxera.com/opensource/ntfs-3g_ntfsprogs-$pkgver.tgz
	CVE-2019-9755.patch
	"
builddir="$srcdir/$_pkgreal-$pkgver"

# secfixes:
#   2017.3.23-r2:
#     - CVE-2019-9755

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	pkgdesc="$pkgdesc (driver)"

	mkdir -p "$pkgdir"/lib
	make -j1 DESTDIR="$pkgdir" LDCONFIG=: install
	ln -s /bin/ntfs-3g "$pkgdir"/sbin/mount.ntfs
}

progs() {
	pkgdesc="$pkgdesc (utilities)"

	mkdir -p "$subpkgdir"/sbin
	mv "$pkgdir"/usr "$pkgdir"/lib "$subpkgdir"/
	mv "$pkgdir"/sbin/mkfs.ntfs "$subpkgdir"/sbin
	rm -fr "$subpkgdir"/lib "$subpkgdir"/usr/lib
}

sha512sums="3a607f0d7be35204c992d8931de0404fbc52032c13b4240d2c5e6f285c318a28eb2a385d7cf5ac4cd445876aee5baa5753bb636ada0d870d84a9d3fdbce794ef  ntfs-3g_ntfsprogs-2017.3.23.tgz
d071cf6c3ee38963df0286049196cb3bab050460e0b541f3cf5d217c874d247878cb6dcca2d6d68c562447f8956e0511dd93552c5647dda88b69be880b5cd9f8  CVE-2019-9755.patch"