source: trunk/dports/security/scponly/Portfile

Last change on this file was 104597, checked in by jmr@…, 4 years ago

scponly: needs gnu89 inline semantics

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 104597 2013-03-29 15:23:59Z ryandesign@macports.org $
2
3PortSystem                      1.0
4
5name                            scponly
6version                         4.6
7categories                      security net sysutils
8license                         BSD
9maintainers                     nomaintainer
10description                     Limited shell which wraps scp/sftp
11long_description \
12        "scponly" is an alternative 'shell' (of sorts) for system administrators \
13        who would like to provide access to remote users to both read and write \
14        local files without providing any remote execution priviledges.  \
15        Functionally, it is best described as a wrapper to the mostly trusted \
16        suite of ssh applications.
17
18platforms                       darwin
19
20homepage                        http://www.sublimation.org/scponly/
21master_sites            ${homepage}
22extract.suffix          .tgz
23
24checksums                       md5 0425cb868cadd026851238452f1db907 \
25                                        sha1 d967ba69262c7675b9a0255884cf86c601d0d619
26
27depends_lib                     bin:ssh:openssh
28
29configure.args          --mandir=${prefix}/share/man
30configure.cflags-append -std=gnu89
31
32variant noWildcards {
33        configure.args-append   --disable-wildcards
34}
35
36variant noWinscpCompat {
37        configure.args-append   --disable-winscp-compat
38}
39
40variant rsyncCompat {
41        depends_run                             bin:rsync:rsync
42        configure.args-append   --enable-rsync-compat
43}
44
45variant chroot {
46        configure.args-append   --enable-chrooted-binary
47}
48
49variant scpCompat description "Enable scp compatibility" {
50        configure.args-append   --enable-scp-compat
51}
52
53post-destroot {
54        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
55        xinstall -m 644 -W ${worksrcpath} AUTHOR BUILDING-JAILS.TXT CHANGELOG \
56                CONTRIB COPYING INSTALL README TODO \
57                ${destroot}${prefix}/share/doc/${name}
58}
59
60post-install {
61        ui_msg "For proper functionality, you need to add ${prefix}/bin/scponly"
62        ui_msg "to /etc/shells.  Be sure to also check the documentation"
63        ui_msg "in ${prefix}/share/doc/${name}"
64}
Note: See TracBrowser for help on using the repository browser.