notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
This referral link gives you 10% off a Fastmail.com account and gives me a discount on my Fastmail account.

Get notified when packages are built

A new feature has been added. FreshPorts already tracks package built by the FreeBSD project. This information is displayed on each port page. You can now get an email when FreshPorts notices a new package is available for something on one of your watch lists. However, you must opt into that. Click on Report Subscriptions on the right, and New Package Notification box, and click on Update.

Finally, under Watch Lists, click on ABI Package Subscriptions to select your ABI (e.g. FreeBSD:14:amd64) & package set (latest/quarterly) combination for a given watch list. This is what FreshPorts will look for.

Port details
socketbind Library to bind applications on multihomed machines to specific IP address
1_1 net on this many watch lists=2 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1_1Version of this port present on the latest quarterly branch.
Maintainer: nm@web.am search for ports maintained by this maintainer
Port Added: 2003-04-01 00:50:21
Last Update: 2023-10-05 13:16:51
Commit Hash: 03a9755
People watching this port, also watch:: openssl, mimedefang
License: not specified in port
Description:
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 $*
cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (7 items)
Collapse this list.
  1. @ldconfig
  2. lib/libsocketbind.so.1
  3. lib/libsocketbind.so
  4. share/doc/socketbind/README
  5. @owner
  6. @group
  7. @mode
Collapse this list.
Dependency lines:
  • socketbind>0:net/socketbind
To install the port:
cd /usr/ports/net/socketbind/ && make install clean
To add the package, run one of these commands:
  • pkg install net/socketbind
  • pkg install socketbind
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: socketbind
Flavors: there is no flavor information for this port.
distinfo:
There is no distinfo for this port.

No package information for this port in our database
Sometimes this happens. Not all ports have packages.
This port has no dependencies.
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
net_socketbind
FreshPorts was unable to extract/find any pkg message
Master Sites:
  1. There is no master site for this port.

Number of commits found: 13

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
1_1
05 Oct 2023 13:16:51
commit hash: 03a9755147acbd1933f5c991ce33ae1bc375746dcommit hash: 03a9755147acbd1933f5c991ce33ae1bc375746dcommit hash: 03a9755147acbd1933f5c991ce33ae1bc375746dcommit hash: 03a9755147acbd1933f5c991ce33ae1bc375746d files touched by this commit
Eugene Grosbein (eugen) search for other commits by this committer
net/socketbind: unbreak the library

The code has multiple issues making it unusable with modern FreeBSD:

* it uses long gone ascii2addr() function removed in 2007;
* it passes hardcoded "/usr/lib/libc.so" path to dlopen(),
  but now it is plain text hint file;
* this IPv4-only code neglects to check passed domain for PF_INET
  messing with sockets in other domains (like PF_INET6, PF_LOCAL).

Still, it is very useful while dealing with software like Nagios
that does not support binding to specific IPv4 address
for outgoing connections. The library solves the problem with single line
in /etc/rc.conf:

nagios_env="LD_PRELOAD=/usr/local/lib/libsocketbind.so.1 BINDTO=192.168.6.1"

This changes unbreaks the library making it usable again.
1
20 Jul 2022 14:22:37
commit hash: 6a378e5659b93de6dbe8956246fb3bf971677624commit hash: 6a378e5659b93de6dbe8956246fb3bf971677624commit hash: 6a378e5659b93de6dbe8956246fb3bf971677624commit hash: 6a378e5659b93de6dbe8956246fb3bf971677624 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
net: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  <ports@c0decafe.net>
  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Aaron Straup Cope <ascope@cpan.org>
  *  Aaron Zauner <az_mail@gmx.at>
  *  Adam Jette <jettea46@yahoo.com>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Alan Eldridge <alane@geeksrus.net>
  *  Alex Bakhtin <Alex.Bakhtin@gmail.com>
  *  Alex Deiter <Alex.Deiter@Gmail.COM>
  *  Alex Dupre <ale@FreeBSD.org>
  *  Alex Dupre <sysadmin@alexdupre.com>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
1
06 Apr 2021 14:31:13
commit hash: 135fdeebb99c3569e42d8162b265e15d29bd937dcommit hash: 135fdeebb99c3569e42d8162b265e15d29bd937dcommit hash: 135fdeebb99c3569e42d8162b265e15d29bd937dcommit hash: 135fdeebb99c3569e42d8162b265e15d29bd937d files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
all: Remove all other $FreeBSD keywords.
1
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
1
09 Jan 2018 19:06:34
Revision:458559Original commit files touched by this commit
danfe search for other commits by this committer
For the ports under `net' category: remove superfluous linefeeds.
1
02 Mar 2015 23:42:00
Revision:380309Original commit files touched by this commit
bapt search for other commits by this committer
Remove Author from pkg-descr and white space fixes
1
22 Nov 2014 14:43:24
Revision:373063Original commit files touched by this commit
antoine search for other commits by this committer
Cleanup plist
1
24 Jun 2014 03:53:43
Revision:359032Original commit files touched by this commit
vanilla search for other commits by this committer
Stagify.

Approved by:	portmgr (blanket approval)
1
20 Sep 2013 22:10:25
Revision:327755Original commit files touched by this commit
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
net)
1
24 Oct 2011 09:11:38
Original commit files touched by this commit
dougb search for other commits by this committer
The vast majority of pkg-descr files had the following format when they
had both lines:

Author: ...
WWW: ....

So standardize on that, and move them to the end of the file when necessary.

Also fix some more whitespace, and remove more "signature tags" of varying
forms, like -- name, etc.

s/AUTHOR/Author/

A few other various formatting issues
1
19 Apr 2008 17:56:05
Original commit files touched by this commit Sanity Test Failure
miwi search for other commits by this committer
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
        Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
        ehaupt, nox, itetcu, flz, pav

PR:             116263
Tested on:      pointyhat
Approved by:    portmgr (pav)
1
28 Jan 2006 11:49:53
Original commit files touched by this commit
pav search for other commits by this committer
- Fix typo in COMMENT
1
01 Apr 2003 00:49:48
Original commit files touched by this commit
edwin search for other commits by this committer
socketbind - new port submission

        This library allows you to bind any application which is
        dynamically linked with libc to certain IP address.  It
        provides convient way to bind socket's source IP to one of
        the multiple IP's available on computer.

PR:             ports/50147
Submitted by:   Gaspar Chilingarov <nm@web.am>

Number of commits found: 13