create core package

This commit is contained in:
aydemir
2015-02-24 11:18:35 +02:00
parent 0e4b743b82
commit 70b25d0f95
1098 changed files with 169545 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# -*- 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():
# NOTE: This is only for the start-stop-daemon
autotools.make('-C src CC="%s" LD="%s %s" CFLAGS="%s"' % (get.CC(), get.CC(), get.LDFLAGS(), get.CFLAGS()))
def install():
def chmod(path, mode):
shelltools.chmod("%s%s" % (get.installDIR(), path), mode)
# Install everything
pisitools.insinto("/", "root/*")
# Install baselayout utilities
shelltools.cd("src/")
autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
# Adjust permissions
chmod("/tmp", 01777)
chmod("/var/tmp", 01777)
chmod("/run/shm", 01777)
chmod("/var/lock", 0775)
chmod("/usr/share/baselayout/shadow", 0600)
if get.ARCH() == "x86_64":
# Directories for 32bit libraries
pisitools.dodir("/lib32")
pisitools.dodir("/usr/lib32")
# Hack for binary blobs built on multi-lib systems
pisitools.dosym("lib", "/lib64")
pisitools.dosym("pisilinux-release", "/etc/system-release")