OXIESEC PANEL
- Current Dir:
/
/
lib
/
rpm
/
redhat
Server IP: 82.112.239.19
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
04/09/2025 07:08:42 PM
rwxr-xr-x
📄
brp-fix-pyc-reproducibility
560 bytes
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
brp-ldconfig
417 bytes
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
brp-llvm-compile-lto-elf
1.88 KB
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
brp-mangle-shebangs
4.41 KB
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
brp-python-bytecompile
5.64 KB
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
brp-strip-lto
558 bytes
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
compileall2.py
21.59 KB
10/01/2024 12:46:16 PM
rw-r--r--
📄
config.guess
42.91 KB
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
config.sub
35.46 KB
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
dist.sh
1.94 KB
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
find-provides
1.19 KB
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
find-requires
1013 bytes
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
gpgverify
3.54 KB
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
kmodtool
9.03 KB
09/27/2023 01:14:41 AM
rwxr-xr-x
📄
macros
16.02 KB
10/28/2024 11:45:49 AM
rw-r--r--
📄
redhat-annobin-cc1
93 bytes
10/28/2024 11:45:49 AM
r--r--r--
📄
redhat-annobin-plugin-select.sh
6.05 KB
10/28/2024 11:45:49 AM
rwxr-xr-x
📄
redhat-annobin-select-annobin-built-plugin
89 bytes
10/28/2024 11:45:49 AM
r--r--r--
📄
redhat-annobin-select-gcc-built-plugin
93 bytes
10/28/2024 11:45:49 AM
r--r--r--
📄
redhat-hardened-cc1
153 bytes
10/28/2024 11:45:49 AM
r--r--r--
📄
redhat-hardened-clang.cfg
6 bytes
10/28/2024 11:45:49 AM
r--r--r--
📄
redhat-hardened-ld
47 bytes
10/28/2024 11:45:49 AM
r--r--r--
📄
rpmrc
5.52 KB
10/28/2024 11:45:49 AM
rw-r--r--
📄
rpmsort
2.11 KB
09/27/2023 01:14:41 AM
rwxr-xr-x
Editing: dist.sh
Close
#!/usr/bin/bash # dist.sh # Author: Tom "spot" Callaway <tcallawa@redhat.com> # License: GPL # This is a script to output the value for the %{dist} # tag. The dist tag takes the following format: .$type$num # Where $type is one of: el, fc, rh # (for RHEL, Fedora Core, and RHL, respectively) # And $num is the version number of the distribution. # NOTE: We can't detect Rawhide or Fedora Test builds properly. # If we successfully detect the version number, we output the # dist tag. Otherwise, we exit with no output. RELEASEFILE=/etc/redhat-release function check_num { MAINVER=`cut -d "(" -f 1 < $RELEASEFILE | \ sed -e "s/[^0-9.]//g" -e "s/$//g" | cut -d "." -f 1` echo $MAINVER | grep -q '[0-9]' && echo $MAINVER } function check_rhl { grep -q "Red Hat Linux" $RELEASEFILE && ! grep -q "Advanced" $RELEASEFILE && echo $DISTNUM } function check_rhel { egrep -q "(Enterprise|Advanced|CentOS|CloudLinux)" $RELEASEFILE && echo $DISTNUM } function check_fedora { grep -q Fedora $RELEASEFILE && echo $DISTNUM } DISTNUM=`check_num` DISTFC=`check_fedora` DISTRHL=`check_rhl` DISTRHEL=`check_rhel` if [ -n "$DISTNUM" ]; then if [ -n "$DISTFC" ]; then DISTTYPE=fc elif [ -n "$DISTRHEL" ]; then DISTTYPE=el elif [ -n "$DISTRHL" ]; then DISTTYPE=rhl fi fi [ -n "$DISTTYPE" -a -n "$DISTNUM" ] && DISTTAG=".${DISTTYPE}${DISTNUM}" case "$1" in --el) echo -n "$DISTRHEL" ;; --fc) echo -n "$DISTFC" ;; --rhl) echo -n "$DISTRHL" ;; --distnum) echo -n "$DISTNUM" ;; --disttype) echo -n "$DISTTYPE" ;; --help) printf "Usage: $0 [OPTIONS]\n" printf " Default mode is --dist. Possible options:\n" printf " --el\t\tfor RHEL version (if RHEL)\n" printf " --fc\t\tfor Fedora version (if Fedora)\n" printf " --rhl\t\tfor RHL version (if RHL)\n" printf " --dist\t\tfor distribution tag\n" printf " --distnum\tfor distribution number (major)\n" printf " --disttype\tfor distribution type\n" ;; *) echo -n "$DISTTAG" ;; esac