[tacacs]: use stg to apply patch
Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
parent
742bbed255
commit
819d7b50a9
@ -4,27 +4,16 @@ SHELL = /bin/bash
|
|||||||
|
|
||||||
MAIN_TARGET = libnss-tacplus_$(NSS_TACPLUS_VERSION)_$(CONFIGURED_ARCH).deb
|
MAIN_TARGET = libnss-tacplus_$(NSS_TACPLUS_VERSION)_$(CONFIGURED_ARCH).deb
|
||||||
|
|
||||||
GIT_APPLY = am
|
|
||||||
ifneq (,$(filter $(CONFIGURED_ARCH), armhf arm64))
|
|
||||||
# Workaround git am issue "Out of memory getdelim failed"
|
|
||||||
GIT_APPLY = apply
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||||
# Obtain libnss-tacplus
|
# Obtain libnss-tacplus
|
||||||
rm -rf ./libnss-tacplus
|
rm -rf ./libnss-tacplus
|
||||||
git clone https://github.com/daveolson53/libnss-tacplus.git
|
git clone https://github.com/daveolson53/libnss-tacplus.git
|
||||||
pushd ./libnss-tacplus
|
pushd ./libnss-tacplus
|
||||||
git checkout -f 19008ab
|
git checkout -b test -f 19008ab
|
||||||
|
|
||||||
# Apply patch
|
# Apply patch
|
||||||
git $(GIT_APPLY) ../0001-Modify-user-map-profile.patch
|
stg init
|
||||||
git $(GIT_APPLY) ../0002-Enable-modifying-local-user-permission.patch
|
stg import -s ../patch/series
|
||||||
git $(GIT_APPLY) ../0003-management-vrf-support.patch
|
|
||||||
git $(GIT_APPLY) ../0004-Skip-accessing-tacacs-servers-for-local-non-tacacs-u.patch
|
|
||||||
git $(GIT_APPLY) ../0005-libnss-Modify-parsing-of-IP-addr-and-port-number-str.patch
|
|
||||||
git $(GIT_APPLY) ../0006-fix-compiling-warning-about-token-dereference.patch
|
|
||||||
git $(GIT_APPLY) ../0007-Add-support-for-TACACS-source-address.patch
|
|
||||||
|
|
||||||
dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR)
|
dpkg-buildpackage -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR)
|
||||||
popd
|
popd
|
||||||
|
7
src/tacacs/nss/patch/series
Normal file
7
src/tacacs/nss/patch/series
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
0001-Modify-user-map-profile.patch
|
||||||
|
0002-Enable-modifying-local-user-permission.patch
|
||||||
|
0003-management-vrf-support.patch
|
||||||
|
0004-Skip-accessing-tacacs-servers-for-local-non-tacacs-u.patch
|
||||||
|
0005-libnss-Modify-parsing-of-IP-addr-and-port-number-str.patch
|
||||||
|
0006-fix-compiling-warning-about-token-dereference.patch
|
||||||
|
0007-Add-support-for-TACACS-source-address.patch
|
Loading…
Reference in New Issue
Block a user