diff options
author | Massimiliano Torromeo | 2016-02-26 12:19:03 +0100 |
---|---|---|
committer | Massimiliano Torromeo | 2016-02-26 12:19:03 +0100 |
commit | 165f4cc54bb76ecc8730a91abd8d4383f8b1a9b7 (patch) | |
tree | 41a72566603e2ab33acd8036662444e594d3482d /PKGBUILD | |
parent | 93548fdc0c4d640a23ce7862446ec657b27d3b12 (diff) | |
download | aur-165f4cc54bb76ecc8730a91abd8d4383f8b1a9b7.tar.gz |
Implemented basic configuration files and service units
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -7,15 +7,21 @@ pkgdesc="A Distributed, Highly Available, Datacenter-Aware Scheduler" arch=('i686' 'x86_64') url="https://www.nomadproject.io/" license=('MPL') -depends=('glibc' 'ethtool') +depends=('ethtool') makedepends=('go' 'godep' 'git') optdepends=( 'docker' 'rkt' 'java-runtime-headless' ) -source=(https://github.com/hashicorp/nomad/archive/v$pkgver/$pkgname-$pkgver.tar.gz) -sha256sums=('b5e7520cdd542df14ae35778c066e296c41bb6aba8bf8286956f3005f407c486') +backup=(etc/nomad/{server,client}.conf) +source=(https://github.com/hashicorp/nomad/archive/v$pkgver/$pkgname-$pkgver.tar.gz + nomad-{server,client}.{service,conf}) +sha256sums=('b5e7520cdd542df14ae35778c066e296c41bb6aba8bf8286956f3005f407c486' + '52b0a22c3c0c72c642a8728cb48bd8797f4f6a12990e11bbb2342edcc2a9a206' + 'da475bc4aa3b1493eb62f09e7f99dcc171e8ce6d74df3da30514cfdfe72a5714' + '4c8fb7c18c67ca20e3ee07f25cf2f0c82b66c4c173275ae8d643c91cce3c0ceb' + 'ba80943ac42e617627c7e14be402078199ddba8d7e4276d67f0c9f6e6842d4a8') build() { cd $pkgname-$pkgver @@ -25,6 +31,12 @@ build() { } package() { + for type in server client; do + install -Dm644 nomad-$type.service \ + "$pkgdir"/usr/lib/systemd/system/nomad-$type.service + install -Dm644 nomad-$type.conf "$pkgdir"/etc/nomad/$type.conf + done + cd $pkgname-$pkgver install -Dm755 $pkgname-$pkgver "$pkgdir"/usr/bin/$pkgname install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE |