@@ -14,7 +14,8 @@ CONFIG=Release
14
14
NAME=libmsquic
15
15
TLS=openssl
16
16
TLSVERSION=1.1
17
- UBUNTU=
17
+ TIME64DISTRO=" False"
18
+ XDP=" False"
18
19
CONFLICTS=
19
20
DESCRIPTION=" Microsoft implementation of the IETF QUIC protocol"
20
21
VENDOR=" Microsoft"
@@ -86,9 +87,13 @@ while :; do
86
87
shift
87
88
OUTPUT=$1
88
89
;;
89
- -u|-ubuntu |--ubuntu )
90
+ -x|-xdp |--xdp )
90
91
shift
91
- UBUNTU=$1
92
+ XDP=$1
93
+ ;;
94
+ -time64|--time64)
95
+ shift
96
+ TIME64DISTRO=$1
92
97
;;
93
98
-t|-tls|--tls)
94
99
shift
@@ -134,8 +139,9 @@ echo "ARCH=$ARCH PKGARCH=$PKGARCH ARTIFACTS=$ARTIFACTS"
134
139
mkdir -p ${OUTPUT}
135
140
136
141
if [ " $OS " == " linux" ]; then
137
- # Ubuntu 24.04 dependencies are not fully validated on redhat/centos etc.
138
- if [ " $UBUNTU " != ' 2404' ]; then
142
+ # XDP is only validated on Ubuntu 24.04 and x64
143
+ if [ " $XDP " == " False" ] || [[ " $ARCH " == arm* ]]; then
144
+ echo " Building rpm package"
139
145
# RedHat/CentOS
140
146
FILES=" ${ARTIFACTS} /libmsquic.${LIBEXT} .${VER_MAJOR} .${VER_MINOR} .${VER_PATCH} =/usr/${LIBDIR} /libmsquic.${LIBEXT} .${VER_MAJOR} .${VER_MINOR} .${VER_PATCH} "
141
147
FILES=" ${FILES} ${ARTIFACTS} /libmsquic.${LIBEXT} .${VER_MAJOR} =/usr/${LIBDIR} /libmsquic.${LIBEXT} .${VER_MAJOR} "
@@ -183,7 +189,13 @@ if [ "$OS" == "linux" ]; then
183
189
FILES=" ${FILES} ${ARTIFACTS} /libmsquic.lttng.${LIBEXT} .${VER_MAJOR} .${VER_MINOR} .${VER_PATCH} =/usr/${LIBDIR} /libmsquic.lttng.${LIBEXT} .${VER_MAJOR} .${VER_MINOR} .${VER_PATCH} "
184
190
fi
185
191
186
- if [ " $UBUNTU " == ' 2404' ]; then
192
+ BITS=' '
193
+ if [ " $TIME64DISTRO " == " True" ]; then
194
+ BITS=' t64'
195
+ fi
196
+
197
+ if [ " $XDP " == " True" ] && [[ " $ARCH " == x* ]]; then
198
+ echo " Building deb package (XDP)"
187
199
fpm \
188
200
--force \
189
201
--input-type dir \
@@ -192,7 +204,7 @@ if [ "$OS" == "linux" ]; then
192
204
--name ${NAME} \
193
205
--provides ${NAME} \
194
206
--conflicts ${CONFLICTS} \
195
- --depends " libssl${TLSVERSION} " \
207
+ --depends " libssl${TLSVERSION}${BITS} " \
196
208
--depends " libnuma1" \
197
209
--depends " libxdp1" \
198
210
--depends " libnl-route-3-200" \
@@ -206,6 +218,7 @@ if [ "$OS" == "linux" ]; then
206
218
--log error \
207
219
${FILES} ${ARTIFACTS} /datapath_raw_xdp_kern.o=/usr/${LIBDIR} /datapath_raw_xdp_kern.o
208
220
else
221
+ echo " Building deb package"
209
222
fpm \
210
223
--force \
211
224
--input-type dir \
@@ -214,7 +227,7 @@ if [ "$OS" == "linux" ]; then
214
227
--name ${NAME} \
215
228
--provides ${NAME} \
216
229
--conflicts ${CONFLICTS} \
217
- --depends " libssl${TLSVERSION} " \
230
+ --depends " libssl${TLSVERSION}${BITS} " \
218
231
--depends " libnuma1" \
219
232
--version ${VER_MAJOR} .${VER_MINOR} .${VER_PATCH} \
220
233
--description " ${DESCRIPTION} " \
0 commit comments