if [ -x /sbin/setcap ]; then
  for i in alsa_in alsa_out jack_alias jack_bufsize jack_connect jack_control jack_control_client jack_cpu_load jack_evmon jack_freewheel jack_impulse_grabber jack_iodelay jack_latent_client jack_load jack_load_test jack_lsp jack_metro jack_midi_dump jack_midi_latency_test jack_midiseq jack_midisine jack_monitor_client jack_net_master jack_net_slave jack_netsource jack_property jack_rec jack_samplerate jack_server_control jack_showtime jack_simdtests jack_simple_client jack_thru_client jack_transport jack_transport_client jack_tw jack_unload jack_wait jack_zombie jackd jackdbus; do
    /sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$i
  done
fi
( cd usr/bin ; rm -rf jack_disconnect )
( cd usr/bin ; ln -sf jack_connect jack_disconnect )
( cd usr/lib64 ; rm -rf libjack.so )
( cd usr/lib64 ; ln -sf libjack.so.0.1.0 libjack.so )
( cd usr/lib64 ; rm -rf libjack.so.0 )
( cd usr/lib64 ; ln -sf libjack.so.0.1.0 libjack.so.0 )
( cd usr/lib64 ; rm -rf libjacknet.so )
( cd usr/lib64 ; ln -sf libjacknet.so.0.1.0 libjacknet.so )
( cd usr/lib64 ; rm -rf libjacknet.so.0 )
( cd usr/lib64 ; ln -sf libjacknet.so.0.1.0 libjacknet.so.0 )
( cd usr/lib64 ; rm -rf libjackserver.so )
( cd usr/lib64 ; ln -sf libjackserver.so.0.1.0 libjackserver.so )
( cd usr/lib64 ; rm -rf libjackserver.so.0 )
( cd usr/lib64 ; ln -sf libjackserver.so.0.1.0 libjackserver.so.0 )
