This commit is contained in:
boypt
2021-08-25 15:40:13 +08:00
parent 120bddaf1c
commit b1c9060c38
6 changed files with 21 additions and 15 deletions

View File

@@ -28,7 +28,6 @@ if [[ ! -d $rpmtopdir ]]; then
fi
source version.env
CHECKEXISTS() {
if [[ ! -f $__dir/downloads/$1 ]];then
echo "$1 not found, run 'downloadsrc.sh', or manually put it in the downloads dir."
@@ -36,21 +35,21 @@ CHECKEXISTS() {
fi
}
SOURCES=( $OPENSSHSRC \
$OPENSSLSRC \
"x11-ssh-askpass-1.2.4.1.tar.gz" \
)
for fn in ${SOURCES[@]}; do
CHECKEXISTS $fn
install -v -m666 $__dir/downloads/$fn $rpmtopdir/SOURCES/
done
# on centos5, it's prefered to use gcc44
if yum --disablerepo=* list installed gcc44; then
export CC=gcc44
fi
SOURCES=( $OPENSSHSRC \
$OPENSSLSRC \
$ASKPASSSRC \
)
pushd $rpmtopdir
for fn in ${SOURCES[@]}; do
CHECKEXISTS $fn
install -v -m666 $__dir/downloads/$fn ./SOURCES/
done
rpmbuild -ba SPECS/openssh.spec --target $(uname -m) --define "_topdir $PWD"
popd

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -24,14 +24,22 @@ source version.env
OPENSSHMIR=https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/
OPENSSLMIR=https://www.openssl.org/source/
ASKPASSMIR=https://src.fedoraproject.org/repo/pkgs/openssh/x11-ssh-askpass-1.2.4.1.tar.gz/8f2e41f3f7eaa8543a2440454637f3c3
mkdir -p downloads
pushd downloads
if [[ ! -f $OPENSSLSRC ]]; then
echo "Get:" $OPENSSLMIR/$OPENSSLSRC
wget $OPENSSLMIR/$OPENSSLSRC
fi
if [[ ! -f $OPENSSHSRC ]]; then
echo Get: $OPENSSHMIR/$OPENSSHSRC
wget $OPENSSHMIR/$OPENSSHSRC
fi
if [[ ! -f $ASKPASSSRC ]]; then
echo Get: $ASKPASSMIR/$ASKPASSSRC
wget $ASKPASSMIR/$ASKPASSSRC
fi

View File

@@ -1,4 +1,3 @@
OPENSSLVER="1.1.1l"
OPENSSHVER="8.7p1"
OPENSSLSRC=openssl-${OPENSSLVER}.tar.gz
OPENSSHSRC=openssh-${OPENSSHVER}.tar.gz
OPENSSLSRC=openssl-1.1.1l.tar.gz
OPENSSHSRC=openssh-8.7p1.tar.gz
ASKPASSSRC=x11-ssh-askpass-1.2.4.1.tar.gz