The perl snipplet in postinst can be replaced with this one line sed command:
sed -i '/^\(passwd:\|group:\|shadow:\|netgroup:\)/ { /\(\ssss\s\|\ssss$\)/ !{ s/$/ sss/ } }' /etc/nsswitch.conf
And the perl snipplet in portrm can be replaced with this one line sed command:
sed -i '/^\(passwd:\|group:\|shadow:\|netgroup:\)/ { s/\(\s\s*\)sss\s\s*/\1/; s/\s\s*sss$// }' /etc/nsswitch.conf
The perl snipplet in postinst can be replaced with this one line sed command: \|group: \|shadow: \|netgroup: \)/ { /\(\ssss\ s\|\ssss$ \)/ !{ s/$/ sss/ } }' /etc/nsswitch.conf
sed -i '/^\(passwd:
And the perl snipplet in portrm can be replaced with this one line sed command: \|group: \|shadow: \|netgroup: \)/ { s/\(\s\ s*\)sss\ s\s*/\1/ ; s/\s\s*sss$// }' /etc/nsswitch.conf
sed -i '/^\(passwd:
This will hopefully remove the perl dependency...