1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name courier-authlib |
---|
6 | version 0.60.2 |
---|
7 | categories security mail |
---|
8 | platforms darwin |
---|
9 | maintainers yahoo.com:compconsultant |
---|
10 | description Courier Authentication Library is a generic authentication API |
---|
11 | long_description ${description} |
---|
12 | |
---|
13 | homepage http://www.courier-mta.org/authlib/ |
---|
14 | master_sites sourceforge:courier |
---|
15 | checksums md5 dd972318b77efd0d04dbcb4a6b140bbe \ |
---|
16 | sha1 cd5969075de212ecfb406ffb1ac974ea939ddcc0 \ |
---|
17 | rmd160 bdf6d68b7b6a5c6d13079477d83312f98dd7bd31 |
---|
18 | use_bzip2 yes |
---|
19 | |
---|
20 | depends_lib port:db44 |
---|
21 | |
---|
22 | configure.args --prefix=${prefix} \ |
---|
23 | --mandir=${prefix}/share/man \ |
---|
24 | --with-authdaemonvar=${prefix}/var/run/${name} \ |
---|
25 | --without-stdheaderdir \ |
---|
26 | -C |
---|
27 | configure.cflags-append -I${prefix}/include/db44 |
---|
28 | configure.ldflags-append -L${prefix}/lib/db44 |
---|
29 | |
---|
30 | destroot.keepdirs ${destroot}/${prefix}/var/run/${name} |
---|
31 | |
---|
32 | pre-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 | |
---|
37 | post-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 | |
---|
48 | startupitem.create yes |
---|
49 | startupitem.start "${prefix}/sbin/authdaemond start" |
---|
50 | startupitem.stop "${prefix}/sbin/authdaemond stop" |
---|
51 | startupitem.restart "${prefix}/sbin/authdaemond restart" |
---|
52 | startupitem.pidfile clean ${prefix}/var/run/${name}/pid |
---|
53 | |
---|
54 | platform darwin 8 { |
---|
55 | configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4 |
---|
56 | } |
---|
57 | |
---|
58 | platform darwin 9 { |
---|
59 | configure.env-append MACOSX_DEPLOYMENT_TARGET=10.5 |
---|
60 | } |
---|
61 | |
---|
62 | livecheck.regex authlib (\\d+\\.\\d+\\.\\d+) released |
---|