summaryrefslogtreecommitdiff
path: root/net/scapy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/scapy/Makefile')
-rw-r--r--net/scapy/Makefile30
1 files changed, 22 insertions, 8 deletions
diff --git a/net/scapy/Makefile b/net/scapy/Makefile
index e52eb651e03..a9b90354e10 100644
--- a/net/scapy/Makefile
+++ b/net/scapy/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2006/03/04 21:30:24 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2007/01/03 15:02:51 adrianp Exp $
#
-DISTNAME= scapy-1.0.0
-PKGREVISION= 1
+DISTNAME= scapy-1.0.5
CATEGORIES= net
MASTER_SITES= http://www.secdev.org/projects/scapy/files/
@@ -10,14 +9,29 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.secdev.org/projects/scapy/
COMMENT= Interactive packet manipulation program
-NO_BUILD= yes
-PYTHON_VERSIONS_ACCEPTED= 23 24
-PYTHON_PATCH_SCRIPTS= scapy.py
-MANCOMPRESSED= yes
+NO_BUILD= yes
+PYTHON_VERSIONS_ACCEPTED= 24
+PYTHON_PATCH_SCRIPTS= scapy.py
+
+.include "options.mk"
+
+CONF_FILES= ${PREFIX}/share/examples/scapy/ethertypes \
+ ${PKG_SYSCONFDIR}/ethertypes
+
+SUBST_CLASSES+= config
+SUBST_STAGE.config= post-patch
+SUBST_FILES.config= scapy.py
+SUBST_SED.config= -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
+SUBST_MESSAGE.config= Fixing paths.
+
+post-extract:
+ ${CP} ${FILESDIR}/ethertypes ${WRKSRC}
do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scapy
+ ${INSTALL_DATA} ${WRKSRC}/ethertypes ${PREFIX}/share/examples/scapy/
${INSTALL_SCRIPT} ${WRKSRC}/scapy.py ${PREFIX}/bin/scapy
- ${INSTALL_MAN} ${WRKSRC}/scapy.1.gz ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/scapy.1 ${PREFIX}/${PKGMANDIR}/man1
.include "../../lang/python/application.mk"
.include "../../net/py-libpcap/buildlink3.mk"