Why I did it HLD: https://github.com/Azure/SONiC/blob/master/doc/aaa/radius_authentication.md CLI: In a separate PR. How I did it How to verify it UT: src/sonic-host-services/tests/hostcfgd/hostcfgd_radius_test.py
24 lines
456 B
Makefile
24 lines
456 B
Makefile
.ONESHELL:
|
|
SHELL = /bin/bash
|
|
.SHELLFLAGS += -e
|
|
|
|
MAIN_TARGET = libnss-radius_$(NSS_RADIUS_VERSION)_amd64.deb
|
|
|
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
|
pushd ./libnss-radius
|
|
|
|
make clean
|
|
-rm -rf debian
|
|
-rm -rf patches
|
|
cp -r ../debian .
|
|
cp -r ../patches .
|
|
|
|
# Apply patch (if any)
|
|
|
|
dpkg-buildpackage -rfakeroot -b -us -uc
|
|
popd
|
|
|
|
mv $(DERIVED_TARGETS) $* $(DEST)/
|
|
|
|
$(addprefix $(DEST)/, $(DERIVED_TARGETS)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)
|