summaryrefslogtreecommitdiff
path: root/scripts/package-build/frr_exporter/package.toml
blob: 1c87d4964483651f98721cbeddd57317faf7db46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[[packages]]
name = "frr_exporter"
commit_id = "v1.3.1"
scm_url = "https://github.com/tynany/frr_exporter"

build_cmd = """

# Create the install directory
mkdir -p debian/usr/sbin
make setup_promu
go build

# Move the frr_exporter binary to the install directory
mv frr_exporter debian/usr/sbin

# Build the Debian package
fpm --input-type dir --output-type deb --name frr-exporter \
    --version $(git describe --tags --always | cut -c2-) --deb-compression gz \
    --maintainer "VyOS Package Maintainers <maintainers@vyos.net>" \
    --description "Prometheus exporter for FRR" \
    --license Apache-2.0 -C debian --package ..
"""