diff --git a/system/base/libcap/actions.py b/system/base/libcap/actions.py index aaa97ec0..3a01948a 100644 --- a/system/base/libcap/actions.py +++ b/system/base/libcap/actions.py @@ -4,29 +4,48 @@ # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt +from pisi.actionsapi import get from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools -from pisi.actionsapi import get + + + +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") def setup(): - shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS()) - autotools.autoreconf("-vfi") - autotools.configure("--prefix=/usr \ - --enable-ipv6 \ - --enable-bluetooth") + # fix linkage + pisitools.dosed("pam_cap/Makefile", "(.*<\s\$\(LDLIBS\))", r"\1 -lpam") + # no static libs + #pisitools.dosed("libcap/Makefile", "install.*STALIBNAME", deleteLine=True) + shelltools.system("sed -i '/install -m.*STA/d' libcap/Makefile") + # change shared libs mode + #pisitools.dosed("libcap/Makefile", "(.*?install -m) 0644 (.*?MINLIBNAME.*)", r"\1 0755 \2") + # use pisilinux flags + #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")) + + def build(): - autotools.make("all") - autotools.make("shared") + 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(): - autotools.rawInstall('DESTDIR="%s"' % get.installDIR()) + if get.buildTYPE() == "emul32": + autotools.rawInstall("DESTDIR=%s prefix=/usr lib=lib32 SBINDIR=/_emul32 MANDIR=/_emul32 RAISE_SETFCAP=no PAM_CAP=no" % get.installDIR()) + pisitools.removeDir("/_emul32") + return - # No static libs - pisitools.remove("/usr/lib/*.a") + autotools.rawInstall("prefix=/usr DESTDIR=%s SBINDIR=/sbin RAISE_SETFCAP=no" % (get.installDIR())) - # it is needed for ppd etc. - pisitools.insinto("/usr/include", "pcap-int.h") + pisitools.insinto("/etc/security", "pam_cap/capability.conf") - pisitools.dodoc("CHANGES", "CREDITS", "README*", "VERSION", "TODO") + pisitools.dodoc("CHANGELOG", "License", "README", "doc/capability.notes") diff --git a/system/base/libcap/pspec.xml b/system/base/libcap/pspec.xml index b450a52b..534b6438 100644 --- a/system/base/libcap/pspec.xml +++ b/system/base/libcap/pspec.xml @@ -1,120 +1,131 @@ - + - libpcap - http://www.tcpdump.org/ + libcap + http://www.kernel.org/pub/linux/libs/security/linux-privs/ PisiLinux Community admins@pisilinux.org + GPLv2 BSD library - A system-independent library for user-level network packet capture - libpcap (Packet CAPture) provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc. - http://www.tcpdump.org/release/libpcap-1.10.4.tar.gz + POSIX 1003.1e capabilities library + libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities. + https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.67.tar.xz - bluez-libs-devel - - - + attr-devel + pam-devel - - - - - - - libpcap + libcap - - - - + pam + attr + /sbin + /lib /usr/lib - /usr/share/doc /usr/share/man + /usr/share/doc + /etc - libpcap-devel - Development files for libpcap + libcap-devel + system.devel + Development files for libcap - libpcap + libcap - /usr/bin/pcap-config /usr/include + /usr/lib/pkgconfig /usr/share/man/man3 + + libcap-32bit + emul32 + 32-bit shared libraries for libcap + emul32 + + attr-32bit + + + attr-32bit + + + /usr/lib32 + + + - 2023-04-08 - 1.10.4 + 2023-02-05 + 2.67 Version bump. Mustafa Cinasal muscnsl@gmail.com - 2023-01-13 - 1.10.3 + 2022-08-02 + 2.65 Version bump. Mustafa Cinasal muscnsl@gmail.com - 2021-07-02 - 1.10.1 - Version bump. + 2021-06-16 + 2.27 + Rebuild Mustafa Cinasal muscnsl@gmail.com - 2020-02-01 - 1.9.1 - Version bump. - Blue DeviL - bluedevil@sctzine.com - - - 2018-08-13 - 1.8.1 - Rebuild New T. + 2020-12-09 + 2.27 + Rebuild Mustafa Cinasal muscnsl@gmail.com + + 2019-2-25 + 2.27 + Version bump + Idris Kalp + idriskalp@gmail.com + - 2017-05-15 - 1.8.1 - Release Bump - Kamil Atlı - suvari@pisilinux.org + 2018-07-15 + 2.25 + Rebuild + Ertuğrul Erata + ertugrulerata@gmail.com - 2016-06-09 - 1.8.1 - Version Bump - Kamil Atlı - suvari@pisilinux.org + 2017-09-20 + 2.25 + Rebuild. + Ertuğrul Erata + ertugrulerata@gmail.com - 2016-06-09 - 1.7.4 + 2016-04-27 + 2.25 Release Bump - Pisi Linux Community + PisiLinux Community admin@pisilinux.org - 2016-03-25 - 1.7.4 + 2016-03-02 + 2.25 First release Ertuğrul Erata ertugrulerata@gmail.com