---
name: vsftpd-ssl
version: 3.0.2
origin: ftp/vsftpd
comment: A FTP daemon that aims to be "very secure"
arch: freebsd:9:x86:64
www: https://security.appspot.com/vsftpd.html
maintainer: dinoex@FreeBSD.org
prefix: /usr/local
licenselogic: single
licenses: [GPLv2]
flatsize: 330912
desc: "A FTP daemon that aims to be \"very secure\"\n\nFrom the README file:\n\n\tAuthor:
  Chris Evans\n\tContact: scarybeasts@gmail.com\n\n\tvsftpd is an FTP server, or daemon.
  The \"vs\" stands for Very\n\tSecure.  Obviously this is not a guarantee, but a
  reflection\n\tthat I have written the entire codebase with security in mind,\n\tand
  carefully designed the program to be resilient to attack.\n\nLICENSE: GPL2 or later
  with execption to link with OpenSSL\n\nWWW: https://security.appspot.com/vsftpd.html\n"
categories: [ipv6, ftp]
options: {VSFTPD_SSL: on, PIDFILE: off, STACKPROTECTOR: on}
files:
  /usr/local/etc/rc.d/vsftpd: 9833acb9ef31a5e340b0f80767006e6c812028893287eab53a405b51ef7c28ae
  /usr/local/etc/vsftpd.conf.dist: 47a0b66d09e7f6fe13a4d2f4661ea1a0d1537e9cbb315b454df261a024f8e045
  /usr/local/libexec/vsftpd: d56efe429e749d6cfce54129101a74f8b782a97e677e7a334c6def1e2dd67c01
  /usr/local/man/man5/vsftpd.conf.5.gz: c812d05bbb6811801fa6571ef104d396ef4a02b60e72b7156842d94b12318815
  /usr/local/man/man8/vsftpd.8.gz: 9fd8ef1fd1d4aef68cd77261b61dce5c22ab9e247bc2196b612b637db9acde43
  /usr/local/share/doc/vsftpd/AUDIT: 7dedf833fb8a3bcfa96b48d309f3892b3ae3340d271e518ecd998750fe11a0b7
  /usr/local/share/doc/vsftpd/BENCHMARKS: 854498521b8570133d89b025c964c3ce464afac46b073731c3dd4771621a6e67
  /usr/local/share/doc/vsftpd/BUGS: 4690662cf0bbf289900b0ddb4c2e0cfc555dda870633440d852f7d4b1b783d61
  /usr/local/share/doc/vsftpd/Changelog: 8b16704296286e26b9aedb157754e71f4770a925f2ab04bc76a295b09b44e186
  /usr/local/share/doc/vsftpd/EXAMPLE/INTERNET_SITE/README: 8b12b05b7d664e344d4d59a26c3f6b13c645f1b53ce6045780791350b278606b
  /usr/local/share/doc/vsftpd/EXAMPLE/INTERNET_SITE/vsftpd.conf: 4326d89a39bea92a0dbcaaee0f658d7bf810c8f322688b6b1303f3b357a0971f
  /usr/local/share/doc/vsftpd/EXAMPLE/INTERNET_SITE/vsftpd.xinetd: fb26bd0055e5875fb2d1083326b272685de7b017da65000a21f99081c1a30015
  /usr/local/share/doc/vsftpd/EXAMPLE/INTERNET_SITE_NOINETD/README: 6ed67ebc32ca688633732308ba23c7601a463df9a8f6d4d349cf1e0fc770c8f5
  /usr/local/share/doc/vsftpd/EXAMPLE/INTERNET_SITE_NOINETD/vsftpd.conf: ee162751cf714e1ab6b5894fd08b0a95e788a462311cf7da47988ee5fa55aa62
  /usr/local/share/doc/vsftpd/EXAMPLE/PER_IP_CONFIG/README: 47ffd29f468e22eb304a368bb987510fd44f0486894de293dc7dbd3d48e78f5c
  /usr/local/share/doc/vsftpd/EXAMPLE/PER_IP_CONFIG/hosts.allow: 4935bc943f442e358d7a9c81f4ce2ae1ec098543e726868d423eac55beb91b7b
  /usr/local/share/doc/vsftpd/EXAMPLE/README: 87274257549cc60d5fd2d873326b22eb89a4d8199bb5841fed3bf6c82b5494f2
  /usr/local/share/doc/vsftpd/EXAMPLE/VIRTUAL_HOSTS/README: 519b63d63c4f1517a1e7cf3373f19df4c8a697d1823814f425340bbebf5fa8f1
  /usr/local/share/doc/vsftpd/EXAMPLE/VIRTUAL_USERS/README: 7dad436bf918a2f81a540847a9a46946370c2d796ffd5bb5d98cb8a69b2e926e
  /usr/local/share/doc/vsftpd/EXAMPLE/VIRTUAL_USERS/logins.txt: 181e70be2fcc7d0dbf34f8626e2e026b10ee91108f84dea93670caac57b394c2
  /usr/local/share/doc/vsftpd/EXAMPLE/VIRTUAL_USERS/vsftpd.conf: 182acb8b70a360dda945df11a1598cf493774f017db569a57f07447119bb0713
  /usr/local/share/doc/vsftpd/EXAMPLE/VIRTUAL_USERS/vsftpd.pam: f725b5fbca3b482fc4a7147e6ed031b7482679cdb81dbd9045bed8baa33cbf79
  /usr/local/share/doc/vsftpd/EXAMPLE/VIRTUAL_USERS_2/README: 60b8129dd74b2e4779f1ac8344127e47a7847584b8cd79eb36a055208ca553e3
  /usr/local/share/doc/vsftpd/FAQ: 517941f8d5bbb5970cedbef05d0593cada2185557053b9574c11524841d80749
  /usr/local/share/doc/vsftpd/INSTALL: 33d73bbc95be0b9dc1a050f1945e92b6819ae4b4afc718b4d83d53ea9f8db5ee
  /usr/local/share/doc/vsftpd/LICENSE: 2225485a2ca5e00cafd96ecb4336cfd34dc6064ec16f560c1d7b26d213de6e81
  /usr/local/share/doc/vsftpd/README: 031f0293c36a30be7b1e004656e02412121017ff43605a632ea98f4f03596086
  /usr/local/share/doc/vsftpd/README.security: 1f0b372b2f63fc08f5e195f0d1e958dfed03c57d8868a3f90317bcb312585228
  /usr/local/share/doc/vsftpd/README.ssl: 7d477aa0eea632d8518302a0b840dc9848b22b69f2be54f84bb17430f11b7d03
  /usr/local/share/doc/vsftpd/REFS: 7dfcba66640a14732c40b934923599106625bd4ba6b1d2fc360ee2021a3799e6
  /usr/local/share/doc/vsftpd/REWARD: 9cf0afbf0552928f37cd4b068a2cc039f4200175d65dcead6701de158a17c957
  /usr/local/share/doc/vsftpd/SECURITY/DESIGN: 97d0cab32f477176059b7799b3f92c90136440aa84ee7c5005f0d964a311df66
  /usr/local/share/doc/vsftpd/SECURITY/IMPLEMENTATION: 595fd71183207e0297b8ea5d1f0f2ad1681e16c1df530ac11844e7fa010e7d54
  /usr/local/share/doc/vsftpd/SECURITY/OVERVIEW: 90c4a70c9df7c3b090e7a1822f3bb0cdff5a559a4cdd58f98c9536f23c5f43ba
  /usr/local/share/doc/vsftpd/SECURITY/TRUST: 47a2ac8924cec7a864d3482f2fdb9bbef552c8c0123b8647b6ccbfc2d3cf717c
  /usr/local/share/doc/vsftpd/SIZE: 0662397b33b84f9827d238703e7ac36fa9f129fa227640956bbf87e0233cdd82
  /usr/local/share/doc/vsftpd/SPEED: 1ce6627358df144f933424c8b81c40d70729bed51f634c6205ac6b8da43eec41
  /usr/local/share/doc/vsftpd/TODO: 3bc084f62d987705c810dc2512fd4eec4269ae5e1373c19b9b21e5e089f31e17
  /usr/local/share/doc/vsftpd/TUNING: 3f54cac8362cd97c646c8e034e4676c2a053660b033e2011fe24297e93e0a74e
  /usr/local/share/licenses/vsftpd-ssl-3.0.2/GPLv2: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643
  /usr/local/share/licenses/vsftpd-ssl-3.0.2/LICENSE: 7e1394d03c5f275a402fe721ff1d1349449ea8602b52af954c76463afcdb6ef7
  /usr/local/share/licenses/vsftpd-ssl-3.0.2/catalog.mk: ebc718769094f2645dc880c77871541bb70ed318b6ac4af3d9f701862492db0e
