File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # Copyright 2025 Delphix
4+ #
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+ #
17+ # shellcheck disable=SC2034
18+
19+ SKIP_COPYRIGHT_CHECKS=true
20+ DEFAULT_PACKAGE_GIT_URL=none
21+
22+ function fetch() {
23+ logmust apt-get source openssh
24+ }
25+
26+ function prepare() {
27+ logmust pushd openssh-9.6p1
28+
29+ # Enable xtrace for postinst hook
30+ logmust sed -i ' 1c\/bin/bash -x' debian/openssh-server.postinst
31+
32+ logmust sudo env DEBIAN_FRONTEND=noninteractive mk-build-deps --install \
33+ --tool=' apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' \
34+ debian/control
35+
36+ logmust popd
37+ }
38+
39+ function build() {
40+ logmust pushd openssh-9.6p1
41+ logmust set_changelog
42+ logmust dpkg-buildpackage -b -us -uc
43+ logmust mv ../* deb " $WORKDIR /artifacts"
44+ logmust popd
45+ }
You can’t perform that action at this time.
0 commit comments