add needed package part-1
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#!/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 shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def build():
|
||||
shelltools.cd("squashfs-tools")
|
||||
#Chakra features
|
||||
#reduce memory requirements of unsquashfs to support installation on systems with 256 MB RAM
|
||||
cmd1='sed -i -e "s/BUFFER_DEFAULT [0-9]*/BUFFER_DEFAULT 32/" unsquashfs.h'
|
||||
cmd2="sed -i 's|^#XZ_SUPPORT = 1|XZ_SUPPORT = 1|' Makefile"
|
||||
cmd3="sed -i 's|^#LZO_SUPPORT = 1|LZO_SUPPORT = 1|' Makefile"
|
||||
cmd4="sed -i 's|^COMP_DEFAULT = gzip|COMP_DEFAULT = xz|' Makefile"
|
||||
cmds=[cmd1,cmd2,cmd3,cmd4]
|
||||
|
||||
for cmd in cmds:
|
||||
shelltools.system(cmd)
|
||||
autotools.make('RPM_OPT_FLAGS="%s"' % get.CFLAGS())
|
||||
|
||||
def install():
|
||||
shelltools.cd("squashfs-tools")
|
||||
autotools.install("INSTALL_DIR='%s/usr/sbin'" % get.installDIR())
|
||||
Reference in New Issue
Block a user