actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. WorkDir = "."
  10. NoStrip = ["/opt/teamviewer/tv_bin/wine/drive_c/TeamViewer/tvwine.dll.so"]
  11. def setup():
  12. shelltools.system("pwd")
  13. shelltools.system("ar xf teamviewer_13.0.9865_amd64.deb")
  14. shelltools.system("tar xf data.tar.xz")
  15. def install():
  16. pisitools.insinto("/opt/", "./opt/*")
  17. pisitools.insinto("/etc/systemd/system", "./opt/teamviewer/tv_bin/script/teamviewerd.service")
  18. #necessary symlinks
  19. pisitools.dosym("/opt/teamviewer/tv_bin/teamviewerd", "etc/init.d/teamviewerd")
  20. pisitools.dosym("/opt/teamviewer/tv_bin/script/teamviewer", "usr/bin/teamviewer")
  21. pisitools.dosym("/opt/teamviewer/logfiles", "var/log/teamviewer")
  22. pisitools.dosym("/opt/teamviewer/config", "etc/teamviewer")
  23. pisitools.dodoc("%s/opt/teamviewer/doc/License.txt" %get.workDIR())
  24. shelltools.chmod("%s/opt/teamviewer/doc/*" % get.installDIR(),0755)
  25. shelltools.chmod("%s/opt/teamviewer/tv_bin/*" % get.installDIR(),0755)