Ticket #14229: Portfile

File Portfile, 1.9 KB (added by compconsultant@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name                    courier-authlib
6version                 0.60.2
7categories              security mail
8platforms               darwin
9maintainers             yahoo.com:compconsultant
10description             Courier Authentication Library is a generic authentication API
11long_description        ${description}
12
13homepage                http://www.courier-mta.org/authlib/
14master_sites    sourceforge:courier
15checksums               md5 dd972318b77efd0d04dbcb4a6b140bbe \
16                        sha1 cd5969075de212ecfb406ffb1ac974ea939ddcc0 \
17                        rmd160 bdf6d68b7b6a5c6d13079477d83312f98dd7bd31
18use_bzip2               yes
19
20depends_lib             port:db44
21
22configure.args                  --prefix=${prefix} \
23                                --mandir=${prefix}/share/man \
24                                --with-authdaemonvar=${prefix}/var/run/${name} \
25                                --without-stdheaderdir \
26                                -C
27configure.cflags-append         -I${prefix}/include/db44
28configure.ldflags-append        -L${prefix}/lib/db44
29
30destroot.keepdirs               ${destroot}/${prefix}/var/run/${name}
31
32pre-configure {
33        addgroup courier gid=2110
34        adduser courier uid=7798 gid=[existsgroup courier] realname=Courier-user home=${prefix} shell=/usr/bin/true
35}
36
37post-destroot {
38        system "cd ${destroot}${prefix}/lib/${name} && rm -f *.a *.la"
39        xinstall -d ${destroot}/${prefix}/var/run/${name}
40
41        # Copy some documentation
42        xinstall -d ${destroot}/${prefix}/share/doc/${name}
43        foreach file {README.authdebug.html README.authmysql.html README.authmysql.myownquery README.authpostgres.html README.ldap README_authlib.html} {
44                xinstall -m 644 -W ${worksrcpath} ${file} ${destroot}/${prefix}/share/doc/${name}/${file}
45        }
46}
47
48startupitem.create      yes
49startupitem.start       "${prefix}/sbin/authdaemond start"
50startupitem.stop        "${prefix}/sbin/authdaemond stop"
51startupitem.restart     "${prefix}/sbin/authdaemond restart"
52startupitem.pidfile     clean ${prefix}/var/run/${name}/pid
53
54platform darwin 8 {
55        configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4
56}
57
58platform darwin 9 {
59        configure.env-append MACOSX_DEPLOYMENT_TARGET=10.5
60}
61
62livecheck.regex         authlib (\\d+\\.\\d+\\.\\d+) released