Files
main/programming/misc/geoip/actions.py
T
2022-10-23 11:42:18 +03:00

28 lines
715 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 shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
shelltools.system("./bootstrap")
autotools.configure("--enable-shared \
--disable-static")
def build():
autotools.make()
def check():
autotools.make("check")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.insinto("/usr/share/GeoIP", "GeoIP*.dat")
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README*")