File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
scripts/package-build/strongswan Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
SRC=" strongswan/src/libcharon/plugins/vici/python"
6
6
if [ ! -d ${SRC} ]; then
7
- echo " Source directory does not exists , please 'git clone'"
7
+ echo " Source directory does not exist , please 'git clone'"
8
8
exit 1
9
9
fi
10
10
@@ -28,30 +28,31 @@ Depends: \${misc:Depends}, \${python3:Depends}
28
28
Description: Native Python interface for strongSwan's VICI protocol
29
29
EOF
30
30
31
-
32
31
# Create rules file
33
- echo " I: create $SRC /rules"
32
+ echo " I: create $SRC /debian/ rules"
34
33
cat << EOF > debian/rules
35
34
#!/usr/bin/make -f
36
35
37
36
%:
38
37
dh \$ @ --with python3
39
38
EOF
40
- # Make the rules file executable
41
39
chmod +x debian/rules
42
40
43
41
echo ' 10' > debian/compat
44
42
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
+
45
49
# Copy changelog
46
50
cp ../../../../../debian/changelog debian/
47
51
48
-
49
- ls -la
50
- pwd
51
-
52
-
52
+ # Build the package
53
53
echo " I: Build Debian Package"
54
54
dpkg-buildpackage -uc -us -tc -b -d
55
55
56
+ # Copy the resulting .deb packages
56
57
echo " I: copy packages"
57
- cp ../* .deb ../../../../../../
58
+ cp ../* .deb ../../../../../../
You can’t perform that action at this time.
0 commit comments