core updated.

This commit is contained in:
Ertuğrul Erata
2015-05-17 16:28:10 +03:00
parent 14d58aa1d0
commit 8e13c775be
558 changed files with 543408 additions and 27657 deletions
+73
View File
@@ -0,0 +1,73 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2015 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
suffix = "32" if get.buildTYPE() == "emul32" else ""
def setup():
autotools.autoreconf("-if")
autotools.configure("--prefix=/usr \
--bindir=/sbin \
--sbindir=/sbin \
--libdir=/usr/lib \
--sysconfdir=/etc \
--libexecdir=/lib \
--with-rootprefix= \
--with-rootlibdir=/lib \
--enable-split-usr \
--disable-introspection \
--disable-blkid \
--enable-gudev \
--enable-static \
--disable-manpages \
--disable-gtk-doc \
--disable-gtk-doc-html")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("-j1 DESTDIR=%s%s" % (get.installDIR(), suffix))
#autotools.rawInstall("DESTDIR=%s" % get.installDIR())
# emul32 stop here
if get.buildTYPE() == "emul32":
shelltools.move("%s%s/lib" % (get.installDIR(), suffix), "%s/lib%s" % (get.installDIR(), suffix))
shelltools.move("%s%s/usr/lib" % (get.installDIR(), suffix), "%s/usr/lib%s" % (get.installDIR(), suffix))
#for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
# pisitools.dosed("%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32", "usr")
#shelltools.unlinkDir("%s%s" % (get.installDIR(), suffix))
shelltools.unlink("%s/usr/lib%s/libudev.so" % (get.installDIR(), suffix))
pisitools.dosym("/lib%s/libudev.so.1.6.0" % suffix, "/usr/lib%s/libudev.so" % suffix)
shelltools.unlinkDir("%s/usr/lib%s/pkgconfig" % (get.installDIR(), suffix))
shelltools.unlinkDir("%s/lib%s/udev" % (get.installDIR(), suffix))
return
#add link
pisitools.dosym("/sbin/udevadm", "/bin/udevadm")
# Create vol_id and scsi_id symlinks in /sbin probably needed by multipath-tools
pisitools.dosym("/lib/udev/scsi_id", "/sbin/scsi_id")
# Create /sbin/systemd-udevd -> /sbin/udevd sysmlink, we need it for MUDUR, do not touch this sysmlink.
# pisitools.dosym("/lib/systemd/systemd-udevd", "/sbin/systemd-udevd")
# Create /etc/udev/rules.d for backward compatibility
pisitools.dodir("/etc/udev/rules.d")
pisitools.dodir("/run/udev")
# Add man files
pisitools.doman("man/*.5", "man/*.7", "man/*.8")
pisitools.dodoc("README*", "NOTES")
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/python
import os
def createNode(mode, uid, gid, minor, major, path):
os.system("/bin/mknod --mode=%d %s c %d %d" % (mode, path, minor, major))
os.system("/bin/chown %s:%s %s" % (uid, gid, path))
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
createNode(600, "root", "root", 1, 11, "/lib/udev/devices/kmsg")
createNode(666, "root", "root", 1, 3, "/lib/udev/devices/null")
createNode(666, "root", "root", 1, 5, "/lib/udev/devices/zero")
createNode(600, "root", "root", 10, 130, "/lib/udev/devices/watchdog")
createNode(666, "root", "root", 10, 229, "/lib/udev/devices/fuse")
createNode(600, "root", "tty", 5, 1, "/lib/udev/devices/console")
createNode(666, "root", "tty", 5, 2, "/lib/udev/devices/ptmx")
createNode(666, "root", "tty", 5, 0, "/lib/udev/devices/tty")
createNode(620, "root", "tty", 4, 1, "/lib/udev/devices/tty1")
createNode(600, "root", "root", 10, 200, "/lib/udev/devices/net/tun")
createNode(600, "root", "root", 36, 0, "/lib/udev/devices/route")
createNode(600, "root", "root", 10, 200, "/lib/udev/devices/skip")
createNode(660, "root", "dialout", 108, 0, "/lib/udev/devices/ppp")
os.system("/sbin/udevadm hwdb --update")
if os.path.exists("/lib/udev/devices/rtc"):
os.unlink("/lib/udev/devices/rtc")
# Migrate UDEV database
if fromVersion and int(fromVersion) < 165:
os.system("/sbin/udevadm info --convert-db &> /dev/null")
+3
View File
@@ -0,0 +1,3 @@
HAVE_BLKID=1
BLKID_LIBS="-lblkid"
BLKID_CFLAGS="-I/tools/include"
+1
View File
@@ -0,0 +1 @@
D /run/udev 0755 root root
+137
View File
@@ -0,0 +1,137 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>eudev</Name>
<Homepage>https://www.gentoo.org/proj/en/eudev/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>console</IsA>
<Summary>eudev is a fork of system-udev</Summary>
<Description>eudev is a fork of system-udev with the goal of obtaining better compatibility with existing software such as OpenRC and Upstart, older kernels, various toolchains and anything else required by users and various distributions.</Description>
<Archive sha1sum="adb2157abc1957a71dd54dc98f7361d78357607a" type="targz">https://github.com/gentoo/eudev/archive/v3.0.tar.gz</Archive>
<AdditionalFiles>
<!-- http://www.linuxfromscratch.org/lfs/view/development/chapter06/eudev.html -->
<AdditionalFile target="config.cache">config.cache</AdditionalFile>
</AdditionalFiles>
<BuildDependencies>
<Dependency>glibc-devel</Dependency>
<Dependency>libkmod-devel</Dependency>
<!--<Dependency>libutil-linux-devel</Dependency>--><!-- alert circle dep.-->
<Dependency>glib2-devel</Dependency>
<Dependency>libpcre-devel</Dependency>
<!--<Dependency>libxslt</Dependency>--><!--disable manpages-->
<Dependency>gperf</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>eudev</Name>
<RuntimeDependencies>
<Dependency>libkmod</Dependency>
<!--<Dependency>libutil-linux</Dependency>-->
<Dependency>glib2</Dependency>
</RuntimeDependencies>
<Conflicts>
<Package releaseTo="16">udev</Package>
<Package releaseTo="16">libudev</Package>
<Package releaseTo="16">libgudev1</Package>
</Conflicts>
<Replaces>
<Package>udev</Package>
<Package>libudev</Package>
<Package>libgudev1</Package>
</Replaces>
<Files>
<Path fileType="executable">/bin</Path>
<Path fileType="executable">/sbin</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="executable">/lib/udev</Path>
<Path fileType="library">/lib</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="config">/etc</Path>
<Path fileType="config">/usr/lib/tmpfiles.d/udev.conf</Path>
<Path fileType="data">/run/udev</Path>
<Path fileType="data">/lib/systemd</Path>
<Path fileType="data">/etc/udev/rules.d</Path>
<Path fileType="data">/lib/udev/rules.d</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/udev.conf">tmpfiles.conf</AdditionalFile>
</AdditionalFiles>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<Package>
<Name>eudev-devel</Name>
<PartOf>system.devel</PartOf>
<Summary>Development files for eudev</Summary>
<RuntimeDependencies>
<Dependency release="current">eudev</Dependency>
<Dependency>glib2-devel</Dependency>
</RuntimeDependencies>
<Conflicts>
<Package releaseTo="16">udev-devel</Package>
<Package releaseTo="16">libudev-devel</Package>
<Package releaseTo="16">libgudev1-devel</Package>
</Conflicts>
<Files>
<Path fileType="header">/usr/include/</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/share/pkgconfig</Path> <!-- check this path usr/share/pkgconfig -->
</Files>
</Package>
<Package>
<Name>eudev-32bit</Name>
<Replaces>
<Package>libudev-32bit</Package>
<Package>libgudev1-32bit</Package>
</Replaces>
<Conflicts>
<Package releaseTo="16">libudev-32bit</Package>
<Package releaseTo="16">libgudev1-32bit</Package>
</Conflicts>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for eudev</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>glibc-32bit</Dependency>
<Dependency>libkmod-32bit</Dependency>
<Dependency>glib2-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency>glibc-32bit</Dependency>
<Dependency>glib2-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/lib32</Path>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2015-05-11</Date>
<Version>3.0</Version>
<Comment>build emul32 and static too.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="1">
<Date>2015-03-29</Date>
<Version>3.0</Version>
<Comment>First release.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
</History>
</PISI>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>eudev</Name>
<Summary xml:lang="tr">eudev sistemd-udev uygulamasının çatalı</Summary>
<Description xml:lang="tr">eudev sistem-udev uygulamasının OpenRC, Upstart gibi başlangıç sistemleri ile uyumu için hazırlanmış çatalı</Description>
</Source>
</PISI>