directories:
  /var/ftp/: y
  /usr/local/share/vsftpd/empty/: n
  /usr/local/share/vsftpd/: n
  /usr/local/share/licenses/vsftpd-ssl-3.0.2/: n
  /usr/local/share/licenses/: y
  /usr/local/share/doc/vsftpd/SECURITY/: n
  /usr/local/share/doc/vsftpd/EXAMPLE/VIRTUAL_USERS_2/: n
  /usr/local/share/doc/vsftpd/EXAMPLE/VIRTUAL_USERS/: n
  /usr/local/share/doc/vsftpd/EXAMPLE/VIRTUAL_HOSTS/: n
  /usr/local/share/doc/vsftpd/EXAMPLE/PER_IP_CONFIG/: n
  /usr/local/share/doc/vsftpd/EXAMPLE/INTERNET_SITE_NOINETD/: n
  /usr/local/share/doc/vsftpd/EXAMPLE/INTERNET_SITE/: n
  /usr/local/share/doc/vsftpd/EXAMPLE/: n
  /usr/local/share/doc/vsftpd/: n
scripts:
  post-install: |
    mkdir -p /usr/local/share/vsftpd/empty
    if [ ! -f /usr/local/etc/vsftpd.conf ]; then cp /usr/local/etc/vsftpd.conf.dist /usr/local/etc/vsftpd.conf; fi
    if [ ! -d /var/ftp ]; then mkdir /var/ftp ; fi
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    if diff -q /usr/local/etc/vsftpd.conf /usr/local/etc/vsftpd.conf.dist; then rm /usr/local/etc/vsftpd.conf; fi
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
  install: "#!/bin/sh\n# $FreeBSD: ports/ftp/vsftpd/pkg-install,v 1.6 2012/11/17 05:57:31
    svnexp Exp $\n#\n\nif [ \"$2\" != \"PRE-INSTALL\" ]; then\n    exit 0\nfi\n\nif
    ! pw groupshow operator >/dev/null; then\n\tif pw groupadd operator 5; then\n\t\techo
    \"Added group operator for vsftpd\"\n\telse\n\t\techo \"Failed to add group operator
    as gid 5\" >&2\n\t\texit 1\n\tfi\nfi\n\nif ! pw usershow ftp >/dev/null; then\n\tif
    pw useradd ftp -g operator -u 14 -h - -d /var/ftp -s /nonexistent -c \"Anonymous
    Ftp\"; then\n\t\techo \"Added user ftp for vsftpd\"\n\telse\n\t\techo \"Failed
    to add user ftp as gid 14\" >&2\n\t\texit 1\n\tfi\nfi\n\n# uid=14(ftp) gid=5(operator)
    groups=5(operator)\nview=\"$(id ftp)\"\nview=\"${view%25%25 *}\"\nif test \"${view}\"
    = \"uid=14(ftp)\"; then\n\texit 0\nfi\n\necho \"User ftp should have uid 14\";
    >&2\nexit 1\n# eof\n"
  deinstall: |
    #!/bin/sh
    # $FreeBSD: ports/ftp/vsftpd/pkg-deinstall,v 1.3 2012/11/17 05:57:31 svnexp Exp $
    #

    if [ "$2" != "POST-DEINSTALL" ]; then
        exit 0
    fi

    USER=ftp

    if pw usershow "${USER}" 2>/dev/null 1>&2; then
            echo "To delete FTP user permanently, use 'pw userdel ${USER}'"
            echo "Don't do this if you're using FreeBSD's anonymous FTP server"
    fi

    exit 0
