1 | PortSystem 1.0 |
---|
2 | |
---|
3 | name calife |
---|
4 | version 3.0 |
---|
5 | categories security |
---|
6 | maintainers sky.fr:cbellot |
---|
7 | description Provides super user privileges to specific users |
---|
8 | long_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). |
---|
11 | homepage http://dev.keltia.net/projects/calife |
---|
12 | master_sites http://dev.keltia.net/attachments/download/4 |
---|
13 | platforms darwin |
---|
14 | |
---|
15 | distname ${name}-${version} |
---|
16 | use_bzip2 yes |
---|
17 | checksums md5 22cfd93b626cdf354483777e4e03d109 |
---|
18 | use_configure yes |
---|
19 | |
---|
20 | configure.args-append --with-etcdir=${prefix}/etc |
---|
21 | |
---|
22 | destroot { |
---|
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 | |
---|
40 | post-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 | |
---|