actions.py 719 B

12345678910111213141516171819202122
  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="android-udev-rules-%s" % get.srcVERSION()
  10. ver = get.srcVERSION()
  11. def install():
  12. shelltools.cd("%s/android-udev-rules-%s" %(get.workDIR(), ver))
  13. shelltools.chmod("51-android.rules", 0644)
  14. shelltools.chmod("android-udev.conf", 0644)
  15. pisitools.insinto("/usr/lib/udev/rules.d/51-android.rules", "51-android.rules")
  16. pisitools.insinto("/usr/lib/sysusers.d/android-udev.conf", "android-udev.conf")
  17. pisitools.dodoc("LICENSE")