From 7a8d435cc1e7abccd6d6851850ab4b6572c10526 Mon Sep 17 00:00:00 2001 From: dd Date: Wed, 22 May 2024 10:50:35 +0200 Subject: libnss-tacplus: use vyos sources --- packages/libnss-tacplus/Jenkinsfile | 37 +------------------------------------ packages/libnss-tacplus/build.sh | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 36 deletions(-) create mode 100755 packages/libnss-tacplus/build.sh diff --git a/packages/libnss-tacplus/Jenkinsfile b/packages/libnss-tacplus/Jenkinsfile index 32a5b01..a281adf 100644 --- a/packages/libnss-tacplus/Jenkinsfile +++ b/packages/libnss-tacplus/Jenkinsfile @@ -22,42 +22,7 @@ def pkgList = [ // libnss-tacplus ['name': 'libnss-tacplus', - 'buildCmd': ''' - # all scripts must be executed one level above ... - cd .. - - # Build dependency - wget https://download.nvidia.com/cumulus/apt.cumulusnetworks.com/repo/pool/cumulus/libt/libtacplus-map/libtacplus-map_1.0.1-cl5.1.0u9.tar.gz - mkdir pkg-libtacplus-map && tar -C pkg-libtacplus-map -xf libtacplus-map_*.tar.gz - cd pkg-libtacplus-map/source - sudo mk-build-deps --install --tool "apt-get --yes --no-install-recommends" - # Make it buildable for newer gcc version: - # https://stackoverflow.com/questions/47185819/building-debian-ubuntu-packages-with-old-gcc-cflag-adjustment - # map_tacplus_user.c:388:31: error: the comparison will always evaluate as 'true' for the address of 'tac_mappedname' will never be NULL [-Werror=address] - # man 1 dpkg-buildflags - export DEB_CFLAGS_APPEND="-Wno-address -Wno-stringop-truncation" - dpkg-buildpackage -uc -us -tc -b - cd ../../ - - sudo dpkg -i pkg-libtacplus-map/*.deb - - # Build dependency - wget https://download.nvidia.com/cumulus/apt.cumulusnetworks.com/repo/pool/cumulus/libp/libpam-tacplus/libpam-tacplus_1.4.3-cl5.1.0u5.tar.gz - mkdir pkg-libpam-tacplus && tar -C pkg-libpam-tacplus -xf libpam-tacplus_*.tar.gz - cd pkg-libpam-tacplus/source - sudo mk-build-deps --install --tool "apt-get --yes --no-install-recommends" - dpkg-buildpackage -uc -us -tc -b - cd ../../ - - sudo dpkg -i pkg-libpam-tacplus/*.deb - - wget https://download.nvidia.com/cumulus/apt.cumulusnetworks.com/repo/pool/cumulus/libn/libnss-tacplus/libnss-tacplus_1.0.4-cl5.1.0u11.tar.gz - # Unpack Kernel source - mkdir pkg-libnss-tacplus && tar -C pkg-libnss-tacplus -xf libnss-tacplus_*.tar.gz - cd pkg-libnss-tacplus/source - sudo mk-build-deps --install --tool "apt-get --yes --no-install-recommends" - dpkg-buildpackage -uc -us -tc -b - '''], + 'buildCmd': 'cd ..; ./build.sh'], ] // Start package build using library function from https://github.com/vyos/vyos-build diff --git a/packages/libnss-tacplus/build.sh b/packages/libnss-tacplus/build.sh new file mode 100755 index 0000000..c01a832 --- /dev/null +++ b/packages/libnss-tacplus/build.sh @@ -0,0 +1,31 @@ +# Build and install libtacplus-map dependency +git clone https://github.com/vyos/libtacplus-map.git +cd libtacplus-map +git reset --hard fe47203 +sudo mk-build-deps --install --tool "apt-get --yes --no-install-recommends" +# Make it buildable for newer gcc version: +# https://stackoverflow.com/questions/47185819/building-debian-ubuntu-packages-with-old-gcc-cflag-adjustment +# map_tacplus_user.c:388:31: error: the comparison will always evaluate as 'true' for the address of 'tac_mappedname' will never be NULL [-Werror=address] +# man 1 dpkg-buildflags +export DEB_CFLAGS_APPEND="-Wno-address -Wno-stringop-truncation" +dpkg-buildpackage -uc -us -tc -b +cd ../ + +sudo dpkg -i *.deb + +# Build and install libpam-tacplus dependency +git clone https://github.com/vyos/libpam-tacplus.git +cd libpam-tacplus +git reset --hard 0d38f9b +sudo mk-build-deps --install --tool "apt-get --yes --no-install-recommends" +dpkg-buildpackage -uc -us -tc -b +cd ../ + +sudo dpkg -i *.deb + +# Finally build libnss-tacplus +git clone https://github.com/vyos/libnss-tacplus.git +cd libnss-tacplus +git reset --hard 049d284 +sudo mk-build-deps --install --tool "apt-get --yes --no-install-recommends" +dpkg-buildpackage -uc -us -tc -b -- cgit v1.2.3