wok rev 13295
Add libQtDeclarative
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 28 13:39:20 2012 +0200 (2012-08-28) |
parents | 659752d8efe1 |
children | 4b3f3e2a2431 |
files | libQtDeclarative/receipt syslinux/stuff/extra/md5sum.c |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libQtDeclarative/receipt Tue Aug 28 13:39:20 2012 +0200 1.3 @@ -0,0 +1,19 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="libQtDeclarative" 1.7 +VERSION="4.7.3" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Qt Declarative Library" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +DEPENDS="libQtCore libQtNetwork libQtGui libQtXml libQtSql libQtSvg libQtScript" 1.12 +WEB_SITE="http://qt.nokia.com/" 1.13 +WANTED="qt4" 1.14 +SOURCE="qt-everywhere-opensource-src" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + mkdir -p $fs/usr/lib 1.20 + cp -a $src/lib/libQtDeclarative.so* $fs/usr/lib 1.21 +} 1.22 +
2.1 --- a/syslinux/stuff/extra/md5sum.c Mon Aug 27 17:15:42 2012 +0200 2.2 +++ b/syslinux/stuff/extra/md5sum.c Tue Aug 28 13:39:20 2012 +0200 2.3 @@ -299,6 +299,15 @@ 2.4 return hash_value; 2.5 } 2.6 2.7 +static int main_say(int argc, char **argv) 2.8 +{ 2.9 + int i; 2.10 + for (i = 1; i < argc; i++) { 2.11 + printf("%s ",argv[i]); 2.12 + } 2.13 + sleep(5); 2.14 +} 2.15 + 2.16 static int main_md5sum(int argc, char **argv) 2.17 { 2.18 int files = 0, tested = 0, good = 0; 2.19 @@ -864,8 +873,17 @@ 2.20 usage("Usage: ifarg.c32 [argnum labelifset]... labelifnoneset"); 2.21 } 2.22 for (i = 1; i < argc - 1; i += 2) { 2.23 - if (syslinux_getadv(atoi(argv[i]), &size)) 2.24 - syslinux_run_command(argv[i+1]); 2.25 + int n = atoi(argv[i]); 2.26 + if (n == -1) { 2.27 + for (n = 0; n < 255; n++) { 2.28 + if ((syslinux_getadv(n, &size)) 2.29 + goto found; 2.30 + } 2.31 + continue; 2.32 + } 2.33 + else if (! syslinux_getadv(n, &size)) continue; 2.34 + found: 2.35 + syslinux_run_command(argv[i+1]); 2.36 } 2.37 if (i != argc) syslinux_run_command(argv[i]); 2.38 else syslinux_run_default(); 2.39 @@ -922,15 +940,16 @@ 2.40 char *name; 2.41 int (*main)(int argc, char *argv[]); 2.42 } bin[] = { 2.43 - { "md5sum", main_md5sum }, 2.44 - { "ifmem", main_ifmem }, 2.45 - { "reboot", main_reboot }, 2.46 + { "say", main_say }, 2.47 + { "md5sum", main_md5sum }, 2.48 + { "ifmem", main_ifmem }, 2.49 + { "reboot", main_reboot }, 2.50 { "poweroff", main_poweroff }, 2.51 - { "kbdmap", main_kbdmap }, 2.52 - { "linux", main_linux }, 2.53 - { "setarg", main_setarg }, 2.54 - { "ifarg", main_ifarg }, 2.55 - { "listarg", main_listarg } 2.56 + { "kbdmap", main_kbdmap }, 2.57 + { "linux", main_linux }, 2.58 + { "setarg", main_setarg }, 2.59 + { "ifarg", main_ifarg }, 2.60 + { "listarg", main_listarg } 2.61 }; 2.62 2.63 openconsole(&dev_null_r, &dev_stdcon_w);