source: trunk/dports/security/checkpassword-pam/Portfile

Last change on this file was 97113, checked in by jmr@…, 5 years ago

checkpassword-pam: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 97113 2012-08-27 20:28:03Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    checkpassword-pam
6version                 0.99
7categories              security
8license                 GPL-2+
9maintainers             nomaintainer
10description             implementation of checkpassword-compatible auth program
11long_description        checkpassword-pam was written from scratch. There \
12                                        are several older packages called checkpassword-pam, \
13                                        derived from DJB's checkpassword code. This \
14                                        checkpassword-pam is more modern and \
15                                        administrator-friendly.
16homepage                http://checkpasswd-pam.sourceforge.net/
17master_sites    sourceforge:project/checkpasswd-pam/checkpasswd-pam/${version}
18
19checksums               md5 47db7b71f281115b030d4947f09f4374
20platforms               darwin
21
22patchfiles              patch-pam-support.c
23
24configure.args  --mandir='${prefix}/share/man'
25post-configure {
26        file copy -force ${filespath}/check.sh.in ${worksrcpath}/check.sh
27        reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/check.sh
28}
29
30post-destroot {
31        # Check if user is running as root
32        if {[geteuid] == 0} {
33                system "chmod 4511 ${destroot}${prefix}/bin/${name}"
34        } else {
35                ui_msg "-----------------------------------------------------------"
36                ui_msg "Note that you are not running as root, so ${name}"
37                ui_msg "cannot be installed setuid root. Therefore, it will only"
38                ui_msg "be able to be executed by root."
39                ui_msg "-----------------------------------------------------------"
40                system "chmod 0511 ${destroot}${prefix}/bin/${name}"
41        }
42        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
43        xinstall -m 0644 -W ${worksrcpath} \
44                AUTHORS COPYING INSTALL interface.html NEWS README \
45                ${destroot}${prefix}/share/doc/${name}
46        xinstall -m 0755 check.sh ${destroot}${prefix}/share/doc/${name}/check.sh
47        ui_msg "-----------------------------------------------------------"
48        ui_msg "A sample check script has been provided here:\n"
49        ui_msg "  ${prefix}/share/doc/${name}/check.sh\n"
50        ui_msg "You can use this to verify that your PAM configuration"
51        ui_msg "is correct for ${name} usage."
52        ui_msg "-----------------------------------------------------------"
53}
Note: See TracBrowser for help on using the repository browser.