Ticket #19870: Portfile

File Portfile, 1.9 KB (added by cbellot@…, 15 years ago)
Line 
1PortSystem              1.0
2
3name                    calife
4version                 3.0
5categories              security
6maintainers             sky.fr:cbellot
7description             Provides super user privileges to specific users
8long_description        Calife is a small utility close to sudo(8) but \
9                        lightweight and it preserves the caller's environment \
10                        (shell aliases, PATH and so on).
11homepage                http://dev.keltia.net/projects/calife
12master_sites            http://dev.keltia.net/attachments/download/4
13platforms               darwin
14
15distname                ${name}-${version}
16use_bzip2               yes
17checksums               md5 22cfd93b626cdf354483777e4e03d109
18use_configure           yes
19
20configure.args-append   --with-etcdir=${prefix}/etc
21
22destroot {
23  xinstall -m 755 -d ${destroot}${prefix}/bin
24  xinstall -m 755 -d ${destroot}${prefix}/share/calife
25  xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
26  xinstall -m 755 -d ${destroot}${prefix}/share/man/man5
27
28  xinstall -m 4755 ${worksrcpath}/calife \
29                        ${destroot}${prefix}/bin/calife
30  xinstall -m 444 ${worksrcpath}/pam/macosx \
31                        ${destroot}${prefix}/share/calife/pam.d-calife
32  xinstall -m 600 ${worksrcpath}/calife.auth-dist \
33                        ${destroot}${prefix}/etc
34  xinstall -m 644 ${worksrcpath}/calife.1 \
35                        ${destroot}${prefix}/share/man/man1
36  xinstall -m 644 ${worksrcpath}/calife.auth.5 \
37                        ${destroot}${prefix}/share/man/man5
38}
39
40post-destroot {
41  ui_msg "--------------------------------------------------------------------"
42  ui_msg "To use calife, you will have to MANUALLY :                          "
43  ui_msg " - copy ${prefix}/share/calife/pam.d-calife as /etc/pam.d/calife    "
44  ui_msg "   with this command :                                              "
45  ui_msg "     sudo cp ${prefix}/share/calife/pam.d-calife /etc/pam.d/calife  "
46  ui_msg " - edit ${prefix}/etc/calife-auth and give adequate permissions     "
47  ui_msg "   (see man calife-auth or ${prefix}/etc/calife-auth-dist for syntax"
48  ui_msg "--------------------------------------------------------------------"
49}
50