Created
April 26, 2019 00:37
-
-
Save blurbdust/47d28e43b9b2349a5ec974d1a332865c to your computer and use it in GitHub Desktop.
Apache Flink PKGBUILD modified from current AUR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Tao Meng ("mtunique") <oatgnem [at] gmail.com> | |
pkgname=apache-flink | |
pkgver=1.8.0 | |
pkgrel=2 | |
pkgdesc="Apache Flink is an open source platform for distributed stream and batch data processing" | |
arch=("i686" "x86_64") | |
url="http://flink.apache.org" | |
license=("APACHE") | |
depends=('java-environment>=7' 'openssh') | |
optdepends=("python2: python2 support for python API" | |
"python: python3 support for python API" | |
"hadoop: support for running on YARN") | |
install=apache-flink.install | |
source=("http://www-us.apache.org/dist/flink/flink-1.2.0/flink-${pkgver}-bin-scala_2.11.tgz" | |
"apache-flink-jobmanager.service" | |
"[email protected]") | |
md5sums=("8f6fcb04970c2d3663df00fe4b04b421" | |
"d44f0d5c4af36313b405115168bc48c3" | |
"76146d287e355b8fae843858e8233608") | |
backup=( | |
"etc/${pkgname}/flink-conf.yaml" | |
"etc/${pkgname}/log4j-cli.properties" | |
"etc/${pkgname}/log4j-yarn-session.properties" | |
"etc/${pkgname}/log4j.properties" | |
"etc/${pkgname}/logback-yarn.xml" | |
"etc/${pkgname}/logback.xml" | |
"etc/${pkgname}/masters" | |
"etc/${pkgname}/slaves" | |
"etc/${pkgname}/zoo.cfg" | |
) | |
PKGEXT=${PKGEXT:-".pkg.tar.xz"} | |
prepare() { | |
cd "$srcdir/flink-${pkgver}" | |
} | |
package() { | |
cd "$srcdir/flink-${pkgver}" | |
install -d "$pkgdir/usr/bin" "$pkgdir/opt" "$pkgdir/var/log/apache-flink" "$pkgdir/run/apache-flink" | |
cp -r "$srcdir/flink-${pkgver}" "$pkgdir/opt/apache-flink/" | |
cd "$pkgdir/usr/bin" | |
binpath="/opt/apache-flink/bin/flink" | |
ln -s "$binpath" $binary | |
install -Dm644 "$srcdir/apache-flink-jobmanager.service" "$pkgdir/usr/lib/systemd/system/apache-flink-jobmanager.service" | |
install -Dm644 "$srcdir/[email protected]" "$pkgdir/usr/lib/systemd/system/[email protected]" | |
mkdir -p "$pkgdir/etc/apache-flink" | |
install -Dm644 "$srcdir/flink-${pkgver}/conf"/* "$pkgdir/etc/apache-flink" | |
cd "$pkgdir/opt/apache-flink" | |
mv conf conf-templates | |
ln -sf "/etc/apache-flink" conf | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment