tazpanel rev 37
Small fixes and typo in READMR do Makefile
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 06 05:57:51 2011 +0200 (2011-04-06) |
parents | 251c2c53c38d |
children | b9065b337a97 |
files | Makefile README doc/tazpanel.en.html pkgs.cgi |
line diff
1.1 --- a/Makefile Tue Apr 05 14:14:03 2011 +0200 1.2 +++ b/Makefile Wed Apr 06 05:57:51 2011 +0200 1.3 @@ -45,8 +45,8 @@ 1.4 $(DESTDIR)$(PREFIX)/share/locale \ 1.5 $(DESTDIR)$(SYSCONFDIR) \ 1.6 $(DESTDIR)$(PANEL) 1.7 - cp -f tazpanel $(DESTDIR)$(PREFIX)/bin 1.8 - cp -f *.conf data/httpd.conf $(DESTDIR)$(SYSCONFDIR) 1.9 + cp -a tazpanel $(DESTDIR)$(PREFIX)/bin 1.10 + cp -a *.conf data/httpd.conf $(DESTDIR)$(SYSCONFDIR) 1.11 cp -a *.cgi lib/ styles/ $(DESTDIR)$(PANEL) 1.12 cp -a po/mo/* $(DESTDIR)$(PREFIX)/share/locale 1.13
2.1 --- a/README Tue Apr 05 14:14:03 2011 +0200 2.2 +++ b/README Wed Apr 06 05:57:51 2011 +0200 2.3 @@ -55,7 +55,7 @@ 2.4 Start the webserver with custom config to listen only on local port for 2.5 security reason since we run as root to perform system actions, example: 2.6 2.7 -# httpd -p 8090 u root -c /etc/slitaz/tazpanel-httpd.conf 2.8 +# httpd -p 8090 u root -c /etc/slitaz/httpd.conf 2.9 2.10 Or use tazpanel cmdline: 2.11
3.1 --- a/doc/tazpanel.en.html Tue Apr 05 14:14:03 2011 +0200 3.2 +++ b/doc/tazpanel.en.html Wed Apr 06 05:57:51 2011 +0200 3.3 @@ -2,9 +2,9 @@ 3.4 <h2>English Help</h2> 3.5 3.6 <p> 3.7 - TazPanel is the SliTaz administration and settings center from you 3.8 - can manage your entire system such as managing packages, adding or 3.9 - removing users, create Live systems and much more. Navigation 3.10 + TazPanel is the SliTaz administration and settings center from where 3.11 + you can manage your entire system such as managing packages, adding 3.12 + or removing users, create Live systems and much more. Navigation 3.13 is done with the toolbar at the top of the application window and 3.14 is some case, with a submenu. 3.15 </p>
4.1 --- a/pkgs.cgi Tue Apr 05 14:14:03 2011 +0200 4.2 +++ b/pkgs.cgi Wed Apr 06 05:57:51 2011 +0200 4.3 @@ -3,7 +3,7 @@ 4.4 # TazPKG CGI interface - Manage packages via the a browse 4.5 # 4.6 # This CGI interface intensively use tazpkg to manage package and have 4.7 -# it how code for some tasks. Please KISS it important and keep speed 4.8 +# it own code for some tasks. Please KISS it important and keep speed 4.9 # in mind. Thanks, Pankso. 4.10 # 4.11 # (C) 2011 SliTaz GNU/Linux - GNU gpl v2 4.12 @@ -60,12 +60,20 @@ 4.13 4.14 # Display a full summary of packages stats 4.15 packages_summary() { 4.16 + gettext "Last recharge : " 4.17 + stat=`stat -c %y $LOCALSTATE/packages.list | \ 4.18 + sed 's/\(:..\):.*/\1/' | awk '{print $1}'` 4.19 + mtime=`find /var/lib/tazpkg/packages.list -mtime +10` 4.20 + echo -n "$stat " 4.21 + if [ "$mtime" ]; then 4.22 + echo "(Older than 10 days)" 4.23 + else 4.24 + echo "(Not older than 10 days)" 4.25 + fi 4.26 gettext "Installed packages : " 4.27 ls $INSTALLED | wc -l 4.28 gettext "Mirrored packages : " 4.29 cat $LOCALSTATE/packages.list | wc -l 4.30 - gettext "Last recharge : " 4.31 - stat -c %y $LOCALSTATE/packages.list | sed 's/\(:..\):.*/\1/' 4.32 gettext "Upgradeable packages : " 4.33 cat $LOCALSTATE/upgradeable-packages.list | wc -l 4.34 gettext "Installed files : "