OXIESEC PANEL
- Current Dir:
/
/
lib
/
rpm
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
02/08/2025 12:05:33 AM
r-xr-xr-x
π
cmake.prov
2.93 KB
04/05/2024 07:52:22 PM
rwxr-xr-x
π
cmake.req
2.3 KB
04/05/2024 07:52:22 PM
rwxr-xr-x
π
fileattrs
-
02/08/2025 12:06:29 AM
rwxr-xr-x
π
gstreamer1.prov
954 bytes
05/30/2020 07:44:22 AM
rwxr-xr-x
π
kabi.sh
468 bytes
05/15/2023 02:30:31 PM
rwxr-xr-x
π
kmod.prov
682 bytes
05/15/2023 02:30:31 PM
rwxr-xr-x
π
macros
42.96 KB
12/17/2024 04:11:02 AM
rw-r--r--
π
macros.d
-
02/08/2025 12:06:53 AM
rwxr-xr-x
π
platform
-
12/17/2024 04:11:02 AM
rwxr-xr-x
π
python-macro-helper
634 bytes
12/17/2024 04:11:01 AM
rw-r--r--
π
pythondeps.sh
921 bytes
03/31/2023 03:44:53 PM
rwxr-xr-x
π
pythondistdeps.py
10.92 KB
03/31/2023 03:44:53 PM
rwxr-xr-x
π
redhat
-
02/08/2025 12:05:43 AM
rwxr-xr-x
π
rpm.daily
296 bytes
12/17/2024 04:11:01 AM
rw-r--r--
π
rpm.log
61 bytes
12/17/2024 04:11:01 AM
rw-r--r--
π
rpm.supp
688 bytes
12/17/2024 04:11:01 AM
rw-r--r--
π
rpm2cpio.sh
1.22 KB
12/17/2024 04:11:01 AM
rwxr-xr-x
π
rpmdb_dump
0 bytes
01/01/1970 12:00:00 AM
---------
π
rpmdb_load
0 bytes
01/01/1970 12:00:00 AM
---------
π
rpmdb_loadcvt
1.43 KB
12/17/2024 04:11:01 AM
rwxr-xr-x
π
rpmdb_recover
0 bytes
01/01/1970 12:00:00 AM
---------
π
rpmdb_stat
0 bytes
01/01/1970 12:00:00 AM
---------
π
rpmdb_upgrade
0 bytes
01/01/1970 12:00:00 AM
---------
π
rpmdb_verify
0 bytes
01/01/1970 12:00:00 AM
---------
π
rpmpopt-4.14.3
11.2 KB
12/17/2024 04:11:02 AM
rw-r--r--
π
rpmrc
16.75 KB
12/17/2024 04:11:02 AM
rw-r--r--
π
tgpg
929 bytes
12/17/2024 04:11:01 AM
rwxr-xr-x
Editing: cmake.prov
Close
#!/usr/libexec/platform-python # -*- coding:utf-8 -*- # # Copyright (C) 2015 Daniel VrΓ‘til <dvratil@redhat.com> # Copyright (C) 2017 Daniel VrΓ‘til <dvratil@fedoraproject.org> # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the # Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # import sys import re import glob class CMakeParser: def __init__(self, filelist = None): if filelist == None: filelist = sys.stdin paths = map(lambda x: x.rstrip(), filelist.readlines()) for path in paths: modulePath, cmakeModule, lowercase = self.parseCmakeModuleConfig(path) if modulePath and cmakeModule: version = self.resolveCMakeModuleVersion(modulePath, cmakeModule, lowercase) if version: string = "cmake(" + cmakeModule + ") = " + version else: string = "cmake(" + cmakeModule + ")" if string == string.lower(): print(string) else: # Temporarily print both variants to satisfy requires # by the old version of this generator which made mistakes print(string) print(string.lower()) def parseCmakeModuleConfig(self, configFile): paths = configFile.rsplit("/", 3) modulePath = "%s/cmake/%s" % (paths[0], paths[2]) cfgFile = paths[3] if cfgFile.endswith("Config.cmake"): return (modulePath, cfgFile[0:-len("Config.cmake")], False) elif cfgFile.endswith("-config.cmake"): return (modulePath, cfgFile[0:-len("-config.cmake")], True) else: return (None, None, False) def resolveCMakeModuleVersion(self, modulePath, cmakeModule, lowercase): versionFile = ("%s/%s-config-version.cmake" if lowercase else "%s/%sConfigVersion.cmake") % (modulePath, cmakeModule) try: f = open(versionFile, 'r') except: return None for line in f: line = line.strip() # set(PACKAGE_VERSION <version>) version = re.match(r"^set[\ ]*\([\ ]*PACKAGE_VERSION[\ ]+[\"]*([0-9\.]+)[\"]*[\ ]*[.]*\)", line) if version: return version.groups(1)[0] return None if __name__ == "__main__": parser = CMakeParser()