Ticket #48977: Portfile.2

File Portfile.2, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 9 years ago)
Line 
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
4PortSystem          1.0
5
6name                oinkmaster
7version             2.0
8categories          net
9platforms           darwin
10maintainers         gmail.com:mschamschula openmaintainer
11license             BSD
12supported_archs     noarch
13
14description         Oinkmaster is a script that will help you update and manage your \
15                    Snort rules.
16
17long_description    ${description}
18
19homepage            http://oinkmaster.sourceforge.net/
20master_sites        sourceforge:project/oinkmaster/oinkmaster/${version}/
21
22checksums           rmd160  a3292cfc2e6b175008a7172be5809ca6e2fc85b7 \
23                    sha256  3d52f0426aa7c81b122cef22b80d708d8bb8337537e48754a065804f46c46162
24
25patchfiles          patch-oinkmaster.1.diff \
26                    patch-oinkmaster.pl.diff
27
28post-patch {
29    reinplace -W ${worksrcpath} "s|@PREFIX@|${prefix}|g" oinkmaster.1 oinkmaster.pl
30}
31
32use_configure       no
33
34build               {}
35
36destroot {
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
52post-activate {
53    if {![file exists ${prefix}/etc/oinkmaster.conf]} {
54        copy ${prefix}/etc/oinkmaster.conf.sample ${prefix}/etc/oinkmaster.conf
55    }
56}