Ubuntu升級openssh

技术颜良發表於2024-04-12
Skip to content
  • boypt/
  • openssh-deb
  • Code
  • Issues
  • Pull requests
  • Actions
  • Security
  • Insights
Owner avataropenssh-debPublic
  • Watch 1
  • Fork 0

boypt/openssh-deb

Add file

Folders and files

Name

Latest commit

authorGit User
bump 9.7p1-4
d7cffbf · 5 days ago

History

36 Commits
builddep
init
2 months ago
docker
libcbor move
last month
.gitignore
init
2 months ago
README.md
update doc
last month
compile.sh
use OPENSSLDIR var
last month
pullsrc.sh
use sid package version string
last month
version.env
bump 9.7p1-4
5 days ago

Repository files navigation

  • README

Backport OpenSSH for Debian / Ubuntu distros.

A simple script to build backport openssh deb, using Debian sid sources.

Similar Project: Backport OpenSSH RPM for CentOS

Current Version:

  • OpenSSH 9.7p1
  • OpenSSL 3.0.13 (static linked)

Supported (tested) Distro:

  • Ubuntu 22.04
  • Ubuntu 20.04
  • Ubuntu 18.04
  • Debian bookworm
  • Debian bullseye

Direct Build

# Install Dependencies
sudo apt install pkgconf build-essential fakeroot \
    dpkg-dev debhelper debhelper-compat dh-exec dh-runit \
    libkrb5-dev libpam0g-dev libwrap0-dev \
    libaudit-dev libedit-dev libfido2-dev \
    libgtk-3-dev libselinux1-dev libsystemd-dev \
    libcbor-dev

# pull source
./pullsrc.sh

# direct build
./compile.sh

Docker Build

Build without installing a bunch of dev packages, also for a different distro by changing build-arg.

# pull source from debian sid
./pullsrc.sh

# build a docker image that fits your target system.
docker build \
    -t opensshbuild \
    --build-arg DISTRO=ubuntu \
    --build-arg DISTVER=22.04 \
    --build-arg APT_MIRROR=ftp.us.debian.org \
    ./docker

# run the build process
docker run --rm -v $PWD:/data opensshbuild

# clean up docker image
docker image rm opensshbuild
docker builder prune

Install DEBs

All DEBs are generated right under build directory. (either direct build or docker build).

ls -l build/*.deb

# Ignore thoses files with dbgsym and tests
find build -maxdepth 1 ! -name '*dbgsym*' ! -name '*tests*' -name '*.deb' | xargs sudo apt install -y

About

A simple script to build latest deb package, using Debian sid packaging sources.

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

No releases published

Packages

No packages published

Languages

  • Shell76.8%
  • Dockerfile23.2%

Footer

© 2024 GitHub, Inc.
  • Terms
  • Privacy
  • Security
  • Status
  • Docs
  • Contact
boypt/openssh-deb: A simple script to build latest deb package, using Debian sid packaging sources.

相關文章