diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/templater/hoarder-debian/description | 1 | ||||
-rwxr-xr-x | share/templater/hoarder-debian/files/install | 18 | ||||
-rwxr-xr-x | share/templater/hoarder-debian/setup | 30 | ||||
-rw-r--r-- | share/templater/hoarder/description | 1 | ||||
-rwxr-xr-x | share/templater/hoarder/setup | 25 | ||||
-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 |
8 files changed, 125 insertions, 0 deletions
diff --git a/share/templater/hoarder-debian/description b/share/templater/hoarder-debian/description new file mode 100644 index 0000000..3471942 --- /dev/null +++ b/share/templater/hoarder-debian/description @@ -0,0 +1 @@ +Hoarder package skeleton for debian systems diff --git a/share/templater/hoarder-debian/files/install b/share/templater/hoarder-debian/files/install new file mode 100755 index 0000000..d63ab42 --- /dev/null +++ b/share/templater/hoarder-debian/files/install @@ -0,0 +1,18 @@ +#!/bin/bash +# +# Trashman installer for debian systems. +# + +# Parameters +SHARE="$1" +REQUIREMENTS="" + +# Include basic functions +. $SHARE/trashman/functions || exit 1 +. $SHARE/trashman/debian || exit 1 + +# Requirements +#trashman_apt_install_packages $REQUIREMENTS + +# Write your custom installation code here +# TODO diff --git a/share/templater/hoarder-debian/setup b/share/templater/hoarder-debian/setup new file mode 100755 index 0000000..fa8af13 --- /dev/null +++ b/share/templater/hoarder-debian/setup @@ -0,0 +1,30 @@ +#!/bin/bash +# +# Hoarder 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 Hoarder package for debian systems" + + touch info + mkdir unix/linux/debian + + if [ ! -e 'unix/linux/debian/install' ]; then + cp $SHARE/hoarder-debian/files/install unix/linux/debian/install + chmod +x unix/linux/debian/install + fi + else + templater_echo "Hoarder package already set" + fi +} + +# Dispatch +templater_trashman diff --git a/share/templater/hoarder/description b/share/templater/hoarder/description new file mode 100644 index 0000000..20b5536 --- /dev/null +++ b/share/templater/hoarder/description @@ -0,0 +1 @@ +Hoarder package skeleton diff --git a/share/templater/hoarder/setup b/share/templater/hoarder/setup new file mode 100755 index 0000000..bb9ce49 --- /dev/null +++ b/share/templater/hoarder/setup @@ -0,0 +1,25 @@ +#!/bin/bash +# +# Hoarder package templater module. +# + +# Parameters +SHARE="$1" + +# Include basic functions +source $SHARE/templater/functions || exit 1 + +# Templater module +function templater_trashman { + if [ ! -e "description" ]; then + templater_echo "Setting Hoarde package" + + touch info + mkdir unix + else + templater_echo "Hoarder package already set" + fi +} + +# Dispatch +templater_trashman 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 |