diff options
author | Matthew McGinn | 2016-12-11 13:30:29 -0500 |
---|---|---|
committer | Matthew McGinn | 2016-12-11 13:30:29 -0500 |
commit | da77766c1c87a97c96c05679c97372eda0f716b1 (patch) | |
tree | 891fcd95a6987baf501461fb90ccc0f0da7efa19 | |
download | aur-da77766c1c87a97c96c05679c97372eda0f716b1.tar.gz |
initial commit for snaptel/snapteld daemon
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c74ed61f93f2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +# Generated by mksrcinfo v8 +# Sun Dec 11 18:29:51 UTC 2016 +pkgbase = snap-telemetry + pkgdesc = An open telemetry framework designed to simplify the collection, processing and publishing of system data through a single API. + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/intelsdi-x/snap + arch = x86_64 + license = Apache + provides = snaptel + provides = snapteld + source = http://linux.tar.dl.snap-telemetry.io + md5sums = 94c4266f94e730bac9c301ebb5f9df97 + +pkgname = snap-telemetry + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f0fa3ce33cbd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Matthew McGinn <mamcgi@gmail.com> +pkgname=snap-telemetry +pkgver=1.0.0 +pkgrel=1 +pkgdesc="An open telemetry framework designed to simplify the collection, processing and publishing of system data through a single API." +arch=('x86_64') +url="https://github.com/intelsdi-x/snap" +license=('Apache') +provides=('snaptel' 'snapteld') +source=("http://linux.tar.dl.snap-telemetry.io") +md5sums=('94c4266f94e730bac9c301ebb5f9df97') + +build() { + tar xf linux.tar.dl.snap-telemetry.io + cat <<EOF > "$srcdir/snap-telemetry.service" +[Unit] +Description=Snap telemetry daemon +Documentation=man:snapteld(8) man:snaptel(1) +Wants=network-online.target +After=network-online.target + +[Service] +# NOTE: When available use override files or unit.d such as: +# /etc/systemd/system/snap-telemetry.service +# /etc/systemd/system/snap-telemetry.d/ +Type=simple +EnvironmentFile=-/etc/default/snap-telemetry +EnvironmentFile=-/etc/sysconfig/snap-telemetry +ExecStart=mkdir -p /var/log/snap +ExecStart=/usr/bin/snapteld --plugin-trust 0 --log-level 1 --log-path /var/log/snap +ExecStop=/bin/kill -INT \$MAINPID +User=root +Group=root +Restart=on-failure +LimitNOFILE=102400 +TimeoutStopSec=60 + +[Install] +WantedBy=multi-user.target +EOF +} + +package() { + mkdir -p "$pkgdir/usr/bin" + mkdir -p "$pkgdir/usr/lib/systemd/system" + install -m 644 snap-telemetry.service "$pkgdir/usr/lib/systemd/system/snap-telemetry.service" + install -m 755 snapteld "$pkgdir/usr/bin" + install -m 755 snaptel "$pkgdir/usr/bin" +} |