Merge pull request #844 from c-po/T6674-tacacs

T6674: add package build instructions for TACACS client libraries
This commit is contained in:
Viacheslav Hletenko 2024-11-22 10:33:15 +02:00 committed by GitHub
commit 50f8304f92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 38 additions and 26 deletions

View File

@ -78,6 +78,8 @@ jobs:
- 'scripts/package-build/radvd/**'
strongswan:
- 'scripts/package-build/strongswan/**'
tacacs:
- 'scripts/package-build/tacacs/**'
telegraf:
- 'scripts/package-build/telegraf/**'
waagent:
@ -211,6 +213,10 @@ jobs:
trigger_build "strongswan"
fi
if [ "${{ steps.changes.outputs.tacacs }}" == "true" ]; then
trigger_build "tacacs"
fi
if [ "${{ steps.changes.outputs.telegraf }}" == "true" ]; then
trigger_build "telegraf"
fi

View File

@ -1,7 +0,0 @@
pam_tacplus/
pam_tacplus-debian/
*.buildinfo
*.build
*.changes
*.deb
*.dsc

View File

@ -1,19 +0,0 @@
[[packages]]
name = "pam_tacplus-debian"
commit_id = "50c6fd7"
scm_url = "https://github.com/kravietz/pam_tacplus-debian"
build_cmd = "/bin/true"
[[packages]]
name = "pam_tacplus"
#commit_id = "4f91b0d" # This commit cannot build the package
commit_id = "b839c44"
scm_url = "https://github.com/kravietz/pam_tacplus"
#build_cmd = "sudo mk-build-deps --install --tool 'apt-get --yes --no-install-recommends'; cd ..; ./build.sh"
build_cmd = """
cp -a ../pam_tacplus-debian debian
rm -f debian/compat
sudo mk-build-deps --install --tool 'apt-get --yes --no-install-recommends'
dpkg-buildpackage -uc -us -tc -b -d
"""

View File

@ -0,0 +1,8 @@
libnss-tacplus/
libpam-tacplus/
libtacplus-map/
*.buildinfo
*.build
*.changes
*.deb
*.dsc

View File

@ -0,0 +1,24 @@
[[packages]]
name = "libtacplus-map"
commit_id = "master"
scm_url = "https://github.com/vyos/libtacplus-map.git"
build_cmd = "dpkg-buildpackage -us -uc -tc -b"
[[packages]]
name = "libpam-tacplus"
commit_id = "master"
scm_url = "https://github.com/vyos/libpam-tacplus.git"
build_cmd = "sudo dpkg -i ../libtacplus-map*.deb; dpkg-buildpackage -us -uc -tc -b"
[[packages]]
name = "libnss-tacplus"
commit_id = "master"
scm_url = "https://github.com/vyos/libnss-tacplus.git"
build_cmd = "sudo dpkg -i ../libtac*.deb ../libpam-tacplus*.deb; dpkg-buildpackage -us -uc -tc -b"
[packages.dependencies]
packages = [
"libpam-dev",
"autoconf-archive",
"libaudit-dev"
]