1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

Build libdnet' Python module in a slave port.

(needed for a to-be-released soon port)

Since I'm there, add SHA256.

Approved by:	Jonatan B <onatan (at) gmail.com> (maintainer)
This commit is contained in:
Thierry Thomas 2005-11-22 21:55:30 +00:00
parent 12e9ea7565
commit 0f96567711
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=149108
5 changed files with 59 additions and 29 deletions

View File

@ -597,6 +597,7 @@
SUBDIR += py-kenosis SUBDIR += py-kenosis
SUBDIR += py-kenosis-bittorrent SUBDIR += py-kenosis-bittorrent
SUBDIR += py-ldap2 SUBDIR += py-ldap2
SUBDIR += py-libdnet
SUBDIR += py-libnet SUBDIR += py-libnet
SUBDIR += py-medusa SUBDIR += py-medusa
SUBDIR += py-mp-random SUBDIR += py-mp-random

View File

@ -10,32 +10,46 @@ PORTVERSION= 1.10
CATEGORIES= net CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}
.if defined(BUILD_PYTHON_MODULE)
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
.endif
MAINTAINER= onatan@gmail.com MAINTAINER= onatan@gmail.com
COMMENT= A simple interface to low level networking routines COMMENT?= A simple interface to low level networking routines
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes USE_GMAKE= yes
INSTALLS_SHLIB= yes
USE_AUTOTOOLS= libtool:15 USE_AUTOTOOLS= libtool:15
.if defined(WITH_PYTHON) SLAVE_DIRS= net/py-libdnet
.if defined(BUILD_PYTHON_MODULE)
USE_PYTHON= yes USE_PYTHON= yes
CONFIGURE_ARGS+= --with-python CONFIGURE_ARGS+= --with-python
PLIST_FILES+= lib/${PYTHON_VERSION}/site-packages/dnet.so INSTALL_WRKSRC= ${BUILD_WRKSRC}/python
PLIST_FILES= %%PYTHON_SITELIBDIR%%/dnet.so
PLIST_SUB+= MASTER="@comment "
.else .else
CONFIGURE_ARGS+= --without-python CONFIGURE_ARGS+= --without-python
.endif INSTALLS_SHLIB= yes
PLIST_SUB+= MASTER=""
MAN3= dnet.3 MAN3= dnet.3
MAN8= dnet.8 MAN8= dnet.8
.endif
pre-everything:: pre-everything::
.if !defined(WITH_PYTHON) .if !defined(BUILD_PYTHON_MODULE)
@${ECHO_MSG} "===>" @${ECHO_MSG} "===>"
@${ECHO_MSG} "===> You can add python support using WITH_PYTHON," @${ECHO_MSG} "===> You can add python support with the port ${SLAVE_DIRS}."
@${ECHO_MSG} "===>" @${ECHO_MSG} "===>"
@sleep 2 @sleep 2
.endif .endif
.if defined(BUILD_PYTHON_MODULE) && defined(MAINTAINER_MODE)
test: install
${PYTHON_CMD} ${INSTALL_WRKSRC}/test.py
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,2 +1,3 @@
MD5 (libdnet-1.10.tar.gz) = 416b765e9d9961501ac85e9a366fd219 MD5 (libdnet-1.10.tar.gz) = 416b765e9d9961501ac85e9a366fd219
SHA256 (libdnet-1.10.tar.gz) = c6e2329df7556cc5004113b65d2d68740e87bbd15c5b2ef6c3fb7cde191cfe67
SIZE (libdnet-1.10.tar.gz) = 419752 SIZE (libdnet-1.10.tar.gz) = 419752

View File

@ -1,22 +1,22 @@
bin/dnet-config %%MASTER%%bin/dnet-config
sbin/dnet %%MASTER%%sbin/dnet
lib/libdnet.a %%MASTER%%lib/libdnet.a
lib/libdnet.so %%MASTER%%lib/libdnet.so
lib/libdnet.so.1 %%MASTER%%lib/libdnet.so.1
include/dnet/addr.h %%MASTER%%include/dnet/addr.h
include/dnet/arp.h %%MASTER%%include/dnet/arp.h
include/dnet/blob.h %%MASTER%%include/dnet/blob.h
include/dnet/eth.h %%MASTER%%include/dnet/eth.h
include/dnet/fw.h %%MASTER%%include/dnet/fw.h
include/dnet/icmp.h %%MASTER%%include/dnet/icmp.h
include/dnet/intf.h %%MASTER%%include/dnet/intf.h
include/dnet/ip.h %%MASTER%%include/dnet/ip.h
include/dnet/ip6.h %%MASTER%%include/dnet/ip6.h
include/dnet/os.h %%MASTER%%include/dnet/os.h
include/dnet/rand.h %%MASTER%%include/dnet/rand.h
include/dnet/route.h %%MASTER%%include/dnet/route.h
include/dnet/tcp.h %%MASTER%%include/dnet/tcp.h
include/dnet/tun.h %%MASTER%%include/dnet/tun.h
include/dnet/udp.h %%MASTER%%include/dnet/udp.h
include/dnet.h %%MASTER%%include/dnet.h
@dirrm include/dnet %%MASTER%%@dirrm include/dnet

14
net/py-libdnet/Makefile Normal file
View File

@ -0,0 +1,14 @@
# Ports collection makefile for: py-libdnet
# Date created: Nov 2, 2005
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
COMMENT= Python module for libdnet
MASTERDIR= ${.CURDIR}/../libdnet
BUILD_PYTHON_MODULE= yes
.include "${MASTERDIR}/Makefile"