blob: 25059253db0b03331fc1d06bae65ba448662fc40 (
plain)
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
54
55
56
57
58
59
60
61
62
|
#!/usr/bin/bash
# shellcheck disable=SC2034,SC2154,SC2164
# Maintainer: Nyameko Lisa <lisa dot nyameko at gmail dot com>
pkgname=('beegfs-storage')
_srcname='storage'
pkgdesc='Distributed, fault-tolerant cluster storage platfom formally known as FhGFS'
pkgver=7.1.3
_tag="$pkgver"
_ver='v7'
pkgrel=1
arch=('x86_64' 'i686')
url="https://git.beegfs.io/pub"
license=('BeeGFS END-USER LICENE AGREEMENT')
depends=('libutil-linux' 'attr' 'acl' 'openssl' 'zlib' 'sqlite' 'curl' 'elfutils' 'fuse-common' 'ld-lsb' 'lsb-release' 'rdma-core')
optdepends=('beegfs-utils' 'xfsprogs' 'btrfs-progs')
makedepends=('git' 'gcc' 'libsystemd' 'systemd' 'pkg-config' 'bash' 'boost-libs')
provides=('beegfs-storage')
provides=("${_provides[@]}")
conflicts=("${_provides[@]}")
replaces=("${_provides[@]}")
source=("$pkgname-$pkgver::git+${url}/${_ver}.git#tag=${_tag}")
sha512sums=('SKIP')
prepare() {
cd "$srcdir/$pkgname-$pkgver/${_srcname}/build/"
find dist -type f -exec sed --in-place \
--expression='s|/usr/libexec|/usr/lib/beegfs|g' \
--expression='s|/usr/sbin|/usr/bin|g' \
--expression='s|/sbin|/usr/bin|g' \
--expression='s|/opt/beegfs/usr/bin|/usr/bin|g' \
'{}' '+'
cd "$srcdir/$pkgname-$pkgver/${_srcname}/source/"
find net -type f -exec sed --in-place \
--expression='s|attr/xattr.h|sys/xattr.h|g' \
'{}' '+'
}
build() {
cd "$srcdir/$pkgname-$pkgver"
make storage-all
}
package() {
cd "$srcdir/$pkgname-$pkgver/${_srcname}/build"
install -D --mode=0644 dist/etc/beegfs-storage.conf "${pkgdir}/etc/beegfs/beegfs-storage.conf"
install -D --mode=0755 dist/sbin/beegfs-setup-storage "${pkgdir}/usr/bin/beegfs-setup-storage"
install -D --mode=0644 dist/usr/lib/systemd/system/beegfs-storage.service "${pkgdir}/usr/lib/systemd/system/beegfs-storage.service"
install -D --mode=0644 dist/usr/lib/systemd/system/beegfs-storage@.service "${pkgdir}/usr/lib/systemd/system/beegfs-storage@.service"
install -D --mode=0644 libStorage.a "${pkgdir}/usr/lib/beegfs/libStorage.a"
install -D --mode=0755 beegfs-storage "${pkgdir}/usr/bin/beegfs-storage"
cd "$srcdir/$pkgname-$pkgver"
install -D --mode=0644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
|