-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #804 from rebortg/T973_frr_exporter
T973: add build script for frr_exporter package
- Loading branch information
Showing
4 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
frr_exporter / | ||
*.buildinfo | ||
*.build | ||
*.changes | ||
*.deb | ||
*.dsc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../build.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 <[email protected]>" \ | ||
--description "Prometheus exporter for FRR" \ | ||
--license Apache-2.0 -C debian --package .. | ||
""" |