---
name: socketbind
version: 1
origin: net/socketbind
comment: Library to bind applications on multihomed machines to specific IP address
arch: freebsd:9:x86:64
www: UNKNOWN
maintainer: nm@web.am
prefix: /usr/local
licenselogic: single
flatsize: 4860
desc: |
  This library allows you to bind any application which is dynamically linked
  with libc. It provides convient way to bind socket's source IP to one of the
  multiple IP's available on computer.

  To use it first of all point LD_PRELOAD to installed library and set BINDTO
  variable to desired IP address to bind.

  Here is the wrapper to run any command binded to some IP address:
  env LD_PRELOAD=/usr/local/lib/libsocketbind.so.1 BINDTO=$MY_IP_ADDRESS $*

  Author: nm at web dot am
categories: [net]
files:
  /usr/local/lib/libsocketbind.so: '-'
  /usr/local/lib/libsocketbind.so.1: ced9b6f55cd753a007e4d38b73a33aa2a752ef029ca082f182ad00bd8da6df15
  /usr/local/share/doc/socketbind/README: 0645b3aab1d099fb88dfd0cec50c3595e980255fd2120476dddd7cca62482666
directories:
  /usr/local/share/doc/socketbind/: n
scripts:
  post-install: |
    /sbin/ldconfig -m /usr/local/lib
  pre-deinstall: |
    /sbin/ldconfig -R
