Skip to content

Commit 9eb61d3

Browse files
authored
Merge pull request #802 from sever-sever/T6765
T6765: Fix build python3-vici package
2 parents b66e95d + 7c5c033 commit 9eb61d3

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

scripts/package-build/strongswan/build-vici.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
SRC="strongswan/src/libcharon/plugins/vici/python"
66
if [ ! -d ${SRC} ]; then
7-
echo "Source directory does not exists, please 'git clone'"
7+
echo "Source directory does not exist, please 'git clone'"
88
exit 1
99
fi
1010

@@ -28,30 +28,31 @@ Depends: \${misc:Depends}, \${python3:Depends}
2828
Description: Native Python interface for strongSwan's VICI protocol
2929
EOF
3030

31-
3231
# Create rules file
33-
echo "I: create $SRC/rules"
32+
echo "I: create $SRC/debian/rules"
3433
cat <<EOF > debian/rules
3534
#!/usr/bin/make -f
3635
3736
%:
3837
dh \$@ --with python3
3938
EOF
40-
# Make the rules file executable
4139
chmod +x debian/rules
4240

4341
echo '10' > debian/compat
4442

43+
# Add the 'install' file to copy the vici package to the correct directory
44+
echo "I: create $SRC/debian/install"
45+
cat <<EOF > debian/install
46+
vici /usr/lib/python3/dist-packages/
47+
EOF
48+
4549
# Copy changelog
4650
cp ../../../../../debian/changelog debian/
4751

48-
49-
ls -la
50-
pwd
51-
52-
52+
# Build the package
5353
echo "I: Build Debian Package"
5454
dpkg-buildpackage -uc -us -tc -b -d
5555

56+
# Copy the resulting .deb packages
5657
echo "I: copy packages"
57-
cp ../*.deb ../../../../../../
58+
cp ../*.deb ../../../../../../

0 commit comments

Comments
 (0)