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

Add a .deb package and a script to auto-build .deb #469

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
5 changes: 5 additions & 0 deletions change-of-fork.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1. now `--install` `--update*` `--remove` and `--launcher` can be use without detecting the backend
2. add a variable `Installermode_Disabled` to disable `--install` `--update*` `--remove` for packaging
3. add a man by `help2man`
4. add a script to auto-packaging `.deb` (I do not know if an auto rpm packager is possible, for openSUSE, Fedora... can have deference package name for dependency )
5. add a `.deb`. Depends is corrected as 'docker.io | podman', x11 dependency is in Recommends ,wayland dependency is in Suggest.
26 changes: 26 additions & 0 deletions makedeb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
VERSION_x11docker2deb=0.3
VERSION_x11docker=`./x11docker --version`
echo "Version of x11docker2deb : $VERSION_x11docker2deb"
echo "Version of x11docker : $VERSION_x11docker"
mkdir -p x11docker-deb/usr/bin
mkdir -p x11docker-deb/usr/share/man/man1
cp ./x11docker ./x11docker-deb/usr/bin
mkdir -p x11docker-deb/DEBIAN
cat > ./x11docker-deb/DEBIAN/control << EOF
Package: x11docker
Version: $VERSION_x11docker
Architecture: all
Priority: optional
Depends: bash
Installed-Size: 450
Sections: x11
Recommends: nxagent, xserver-xephyr, xdotool, xauth, xinit, xclip, xutils, xserver-xorg, docker.io | podman
Suggests: weston, xwayland
Maintainer: Jy Deng <[email protected]>
Description: A tool to run GUI applications and desktops in Linux containers with backends like podman or docker. X11docker helps to avoid X security leaks and enhance container security. Software can be installed in a deployable image with a rudimentary Linux system inside. This can help to run or deploy software that is difficult to install on several systems due to dependency issues. It is possible to run outdated versions or latest development versions side by side. Files to work on can be shared between host and container.
EOF
help2man ./x11docker --no-discard-stderr > ./man
gzip --keep ./man
mv ./man.gz ./x11docker-deb/usr/share/man/man1/x11docker.1.gz
dpkg -b ./x11docker-deb x11docker-$VERSION_x11docker.deb
Loading