mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-rpms.git
synced 2026-09-20 08:03:38 +08:00
add src
This commit is contained in:
21
compile.sh
21
compile.sh
@@ -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
|
||||
|
||||
BIN
downloads/openssh-8.7p1.tar.gz
Normal file
BIN
downloads/openssh-8.7p1.tar.gz
Normal file
Binary file not shown.
BIN
downloads/openssl-1.1.1l.tar.gz
Normal file
BIN
downloads/openssl-1.1.1l.tar.gz
Normal file
Binary file not shown.
BIN
downloads/x11-ssh-askpass-1.2.4.1.tar.gz
Normal file
BIN
downloads/x11-ssh-askpass-1.2.4.1.tar.gz
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user