diff options
Diffstat (limited to 'share/templater/trashman-debian')
-rw-r--r-- | share/templater/trashman-debian/description | 1 | ||||
-rwxr-xr-x | share/templater/trashman-debian/files/install | 19 | ||||
-rwxr-xr-x | share/templater/trashman-debian/setup | 30 |
3 files changed, 50 insertions, 0 deletions
diff --git a/share/templater/trashman-debian/description b/share/templater/trashman-debian/description new file mode 100644 index 0000000..3b4e000 --- /dev/null +++ b/share/templater/trashman-debian/description @@ -0,0 +1 @@ +Trashman package skeleton for debian systems diff --git a/share/templater/trashman-debian/files/install b/share/templater/trashman-debian/files/install new file mode 100755 index 0000000..b1f1a4c --- /dev/null +++ b/share/templater/trashman-debian/files/install @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Hoarder installer for debian systems. +# + +# Parameters +SHARE="$1" +LIB="$2" +REQUIREMENTS="" + +# Include basic functions +. $LIB/trashman/functions || exit 1 +. $LIB/trashman/debian || exit 1 + +# Requirements +#trashman_apt_install_packages $REQUIREMENTS + +# Write your custom installation code here +# TODO diff --git a/share/templater/trashman-debian/setup b/share/templater/trashman-debian/setup new file mode 100755 index 0000000..ea38c38 --- /dev/null +++ b/share/templater/trashman-debian/setup @@ -0,0 +1,30 @@ +#!/bin/bash +# +# Trashman package templater module for debian systems. +# + +# Parameters +SHARE="$1" + +# Include basic functions +source $SHARE/templater/functions || exit 1 + +# Templater module +function templater_trashman_debian { + if [ ! -e "description" ]; then + templater_echo "Setting Trashman package for debian systems" + + touch info + mkdir unix/linux/debian + + if [ ! -e 'unix/linux/debian/install' ]; then + cp $SHARE/trashman-debian/files/install unix/linux/debian/install + chmod +x unix/linux/debian/install + fi + else + templater_echo "Trashman package already set" + fi +} + +# Dispatch +templater_trashman |