diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-03-13 17:13:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 17:13:28 +0200 |
commit | 1639080e893a9fcc735cf2ebfd92cf7ab6f90b70 (patch) | |
tree | 9eecae230eeb6f3e3e2ac735657d8cd7bfb2e18e /packages/radvd/build.sh | |
parent | 613a8b022974cca43ba3eec5b2bb85fd8892e90a (diff) | |
parent | c0bb360c099ff5528f8f7c5aa593c8378f796a04 (diff) | |
download | vyos-build-1639080e893a9fcc735cf2ebfd92cf7ab6f90b70.tar.gz vyos-build-1639080e893a9fcc735cf2ebfd92cf7ab6f90b70.zip |
Merge pull request #528 from c-po/radvd-T6118
radvd: T6118: add custom build support with recent source version
Diffstat (limited to 'packages/radvd/build.sh')
-rwxr-xr-x | packages/radvd/build.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/radvd/build.sh b/packages/radvd/build.sh new file mode 100755 index 00000000..36057e27 --- /dev/null +++ b/packages/radvd/build.sh @@ -0,0 +1,29 @@ +#!/bin/sh +SRC=radvd +if [ ! -d $SRC ]; then + echo "source directory $SRC does not exist!" + echo "$ git clone https://github.com/radvd-project/radvd" + exit 1 +fi +cd $SRC + +INSTALL_DIR=debian +if [ -d $INSTALL_DIR ]; then + rm -rf $INSTALL_DIR +fi + +./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 $INSTALL_DIR --package .. |