Add new package: vsftpd (#18317)

This commit is contained in:
darmac 2020-08-29 11:55:44 +08:00 committed by GitHub
parent 0eeed1f7f7
commit b799b983bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,29 @@
# Copyright 2013-2020 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 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'))