summaryrefslogtreecommitdiff
path: root/scripts/package-build/radvd
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-08-26 15:21:14 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2024-08-29 09:30:52 +0000
commitcc7d0993b420c3245e628a818f887411d72530ff (patch)
tree53fd8ab2b5dea74c1f7969b8ff853179d81f8fec /scripts/package-build/radvd
parent70bb3c5baacb6e0c72b9532f6dda417d395a6bc0 (diff)
downloadvyos-build-cc7d0993b420c3245e628a818f887411d72530ff.tar.gz
vyos-build-cc7d0993b420c3245e628a818f887411d72530ff.zip
T6674: Add build-scrips for packages without Jenkins
Add build scripts for .deb packages without Jenkins. To exclude Jenkins we need some place where we can put new builds-scripts to run in parallel (old/new) during meantime We will deprecate old Jenkins package builds in the future.
Diffstat (limited to 'scripts/package-build/radvd')
-rw-r--r--scripts/package-build/radvd/.gitignore6
l---------scripts/package-build/radvd/build.py1
-rw-r--r--scripts/package-build/radvd/package.toml23
3 files changed, 30 insertions, 0 deletions
diff --git a/scripts/package-build/radvd/.gitignore b/scripts/package-build/radvd/.gitignore
new file mode 100644
index 00000000..9c37832b
--- /dev/null
+++ b/scripts/package-build/radvd/.gitignore
@@ -0,0 +1,6 @@
+radvd/
+*.buildinfo
+*.build
+*.changes
+*.deb
+*.dsc
diff --git a/scripts/package-build/radvd/build.py b/scripts/package-build/radvd/build.py
new file mode 120000
index 00000000..3c76af73
--- /dev/null
+++ b/scripts/package-build/radvd/build.py
@@ -0,0 +1 @@
+../build.py \ No newline at end of file
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 ..
+"""