blob: ac422d31fb66afd6ca84c24ab7a1851c39081e34 (
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
|
# Contributor: tuftedocelot@fastmail.fm
pkgname=nifi
pkgver=1.10.0
pkgrel=1
pkgdesc='An easy to use, powerful, and reliable system to process and distribute data.'
arch=(x86_64)
url='https://nifi.apache.org/'
license=(Apache)
depends=('java-runtime>=8')
install=${pkgname}.install
source=(
"http://mirrors.gigenet.com/apache/$pkgname/$pkgver/$pkgname-$pkgver-bin.tar.gz"
'nifi.service'
'nifi.install'
)
sha256sums=('fd4f0750d18137bb1c21cd0fd5ab8951ccd450e6f673b8988db93ea2ff408288'
'f4ee42958c0f2cd67bba472f96f99b6e8ad06b38222e8ec888c33c92b3f95ec2'
'20888fc83333b81a90a227cfc6b1517b36b7312f5018bfdb5868caf4197c95a2')
package() {
mkdir -p "$pkgdir/opt/nifi"
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
cp -r "$srcdir/$pkgname-$pkgver/docs/." "$pkgdir/usr/share/doc/$pkgname/"
cp -r "$srcdir/$pkgname-$pkgver/." "$pkgdir/opt/nifi/"
chmod 0755 "$pkgdir/opt/nifi/bin/nifi.sh"
chmod 0755 "$pkgdir/opt/nifi/bin/nifi-env.sh"
sed -i "s/run.as=/run.as=nifi/g" "$pkgdir/opt/$pkgname/conf/bootstrap.conf"
install -Dm 644 "nifi.service" "$pkgdir/usr/lib/systemd/system/nifi.service"
install -Dm 644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm 644 "$srcdir/$pkgname-$pkgver/README" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|