summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen, Chih-Chia <pigfoot@gmail.com>2017-06-28 11:45:00 +0800
committerChen, Chih-Chia <pigfoot@gmail.com>2017-06-28 11:45:00 +0800
commit01f0ad2217583e052055ea9dd68d9f277b724154 (patch)
treeb41748d74dba8abce385992c50a79b37301affa3 /app-admin
parent[sci-libs/mkl] bug fix (diff)
downloadpigfoot-01f0ad2217583e052055ea9dd68d9f277b724154.tar.gz
pigfoot-01f0ad2217583e052055ea9dd68d9f277b724154.tar.bz2
pigfoot-01f0ad2217583e052055ea9dd68d9f277b724154.zip
Add app-admin/journalbeat
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/journalbeat/Manifest26
-rw-r--r--app-admin/journalbeat/files/journalbeat.confd15
-rw-r--r--app-admin/journalbeat/files/journalbeat.initd50
-rw-r--r--app-admin/journalbeat/files/journalbeat.service12
-rw-r--r--app-admin/journalbeat/journalbeat-5.4.1.ebuild62
5 files changed, 165 insertions, 0 deletions
diff --git a/app-admin/journalbeat/Manifest b/app-admin/journalbeat/Manifest
new file mode 100644
index 0000000..fc1d3d2
--- /dev/null
+++ b/app-admin/journalbeat/Manifest
@@ -0,0 +1,26 @@
+DIST github.com-Shopify-sarama-c01858a.tar.gz 125991 SHA256 4e404ffb54f3768fcfabe7e546b03662a757580ce66939eb4b5f680d992fc9b4 SHA512 49d1bf24c2eff3ecd77e63f27174ab56529f5f773f74897c696ccf522dca60d8372efbe274d68c0cd7aa67ef35417d0c18fd374570ff8b9887cc54cf4f3c3c1e WHIRLPOOL cd86256864eee45f00e15434f888da4ba02156d4d1ae9d69219edec74c3954f56fbca0ae5f52d1df2eb71b7eb2aec775cdb8c6ca4e18565402402051c46f791e
+DIST github.com-coreos-go-systemd-1f9909e.tar.gz 54812 SHA256 a57b052f54bbdae28ae72f6555857c57afeae45e4d593b265746359db14e59ac SHA512 8408969cae538059ac90d42345cb26757abe1897ae2207b3a4249d4572566b04336798548dbfdf194db9f91f0824520c60e5e65db77e04e844402cf84190db1e WHIRLPOOL 896512fd65bcb97a6c2e0ef6c7b22508021eabadbe88a3766fa119857cc98c1e339a1cf30ad7becfea55b120295245e3f8fdda0ace2da166826ffaf3fb96bb9c
+DIST github.com-coreos-pkg-8dbaa49.tar.gz 31142 SHA256 b04d76dcdb8d57ea0bfb844828c01d38d81d0c92add71562f5b5c80746893648 SHA512 5f9602d8ce25190d77443c878e63e6e8d9c3efb29b3aaa32ec2a4adc28d40c2f12a5a6b152cbb4fc729f94a87193bd8c30d40f2c1720e885a84fe002d4eec2a8 WHIRLPOOL 9bf7da2d08f275383db92f351a5fb293af05d55f01f1524f61c8802f564695c8e148d210a1673f8fc63c35b9d519be88b47ddcfb4d4a52a1c15a73b81f97edb0
+DIST github.com-davecgh-go-spew-346938d.tar.gz 42402 SHA256 4d455c56b974886bce79be359de20a3ffb9b9121c20d2d6379c1462e69db30e4 SHA512 80b9f535dd85685cfd346b3c7f946fbc8b44d0537b7a3b7827103237a85f718fee2059067a7e1f21db13322f0d3ed1f7c44c36b451b8a6b5a0f6cf4e4db6553b WHIRLPOOL e10496ce3159718c9b6543f56e3be314b92a053fbe14fa4cf17e8bde2fe28c37352cfaa3311131a39bef2f8edb6b74caa41bf1055936f27d81775dacb2d7743f
+DIST github.com-eapache-go-resiliency-b86b1ec.tar.gz 9581 SHA256 f3b54f2d171bc495f2e475e5502d2b168d94684eec9487f67857437426bbe740 SHA512 eb180b57409e85e6299f4276ea98f0fc390d2ffc67d1f371f5675cebe25d9e50fe8bbd4d5dfd11e960817f5ae42e0790e4dd7264946efd8c42680514976d6fda WHIRLPOOL a79076bb6eea83deed2ff527feec3a5c1a15bc6f2f9f988b680db36c2f19ffcf32fc17374cbccf495181c5b4b5647ba9b5f638a1e8f4d11195de85b3511df256
+DIST github.com-eapache-go-xerial-snappy-bb955e0.tar.gz 4098 SHA256 3039f325ced936ee1c112e3339f7d15cf0ad0ce922f4270824c38f763003127d SHA512 2c3547cb00a1c606f2006412931360f17d7eb1a56e3bf764941cadc899f98098d49b74d1a54abe2195bbaa16ee1530a9654ebd19306466a411b392e43408fd63 WHIRLPOOL 97ab8d263026180606da7993149f2d742d3452236c43dbde588a2bf4d46c746abb22b49a3ed613db4aae31a8bfe465a40a8d170d91bddaf8ff2ea653734f92d9
+DIST github.com-eapache-queue-44cc805.tar.gz 3504 SHA256 8d5bc1b6778852eed64f160989a9448fc97fcd52a2bd9db8afd75296d412b5df SHA512 5641abf798c2e238885f692262d5b6932c41c770f9a2a6806c764a31a14e14b99eccc59d3571a83919aaeaa619fe1f8e5e492d245c6d6d41fdc03c45d2b69670 WHIRLPOOL 9cfc237b47015be4ddac5a0df53a5bbca5d6043876d305176642e1d0efe7d144fd05d1e6662ced67fa88dfe9a1788ece7282a42d7fc4bedba73f12a3d59bdd71
+DIST github.com-elastic-beats-d73106d.tar.gz 18061284 SHA256 d0de467755c925ef52c03ab2184701b8947a58f76452a6da15ff6d660f83c131 SHA512 62ec0cd82102c63108f4fca091b7f75bf868d1a3e474a333a6a17b191abbb0fc5b1d566de3d9c65d328d8c1ea7eeaac27efe0aa17a83e7e680601ded7bc204b9 WHIRLPOOL cb7ca6020bc11a48ca88d6304eff736e78182c3157ec6865bfd276af93d702ac340e47d4ccc32259f4ceb07ba0bae5f3849a6f1c58981b3d1f14ca0a010cfba5
+DIST github.com-elastic-go-lumber-616041e.tar.gz 13910 SHA256 b519bc8965c34f02e0242800654ce35ad8d0a12a4748c779ef498baf97974e3c SHA512 be4b44ebd6411ecb7ad8382c35a840dcd71338c2041bfcd4fc545bb705da799072032ea22b4d05195065fef75a76a368a71d32937007608971644b8e783f9463 WHIRLPOOL 3ce08d3b21d3ca6663576238b0d1341e44572d36f2f55fd170503c2cc00b66a665ac17bd7f19e7f54de8b704f4442439bfd168e7bd0c9341ec1e3fd1c8ca683a
+DIST github.com-elastic-go-ucfg-ec8488a.tar.gz 50055 SHA256 d5ef05d6a4b27fe1877b5873452fa00b9fb914a7bbf438e471d2a20957d6d121 SHA512 b56e1ac065c992546f50706276adfe5e7b664f5e4887ef6c82d5775e5e577b676cbe933ac7b286982b0462867ee57ed1ef9dc23c1a1dbff202ced6eac9215227 WHIRLPOOL 40820aee1718c86d3e912dd9e0a23108d11501b7ccb07f3d5a55552504c1ee89affaafccb867954e189731b68c21351459112b4357a817335c4f5c81d3033e7d
+DIST github.com-garyburd-redigo-4339695.tar.gz 35578 SHA256 7d3e3e9ac5ac0764486712451ceed39cf00650adaecfd11aa62d9111a9f91252 SHA512 1bc2ae9bfe125e8b36874ec6f27f0e2672041f567e9db93d98e834eca983a015ed253b0f76785af5a6bde4d096c5b12195f5e292541f1ce0980bba1c1bcc4691 WHIRLPOOL fb571a27e3996c3e14d0eb260d2f25575ae9c754178ecd983ae5d5ac5ba9bef589c84ecf5dadbe891d9f038b8e6998208bd54f77d7b06e9e703f022ccb630164
+DIST github.com-go-yaml-yaml-cd8b52f.tar.gz 60805 SHA256 11a6ce686bb70ab92020f2dffadc2e024e267a6564a62b0091e2974474c7f88d SHA512 268498022f34c4b59b5b75443ee10fd4273203f4b77bfa11b08a792c004cf13e3010c34b4c15cee2b4e7f3c910648d9897700f60ab00b327d78c49e97497fe2b WHIRLPOOL b2d18dc7354fa6e4819c2b1437e3dce55212fbf6e907361b82bfefc0b2306f12cbf70560c3819e2a81426e538949f05be01c6b8b3f3e53a3aa6daf828e95d537
+DIST github.com-golang-net-3405706.tar.gz 885745 SHA256 f3ad96db6d0229639bb6738fbfa9b141fe6b9edf0d1cda131b6cf7727491070c SHA512 2003ce2e235d04573efd6a43bc6faa0eba4d9b3d99a0dfd026b5efefa82d0a41328f46d651d697c2ab94eb166c51ad46e839314413d2ff5810a6d9f2b6c7a990 WHIRLPOOL a2136b9b35934c48c109fb7275fae7cd6c5e01d94801a4195b3321314dad4e941ae1d9040018290d123efe31dfddde38d2b8833d595564f783694f3c4334dcc5
+DIST github.com-golang-snappy-553a641.tar.gz 62076 SHA256 2ddf0f394a8b5a83942ac351cff5c04f936e6bd6e6cecc73ce6145b9bfd4c6e7 SHA512 a324c8a7687e820f6b322930a054d1e7fc4c37bb66a95d473ef2a67fed703de90e8cc3072273ad2f9c681b1cf7ec1acc0ee9dc735ab593e23eea5cde96eea8a6 WHIRLPOOL cd942c31b7b6d084190030383c0342fbb64baada50f93f07d0cb36c412515f3f528301336d6b0f310b34181acc1f2532bad2b6eddfca245ae0d02e1cffee0656
+DIST github.com-golang-sys-98b5b1e.tar.gz 700897 SHA256 4c3c1128ca9c9fa390af838332bbbad0de36e7a572150b0ce00172ca8aa6f539 SHA512 f0b573933aad6858b8d3201e9c910bbdaa7c6e2e98b75edc4185282e403b23cecc362b01c6d7edbf599384b6113bdef1df9325a399fb7d5e5a68b0d99ec1a8f8 WHIRLPOOL 82d58ac4572774e5d3a4d1f970201d1483281c92960b357e271f31ff88bb75fdf0390bf72ee0041f808c47ffe0e044ac45aef96b3df2861a28a858d43e6db4bf
+DIST github.com-joeshaw-multierror-69b34d4.tar.gz 2165 SHA256 65401382ae65526c7371225fbdb352dd798084a41774082eccbdef42f6274be3 SHA512 a792593c2489e96ec10522daec8720dbcbe87678c4766445a34977512c24f01fea4a2dcf0974c1a1d8233e8f9ac7ed86bb92afeff5c8e9ffe1cf9279fdbedfb5 WHIRLPOOL 3d800b755981c2bfd9ac8fe50b0fbfe6d166d66e4e1241454379e42f28985e6337c3e735a1a792f38d1f0b061ecadac73636567396ffdda7891803496eefb09c
+DIST github.com-klauspost-compress-e80ca55.tar.gz 2726905 SHA256 0aa485a2ec5fd63494ff7e44db2dd3702d9c8e775219487cf1a865b2472a3fcc SHA512 a00895847d2fd82d44a3685e6fbcabb83d3578a6330f1732c38d3399b4265684788bd5fabc6e842af27d78c8549467325ccbef3763038e276a63e26c60acd4c1 WHIRLPOOL 105671cc48cdaaeaac70fea6e7fc74cc31f18b211c749019db90875812ccf7e592c6d9b4d3f8be3ebb33730f969a0572d476ca8c415007180eb3df504c6b75c0
+DIST github.com-klauspost-cpuid-09cded8.tar.gz 205121 SHA256 f9383e59484b2041cd481a149bdcdcfe63bd921d1b994a708230c28c759f7b3e SHA512 1d0288db333ff2bf09f750ca3fa8c7de3ba05506de554d7b721661352dcb8d4f3ebb2d5458858b8ec37193a8b71e16aa6ffc13ade385022c760cf65cec3083aa WHIRLPOOL 34a798e05f198a469c480bc0244e31f59d550712a6fa8a6e9b9086dfad8ee0bb2813ee60d183d70f5a09e31d8fda1f4285bf686fc3580a68cdd3fb1ce984196b
+DIST github.com-mitchellh-hashstructure-9204ce5.tar.gz 6455 SHA256 214e716a463909463bad3ae7931e89462569ee57db1a570d90484a3728a582bf SHA512 5e895ce38eb550e7ca65f4fe7576b2321084477df6ae458c734e92aa2f67b589265729d532a6f75448227042fb8a2c7fb44b65be1316cd06362584472b56be77 WHIRLPOOL 1a168e6dbe379fe1e9e8983e38ac9c0f289b7aa8db1bc2f0eb1c4ca7536143b66f96b383bceb8dd63ba33f15545d9cc57b0a721956611217839794dcad44359a
+DIST github.com-nranchev-go-libGeoIP-c78e8bd.tar.gz 6620 SHA256 46c34ff10d3da7823dab23528ea6851448438648872c6b9974a01f580c4517b9 SHA512 d76a567680fdfe1cf80daafbbc08b6f6aebd2e0bf3ad505edbe0006bcbaf2a9c8eeddd484d5416686b0bcf3640e9e8b6c78b0ab4f21fda944dda63f78ed15511 WHIRLPOOL 801107fa48d8159b5fc8329d0b3e4d94118570c00e1c4cb9f668dd243594c2df7298eb295286349030ad188bf136631a62122238d2ea82650285a013241aaa07
+DIST github.com-pierrec-lz4-88df279.tar.gz 12541232 SHA256 0b852d4e56dd755d42bcdef47525f2e143f5b5e9325777f377e8f14e181ab04b SHA512 5eef97fe5a761260059aa61327289d83077cb22d7347bbd7fd99195429a4cf879b4a7aa186c3b5e9777970941ab2b4f8d33b021fe69ccbb9b80139ed001e5d79 WHIRLPOOL 3e1e63537091b7e242f97d9ef1b26d841291573de42a72232c03cf37c195daba7121bc87dc3ab0bb0652bfba53f1bc19d5895533bbc9c863de82fc907922c9be
+DIST github.com-pierrec-xxHash-5a00444.tar.gz 6112 SHA256 50e0d50d35311e288960cdf86b2dd2d33d262bdd2803148967a4422f591bdab1 SHA512 7aab1fcdf17faac932b67c6df42556feec6037f51c9e710f2c56909970f36110391a4649635277acbfce2d710ef7d1176b8ddf145fb51594d4e5dea542aad397 WHIRLPOOL 8c76c7b61bddd4a93679590471e7a9ce6e465813936744f02b1186d63ec94b955b1b946a59ba089203d8977f54920930563702acac595efed5712360e56fbde8
+DIST github.com-pkg-errors-c605e28.tar.gz 11479 SHA256 af223e5cafa6182b4257e4ce3089052225553fff7d9af7bf363c1cd3daf020af SHA512 3f69265840be1bfbf9b8730bbd8bede89d13712840ba9971924c9f67bb97397fd999a5ea265aa2b1282ef4de4da894709a391c91a588d128a63f3d2f222529cf WHIRLPOOL e528eaf157ba0eef0bc8f8b6b3e4b7e82df8b1754438a876766a1c0a4008314e16c5d4a7d92d9f5826c276634fbaa53999d7c8980e16f02118dade140e09e342
+DIST github.com-rcrowley-go-metrics-1f30fe9.tar.gz 34843 SHA256 709dba5f1d0e9ea221e0439186f2bd9cd029410c126d3f09f304be877013c952 SHA512 4b0390ffd6ed18dd8fa01f3379a4cfafad299ee6977b099a61114a478ff1e57020d9d616fdb75c4d2fd0bdf4a8fd8d21d7b91cd66886eed2a73761b7075eee51 WHIRLPOOL 57a44119c68b5577f0d3d6a0e8cd9bdab9279576224651aed707aeb5188c34ee08b4708c08e82fa02075d97de602aed5e30b618218e4f194bb0491684230190f
+DIST github.com-satori-go.uuid-5bf94b6.tar.gz 7605 SHA256 6e814dfce34bd53405f2f82a46afbc363c71aa4aefea1bdbbb604158d857a755 SHA512 ce66fa5f54cb373e76a92258ba4b907ded9f4163469b2e949d608df4737b10e2e428ee973c7f8ae0a997f67d5b04f34e1d05ad60c2388fbd9bceeab8877bb8e9 WHIRLPOOL 0a750753241f08bfe8768b846baa5e8afba0c9526d95cd0722eddf4ca51670de31188d49c53ef0c1b977376b4a0aa706de7d1b67ec32ff592657d859e6befb6c
+DIST journalbeat-5.4.1.tar.gz 564101 SHA256 ad9588c042d943f584c5b4ba200c7d8d36c97171c9816821350024cdab92c057 SHA512 c3bef7454f8057c7035edcc6ae46c7a78dd88dbdf554d0483b42ce0f44eee1f80d76f4ed912eaeba260d1881f9fc4075f157ef0eb2fa8471c373b44d81bc675d WHIRLPOOL 5196951ed4528b4da55ba9a5cb7e4f13fbba274d223aae432057217b7a759d1a2bfb1a146c3b765cc7ceccacc603d9532b6729c04b6ad46173a01e4cefe0f145
diff --git a/app-admin/journalbeat/files/journalbeat.confd b/app-admin/journalbeat/files/journalbeat.confd
new file mode 100644
index 0000000..935371f
--- /dev/null
+++ b/app-admin/journalbeat/files/journalbeat.confd
@@ -0,0 +1,15 @@
+# Run journalbeat under this user/group
+#JOURNALBEAT_USER=""
+#JOURNALBEAT_GROUP=""
+
+# Configuration path
+#JOURNALBEAT_CONFIG=""
+
+# Path to data directory
+#JOURNALBEAT_DATADIR=""
+
+# Path to log directory
+#JOURNALBEAT_LOGDIR=""
+
+# Additional arguments passed to journalbeat
+#JOURNALBEAT_OPTS=""
diff --git a/app-admin/journalbeat/files/journalbeat.initd b/app-admin/journalbeat/files/journalbeat.initd
new file mode 100644
index 0000000..bef5072
--- /dev/null
+++ b/app-admin/journalbeat/files/journalbeat.initd
@@ -0,0 +1,50 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+JOURNALBEAT_USER="${JOURNALBEAT_USER:-root}"
+JOURNALBEAT_GROUP="${JOURNALBEAT_GROUP:-root}"
+JOURNALBEAT_CONFIG="${JOURNALBEAT_CONFIG:-/etc/journalbeat/journalbeat.yml}"
+JOURNALBEAT_DATADIR="${JOURNALBEAT_DATADIR:-/var/lib/journalbeat}"
+JOURNALBEAT_LOGDIR="${JOURNALBEAT_LOGDIR:-/var/log/journalbeat}"
+JOURNALBEAT_OPTS="${JOURNALBEAT_OPTS:-}"
+
+command="/usr/bin/journalbeat"
+command_args="-c ${JOURNALBEAT_CONFIG} ${JOURNALBEAT_OPTS} -path.config $(dirname $JOURNALBEAT_CONFIG) \
+ -path.data ${JOURNALBEAT_DATADIR} -path.home ${JOURNALBEAT_DATADIR} -path.logs ${JOURNALBEAT_LOGDIR}"
+extra_commands="checkconfig"
+command_background="true"
+start_stop_daemon_args="--user ${JOURNALBEAT_USER}:${JOURNALBEAT_GROUP} \
+ --chdir ${JOURNALBEAT_DATADIR}"
+pidfile="/run/journalbeat/journalbeat.pid"
+
+depend() {
+ use net
+ after elasticsearch
+}
+
+checkconfig() {
+ if [ ! -e ${JOURNALBEAT_CONFIG} ]; then
+ eend "Please create a configuration file at ${JOURNALBEAT_CONFIG}"
+ return 1
+ fi
+
+ ebegin "Checking your configuration"
+ ${command} ${command_args} -configtest
+ eend $? "Configuration error. Please fix your configuration files."
+}
+
+start_pre() {
+ checkconfig || return 1
+
+ checkpath -d -o "${JOURNALBEAT_USER}":"${JOURNALBEAT_GROUP}" -m750 "$(dirname "${pidfile}")"
+ checkpath -d -o "${JOURNALBEAT_USER}":"${JOURNALBEAT_GROUP}" -m750 "${JOURNALBEAT_DATADIR}"
+ checkpath -d -o "${JOURNALBEAT_USER}":"${JOURNALBEAT_GROUP}" -m750 "${JOURNALBEAT_LOGDIR}"
+}
+
+stop() {
+ ebegin "Stopping journalbeat"
+ start-stop-daemon --stop \
+ --pidfile=${pidfile} \
+ --retry=TERM/5/KILL/5
+}
diff --git a/app-admin/journalbeat/files/journalbeat.service b/app-admin/journalbeat/files/journalbeat.service
new file mode 100644
index 0000000..e1e7aee
--- /dev/null
+++ b/app-admin/journalbeat/files/journalbeat.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Journalbeat Service
+After=network.target
+
+[Service]
+Restart=always
+RemainAfterExit=yes
+WorkingDirectory=/var/log/journalbeat
+ExecStart=/usr/bin/journalbeat -c /etc/journalbeat/journalbeat.yml -path.config /etc/journalbeat -path.data /var/lib/journalbeat -path.home /var/lib/journalbeat -path.logs /var/log/journalbeat
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-admin/journalbeat/journalbeat-5.4.1.ebuild b/app-admin/journalbeat/journalbeat-5.4.1.ebuild
new file mode 100644
index 0000000..59c0bf9
--- /dev/null
+++ b/app-admin/journalbeat/journalbeat-5.4.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+GOLANG_PKG_IMPORTPATH="github.com/mheese"
+GOLANG_PKG_USE_CGO=1
+
+GOLANG_PKG_DEPENDENCIES=(
+ "github.com/Shopify/sarama:c01858a"
+ "github.com/coreos/go-systemd:1f9909e"
+ "github.com/coreos/pkg:8dbaa49"
+ "github.com/davecgh/go-spew:346938d"
+ "github.com/eapache/go-resiliency:b86b1ec"
+ "github.com/eapache/go-xerial-snappy:bb955e0"
+ "github.com/eapache/queue:44cc805"
+ "github.com/elastic/beats:d73106d"
+ "github.com/elastic/go-lumber:616041e"
+ "github.com/elastic/go-ucfg:ec8488a"
+ "github.com/garyburd/redigo:4339695"
+ "github.com/golang/snappy:553a641"
+ "github.com/joeshaw/multierror:69b34d4"
+ "github.com/klauspost/compress:e80ca55"
+ "github.com/klauspost/cpuid:09cded8"
+ "github.com/mitchellh/hashstructure:9204ce5"
+ "github.com/nranchev/go-libGeoIP:c78e8bd"
+ "github.com/pierrec/lz4:88df279"
+ "github.com/pierrec/xxHash:5a00444"
+ "github.com/pkg/errors:c605e28"
+ "github.com/rcrowley/go-metrics:1f30fe9"
+ "github.com/satori/go.uuid:5bf94b6"
+ "github.com/golang/net:3405706 -> golang.org/x"
+ "github.com/golang/sys:98b5b1e -> golang.org/x"
+ "github.com/go-yaml/yaml:cd8b52f -> gopkg.in/yaml.v2"
+)
+
+inherit systemd golang-single
+
+DESCRIPTION="Journalbeat is a log shipper from systemd/journald to Logstash/Elasticsearch"
+HOMEPAGE="https://github.com/mheese/journalbeat"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~arm"
+
+src_install() {
+ # Install the package
+ golang-single_src_install
+
+ keepdir /var/{lib,log}/${PN}
+
+ fperms 0750 /var/{lib,log}/${PN}
+
+ # Install systemd/init.d services
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+
+ insinto "/etc/${PN}"
+ doins etc/journalbeat.yml
+
+ doexe "${GOBIN}"/*
+}