add missing rdep to websockify on py-numpy, and build rebind.so
noted by jca@
This commit is contained in:
parent
a0cbe4c87b
commit
9202da341e
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2015/12/18 13:18:39 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2015/12/22 14:41:52 sthen Exp $
|
||||
|
||||
COMMENT= WebSocket to TCP proxy
|
||||
|
||||
MODPY_EGG_VERSION= 0.7.0
|
||||
REVISION= 0
|
||||
DISTNAME= websockify-${MODPY_EGG_VERSION}
|
||||
|
||||
CATEGORIES= net
|
||||
@ -18,12 +19,18 @@ GH_TAGNAME= v${MODPY_EGG_VERSION}
|
||||
|
||||
MODULES= lang/python
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
RUN_DEPENDS= math/py-numpy
|
||||
TEST_DEPENDS= devel/py-nose \
|
||||
devel/py-mox \
|
||||
${BUILD_PKGPATH}
|
||||
|
||||
post-build:
|
||||
cd ${WRKSRC}; env ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/websockify.1 ${PREFIX}/man/man1/
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/websockify
|
||||
${INSTALL_DATA} ${WRKSRC}/rebind.so ${PREFIX}/lib/websockify/
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC}/tests; nosetests
|
||||
|
12
net/websockify/patches/patch-Makefile
Normal file
12
net/websockify/patches/patch-Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1 2015/12/22 14:41:52 sthen Exp $
|
||||
--- Makefile.orig Tue Dec 22 14:35:28 2015
|
||||
+++ Makefile Tue Dec 22 14:35:44 2015
|
||||
@@ -4,7 +4,7 @@ CFLAGS += -fPIC
|
||||
all: $(TARGETS)
|
||||
|
||||
rebind.so: rebind.o
|
||||
- $(CC) $(LDFLAGS) $^ -shared -fPIC -ldl -o $@
|
||||
+ $(CC) $(LDFLAGS) $? -shared -fPIC -o $@
|
||||
|
||||
clean:
|
||||
rm -f rebind.o rebind.so
|
11
net/websockify/patches/patch-rebind_c
Normal file
11
net/websockify/patches/patch-rebind_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-rebind_c,v 1.1 2015/12/22 14:41:52 sthen Exp $
|
||||
--- rebind.c.orig Tue Dec 22 14:35:28 2015
|
||||
+++ rebind.c Tue Dec 22 14:35:37 2015
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <dlfcn.h>
|
||||
|
||||
#include <string.h>
|
||||
+#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2015/12/18 13:18:39 sthen Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2015/12/22 14:41:52 sthen Exp $
|
||||
bin/websockify
|
||||
lib/python${MODPY_VERSION}/site-packages/websockify/
|
||||
lib/python${MODPY_VERSION}/site-packages/websockify-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
@ -19,6 +19,8 @@ lib/python${MODPY_VERSION}/site-packages/websockify/websocket.py
|
||||
lib/python${MODPY_VERSION}/site-packages/websockify/websocket.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/websockify/websocketproxy.py
|
||||
lib/python${MODPY_VERSION}/site-packages/websockify/websocketproxy.pyc
|
||||
lib/websockify/
|
||||
lib/websockify/rebind.so
|
||||
@man man/man1/websockify.1
|
||||
share/websockify/
|
||||
share/websockify/include/
|
||||
|
Loading…
x
Reference in New Issue
Block a user