blob: 1f3d51941aad4ae9bfd7ec8080855da437c5ffd9 (
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
|
# Maintainer: Chih-Hsuan Yen <python -c "import base64; print(base64.b85decode(b'd0}obGBGkWD\`9eDXdppUAZKl1X>2ZIZ*2'))">
# Contributor: drzee <info@drzee.net>
pkgname=amazon-ssm-agent
pkgver=3.1.1767.0
pkgrel=1
pkgdesc="Amazon SSM Agent for managing EC2 Instances using the SSM APIs."
arch=('x86_64')
url="https://aws.amazon.com/documentation/systems-manager/"
license=('APACHE')
depends=('glibc')
makedepends=('go')
source=("https://github.com/aws/amazon-ssm-agent/archive/$pkgver/$pkgname-$pkgver.tar.gz")
md5sums=('ae81f81cd30f19f52d54d3b27a87cd25')
prepare() {
cd "$pkgname-$pkgver"
sed -i -r 's#:(.*)checkstyle(.*)#:\1\2#g' makefile
}
build() {
cd "$pkgname-$pkgver"
make build-linux
make package-deb
}
package() {
local debdir="$srcdir/$pkgname-$pkgver/bin/debian_amd64/debian"
install -dm755 "$pkgdir"/usr/
cp -R "${debdir}"/usr/ "$pkgdir"
install -dm755 "$pkgdir"/etc/amazon/
cp -R "${debdir}"/etc/amazon/ "$pkgdir/etc/"
install -Dm644 \
"$debdir"/lib/systemd/system/amazon-ssm-agent.service \
"$pkgdir"/usr/lib/systemd/system/amazon-ssm-agent.service
}
|