summaryrefslogtreecommitdiff
path: root/ceph-bin/PKGBUILD
blob: 468d0272ffde43f1d041b733b92945b8e67f6947 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Paul Stemmet <aur@luxolus.com>

pkgbase='ceph-bin'
pkgname=('ceph-bin' 'ceph-libs-bin' 'ceph-mgr-bin')
pkgver=17.2.5
pkgrel=8
pkgdesc='Distributed, fault-tolerant storage platform delivering object, block, and file system'
arch=('x86_64')
url='https://ceph.com/'
license=('GPL')
options=('emptydirs')
_artifact=v${pkgver}-${pkgrel}
source=("ceph-bin-${pkgver}-${pkgrel}.tar.zst::https://github.com/bazaah/aur-ceph/releases/download/${_artifact}/ceph_linux_${arch}.tar.zstd"
        "ceph-libs-bin-${pkgver}-${pkgrel}.tar.zst::https://github.com/bazaah/aur-ceph/releases/download/${_artifact}/ceph_libs_linux_${arch}.tar.zstd"
        "ceph-mgr-bin-${pkgver}-${pkgrel}.tar.zst::https://github.com/bazaah/aur-ceph/releases/download/${_artifact}/ceph_mgr_linux_${arch}.tar.zstd")
sha512sums=('15cfadd37b088791e4fe240fdcb15471e952f740722e9d20a9ea535de5e82acb59bdcf42de4b94bc694948469c2a8ea442b8157670c5ec94c2e617a86a0ac43f'
            '445bf7563f3b14c34e79fcee902905c89dc52bd6a5871384e3d9bddbfc8e101c1c23da41695e21e4faef49841023ffd73a18a6786f93f99463e4fa42e2d135f4'
            'ab6a698e9f2a125874fd952304ae2c0459ed39cbd0c194af02ae7ffd9560f74387e731c666a51aaf0762907ac6e5fac0aa18a4b6f69bd0f6642fe9d5f9bb19c1')
# Don't extract source archives
noextract=("${source[@]%%::*}")


package_ceph-libs-bin() {
  _pinned_dependencies=(
    'gcc-libs=13.1.1'
    'glibc>=2.36'
    'libblkid.so=1'
    'libcrypto.so=3'
    'libcryptsetup.so=12'
    'libcrypt.so=2'
    'libcurl.so=4'
    'libexpat.so=1'
    'libicuuc.so=72'
    'libssl.so=3'
    'libudev.so=1'
    'libzstd.so=1'
    'lz4=1:1.9.4'
    'zlib=1:1.2.13'
  )
  depends=('boost-libs' 'curl' 'glibc' 'keyutils' 'libutil-linux' 'bzip2' 'lz4' 'nss'
           'oath-toolkit' 'python' 'snappy' 'systemd-libs' 'fmt' 'cryptsetup'
           'lua' 'librdkafka' 'libaio' 'gperftools'
           'python-prettytable' 'python-yaml' 'python-setuptools' "${_pinned_dependencies[@]}")
  provides=("ceph-libs=${pkgver}-${pkgrel}")
  conflicts=('ceph-libs')

  cd "${srcdir}"

  tar --exclude='.*' --zstd -xv -f ceph-libs-bin-${pkgver}-${pkgrel}.tar.zst -C "${pkgdir}"
}

package_ceph-bin() {
  _pinned_dependencies=(
    'gcc-libs=13.1.1'
    'glibc>=2.36'
    'libblkid.so=1'
    'libcap-ng.so=0'
    'libcrypto.so=3'
    'libcryptsetup.so=12'
    'libcurl.so=4'
    'libexpat.so=1'
    'libicuuc.so=72'
    'libkeyutils.so=1'
    'libncursesw.so=6'
    'libnl=3.7.0'
    'libssl.so=3'
    'libudev.so=1'
    'lz4=1:1.9.4'
    'zlib=1:1.2.13'
  )
  depends=("ceph-libs=${pkgver}-${pkgrel}"
           'boost-libs' 'curl' 'fuse3' 'fmt' 'glibc' 'gperftools' 'java-runtime'
           'keyutils' 'libaio' 'libutil-linux' 'librdkafka' 'cryptsetup' 'libnl'
           'ncurses'
           'nss' 'oath-toolkit' 'python'
           'snappy' 'sudo' 'systemd-libs' 'lua' 'gawk' "${_pinned_dependencies[@]}")
  optdepends=('smartmontools: disk monitoring via S.M.A.R.T'
              'nvme-cli: disk monitoring for NVMe drives')
  provides=("ceph=${pkgver}-${pkgrel}")
  conflicts=('ceph')

  cd "${srcdir}"

  tar --exclude='.*' --zstd -xv -f ceph-bin-${pkgver}-${pkgrel}.tar.zst -C "${pkgdir}"
}

package_ceph-mgr-bin() {
  _pinned_dependencies=(
    'gcc-libs=13.1.1'
    'glibc>=2.36'
    'libsqlite3.so=0'
  )
  depends=("ceph=${pkgver}-${pkgrel}" "ceph-libs=${pkgver}-${pkgrel}"
           'bash' 'boost-libs' 'curl' 'gperftools' 'nss' 'fmt'
           'python' 'python-cherrypy' 'python-pecan' 'python-pyjwt' 'python-more-itertools'
           'python-numpy' 'python-scipy' 'python-six' 'python-coverage' 'python-pytest' 'python-dateutil'
           'python-prettytable' 'python-requests' 'python-pyopenssl' 'python-bcrypt' 'python-yaml'
           'python-werkzeug' 'python-jinja' "${_pinned_dependencies[@]}")
  optdepends=('python-influxdb: influx module'
              'python-kubernetes: rook module'
              'python-prometheus_client: prometheus module'
              'python-remoto: ssh module')
  provides=("ceph-mgr=${pkgver}-${pkgrel}")
  conflicts=('ceph-mgr')
  options=('emptydirs' '!strip')

  cd "${srcdir}"

  tar --exclude='.*' --zstd -xv -f ceph-mgr-bin-${pkgver}-${pkgrel}.tar.zst -C "${pkgdir}"
}

# vim:set ts=2 sw=2 et: