openbsd-ports/net/scapy6/Makefile
sthen f5e54435fd fix dependency; the actual package uses the normal system Python
version but it pulled in python-bz2 from 2.4 as a RUN_DEPENDS.

ok ajacoutot
2008-03-17 20:59:47 +00:00

37 lines
812 B
Makefile

# $OpenBSD: Makefile,v 1.4 2008/03/17 20:59:47 sthen Exp $
COMMENT= scapy extension to handle IPv6
DISTNAME= scapy6-20070426
PKGNAME= ${DISTNAME}p1
CATEGORIES= net
HOMEPAGE= http://namabiiru.hongo.wide.ad.jp/scapy6
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://diehard.n-r-g.com/files/
MODULES= lang/python
RUN_DEPENDS= :scapy->=1.1:net/scapy \
:python-bz2-*:lang/python/${MODPY_VERSION},-bz2
PKG_ARCH= *
NO_REGRESS= Yes
do-build:
perl -p -i -e "s,^(\#\S+ \S+ )python\$$,#!${MODPY_BIN}," \
${WRKSRC}/*.py
do-install:
${INSTALL_DATA_DIR} ${WRKINST}${MODPY_SITEPKG}
${INSTALL_SCRIPT} ${WRKSRC}/scapy6.py ${WRKINST}${MODPY_SITEPKG}
ln -s ${MODPY_SITEPKG}/scapy6.py ${PREFIX}/bin/scapy6
.include <bsd.port.mk>