aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-11-20 06:06:30 +0800
committerknu <knu@FreeBSD.org>2000-11-20 06:06:30 +0800
commit7cc1c1e702d774920e49b59b4a5f67ec8c14da29 (patch)
treeddd9322c8581c9b3fd4c964ea3383397d3a2b7d5 /net
parente25d38de68d072aba97e29e98fc431db7223f5e0 (diff)
downloadfreebsd-ports-gnome-7cc1c1e702d774920e49b59b4a5f67ec8c14da29.tar.gz
freebsd-ports-gnome-7cc1c1e702d774920e49b59b4a5f67ec8c14da29.tar.zst
freebsd-ports-gnome-7cc1c1e702d774920e49b59b4a5f67ec8c14da29.zip
Add ruby-pcap, Ruby interface to LBL Packet Capture library (libpcap).
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/ruby-pcap/Makefile36
-rw-r--r--net/ruby-pcap/distinfo1
-rw-r--r--net/ruby-pcap/pkg-comment1
-rw-r--r--net/ruby-pcap/pkg-descr8
-rw-r--r--net/ruby-pcap/pkg-plist40
6 files changed, 87 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 6a6b6c2d9651..0a7c8648e64f 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -232,6 +232,7 @@
SUBDIR += ruby-drb
SUBDIR += ruby-icmp
SUBDIR += ruby-ldap
+ SUBDIR += ruby-pcap
SUBDIR += ruby-snmp
SUBDIR += ruby-uri
SUBDIR += rwhois
diff --git a/net/ruby-pcap/Makefile b/net/ruby-pcap/Makefile
new file mode 100644
index 000000000000..1ec2b356fb8b
--- /dev/null
+++ b/net/ruby-pcap/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: Ruby/Pcap
+# Date created: 20 Nov 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pcap
+PORTVERSION= 0.6
+CATEGORIES= net ruby
+MASTER_SITES= http://www.goto.info.waseda.ac.jp/~fukusima/ruby/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+CONFIGURE_ARGS= --with-pcap-dir=/usr
+INSTALL_TARGET= site-install
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/pcap
+ ${CP} -R ${WRKSRC}/examples/ ${RUBY_EXAMPLESDIR}/pcap/
+ ${MKDIR} ${RUBY_DOCDIR}/pcap/ja
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${WRKSRC}/doc/* \
+ ${RUBY_DOCDIR}/pcap/
+ ${INSTALL_DATA} ${WRKSRC}/README.ja ${WRKSRC}/doc-ja/* \
+ ${RUBY_DOCDIR}/pcap/ja/
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/ruby-pcap/distinfo b/net/ruby-pcap/distinfo
new file mode 100644
index 000000000000..114154221fe3
--- /dev/null
+++ b/net/ruby-pcap/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/ruby-pcap-0.6.tar.gz) = bf8024831bfbbf0cfbf7c7ca27c1b16a
diff --git a/net/ruby-pcap/pkg-comment b/net/ruby-pcap/pkg-comment
new file mode 100644
index 000000000000..03d666251b4a
--- /dev/null
+++ b/net/ruby-pcap/pkg-comment
@@ -0,0 +1 @@
+Ruby interface to LBL Packet Capture library (libpcap)
diff --git a/net/ruby-pcap/pkg-descr b/net/ruby-pcap/pkg-descr
new file mode 100644
index 000000000000..0d2d34e0f954
--- /dev/null
+++ b/net/ruby-pcap/pkg-descr
@@ -0,0 +1,8 @@
+Ruby interface to LBL Packet Capture library (libpcap). This library
+also includes classes to access packet header fields.
+
+It is much easier to code in Ruby/Pcap than to code in C and use
+libpcap directly.
+
+Author: Masaki Fukushima <fukusima@goto.info.waseda.ac.jp>
+WWW: http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html
diff --git a/net/ruby-pcap/pkg-plist b/net/ruby-pcap/pkg-plist
new file mode 100644
index 000000000000..3eef454639fe
--- /dev/null
+++ b/net/ruby-pcap/pkg-plist
@@ -0,0 +1,40 @@
+%%RUBY_SITEARCHLIBDIR%%/pcap.so
+%%RUBY_SITELIBDIR%%/pcap_misc.rb
+%%RUBY_SITELIBDIR%%/pcaplet.rb
+%%RUBY_DOCDIR%%/pcap/Capture.html
+%%RUBY_DOCDIR%%/pcap/ChangeLog
+%%RUBY_DOCDIR%%/pcap/Dumper.html
+%%RUBY_DOCDIR%%/pcap/Filter.html
+%%RUBY_DOCDIR%%/pcap/ICMPPacket.html
+%%RUBY_DOCDIR%%/pcap/IPAddress.html
+%%RUBY_DOCDIR%%/pcap/IPPacket.html
+%%RUBY_DOCDIR%%/pcap/Packet.html
+%%RUBY_DOCDIR%%/pcap/Pcap.html
+%%RUBY_DOCDIR%%/pcap/PcapError.html
+%%RUBY_DOCDIR%%/pcap/Pcaplet.html
+%%RUBY_DOCDIR%%/pcap/README
+%%RUBY_DOCDIR%%/pcap/TCPPacket.html
+%%RUBY_DOCDIR%%/pcap/TruncatedPacket.html
+%%RUBY_DOCDIR%%/pcap/UDPPacket.html
+%%RUBY_DOCDIR%%/pcap/index.html
+%%RUBY_DOCDIR%%/pcap/ja/Capture.html
+%%RUBY_DOCDIR%%/pcap/ja/Dumper.html
+%%RUBY_DOCDIR%%/pcap/ja/Filter.html
+%%RUBY_DOCDIR%%/pcap/ja/ICMPPacket.html
+%%RUBY_DOCDIR%%/pcap/ja/IPAddress.html
+%%RUBY_DOCDIR%%/pcap/ja/IPPacket.html
+%%RUBY_DOCDIR%%/pcap/ja/Packet.html
+%%RUBY_DOCDIR%%/pcap/ja/Pcap.html
+%%RUBY_DOCDIR%%/pcap/ja/PcapError.html
+%%RUBY_DOCDIR%%/pcap/ja/Pcaplet.html
+%%RUBY_DOCDIR%%/pcap/ja/README.ja
+%%RUBY_DOCDIR%%/pcap/ja/TCPPacket.html
+%%RUBY_DOCDIR%%/pcap/ja/TruncatedPacket.html
+%%RUBY_DOCDIR%%/pcap/ja/UDPPacket.html
+%%RUBY_DOCDIR%%/pcap/ja/index.html
+%%RUBY_EXAMPLESDIR%%/pcap/httpdump.rb
+%%RUBY_EXAMPLESDIR%%/pcap/tcpdump.rb
+%%RUBY_EXAMPLESDIR%%/pcap/test.rb
+@dirrm %%RUBY_EXAMPLESDIR%%/pcap
+@dirrm %%RUBY_DOCDIR%%/pcap/ja
+@dirrm %%RUBY_DOCDIR%%/pcap