summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/vsftpd/package.py
blob: 6d7cf5d680f2cc40fdbee10ed68a7af87dbe2416 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Vsftpd(MakefilePackage):
    """vsftpd is a GPL licensed FTP server for UNIX systems, including
    Linux."""

    homepage = "https://security.appspot.com/vsftpd.html"
    url      = "https://security.appspot.com/downloads/vsftpd-3.0.3.tar.gz"

    version('3.0.3', sha256='9d4d2bf6e6e2884852ba4e69e157a2cecd68c5a7635d66a3a8cf8d898c955ef7')
    version('3.0.2', sha256='be46f0e2c5528fe021fafc8dab1ecfea0c1f183063a06977f8537fcd0b195e56')
    version('3.0.1', sha256='65487a9fccc0ae566df5999a84448a9ccb57b556b7643ffd345540299487784c')

    depends_on('libcap')

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        mkdirp(prefix.man.man5)
        mkdirp(prefix.man.man8)
        install('vsftpd', prefix.bin)
        install('vsftpd.conf.5', prefix.man.man5)
        install('vsftpd.8', prefix.man.man8)
        install_tree('xinetd.d', join_path(prefix, 'xinetd.d'))