blob: 9fb346e2d1913bbd8f70606cf27cedad021564a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Created by: 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 specific IP address
USE_LDCONFIG= YES
NOMAN= YES
INSTALL_TARGET=
PLIST_SUB= "DOCSDIR=share/doc/${PORTNAME}"
NO_STAGE= yes
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>
|