summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/09-remove_unsupported_pidgin_libs
blob: 76a086670b680007d846dca2b086cac9f61f3938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

# Remove pidgin's (libpurple's) support for protocols we don't support.

echo "Removing Pidgin libraries for protocols we do not support"

KEEP="irc|jabber|xmpp"

find /usr/lib/purple-2/ -name 'lib*.so' \
   | /bin/grep -Ev "/lib($KEEP)\.so" \
   | xargs rm