Skip to content

Commit 5cc309d

Browse files
authored
new file: debian/README.source (#592)
Describes how to build
1 parent 4e8d6d0 commit 5cc309d

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

debian/README.source

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#
2+
# Juli Augustus 2025 was building the downloadable Debian packages done
3+
# by github.com CI, meaning you being depended on github.com
4+
# for getting a .deb of the libre source code (four GNU freedoms) you have.
5+
#
6+
# And in those days there was no official Debian package.
7+
#
8+
# What follows are instructions that make it possible to do
9+
# a succesfull
10+
#
11+
# debuild -uc -us
12+
#
13+
# in the directory target/rustdesk-server
14+
#
15+
# The instructions are written in bash syntax,
16+
#
17+
# bash debian/README.source
18+
#
19+
# should help you immens
20+
#
21+
22+
# Make sure the submodules are present
23+
git submodule update --init --recursive
24+
25+
rm -rf target/rustdesk-server # avoid clutter from previous iteration
26+
mkdir -p target/rustdesk-server # FYI: target/ is ignored by git
27+
28+
tar cf - \
29+
--exclude .git \
30+
Cargo.toml Cargo.lock \
31+
LICENSE README.md \
32+
db_v2.sqlite3 \
33+
build.rs \
34+
debian \
35+
libs rcd src \
36+
systemd ui \
37+
| ( cd target/rustdesk-server && tar x )
38+
39+
mv target/rustdesk-server/debian/Makefile target/rustdesk-server/
40+
41+
tar cjf target/rustdesk-server-orig.tar.xz \
42+
--strip-components=1 \
43+
target/rustdesk-server
44+
45+
# an .orig.tar.xz tarball exists,
46+
# work on the debian directory
47+
48+
eval $( dpkg-architecture )
49+
sed -e "s/{{ ARCH }}/${DEB_TARGET_ARCH}/" \
50+
debian/control.tpl > target/rustdesk-server/debian/control
51+
52+
53+
cd target/rustdesk-server
54+
dpkg-checkbuilddeps || echo sudo apt install dpkg-dev
55+
debuild -uc -us
56+
57+
#
58+
# For what it is worth:
59+
# Early September 2025 there were
60+
# several WARNINGS and ERRORS from Lintian
61+
#
62+
# l l

0 commit comments

Comments
 (0)