# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        orgcandman pcap-mode 52780669af0ade136f84d73f21b4dbb7ab655416
name                ${github.project}.el
# version is commit date
version             2016.10.25
categories-append   net editors
maintainers         nomaintainer
platforms           any
supported_archs     noarch
license             GPL-2+
github.tarball_from archive

description         Emacs Lisp pcap file viewer
long_description    This is a major mode for viewing pcap files.

checksums           rmd160  dbc728be1359ffbb7994170684f7c10cad26f67e \
                    sha256  c3261ea7b054e1e19a8b87615e8f06ffb1d1bf8537894d2e62f0a1f1e5d4f23d \
                    size    166035

depends_lib-append  port:emacs
depends_run-append  path:bin/tshark:wireshark3

use_configure       no

build {}

destroot {
    xinstall -d ${destroot}${prefix}/share/emacs/site-lisp
    copy ${worksrcpath}/pcap-mode.el \
        ${destroot}${prefix}/share/emacs/site-lisp
}

notes "
To use this mode, put the following in your ~/.emacs.d/init.el:

(require 'pcap-mode)

To automatically handle files ending in '.pcap', add something like:

(add-to-list 'auto-mode-alist '(\"\\\\.pcap$\" . pcap-mode))
"
