summaryrefslogtreecommitdiff
path: root/scripts/package-build/radvd/package.toml
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/package-build/radvd/package.toml')
-rw-r--r--scripts/package-build/radvd/package.toml23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/package-build/radvd/package.toml b/scripts/package-build/radvd/package.toml
new file mode 100644
index 00000000..e44afa18
--- /dev/null
+++ b/scripts/package-build/radvd/package.toml
@@ -0,0 +1,23 @@
+[[packages]]
+name = "radvd"
+commit_id = "f2de4764559"
+scm_url = "https://github.com/radvd-project/radvd"
+
+#build_cmd = "cd ..; ./build.sh"
+build_cmd = """
+./autogen.sh
+./configure
+make
+
+install --directory debian/lib/systemd/system debian/usr/sbin
+install --mode 0644 radvd.service debian/lib/systemd/system
+install --strip --mode 0755 radvd debian/usr/sbin
+
+# Version' field value 'v0.14-20-g613277f': version number does not start with digit
+# "cut" first character from version string
+fpm --input-type dir --output-type deb --name radvd \
+ --version $(git describe --always | cut -c2- | tr _ -) --deb-compression gz \
+ --maintainer "VyOS Package Maintainers <maintainers@vyos.net>" \
+ --description "RADVD router advertisement daemon" \
+ --license "RADVD" -C debian --package ..
+"""