forked from mviereck/x11docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakedeb
26 lines (26 loc) · 1.38 KB
/
makedeb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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