source: trunk/dports/mail/uagen/Portfile

Last change on this file was 94979, checked in by mww@…, 5 years ago

uagen: add license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 94979 2012-07-03 07:41:14Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                uagen
6version             1.0.7
7revision            1
8categories          mail
9license             BSD
10platforms           darwin
11maintainers         nomaintainer
12description         A Firefox-User-Agent generator for Privoxy and Mozilla \
13                    browsers
14long_description    uagen generates a fake Firefox User-Agent and writes it \
15                    into a Privoxy action file as parameter for Privoxy's \
16                    hide-user-agent action. Operating system, architecture, \
17                    platform, language and build date are randomized. \
18                    The generated language is also used as parameter for the \
19                    hide-accept-language action which is understood by \
20                    Privoxy since version 3.0.5 beta. Additionally the \
21                    User-Agent can be written into prefs.js files which are \
22                    used by many Mozilla browsers.
23
24homepage            http://www.fabiankeil.de/sourcecode/uagen/
25master_sites        ${homepage}
26checksums           md5 264afeb70c91c0728cb9c807205dc819 \
27                    sha1 875440c42b63f34f46bc773e7ed88556f5b3e0e5 \
28                    rmd160 3a058c05c455c038b60f0fe43d29a9a617e45f82
29# Unversioned download!
30distname            ${name}
31
32# Copy the fetched uagen.pl script to ${worksrcpath}. Drop the extension so it
33# can be installed with xinstall in destroot.
34extract.suffix      .pl
35extract.mkdir       yes
36extract {
37    copy ${distpath}/${distfiles} ${worksrcpath}/uagen
38}
39
40use_configure       no
41
42build {
43    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/uagen
44    # Use paths in ${prefix} for uagen.
45    reinplace -E "s|(/var/log/uagen.log)|${prefix}\\1|" \
46        ${worksrcpath}/uagen
47    reinplace -E "s|(/etc/privoxy/user-agent.action)|${prefix}\\1|" \
48        ${worksrcpath}/uagen
49}
50
51destroot {
52    xinstall ${worksrcpath}/uagen ${destroot}${prefix}/bin
53}
54
55universal_variant   no
56
57livecheck.type      regex
58livecheck.url       ${master_sites}uagen.pl
59livecheck.regex     "'uagen (\\d+(?:\\.\\d+)*)'"
Note: See TracBrowser for help on using the repository browser.