# HG changeset patch # User Christophe Lincoln # Date 1488127192 -3600 # Node ID 2d6da8d88ae8e3d3957dda1dfcb2125d230fcbeb # Parent 332073f2e5de5d0a01d9b9d9a00127db0edce3ab Remove skel (built in command for new packages) - back to 'receip' in sup-demo package diff -r 332073f2e5de -r 2d6da8d88ae8 Makefile --- a/Makefile Sun Feb 26 17:03:33 2017 +0100 +++ b/Makefile Sun Feb 26 17:39:52 2017 +0100 @@ -40,14 +40,14 @@ install -m 0755 -d $(DESTDIR)$(PREFIX)/lib/slitaz install -m 0755 -d $(DESTDIR)$(PREFIX)/share/applications install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/mime/packages install -m 0755 sup $(DESTDIR)$(PREFIX)/bin install -m 0755 libsup.sh $(DESTDIR)$(PREFIX)/lib/slitaz install -m 0644 data/*.desktop $(DESTDIR)$(PREFIX)/share/applications + install -m 0644 data/mime/sup.xml $(DESTDIR)$(PREFIX)/share/mime/packages cp -rf po/clients/mo/* $(DESTDIR)$(PREFIX)/share/locale - # Demo & skeleton install -m 0755 -d $(DESTDIR)$(PREFIX)/share/sup/wok cp -rf wok/sup-demo $(DESTDIR)$(PREFIX)/share/sup/wok - cp -rf wok/sup-skel $(DESTDIR)$(PREFIX)/share/sup/wok # Use DESTDIR for TinyCM install path # Example: make DESTDIR=/home/tux/Public/cgi-bin/tinycm server-install @@ -64,7 +64,7 @@ uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/sup rm -f $(DESTDIR)$(PREFIX)/lib/slitaz/libsup.sh - rm -f $(DESTDIR)$(PREFIX)/share/applications/sup + rm -rf $(DESTDIR)$(PREFIX)/share/sup rm -f $(DESTDIR)$(PREFIX)/share/applications/sup-*.desktop rm -rf $(DESTDIR)$(PREFIX)/share/locale/*/LC_MESSAGES/sup-client.mo diff -r 332073f2e5de -r 2d6da8d88ae8 data/sup-install.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/sup-install.desktop Sun Feb 26 17:39:52 2017 +0100 @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=TazPkg Manager +Name[fr]=Gestionnaire de TazPkg +Name[pt]=Gerenciador de Pacotes TazPkg +Name[pt_BR]=Gerenciador de Pacotes TazPkg +Name[ru]=Менеджер пакетов TazPkg +Exec=tazbox su tazpkg-box actions %f +Icon=system-software-installer +NoDisplay=true +MimeType=application/x-tazpkg; diff -r 332073f2e5de -r 2d6da8d88ae8 data/sup-server.desktop --- a/data/sup-server.desktop Sun Feb 26 17:03:33 2017 +0100 +++ b/data/sup-server.desktop Sun Feb 26 17:39:52 2017 +0100 @@ -1,7 +1,7 @@ [Desktop Entry] Encoding=UTF-8 Type=Application -Name=Sup web service +Name=SUP Web Services Exec=tazweb --notoolbar http://scn.slitaz.org/?sup -Icon=slitaz-icon +Icon=application-x-archive Categories=Network; diff -r 332073f2e5de -r 2d6da8d88ae8 sup --- a/sup Sun Feb 26 17:03:33 2017 +0100 +++ b/sup Sun Feb 26 17:39:52 2017 +0100 @@ -47,6 +47,31 @@ fi } +# new_receipt "package" +new_receip() { + cat > receip << EOT +# SliTaz User Package receipt + +PACKAGE="" +VERSION="" +SHORT_DESC="" +MAINTAINER="" +LICENSE="" +WEB_SITE="" + +# Sup dependencies will be automatically downloaded but system wide +# deps must be manually installed by root. +SUP_DEPS="" +DEPENDS="" + +# Here are the optional install rules (download, configure, etc) +sup_install() { + echo "" +} + +EOT +} + # # Commands # diff -r 332073f2e5de -r 2d6da8d88ae8 wok/sup-demo/receip --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wok/sup-demo/receip Sun Feb 26 17:39:52 2017 +0100 @@ -0,0 +1,18 @@ +# SliTaz User Package receipt + +PACKAGE="sup-demo" +VERSION="0.1" +SHORT_DESC="Short package description and information" +MAINTAINER="devel@slitaz.org" +LICENSE="BSD" +WEB_SITE="http://www.slitaz.org/" + +# Sup dependencies will be automatically downloaded but system wide +# deps must be manually installed by root. +SUP_DEPS="" +DEPENDS="" + +# Here are the optional install rules (download, configure, etc) +sup_install() { + echo "Running sup_install() sequence" +} diff -r 332073f2e5de -r 2d6da8d88ae8 wok/sup-demo/receipt --- a/wok/sup-demo/receipt Sun Feb 26 17:03:33 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -# SliTaz User Package receipt - -PACKAGE="sup-demo" -VERSION="0.1" -SHORT_DESC="Short package description and information" -MAINTAINER="devel@slitaz.org" -LICENSE="BSD" -WEB_SITE="http://www.slitaz.org/" - -# Sup dependencies will be automatically downloaded but system wide -# deps must be manually installed by root. -SUP_DEPS="" -DEPENDS="" - -# Here are the optional install rules (download, configure, etc) -sup_install() { - echo "Running sup_install() sequence" -} diff -r 332073f2e5de -r 2d6da8d88ae8 wok/sup-skel/receipt --- a/wok/sup-skel/receipt Sun Feb 26 17:03:33 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,18 +0,0 @@ -# SliTaz User Package receipt - -PACKAGE="" -VERSION="" -SHORT_DESC="" -MAINTAINER="" -LICENSE="" -WEB_SITE="" - -# Sup dependencies will be automatically downloaded but system wide -# deps must be manually installed by root. -SUP_DEPS="" -DEPENDS="" - -# Here are the optional install rules (download, configure, etc) -sup_install() { - echo "" -}