summaryrefslogtreecommitdiff
path: root/linux/deb/fs-hello-kamal/package
diff options
context:
space:
mode:
Diffstat (limited to 'linux/deb/fs-hello-kamal/package')
-rw-r--r--linux/deb/fs-hello-kamal/package/DEBIAN/conffiles1
-rw-r--r--linux/deb/fs-hello-kamal/package/DEBIAN/control8
-rwxr-xr-xlinux/deb/fs-hello-kamal/package/DEBIAN/postinst10
-rwxr-xr-xlinux/deb/fs-hello-kamal/package/DEBIAN/preinst8
-rw-r--r--linux/deb/fs-hello-kamal/package/etc/fs-hello-kamal.conf3
-rwxr-xr-xlinux/deb/fs-hello-kamal/package/usr/bin/fs-hello-kamal16
6 files changed, 0 insertions, 46 deletions
diff --git a/linux/deb/fs-hello-kamal/package/DEBIAN/conffiles b/linux/deb/fs-hello-kamal/package/DEBIAN/conffiles
deleted file mode 100644
index c350b0c..0000000
--- a/linux/deb/fs-hello-kamal/package/DEBIAN/conffiles
+++ /dev/null
@@ -1 +0,0 @@
-/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
deleted file mode 100644
index 82f25db..0000000
--- a/linux/deb/fs-hello-kamal/package/DEBIAN/control
+++ /dev/null
@@ -1,8 +0,0 @@
-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
deleted file mode 100755
index 978306d..0000000
--- a/linux/deb/fs-hello-kamal/package/DEBIAN/postinst
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/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
deleted file mode 100755
index 61c2587..0000000
--- a/linux/deb/fs-hello-kamal/package/DEBIAN/preinst
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-
-set -e
-
-# Put commands that should execute before the pckage is installed.
-
-# Example: Just print a message
-echo "preinst script running..."
diff --git a/linux/deb/fs-hello-kamal/package/etc/fs-hello-kamal.conf b/linux/deb/fs-hello-kamal/package/etc/fs-hello-kamal.conf
deleted file mode 100644
index ddba856..0000000
--- a/linux/deb/fs-hello-kamal/package/etc/fs-hello-kamal.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-# This is a sample configuration file.
-
-PREFIX_NAME="Kamal"
diff --git a/linux/deb/fs-hello-kamal/package/usr/bin/fs-hello-kamal b/linux/deb/fs-hello-kamal/package/usr/bin/fs-hello-kamal
deleted file mode 100755
index b8c827c..0000000
--- a/linux/deb/fs-hello-kamal/package/usr/bin/fs-hello-kamal
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-# Define a function that sends messages to stderr.
-errcho() {
- echo "$@" 1>&2;
-}
-
-# Source the configuration file.
-. /etc/fs-hello-kamal.conf
-
-if [ "$1" = "" ]; then
- errcho "Error! Provide some arguments to the command."
- exit 1
-fi
-
-/usr/games/cowsay "$PREFIX_NAME's friend cow says $@"