Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T6765: Fix build python3-vici package (backport #802) #803

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions scripts/package-build/strongswan/build-vici.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

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

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


# Create rules file
echo "I: create $SRC/rules"
echo "I: create $SRC/debian/rules"
cat <<EOF > debian/rules
#!/usr/bin/make -f

%:
dh \$@ --with python3
EOF
# Make the rules file executable
chmod +x debian/rules

echo '10' > debian/compat

# Add the 'install' file to copy the vici package to the correct directory
echo "I: create $SRC/debian/install"
cat <<EOF > debian/install
vici /usr/lib/python3/dist-packages/
EOF

# Copy changelog
cp ../../../../../debian/changelog debian/


ls -la
pwd


# Build the package
echo "I: Build Debian Package"
dpkg-buildpackage -uc -us -tc -b -d

# Copy the resulting .deb packages
echo "I: copy packages"
cp ../*.deb ../../../../../../
cp ../*.deb ../../../../../../
Loading