File tree Expand file tree Collapse file tree 2 files changed +18
-12
lines changed
packages/challenge-response Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -1087,9 +1087,24 @@ function push_to_remote() {
1087
1087
#
1088
1088
function set_changelog() {
1089
1089
check_env PACKAGE_REVISION
1090
- local src_package=" ${1:- $PACKAGE } "
1091
1090
local final_version
1092
1091
1092
+ #
1093
+ # If the name of the source package isn't passed in as a parameter,
1094
+ # then deduce it. If there's a debian/control file that specifies that
1095
+ # package name, then use it. Otherwise, default to the name of the
1096
+ # linux-pkg directory name. This can't always be the default because
1097
+ # for some packages, those are different. For example, the
1098
+ # challenge-response linux-pkg directory generates the
1099
+ # pam-challenge-response debian package.
1100
+ #
1101
+ if [[ -n $1 ]]; then
1102
+ src_package=$1
1103
+ elif [[ -f debian/control ]]; then
1104
+ src_package=$( awk ' /^Source:/ { print $2 }' debian/control)
1105
+ fi
1106
+ src_package=${src_package:- $PACKAGE }
1107
+
1093
1108
#
1094
1109
# If PACKAGE_VERSION hasn't been set already, then retrieve it from
1095
1110
# The changelog file. If the changelog file doesn't exist, which
Original file line number Diff line number Diff line change 19
19
DEFAULT_PACKAGE_GIT_URL=" https://github.com/delphix/challenge-response.git"
20
20
21
21
function prepare() {
22
- logmust install_pkgs \
23
- libpam0g-dev \
24
- libssl-dev \
25
- uuid-dev
22
+ install_build_deps_from_control_file
26
23
}
27
24
28
25
function build() {
29
- logmust cd " $WORKDIR /repo/challenge_response/lib"
30
- PACKAGE_VERSION=$( date +%Y.%m.%d.%H)
31
- logmust set_changelog
32
-
33
- logmust cd " $WORKDIR /repo/challenge_response"
34
- logmust make package
35
- logmust mv " ./$( dpkg-architecture -q DEB_HOST_GNU_CPU) " /* deb " $WORKDIR /artifacts/"
26
+ dpkg_buildpackage_default
36
27
}
You can’t perform that action at this time.
0 commit comments