123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- #
- # Licensed under the GNU General Public License, version 3.
- # See the file http://www.gnu.org/licenses/gpl.txt
- from pisi.actionsapi import get
- from pisi.actionsapi import autotools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import kerneltools
- KDIR = kerneltools.getKernelVersion()
- def setup():
- # dkms
- shelltools.copytree("driver", "dkms")
- pisitools.dosed("dkms.conf", "#MODULE_VERSION#", get.srcVERSION())
- def build():
- autotools.make("-C driver KVERS_UNAME=%s" % KDIR)
- autotools.make("-C utils")
- def install():
- pisitools.insinto("/lib/modules/%s/extra" % KDIR, "*/*.ko")
- pisitools.dosbin("utils/ndiswrapper*", "/usr/sbin")
- pisitools.dosbin("utils/loadndisdriver", "/sbin")
-
- # add man
- pisitools.doman("*.8")
-
- pisitools.dodir("/etc/ndiswrapper")
- pisitools.dodoc("README", "AUTHORS", "ChangeLog")
- # dkms
- pisitools.insinto("/usr/src/%s-%s" % (get.srcNAME(), get.srcVERSION()), "dkms/*")
- pisitools.insinto("/usr/src/%s-%s" % (get.srcNAME(), get.srcVERSION()), "dkms.conf")
|