Skip to content

Commit 46db7ff

Browse files
committed
packaging: align zypper placeholder handling and kafka cmake flags
1 parent a3698f6 commit 46db7ff

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,15 @@ rpm --import $RELEASE_KEY
154154
cat << EOF > /etc/zypp/repos.d/fluent-bit.repo
155155
[fluent-bit]
156156
name = Fluent Bit
157-
baseurl = $RELEASE_URL/opensuse/leap/\$releaserver
157+
baseurl = $RELEASE_URL/opensuse/leap/VERSION_SUBSTR
158158
gpgcheck=1
159159
repo_gpgcheck=1
160160
gpgkey=$RELEASE_KEY
161161
enabled=1
162162
type=rpm-md
163163
autorefresh=1
164164
EOF
165+
sed -i 's|VERSION_SUBSTR|\$releaserver|g' /etc/zypp/repos.d/fluent-bit.repo
165166
cat /etc/zypp/repos.d/fluent-bit.repo
166167
zypper --non-interactive --gpg-auto-import-keys refresh
167168
$INSTALL_CMD_PREFIX zypper --non-interactive --gpg-auto-import-keys $ZYPPER_PARAMETERS install $INSTALL_PACKAGE_NAME$ZYPPER_VERSION
@@ -173,14 +174,15 @@ rpm --import $RELEASE_KEY
173174
cat << EOF > /etc/zypp/repos.d/fluent-bit.repo
174175
[fluent-bit]
175176
name = Fluent Bit
176-
baseurl = $RELEASE_URL/sles/\$releasever
177+
baseurl = $RELEASE_URL/sles/VERSION_SUBSTR
177178
gpgcheck=1
178179
repo_gpgcheck=1
179180
gpgkey=$RELEASE_KEY
180181
enabled=1
181182
type=rpm-md
182183
autorefresh=1
183184
EOF
185+
sed -i 's|VERSION_SUBSTR|\$releasever|g' /etc/zypp/repos.d/fluent-bit.repo
184186
cat /etc/zypp/repos.d/fluent-bit.repo
185187
zypper --non-interactive --gpg-auto-import-keys refresh
186188
$INSTALL_CMD_PREFIX zypper --non-interactive --gpg-auto-import-keys $ZYPPER_PARAMETERS install $INSTALL_PACKAGE_NAME$ZYPPER_VERSION

packaging/distros/opensuse/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ RUN cmake -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
110110
-DFLB_TRACE="$FLB_TRACE" \
111111
-DFLB_SQLDB="$FLB_SQLDB" \
112112
-DFLB_HTTP_SERVER="$FLB_HTTP_SERVER" \
113+
-DFLB_OUT_KAFKA="$FLB_OUT_KAFKA" \
113114
-DFLB_KAFKA="$FLB_KAFKA" \
114115
-DFLB_OUT_PGSQL="$FLB_OUT_PGSQL" \
115116
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \

packaging/distros/sles/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ RUN cmake -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
7575
-DFLB_TRACE="$FLB_TRACE" \
7676
-DFLB_SQLDB="$FLB_SQLDB" \
7777
-DFLB_HTTP_SERVER="$FLB_HTTP_SERVER" \
78+
-DFLB_OUT_KAFKA="$FLB_OUT_KAFKA" \
7879
-DFLB_KAFKA="$FLB_KAFKA" \
7980
-DFLB_OUT_PGSQL="$FLB_OUT_PGSQL" \
8081
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \

0 commit comments

Comments
 (0)