actions.py 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def build():
  11. autotools.make('CC="%s" CFLAGS="%s -fpie" LINK="-pie -lssl" LDFLAGS="%s"' % (get.CC(),get.CFLAGS(),get.LDFLAGS()))
  12. def install():
  13. pisitools.dosbin("vsftpd")
  14. pisitools.dodir("/home/ftp")
  15. pisitools.dodir("/home/ftp/incoming")
  16. pisitools.dodir("/usr/share/vsftpd/empty")
  17. pisitools.dodir("/var/log/vsftpd")
  18. pisitools.newdoc("vsftpd.conf", "vsftpd.conf.example")
  19. pisitools.doman("vsftpd.conf.5", "vsftpd.8")
  20. pisitools.insinto("/usr/share/doc/%s" % get.srcNAME(), "SECURITY")
  21. pisitools.insinto("/usr/share/doc/%s" % get.srcNAME(), "EXAMPLE")
  22. pisitools.dodoc("AUDIT", "BENCHMARKS", "BUGS", "Changelog", "FAQ",\
  23. "LICENSE", "README*", "REFS", "REWARD", "SIZE", \
  24. "SPEED", "TODO", "TUNING")