sup rev 15

Remove skel (built in command for new packages) - back to 'receip' in sup-demo package
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 26 17:39:52 2017 +0100 (2017-02-26)
parents 332073f2e5de
children 2aef3b78e30a
files Makefile data/sup-install.desktop data/sup-server.desktop sup wok/sup-demo/receip wok/sup-demo/receipt wok/sup-skel/receipt
line diff
     1.1 --- a/Makefile	Sun Feb 26 17:03:33 2017 +0100
     1.2 +++ b/Makefile	Sun Feb 26 17:39:52 2017 +0100
     1.3 @@ -40,14 +40,14 @@
     1.4  	install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/slitaz
     1.5  	install -m 0755 -d $(DESTDIR)$(PREFIX)/share/applications
     1.6  	install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale
     1.7 +	install -m 0755 -d $(DESTDIR)$(PREFIX)/share/mime/packages
     1.8  	install -m 0755 sup $(DESTDIR)$(PREFIX)/bin
     1.9  	install -m 0755 libsup.sh $(DESTDIR)$(PREFIX)/lib/slitaz
    1.10  	install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications
    1.11 +	install -m 0644 data/mime/sup.xml $(DESTDIR)$(PREFIX)/share/mime/packages
    1.12  	cp -rf po/clients/mo/* $(DESTDIR)$(PREFIX)/share/locale
    1.13 -	# Demo & skeleton
    1.14  	install -m 0755 -d $(DESTDIR)$(PREFIX)/share/sup/wok
    1.15  	cp -rf wok/sup-demo $(DESTDIR)$(PREFIX)/share/sup/wok
    1.16 -	cp -rf wok/sup-skel $(DESTDIR)$(PREFIX)/share/sup/wok
    1.17  
    1.18  # Use DESTDIR for TinyCM install path
    1.19  # Example: make DESTDIR=/home/tux/Public/cgi-bin/tinycm server-install
    1.20 @@ -64,7 +64,7 @@
    1.21  uninstall:
    1.22  	rm -f $(DESTDIR)$(PREFIX)/bin/sup
    1.23  	rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libsup.sh
    1.24 -	rm -f $(DESTDIR)$(PREFIX)/share/applications/sup
    1.25 +	rm -rf $(DESTDIR)$(PREFIX)/share/sup
    1.26  	rm -f $(DESTDIR)$(PREFIX)/share/applications/sup-*.desktop
    1.27  	rm -rf $(DESTDIR)$(PREFIX)/share/locale/*/LC_MESSAGES/sup-client.mo
    1.28  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/data/sup-install.desktop	Sun Feb 26 17:39:52 2017 +0100
     2.3 @@ -0,0 +1,11 @@
     2.4 +[Desktop Entry]
     2.5 +Type=Application
     2.6 +Name=TazPkg Manager
     2.7 +Name[fr]=Gestionnaire de TazPkg
     2.8 +Name[pt]=Gerenciador de Pacotes TazPkg
     2.9 +Name[pt_BR]=Gerenciador de Pacotes TazPkg
    2.10 +Name[ru]=Менеджер пакетов TazPkg
    2.11 +Exec=tazbox su tazpkg-box actions %f
    2.12 +Icon=system-software-installer
    2.13 +NoDisplay=true
    2.14 +MimeType=application/x-tazpkg;
     3.1 --- a/data/sup-server.desktop	Sun Feb 26 17:03:33 2017 +0100
     3.2 +++ b/data/sup-server.desktop	Sun Feb 26 17:39:52 2017 +0100
     3.3 @@ -1,7 +1,7 @@
     3.4  [Desktop Entry]
     3.5  Encoding=UTF-8
     3.6  Type=Application
     3.7 -Name=Sup web service
     3.8 +Name=SUP Web Services
     3.9  Exec=tazweb --notoolbar http://scn.slitaz.org/?sup
    3.10 -Icon=slitaz-icon
    3.11 +Icon=application-x-archive
    3.12  Categories=Network;
     4.1 --- a/sup	Sun Feb 26 17:03:33 2017 +0100
     4.2 +++ b/sup	Sun Feb 26 17:39:52 2017 +0100
     4.3 @@ -47,6 +47,31 @@
     4.4  	fi
     4.5  }
     4.6  
     4.7 +# new_receipt "package"
     4.8 +new_receip() {
     4.9 +	cat > receip << EOT
    4.10 +# SliTaz User Package receipt
    4.11 +
    4.12 +PACKAGE=""
    4.13 +VERSION=""
    4.14 +SHORT_DESC=""
    4.15 +MAINTAINER=""
    4.16 +LICENSE=""
    4.17 +WEB_SITE=""
    4.18 +
    4.19 +# Sup dependencies will be automatically downloaded but system wide 
    4.20 +# deps must be manually installed by root.
    4.21 +SUP_DEPS=""
    4.22 +DEPENDS=""
    4.23 +
    4.24 +# Here are the optional install rules (download, configure, etc)
    4.25 +sup_install() {
    4.26 +	echo ""
    4.27 +}
    4.28 +
    4.29 +EOT
    4.30 +}
    4.31 +
    4.32  #
    4.33  # Commands
    4.34  #
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/wok/sup-demo/receip	Sun Feb 26 17:39:52 2017 +0100
     5.3 @@ -0,0 +1,18 @@
     5.4 +# SliTaz User Package receipt
     5.5 +
     5.6 +PACKAGE="sup-demo"
     5.7 +VERSION="0.1"
     5.8 +SHORT_DESC="Short package description and information"
     5.9 +MAINTAINER="devel@slitaz.org"
    5.10 +LICENSE="BSD"
    5.11 +WEB_SITE="http://www.slitaz.org/"
    5.12 +
    5.13 +# Sup dependencies will be automatically 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 "Running sup_install() sequence"
    5.21 +} 
     6.1 --- a/wok/sup-demo/receipt	Sun Feb 26 17:03:33 2017 +0100
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,18 +0,0 @@
     6.4 -# SliTaz User Package receipt
     6.5 -
     6.6 -PACKAGE="sup-demo"
     6.7 -VERSION="0.1"
     6.8 -SHORT_DESC="Short package description and information"
     6.9 -MAINTAINER="devel@slitaz.org"
    6.10 -LICENSE="BSD"
    6.11 -WEB_SITE="http://www.slitaz.org/"
    6.12 -
    6.13 -# Sup dependencies will be automatically downloaded but system wide 
    6.14 -# deps must be manually installed by root.
    6.15 -SUP_DEPS=""
    6.16 -DEPENDS=""
    6.17 -
    6.18 -# Here are the optional install rules (download, configure, etc)
    6.19 -sup_install() {
    6.20 -	echo "Running sup_install() sequence"
    6.21 -} 
     7.1 --- a/wok/sup-skel/receipt	Sun Feb 26 17:03:33 2017 +0100
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,18 +0,0 @@
     7.4 -# SliTaz User Package receipt
     7.5 -
     7.6 -PACKAGE=""
     7.7 -VERSION=""
     7.8 -SHORT_DESC=""
     7.9 -MAINTAINER=""
    7.10 -LICENSE=""
    7.11 -WEB_SITE=""
    7.12 -
    7.13 -# Sup dependencies will be automatically downloaded but system wide 
    7.14 -# deps must be manually installed by root.
    7.15 -SUP_DEPS=""
    7.16 -DEPENDS=""
    7.17 -
    7.18 -# Here are the optional install rules (download, configure, etc)
    7.19 -sup_install() {
    7.20 -	echo ""
    7.21 -}