sup rev 3
Add packages example and demo
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 24 07:08:59 2017 +0100 (2017-02-24) |
parents | 03fbf0feb269 |
children | dd49e420a111 |
files | wok/sup-demo/README wok/sup-demo/files/config/sup-demo/demo.conf wok/sup-demo/files/local/bin/sup-demo wok/sup-demo/receip wok/sup-skel/receip |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/wok/sup-demo/README Fri Feb 24 07:08:59 2017 +0100 1.3 @@ -0,0 +1,2 @@ 1.4 +This optional README file ccan be used to give more information 1.5 +about the package installation and usage
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/wok/sup-demo/files/config/sup-demo/demo.conf Fri Feb 24 07:08:59 2017 +0100 2.3 @@ -0,0 +1,3 @@ 2.4 +# Configurable variable(s) 2.5 +# 2.6 +bugs="http://bugs.slitaz.org"
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/wok/sup-demo/files/local/bin/sup-demo Fri Feb 24 07:08:59 2017 +0100 3.3 @@ -0,0 +1,16 @@ 3.4 +#!/bin/sh 3.5 +# 3.6 +# SliTaz User Package - Demo script 3.7 +# Copyright (C) 2017 SliTaz GNU/Linux - BSD License 3.8 +# 3.9 +. /lib/libtaz.sh 3.10 + 3.11 +newline 3.12 +echo "$(colorize 33 'Running script :') sup-demo" 3.13 +echo "$(boldify 'Script dir :') $PWD" 3.14 +echo "Timestamp : $(date)" 3.15 +echo "Local path : $HOME/.local" 3.16 +echo "Sleeping : 2 seconds" && sleep 2 3.17 +newline 3.18 + 3.19 +exit 0
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/wok/sup-demo/receip Fri Feb 24 07:08:59 2017 +0100 4.3 @@ -0,0 +1,18 @@ 4.4 +# SliTaz User Package receip 4.5 + 4.6 +PACKAGE="sup-demo" 4.7 +VERSION="0.1" 4.8 +SHORT_DESC="Short package description and information" 4.9 +MAINTAINER="devel@slitaz.org" 4.10 +LICENSE="BSD" 4.11 +WEB_SITE="http://www.slitaz.org/" 4.12 + 4.13 +# Sup dependencies will be automaticaly downloaded but system wide 4.14 +# deps must be manually installed by root. 4.15 +SUP_DEPS="" 4.16 +DEPENDS="" 4.17 + 4.18 +# Here are the optional install rules (download, configure, etc) 4.19 +sup_install() { 4.20 + echo "Running sup_install() sequence" 4.21 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/wok/sup-skel/receip Fri Feb 24 07:08:59 2017 +0100 5.3 @@ -0,0 +1,18 @@ 5.4 +# SliTaz User Package receip 5.5 + 5.6 +PACKAGE="" 5.7 +VERSION="" 5.8 +SHORT_DESC="" 5.9 +MAINTAINER="" 5.10 +LICENSE="" 5.11 +WEB_SITE="" 5.12 + 5.13 +# Sup dependencies will be automaticaly downloaded but system wide 5.14 +# deps must be manually installed by root. 5.15 +SUP_DEPS="" 5.16 +DEPENDS="" 5.17 + 5.18 +# Here are the optional install rules (download, configure, etc) 5.19 +sup_install() { 5.20 + echo "" 5.21 +}