summaryrefslogtreecommitdiff
path: root/scripts/package-build/opennhrp
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/package-build/opennhrp')
-rw-r--r--scripts/package-build/opennhrp/.gitignore6
l---------scripts/package-build/opennhrp/build.py1
-rw-r--r--scripts/package-build/opennhrp/package.toml21
3 files changed, 28 insertions, 0 deletions
diff --git a/scripts/package-build/opennhrp/.gitignore b/scripts/package-build/opennhrp/.gitignore
new file mode 100644
index 00000000..65d0752b
--- /dev/null
+++ b/scripts/package-build/opennhrp/.gitignore
@@ -0,0 +1,6 @@
+opennhrp/
+*.buildinfo
+*.build
+*.changes
+*.deb
+*.dsc
diff --git a/scripts/package-build/opennhrp/build.py b/scripts/package-build/opennhrp/build.py
new file mode 120000
index 00000000..3c76af73
--- /dev/null
+++ b/scripts/package-build/opennhrp/build.py
@@ -0,0 +1 @@
+../build.py \ No newline at end of file
diff --git a/scripts/package-build/opennhrp/package.toml b/scripts/package-build/opennhrp/package.toml
new file mode 100644
index 00000000..d647c072
--- /dev/null
+++ b/scripts/package-build/opennhrp/package.toml
@@ -0,0 +1,21 @@
+[[packages]]
+name = "opennhrp"
+commit_id = "613277f"
+scm_url = "https://git.code.sf.net/p/opennhrp/code"
+
+build_cmd = """
+make clean
+make
+
+install --directory debian/etc debian/usr/sbin
+install --mode 0644 etc/racoon-ph1dead.sh debian/etc
+install --mode 0644 etc/racoon-ph1down.sh debian/etc
+install --strip --mode 0755 nhrp/opennhrp debian/usr/sbin
+install --strip --mode 0755 nhrp/opennhrpctl debian/usr/sbin
+
+fpm --input-type dir --output-type deb --name opennhrp \
+ --version $(git describe --always | cut -c2-) --deb-compression gz \
+ --maintainer "VyOS Package Maintainers <maintainers@vyos.net>" \
+ --description "NBMA Next Hop Resolution Protocol daemon" \
+ --license "MIT" -C debian --package ..
+"""