D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
home
/
vblioqus
/
karachi777.vip
/
in
/
106014
/
900508
/
Filename :
redhat.zip
back
Copy
PK Td\>G�� � find-providesnu ȯ�� #!/bin/bash # This script reads filenames from STDIN and outputs any relevant provides # information that needs to be included in the package. if [ "$1" ] then package_name="$1" fi filelist=`sed "s/['\"]/\\\&/g"` [ -x /usr/lib/rpm/rpmdeps -a -n "$filelist" ] && echo $filelist | tr '[:blank:]' \\n | /usr/lib/rpm/rpmdeps --provides # # --- any other extra find-provides scripts for i in /usr/lib/rpm/redhat/find-provides.d/*.prov do [ -x $i ] && (echo $filelist | tr '[:blank:]' \\n | $i | sort -u) done # # --- Kernel module imported symbols # # Since we don't (yet) get passed the name of the package being built, we # cheat a little here by looking first for a kernel, then for a kmod. # is_kmod=1 for f in $filelist; do if [ $(echo "$f" | sed -r -ne 's:^.*/lib/modules/(.*)/(.*)\.ko(\.gz|\.bz2|\.xz)?$:\2:p') ] then is_kernel=1; fi if [ $(echo "$f" | sed -r -ne 's:^.*/boot/(.*):\1:p') ] then unset is_kmod; fi done if [ ! "$is_kernel" ] || [ "$package_name" == "kernel" ] then unset is_kmod fi [ -x /usr/lib/rpm/redhat/find-provides.ksyms ] && [ "$is_kmod" ] && printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/redhat/find-provides.ksyms exit 0 PK Td\�;fL& & gpgverifynu ȯ�� #!/bin/bash # Copyright 2018 B. Persson, Bjorn@Rombobeorn.se # # This material is provided as is, with absolutely no warranty expressed # or implied. Any use is at your own risk. # # Permission is hereby granted to use or copy this shellscript # for any purpose, provided the above notices are retained on all copies. # Permission to modify the code and to distribute modified code is granted, # provided the above notices are retained, and a notice that the code was # modified is included with the above copyright notice. function print_help { cat <<'EOF' Usage: gpgverify --keyring=<pathname> --signature=<pathname> --data=<pathname> gpgverify is a wrapper around gpgv designed for easy and safe scripting. It verifies a file against a detached OpenPGP signature and a keyring. The keyring shall contain all the keys that are trusted to certify the authenticity of the file, and must not contain any untrusted keys. The differences, compared to invoking gpgv directly, are that gpgverify accepts the keyring in either ASCII-armored or unarmored form, and that it will not accidentally use a default keyring in addition to the specified one. Parameters: --keyring=<pathname> keyring with all the trusted keys and no others --signature=<pathname> detached signature to verify --data=<pathname> file to verify against the signature EOF } fatal_error() { message="$1" # an error message status=$2 # a number to use as the exit code echo "gpgverify: $message" >&2 exit $status } require_parameter() { term="$1" # a term for a required parameter value="$2" # Complain and terminate if this value is empty. if test -z "${value}" ; then fatal_error "No ${term} was provided." 2 fi } check_status() { action="$1" # a string that describes the action that was attempted status=$2 # the exit code of the command if test $status -ne 0 ; then fatal_error "$action failed." $status fi } # Parse the command line. keyring= signature= data= for parameter in "$@" ; do case "${parameter}" in (--help) print_help exit ;; (--keyring=*) keyring="${parameter#*=}" ;; (--signature=*) signature="${parameter#*=}" ;; (--data=*) data="${parameter#*=}" ;; (*) fatal_error "Unknown parameter: \"${parameter}\"" 2 ;; esac done require_parameter 'keyring' "${keyring}" require_parameter 'signature' "${signature}" require_parameter 'data file' "${data}" # Make a temporary working directory. workdir="$(mktemp --directory)" check_status 'Making a temporary directory' $? workring="${workdir}/keyring.gpg" # Decode any ASCII armor on the keyring. This is harmless if the keyring isn't # ASCII-armored. gpg2 --homedir="${workdir}" --yes --output="${workring}" --dearmor "${keyring}" check_status 'Decoding the keyring' $? # Verify the signature using the decoded keyring. gpgv2 --homedir="${workdir}" --keyring="${workring}" "${signature}" "${data}" check_status 'Signature verification' $? # (--homedir isn't actually necessary. --dearmor processes only the input file, # and if --keyring is used and contains a slash, then gpgv2 uses only that # keyring. Thus neither command will look for a default keyring, but --homedir # makes extra double sure that no default keyring will be touched in case # another version of GPG works differently.) # Clean up. (This is not done in case of an error that may need inspection.) rm --recursive --force ${workdir} PK Td\���h/ / redhat-hardened-ldnu ��6�$ *self_spec: + %{!static:%{!shared:%{!r:-pie}}} PK Td\�x=B B rpmrcnu �[��� include: /usr/lib/rpm/rpmrc optflags: i386 %{__global_compiler_flags} -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection optflags: i486 %{__global_compiler_flags} -m32 -march=i486 -fasynchronous-unwind-tables -fstack-clash-protection optflags: i586 %{__global_compiler_flags} -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection optflags: i686 %{__global_compiler_flags} -m32 -march=x86-64 -mtune=generic -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection optflags: athlon %{__global_compiler_flags} -m32 -march=athlon -fasynchronous-unwind-tables -fstack-clash-protection optflags: ia64 %{__global_compiler_flags} optflags: x86_64 %{__global_compiler_flags} -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection optflags: alpha %{__global_compiler_flags} -mieee optflags: alphaev5 %{__global_compiler_flags} -mieee -mcpu=ev5 optflags: alphaev56 %{__global_compiler_flags} -mieee -mcpu=ev56 optflags: alphapca56 %{__global_compiler_flags} -mieee -mcpu=pca56 optflags: alphaev6 %{__global_compiler_flags} -mieee -mcpu=ev6 optflags: alphaev67 %{__global_compiler_flags} -mieee -mcpu=ev67 optflags: sparc %{__global_compiler_flags} -m32 -mcpu=v7 -mtune=ultrasparc optflags: sparcv8 %{__global_compiler_flags} -m32 -mcpu=v8 optflags: sparcv9 %{__global_compiler_flags} -m32 -mcpu=ultrasparc optflags: sparcv9v %{__global_compiler_flags} -m32 -mcpu=niagara optflags: sparc64 %{__global_compiler_flags} -m64 -mcpu=ultrasparc optflags: sparc64v %{__global_compiler_flags} -m64 -mcpu=niagara optflags: m68k %{__global_compiler_flags} optflags: ppc %{__global_compiler_flags} -m32 -funwind-tables optflags: ppciseries %{__global_compiler_flags} -m32 optflags: ppcpseries %{__global_compiler_flags} -m32 optflags: ppc64 %{__global_compiler_flags} -m64 -funwind-tables -fstack-clash-protection optflags: ppc64p7 %{__global_compiler_flags} -m64 -O3 -mcpu=power7 -mtune=power7 -funwind-tables -fstack-clash-protection optflags: ppc64le %{__global_compiler_flags} -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection optflags: ppc64iseries %{__global_compiler_flags} -m64 optflags: ppc64pseries %{__global_compiler_flags} -m64 optflags: ppc8260 %{__global_compiler_flags} -m32 optflags: ppc8560 %{__global_compiler_flags} -m32 optflags: parisc %{__global_compiler_flags} -mpa-risc-1-0 optflags: hppa1.0 %{__global_compiler_flags} -mpa-risc-1-0 optflags: hppa1.1 %{__global_compiler_flags} -mpa-risc-1-0 optflags: hppa1.2 %{__global_compiler_flags} -mpa-risc-1-0 optflags: hppa2.0 %{__global_compiler_flags} -mpa-risc-1-0 optflags: mips %{__global_compiler_flags} -march=mips32r2 -mfpxx optflags: mipsel %{__global_compiler_flags} -march=mips32r2 -mfpxx optflags: mips64 %{__global_compiler_flags} -march=mips64r2 -mabi=64 optflags: mips64el %{__global_compiler_flags} -march=mips64r2 -mabi=64 optflags: mipsr6 %{__global_compiler_flags} -march=mips32r6 optflags: mipsr6el %{__global_compiler_flags} -march=mips32r6 optflags: mips64r6 %{__global_compiler_flags} -march=mips64r6 optflags: mips64r6el %{__global_compiler_flags} -march=mips64r6 optflags: armv3l %{__global_compiler_flags} -fsigned-char -march=armv3 optflags: armv4b %{__global_compiler_flags} -fsigned-char -march=armv4 optflags: armv4l %{__global_compiler_flags} -fsigned-char -march=armv4 optflags: armv4tl %{__global_compiler_flags} -march=armv4t optflags: armv5tel %{__global_compiler_flags} -march=armv5te -mfloat-abi=soft optflags: armv5tejl %{__global_compiler_flags} -march=armv5te -mfloat-abi=soft optflags: armv6l %{__global_compiler_flags} -march=armv6 -mfloat-abi=soft optflags: armv6hl %{__global_compiler_flags} -march=armv6 -mfpu=vfp -mfloat-abi=hard optflags: armv6hnl %{__global_compiler_flags} -march=armv6 -mfpu=neon -mfloat-abi=hard optflags: armv7l %{__global_compiler_flags} -march=armv7-a -mfloat-abi=soft optflags: armv7hl %{__global_compiler_flags} -march=armv7-a -mfpu=vfpv3-d16 -mtune=generic-armv7-a -mabi=aapcs-linux -mfloat-abi=hard optflags: armv7hnl %{__global_compiler_flags} -march=armv7-a -mfpu=neon -mfloat-abi=hard optflags: atarist %{__global_compiler_flags} optflags: atariste %{__global_compiler_flags} optflags: ataritt %{__global_compiler_flags} optflags: falcon %{__global_compiler_flags} optflags: atariclone %{__global_compiler_flags} optflags: milan %{__global_compiler_flags} optflags: hades %{__global_compiler_flags} optflags: s390 %{__global_compiler_flags} -m31 -march=z13 -mtune=z14 -fasynchronous-unwind-tables optflags: s390x %{__global_compiler_flags} -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection optflags: aarch64 %{__global_compiler_flags} -fasynchronous-unwind-tables -fstack-clash-protection optflags: riscv64 %{__global_compiler_flags} # set build arch to fedora buildarches on hardware capable of running it # saves having to do rpmbuild --target= buildarchtranslate: athlon: i686 buildarchtranslate: geode: i686 buildarchtranslate: pentium4: i686 buildarchtranslate: pentium3: i686 buildarchtranslate: i686: i686 buildarchtranslate: i586: i586 buildarchtranslate: sparcv9: sparcv9 buildarchtranslate: sparcv9v: sparcv9 buildarchtranslate: armv5tejl: armv5tel buildarchtranslate: armv6l: armv5tel buildarchtranslate: armv7l: armv5tel buildarchtranslate: armv7hl: armv7hl buildarchtranslate: armv7hnl: armv7hl PK Td\O�ڨ � find-requiresnu ȯ�� #!/bin/bash # # Auto-generate requirements for executables (both ELF and a.out) and library # sonames, script interpreters, and perl modules. # ulimit -c 0 filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"` [ -x /usr/lib/rpm/rpmdeps -a -n "$filelist" ] && \ echo $filelist | tr '[:blank:]' \\n | /usr/lib/rpm/rpmdeps --requires # # --- Kernel module imported symbols # # Since we don't (yet) get passed the name of the package being built, we # cheat a little here by looking first for a kernel, then for a kmod. # unset is_kmod for f in $filelist; do if [ $(echo "$f" | sed -r -ne 's:^.*/lib/modules/(.*)/(.*)\.ko(\.gz|\.bz2|\.xz)?$:\2:p') ] then is_kmod=1; elif [ $(echo "$f" | sed -r -ne 's:^.*/boot/(.*):\1:p') ] then unset is_kmod; break; fi done [ -x /usr/lib/rpm/redhat/find-requires.ksyms ] && [ "$is_kmod" ] && printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/redhat/find-requires.ksyms exit 0 PK Td\���1 1 redhat-annobin-plugin-select.shnu ȯ�� #!/usr/bin/sh # This is a script to select which GCC spec file fragment # should be the destination of the redhat-annobin-cc1 symlink. # Author: Nick Clifton <nickc@redhat.com> # Copyright (c) 2021 Red Hat. # # This is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published # by the Free Software Foundation; either version 2, or (at your # option) any later version. # It 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. # # Usage: # redhat-annobin-plugin-select [script-dir] # # If script-dir is not provided then /usr/lib/rpm/redhat is used # as the location where all of the annobin plugin selection files # can be found. if test "x$1" = "x" ; then rrcdir=/usr/lib/rpm/redhat else rrcdir=$1 fi # Set this variable to non-zero to enable the generation of debugging # messages. debug=0 # Decide which version of the annobin plugin for gcc should be used. # There are two possible versions, one created by the annobin package and one # created by the gcc package. The logic selects the gcc version unless both # have been built by the same version of the compiler. In that case the # annobin version is selected instead. # # The point of all this is that the annobin plugin is very sensitive to # mismatches with the version of gcc that built it. If the plugin is built # by version A of gcc, but then run on version B of gcc, it is possible for # the plugin to misbehave, which then causes problems if gating tests examine # the plugin's output. (This has happened more than once in RHEL...). # # So the plugin is built both by gcc and by the annobin package. This means # that whenever gcc is updated a fresh plugin is built, and the logic below # will select that version. But in order to allow annobin development to # proceed independtently of gcc, the annobin package can also update its # version of the plugin, and the logic will select this new version. # This is where the annobin package stores the information on the version # of gcc that built the annobin plugin. aver=`gcc --print-file-name=plugin`/annobin-plugin-version-info # This is where the gcc package stores its version information. gver=`gcc --print-file-name=rpmver` aplugin=`gcc --print-file-name=plugin`/annobin.so.0.0.0 gplugin=`gcc --print-file-name=plugin`/gcc-annobin.so.0.0.0 # This is the file that needs to be updated when either of those version # files changes. rac1=redhat-annobin-cc1 # This is the GCC spec file fragment that selects the gcc-built version of # the annobin plugin select_gcc=redhat-annobin-select-gcc-built-plugin # This is the GCC spec file fragment that selects the annobin-built version # of the annobin plugin select_annobin=redhat-annobin-select-annobin-built-plugin install_annobin_version=0 install_gcc_version=0 if [ -f $aplugin ] then if [ -f $gplugin ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Both plugins exist, checking version information" fi if [ -f $gver ] then if [ -f $aver ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Both plugin version files exist - comparing..." fi # Get the first line from the version info files. This is just in # vase there are extra lines in the files. avers=`head --lines=1 $aver` gvers=`head --lines=1 $gver` if [ $debug -eq 1 ] then echo " redhat-rpm-config: Annobin plugin built by gcc $avers" echo " redhat-rpm-config: GCC plugin built by gcc $gvers" fi # If both plugins were built by the same version of gcc then select # the one from the annobin package (in case it is built from newer # sources). If the plugin builder versions differ, select the gcc # built version instead. This assumes that the gcc built version # always matches the installed gcc, which should be true. if [ $avers = $gvers ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Both plugins built by the same compiler - using annobin-built plugin" fi install_annobin_version=1 else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Versions differ - using gcc-built plugin" fi install_gcc_version=1 fi else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Annobin version file does not exist, using gcc-built plugin" fi install_gcc_version=1 fi else if [ -f $aver ] then # FIXME: This is suspicious. If the installed GCC does not supports plugins # then enabling the annobin plugin will not work. if [ $debug -eq 1 ] then echo " redhat-rpm-config: GCC plugin version file does not exist, using annobin-built plugin" fi install_annobin_version=1 else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Neither version file exists - playing safe and using gcc-built plugin" echo " redhat-rpm-config: Note: expected to find $aver and/or $gver" fi install_gcc_version=1 fi fi else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Only the annobin plugin exists - using that" fi install_annobin_version=1 fi else if [ -f $gplugin ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Only the gcc plugin exists - using that" fi else if [ $debug -eq 1 ] then echo " redhat-rpm-config: Neither plugin exists - playing safe and using gcc-built plugin" echo " redhat-rpm-config: Note: expected to find $aplugin and/or $gplugin" fi fi install_gcc_version=1 fi if [ $install_annobin_version -eq 1 ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Installing annobin version of $rac1" fi pushd $rrcdir > /dev/null rm -f $rac1 ln -s $select_annobin "$rac1" popd > /dev/null else if [ $install_gcc_version -eq 1 ] then if [ $debug -eq 1 ] then echo " redhat-rpm-config: Installing gcc version of $rac1" fi pushd $rrcdir > /dev/null rm -f $rac1 ln -s $select_gcc $rac1 popd > /dev/null fi fi PK Td\~�* brp-ldconfignu ȯ�� #!/bin/sh -f # Force creating of DSO symlinks. # If using normal root, avoid changing anything. if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi /sbin/ldconfig -N -r "$RPM_BUILD_ROOT" # TODO: warn if it created new symlinks and guide people. PK Td\�ံ � dist.shnu ȯ�� #!/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|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 PK Td\~��] ] &