libcap-2.65
This commit is contained in:
@@ -9,26 +9,39 @@ from pisi.actionsapi import autotools
|
|||||||
from pisi.actionsapi import pisitools
|
from pisi.actionsapi import pisitools
|
||||||
from pisi.actionsapi import shelltools
|
from pisi.actionsapi import shelltools
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
pam = "no" if get.buildTYPE() == "emul32" else "yes"
|
||||||
|
|
||||||
|
cc = "'gcc -m32'" if get.buildTYPE() == "emul32" else "'gcc'"
|
||||||
|
|
||||||
pisitools.cflags.add("-D_LARGEFILE64_SOURCE", "-D_FILE_OFFSET_BITS=64")
|
pisitools.cflags.add("-D_LARGEFILE64_SOURCE", "-D_FILE_OFFSET_BITS=64")
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
# fix linkage
|
# fix linkage
|
||||||
pisitools.dosed("pam_cap/Makefile", "(.*<\s\$\(LDLIBS\))", r"\1 -lpam")
|
pisitools.dosed("pam_cap/Makefile", "(.*<\s\$\(LDLIBS\))", r"\1 -lpam")
|
||||||
# no static libs
|
# no static libs
|
||||||
pisitools.dosed("libcap/Makefile", "install.*STALIBNAME", deleteLine=True)
|
#pisitools.dosed("libcap/Makefile", "install.*STALIBNAME", deleteLine=True)
|
||||||
|
shelltools.system("sed -i '/install -m.*STA/d' libcap/Makefile")
|
||||||
# change shared libs mode
|
# change shared libs mode
|
||||||
pisitools.dosed("libcap/Makefile", "(.*?install -m) 0644 (.*?MINLIBNAME.*)", r"\1 0755 \2")
|
#pisitools.dosed("libcap/Makefile", "(.*?install -m) 0644 (.*?MINLIBNAME.*)", r"\1 0755 \2")
|
||||||
# use pisilinux flags
|
# use pisilinux flags
|
||||||
pisitools.dosed("Make.Rules", "^(CC|CFLAGS|LD)\s:=.*", deleteLine=True)
|
#pisitools.dosed("Make.Rules", "^(CC|CFLAGS|LD)\s:=.*", deleteLine=True)
|
||||||
|
|
||||||
pisitools.dosed("Make.Rules", "^(PAM_CAP\s:=).*", r"\1 %s" % ("no" if get.buildTYPE() == "emul32" else "yes"))
|
pisitools.dosed("Make.Rules", "^(PAM_CAP\s:=).*", r"\1 %s" % ("no" if get.buildTYPE() == "emul32" else "yes"))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
autotools.make("lib_prefix=/usr lib=lib%s" % ("32" if get.buildTYPE() == "emul32" else ""))
|
autotools.make("prefix=/usr lib=lib%s PAM_CAP=%s CC=%s" % ("32" if get.buildTYPE() == "emul32" else "", pam, cc))
|
||||||
|
|
||||||
|
#def check():
|
||||||
|
#autotools.make("test -k CC=%s PAM_CAP=%s" % (cc, pam))
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
if get.buildTYPE() == "emul32":
|
if get.buildTYPE() == "emul32":
|
||||||
autotools.rawInstall("prefix=/emul32 lib=../usr/lib32 DESTDIR=%s RAISE_SETFCAP=no" % get.installDIR())
|
autotools.rawInstall("DESTDIR=%s prefix=/usr lib=lib32 SBINDIR=/_emul32 MANDIR=/_emul32 RAISE_SETFCAP=no PAM_CAP=no" % get.installDIR())
|
||||||
|
pisitools.removeDir("/_emul32")
|
||||||
return
|
return
|
||||||
|
|
||||||
autotools.rawInstall("prefix=/usr DESTDIR=%s SBINDIR=/sbin RAISE_SETFCAP=no" % (get.installDIR()))
|
autotools.rawInstall("prefix=/usr DESTDIR=%s SBINDIR=/sbin RAISE_SETFCAP=no" % (get.installDIR()))
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<IsA>library</IsA>
|
<IsA>library</IsA>
|
||||||
<Summary>POSIX 1003.1e capabilities library</Summary>
|
<Summary>POSIX 1003.1e capabilities library</Summary>
|
||||||
<Description>libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.</Description>
|
<Description>libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.</Description>
|
||||||
<Archive sha1sum="f2419ebf19b7bf682d346f28c2faf4635450c6fd" type="tarxz">https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.27.tar.xz</Archive>
|
<Archive sha1sum="cb4ec7d2b43a96c6c64991363239939528e495da" type="tarxz">https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.65.tar.xz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency>attr-devel</Dependency>
|
<Dependency>attr-devel</Dependency>
|
||||||
<Dependency>pam-devel</Dependency>
|
<Dependency>pam-devel</Dependency>
|
||||||
@@ -67,6 +67,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="8">
|
||||||
|
<Date>2022-08-02</Date>
|
||||||
|
<Version>2.65</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="7">
|
<Update release="7">
|
||||||
<Date>2021-06-16</Date>
|
<Date>2021-06-16</Date>
|
||||||
<Version>2.27</Version>
|
<Version>2.27</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user