1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name oinkmaster |
---|
7 | version 2.0 |
---|
8 | categories net |
---|
9 | platforms darwin |
---|
10 | maintainers gmail.com:mschamschula openmaintainer |
---|
11 | license BSD |
---|
12 | supported_archs noarch |
---|
13 | |
---|
14 | description Oinkmaster is a script that will help you update and manage your \ |
---|
15 | Snort rules. |
---|
16 | |
---|
17 | long_description ${description} |
---|
18 | |
---|
19 | homepage http://oinkmaster.sourceforge.net/ |
---|
20 | master_sites sourceforge:project/oinkmaster/oinkmaster/${version}/ |
---|
21 | |
---|
22 | checksums rmd160 a3292cfc2e6b175008a7172be5809ca6e2fc85b7 \ |
---|
23 | sha256 3d52f0426aa7c81b122cef22b80d708d8bb8337537e48754a065804f46c46162 |
---|
24 | |
---|
25 | patchfiles patch-oinkmaster.1.diff \ |
---|
26 | patch-oinkmaster.pl.diff |
---|
27 | |
---|
28 | post-patch { |
---|
29 | reinplace -W ${worksrcpath} "s|@PREFIX@|${prefix}|g" oinkmaster.1 oinkmaster.pl |
---|
30 | } |
---|
31 | |
---|
32 | use_configure no |
---|
33 | |
---|
34 | build {} |
---|
35 | |
---|
36 | destroot { |
---|
37 | xinstall -m 755 ${worksrcpath}/oinkmaster.pl ${destroot}${prefix}/bin |
---|
38 | xinstall -m 755 ${worksrcpath}/oinkmaster.conf ${destroot}${prefix}/etc/oinkmaster.conf.sample |
---|
39 | xinstall -m 755 ${worksrcpath}/oinkmaster.1 ${destroot}${prefix}/share/man/man1 |
---|
40 | |
---|
41 | set docdir ${prefix}/share/doc/${subport} |
---|
42 | xinstall -d ${destroot}${docdir} |
---|
43 | xinstall -m 644 -W ${worksrcpath} \ |
---|
44 | ChangeLog \ |
---|
45 | FAQ \ |
---|
46 | LICENSE \ |
---|
47 | README \ |
---|
48 | README.templates \ |
---|
49 | ${destroot}${docdir} |
---|
50 | } |
---|
51 | |
---|
52 | post-activate { |
---|
53 | if {![file exists ${prefix}/etc/oinkmaster.conf]} { |
---|
54 | copy ${prefix}/etc/oinkmaster.conf.sample ${prefix}/etc/oinkmaster.conf |
---|
55 | } |
---|
56 | } |
---|