source: trunk/dports/net/arpwatch/Portfile

Last change on this file was 124569, checked in by jmr@…, 3 years ago

arpwatch: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 124569 2014-08-25 22:44:39Z ryandesign@macports.org $
2
3PortSystem        1.0
4
5name              arpwatch
6version           2.1a15
7revision          2
8categories        net
9license           BSD
10platforms         darwin
11maintainers       wohner.eu:normen
12
13description       Monitor ARP & RARP requests
14long_description  Arpwatch monitors ethernet activity and maintains a \
15                  database of ethernet/ip address pairings. It also \
16                  reports certain changes via email.
17
18homepage          http://online.securityfocus.com/tools/142
19master_sites      ftp://ftp.ee.lbl.gov
20
21checksums         sha1 9dffaec0f132e5bb7aedfc840c5c67068bfbce69 \
22                  rmd160 a27ee53275dcec3cafb85eb3df2451d42ec32b0c
23
24livecheck.url     "http://www.freebsd.org/cgi/ports.cgi?query=${name}&stype=all"
25livecheck.regex   ">${name}-(.*?)<"
26livecheck.version 2.1.a15_4
27
28depends_lib       port:libpcap
29
30set sharedir ${prefix}/share/${name}-${version}
31pre-configure {
32    reinplace "s|INCLS = -I.|INCLS = -I. -I${prefix}/include|" ${worksrcpath}/Makefile.in
33    reinplace "s|LIBS = @LIBS@|LIBS = -L${prefix}/lib @LIBS@|" ${worksrcpath}/Makefile.in
34    reinplace "s|ARPDIR = .*|ARPDIR = ${prefix}/var/arpwatch|" ${worksrcpath}/Makefile.in
35
36    set ethercodes ${sharedir}/ethercodes.dat
37    reinplace "s|-DARPDIR|-DETHERCODES=\\\\\"${ethercodes}\\\\\" -DARPDIR|" \
38        ${worksrcpath}/Makefile.in
39}
40
41configure.cflags-append     "-DBIND_8_COMPAT=1"
42configure.args    --mandir=${prefix}/share/man
43
44post-configure {
45    reinplace "s|-o bin -g bin||g" ${worksrcpath}/Makefile
46    reinplace "/#define ETHERCODES .*/D" ${worksrcpath}/arpwatch.h
47}
48
49destroot.target   install install-man
50post-destroot {
51    set destsharedir ${destroot}${sharedir}
52    file mkdir ${destsharedir}
53
54    xinstall -W ${build.dir} CHANGES FILES INSTALL README arp2ethers arpfetch \
55        bihourly.sh ethercodes.dat d.awk duplicates.awk e.awk euppertolower.awk \
56        massagevendor p.awk ${destsharedir}
57}
Note: See TracBrowser for help on using the repository browser.