Files
core/system/base/cracklib/actions.py
T
2015-02-24 11:18:35 +02:00

28 lines
880 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():
autotools.configure("--with-default-dict=/usr/share/cracklib/pw_dict \
--without-python \
--disable-static")
def build():
autotools.make("all")
def install():
autotools.install()
# Create dictionary files
shelltools.system("cat /usr/share/cracklib/cracklib-small|%s/usr/sbin/cracklib-packer %s/usr/share/cracklib/pw_dict" % (get.installDIR(),get.installDIR()))
pisitools.domo("po/tr.po","tr","cracklib.mo")
pisitools.dodoc("ChangeLog", "README*", "NEWS", "COPYING.LIB", "AUTHORS")