aboutsummaryrefslogtreecommitdiff
path: root/net/socketbind/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-04-01 00:49:48 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-04-01 00:49:48 +0000
commitfd7e8698abcbdf8abb049c07acbff5238dbd54ff (patch)
tree96c15bcf8ad29fdce9dd30050b8fd4f7b7f0e5c3 /net/socketbind/Makefile
parent8b6ff144cb0e02cb0b62327698d95593831ea9f7 (diff)
downloadports-fd7e8698abcbdf8abb049c07acbff5238dbd54ff.tar.gz
ports-fd7e8698abcbdf8abb049c07acbff5238dbd54ff.zip
Notes
Diffstat (limited to 'net/socketbind/Makefile')
-rw-r--r--net/socketbind/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/net/socketbind/Makefile b/net/socketbind/Makefile
new file mode 100644
index 000000000000..6652b81aa033
--- /dev/null
+++ b/net/socketbind/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: socketbind
+# Date created: 20 Mar 2003
+# Whom: Gaspar Chilingarov <nm@web.am>
+#
+# $FreeBSD$
+#
+
+PORTNAME= socketbind
+PORTVERSION= 1
+CATEGORIES= net
+MASTER_SITES= # none
+DISTFILES= # none
+
+MAINTAINER= nm@web.am
+COMMENT= Library to bind applications on multihomed machines to specefic IP address
+
+INSTALLS_SHLIB= YES
+NOMAN= YES
+INSTALL_TARGET=
+PLIST_SUB= "DOCSDIR=share/doc/${PORTNAME}"
+
+post-extract:
+ ${MKDIR} ${WRKSRC}
+ ${CP} -R ${PATCHDIR}/ ${WRKSRC}
+
+pre-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/libsocketbind.so.1 ${PREFIX}/lib
+ ${LN} -s ${PREFIX}/lib/libsocketbind.so.1 ${PREFIX}/lib/libsocketbind.so
+ ${MKDIR} ${DOCSDIR}
+ ${ECHO} "This library allows to bind arbitrary program, " >> ${DOCSDIR}/README
+ ${ECHO} "which is dynamically linked to libc.so." >> ${DOCSDIR}/README
+ ${ECHO} "Load library before your program (set environment " >> ${DOCSDIR}/README
+ ${ECHO} "variable LD_PRELOAD=${PREFIX}/lib/libsocketbind.so.1) " >> ${DOCSDIR}/README
+ ${ECHO} "and set address to bind to (set environment variable " >> ${DOCSDIR}/README
+ ${ECHO} "BINDTO=ip address to bind)" >> ${DOCSDIR}/README
+
+.include <bsd.port.mk>