diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-23 14:45:05 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-05-23 14:45:05 +0530 |
| commit | fe8b0606b434bb17f870cf9e6ba473c2ef39ca1f (patch) | |
| tree | da76e9376de7f0e1b74d47e0f439345be1025503 /linux/deb/fs-hello-kamal/package/DEBIAN | |
| parent | bef7e64a134b0c3bd7bf9c3175b8a3817c3b9eb7 (diff) | |
Added a simple deb file creation sample project to linux/deb directory
Diffstat (limited to 'linux/deb/fs-hello-kamal/package/DEBIAN')
| -rw-r--r-- | linux/deb/fs-hello-kamal/package/DEBIAN/conffiles | 1 | ||||
| -rw-r--r-- | linux/deb/fs-hello-kamal/package/DEBIAN/control | 8 | ||||
| -rwxr-xr-x | linux/deb/fs-hello-kamal/package/DEBIAN/postinst | 10 | ||||
| -rwxr-xr-x | linux/deb/fs-hello-kamal/package/DEBIAN/preinst | 8 |
4 files changed, 27 insertions, 0 deletions
diff --git a/linux/deb/fs-hello-kamal/package/DEBIAN/conffiles b/linux/deb/fs-hello-kamal/package/DEBIAN/conffiles new file mode 100644 index 0000000..c350b0c --- /dev/null +++ b/linux/deb/fs-hello-kamal/package/DEBIAN/conffiles @@ -0,0 +1 @@ +/etc/fs-hello-kamal.conf diff --git a/linux/deb/fs-hello-kamal/package/DEBIAN/control b/linux/deb/fs-hello-kamal/package/DEBIAN/control new file mode 100644 index 0000000..82f25db --- /dev/null +++ b/linux/deb/fs-hello-kamal/package/DEBIAN/control @@ -0,0 +1,8 @@ +Package: fs-hello-kamal +Version: 1.0.0-1 +Section: games +Priority: optional +Architecture: all +Depends: cowsay +Maintainer: Kamal Wickramanayake <info@software.lk> +Description: A demo Debian package that prints a message to the console. diff --git a/linux/deb/fs-hello-kamal/package/DEBIAN/postinst b/linux/deb/fs-hello-kamal/package/DEBIAN/postinst new file mode 100755 index 0000000..978306d --- /dev/null +++ b/linux/deb/fs-hello-kamal/package/DEBIAN/postinst @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e + +if [ "$1" == "configure" ] && [ -z "$2" ]; then + # Code here executes only during package install (but not during upgrade) + echo "postinst script is running and this line gets printed during first install of the package" +fi + +echo "postinst script is running and this line gets printed during install or upgrade of the package." diff --git a/linux/deb/fs-hello-kamal/package/DEBIAN/preinst b/linux/deb/fs-hello-kamal/package/DEBIAN/preinst new file mode 100755 index 0000000..61c2587 --- /dev/null +++ b/linux/deb/fs-hello-kamal/package/DEBIAN/preinst @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +# Put commands that should execute before the pckage is installed. + +# Example: Just print a message +echo "preinst script running..." |
