actions.py 623 B

12345678910111213141516171819
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import shelltools
  8. from inary.actionsapi import inarytools
  9. from inary.actionsapi import get
  10. def build():
  11. autotools.make('HAVE_ICONV=1 CONFIG_FILE=/etc/whois.conf LOCALEDIR=1')
  12. def install():
  13. autotools.rawInstall('BASEDIR="{}" prefix="/usr" install-whois install-pos'.format(get.installDIR()))
  14. shelltools.system('install -Dm644 "whois.conf" "{}/etc/whois.conf"'.format(get.installDIR()))