Files
2022-08-26 16:51:49 +03:00

31 lines
886 B
Python

#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
pisitools.dosed("Makefile", "(?m)^(COPTS =.*)", "COPTS = %s -fPIE" % get.CFLAGS())
pisitools.dosed("Makefile", "(?m)^(LOPTS =.*)", "LOPTS = %s -pie -Wl,-z,now" % get.LDFLAGS())
def build():
shelltools.export("CC", get.CC())
autotools.make('libdir')
autotools.make()
autotools.make("ether-wake")
autotools.make("i18ndir")
def install():
autotools.rawInstall("BASEDIR=%s" % get.installDIR())
pisitools.dosbin("ether-wake")
pisitools.dosym("/bin/hostname", "/usr/bin/hostname")
pisitools.dodoc("README", "README*", "TODO")