12345678910111213141516171819202122232425262728293031 |
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- #
- # Licensed under the GNU General Public License, version 3.
- # See the file http://www.gnu.org/licenses/gpl.txt
- from inary.actionsapi import autotools
- from inary.actionsapi import inarytools
- from inary.actionsapi import shelltools
- from inary.actionsapi import get
- def setup():
- inarytools.dosed("Makefile", "(?m)^(COPTS =.*)", "COPTS = %s -fPIE" % get.CFLAGS())
- inarytools.dosed("Makefile", "(?m)^(LOPTS =.*)", "LOPTS = %s -pie" % get.LDFLAGS())
- def build():
- shelltools.export("CFLAGS","-I/usr/src/linux-headers-5.8.0-sulinos/include/")
- shelltools.system("yes | make update")
- autotools.make("libdir")
- autotools.make()
- autotools.make("ether-wake")
- autotools.make("i18ndir")
- def install():
- autotools.rawInstall("BASEDIR=%s" % get.installDIR())
- inarytools.dosbin("ether-wake")
- inarytools.dosym("/bin/hostname", "/usr/bin/hostname")
- inarytools.dodoc("README", "README.ipv6", "TODO")
|