wok rev 8822
Put libtaz stuff into wok
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Thu Feb 24 00:23:25 2011 +0100 (2011-02-24) |
parents | b5613798e5a3 |
children | 9f42fd8e4e8a |
files | libtaz/receipt libtaz/stuff/AUTHORS libtaz/stuff/COPYING libtaz/stuff/libtaz libtaz/stuff/libtaz-modules/commons libtaz/stuff/libtaz-modules/report libtaz/stuff/slitaz.conf libtaz/stuff/web/favicon.ico libtaz/stuff/web/header-img.png libtaz/stuff/web/logo.png libtaz/stuff/web/slitaz.css libtaz/stuff/web/template.html |
line diff
1.1 --- a/libtaz/receipt Wed Feb 23 17:38:24 2011 +0000 1.2 +++ b/libtaz/receipt Thu Feb 24 00:23:25 2011 +0100 1.3 @@ -1,15 +1,11 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="libtaz" 1.7 -VERSION="0.0.7.1" 1.8 +VERSION="1.0" 1.9 CATEGORY="base-system" 1.10 SHORT_DESC="Slitaz generic library." 1.11 MAINTAINER="gokhlayeh@slitaz.org" 1.12 -TARBALL="$VERSION.tar.bz2" 1.13 WEB_SITE="http://www.slitaz.org/" 1.14 -# Use mercurial until tarball is mirrored. 1.15 -#WGET_URL="http://mirror.slitaz.org/sources/$PACKAGE/$TARBALL" 1.16 -WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2" 1.17 TAGS="slitaz" 1.18 CONFIG_FILES="/etc/slitaz/slitaz.conf" 1.19 1.20 @@ -18,8 +14,8 @@ 1.21 { 1.22 mkdir -p $fs/usr/share/slitaz/web \ 1.23 $fs/usr/lib/slitaz $fs/etc/slitaz 1.24 - cp -a $src/libtaz $fs/usr/lib/slitaz 1.25 - cp -a $src/libtaz-modules $fs/usr/lib/slitaz 1.26 - cp -a $src/slitaz.conf $fs/etc/slitaz 1.27 - cp -a $src/web $fs/usr/share/slitaz 1.28 + cp -a $stuff/libtaz $fs/usr/lib/slitaz 1.29 + cp -a $stuff/libtaz-modules $fs/usr/lib/slitaz 1.30 + cp -a $stuff/slitaz.conf $fs/etc/slitaz 1.31 + cp -a $stuff/web $fs/usr/share/slitaz 1.32 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/libtaz/stuff/AUTHORS Thu Feb 24 00:23:25 2011 +0100 2.3 @@ -0,0 +1,6 @@ 2.4 +Christophe Lincoln <pankso@slitaz.org> 2.5 +Pascal Bellard <pascal.bellard@slitaz.org> 2.6 +Eric Joseph-Alexandre <erjo@slitaz.org> 2.7 +Paul Issott <paul@slitaz.org> 2.8 +Rohit Joshi <jozee@slitaz.org> 2.9 +Antoine Bodin <gokhlayeh@slitaz.org> 2.10 \ No newline at end of file
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/libtaz/stuff/COPYING Thu Feb 24 00:23:25 2011 +0100 3.3 @@ -0,0 +1,674 @@ 3.4 + GNU GENERAL PUBLIC LICENSE 3.5 + Version 3, 29 June 2007 3.6 + 3.7 + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> 3.8 + Everyone is permitted to copy and distribute verbatim copies 3.9 + of this license document, but changing it is not allowed. 3.10 + 3.11 + Preamble 3.12 + 3.13 + The GNU General Public License is a free, copyleft license for 3.14 +software and other kinds of works. 3.15 + 3.16 + The licenses for most software and other practical works are designed 3.17 +to take away your freedom to share and change the works. By contrast, 3.18 +the GNU General Public License is intended to guarantee your freedom to 3.19 +share and change all versions of a program--to make sure it remains free 3.20 +software for all its users. We, the Free Software Foundation, use the 3.21 +GNU General Public License for most of our software; it applies also to 3.22 +any other work released this way by its authors. You can apply it to 3.23 +your programs, too. 3.24 + 3.25 + When we speak of free software, we are referring to freedom, not 3.26 +price. Our General Public Licenses are designed to make sure that you 3.27 +have the freedom to distribute copies of free software (and charge for 3.28 +them if you wish), that you receive source code or can get it if you 3.29 +want it, that you can change the software or use pieces of it in new 3.30 +free programs, and that you know you can do these things. 3.31 + 3.32 + To protect your rights, we need to prevent others from denying you 3.33 +these rights or asking you to surrender the rights. Therefore, you have 3.34 +certain responsibilities if you distribute copies of the software, or if 3.35 +you modify it: responsibilities to respect the freedom of others. 3.36 + 3.37 + For example, if you distribute copies of such a program, whether 3.38 +gratis or for a fee, you must pass on to the recipients the same 3.39 +freedoms that you received. You must make sure that they, too, receive 3.40 +or can get the source code. And you must show them these terms so they 3.41 +know their rights. 3.42 + 3.43 + Developers that use the GNU GPL protect your rights with two steps: 3.44 +(1) assert copyright on the software, and (2) offer you this License 3.45 +giving you legal permission to copy, distribute and/or modify it. 3.46 + 3.47 + For the developers' and authors' protection, the GPL clearly explains 3.48 +that there is no warranty for this free software. For both users' and 3.49 +authors' sake, the GPL requires that modified versions be marked as 3.50 +changed, so that their problems will not be attributed erroneously to 3.51 +authors of previous versions. 3.52 + 3.53 + Some devices are designed to deny users access to install or run 3.54 +modified versions of the software inside them, although the manufacturer 3.55 +can do so. This is fundamentally incompatible with the aim of 3.56 +protecting users' freedom to change the software. The systematic 3.57 +pattern of such abuse occurs in the area of products for individuals to 3.58 +use, which is precisely where it is most unacceptable. Therefore, we 3.59 +have designed this version of the GPL to prohibit the practice for those 3.60 +products. If such problems arise substantially in other domains, we 3.61 +stand ready to extend this provision to those domains in future versions 3.62 +of the GPL, as needed to protect the freedom of users. 3.63 + 3.64 + Finally, every program is threatened constantly by software patents. 3.65 +States should not allow patents to restrict development and use of 3.66 +software on general-purpose computers, but in those that do, we wish to 3.67 +avoid the special danger that patents applied to a free program could 3.68 +make it effectively proprietary. To prevent this, the GPL assures that 3.69 +patents cannot be used to render the program non-free. 3.70 + 3.71 + The precise terms and conditions for copying, distribution and 3.72 +modification follow. 3.73 + 3.74 + TERMS AND CONDITIONS 3.75 + 3.76 + 0. Definitions. 3.77 + 3.78 + "This License" refers to version 3 of the GNU General Public License. 3.79 + 3.80 + "Copyright" also means copyright-like laws that apply to other kinds of 3.81 +works, such as semiconductor masks. 3.82 + 3.83 + "The Program" refers to any copyrightable work licensed under this 3.84 +License. Each licensee is addressed as "you". "Licensees" and 3.85 +"recipients" may be individuals or organizations. 3.86 + 3.87 + To "modify" a work means to copy from or adapt all or part of the work 3.88 +in a fashion requiring copyright permission, other than the making of an 3.89 +exact copy. The resulting work is called a "modified version" of the 3.90 +earlier work or a work "based on" the earlier work. 3.91 + 3.92 + A "covered work" means either the unmodified Program or a work based 3.93 +on the Program. 3.94 + 3.95 + To "propagate" a work means to do anything with it that, without 3.96 +permission, would make you directly or secondarily liable for 3.97 +infringement under applicable copyright law, except executing it on a 3.98 +computer or modifying a private copy. Propagation includes copying, 3.99 +distribution (with or without modification), making available to the 3.100 +public, and in some countries other activities as well. 3.101 + 3.102 + To "convey" a work means any kind of propagation that enables other 3.103 +parties to make or receive copies. Mere interaction with a user through 3.104 +a computer network, with no transfer of a copy, is not conveying. 3.105 + 3.106 + An interactive user interface displays "Appropriate Legal Notices" 3.107 +to the extent that it includes a convenient and prominently visible 3.108 +feature that (1) displays an appropriate copyright notice, and (2) 3.109 +tells the user that there is no warranty for the work (except to the 3.110 +extent that warranties are provided), that licensees may convey the 3.111 +work under this License, and how to view a copy of this License. If 3.112 +the interface presents a list of user commands or options, such as a 3.113 +menu, a prominent item in the list meets this criterion. 3.114 + 3.115 + 1. Source Code. 3.116 + 3.117 + The "source code" for a work means the preferred form of the work 3.118 +for making modifications to it. "Object code" means any non-source 3.119 +form of a work. 3.120 + 3.121 + A "Standard Interface" means an interface that either is an official 3.122 +standard defined by a recognized standards body, or, in the case of 3.123 +interfaces specified for a particular programming language, one that 3.124 +is widely used among developers working in that language. 3.125 + 3.126 + The "System Libraries" of an executable work include anything, other 3.127 +than the work as a whole, that (a) is included in the normal form of 3.128 +packaging a Major Component, but which is not part of that Major 3.129 +Component, and (b) serves only to enable use of the work with that 3.130 +Major Component, or to implement a Standard Interface for which an 3.131 +implementation is available to the public in source code form. A 3.132 +"Major Component", in this context, means a major essential component 3.133 +(kernel, window system, and so on) of the specific operating system 3.134 +(if any) on which the executable work runs, or a compiler used to 3.135 +produce the work, or an object code interpreter used to run it. 3.136 + 3.137 + The "Corresponding Source" for a work in object code form means all 3.138 +the source code needed to generate, install, and (for an executable 3.139 +work) run the object code and to modify the work, including scripts to 3.140 +control those activities. However, it does not include the work's 3.141 +System Libraries, or general-purpose tools or generally available free 3.142 +programs which are used unmodified in performing those activities but 3.143 +which are not part of the work. For example, Corresponding Source 3.144 +includes interface definition files associated with source files for 3.145 +the work, and the source code for shared libraries and dynamically 3.146 +linked subprograms that the work is specifically designed to require, 3.147 +such as by intimate data communication or control flow between those 3.148 +subprograms and other parts of the work. 3.149 + 3.150 + The Corresponding Source need not include anything that users 3.151 +can regenerate automatically from other parts of the Corresponding 3.152 +Source. 3.153 + 3.154 + The Corresponding Source for a work in source code form is that 3.155 +same work. 3.156 + 3.157 + 2. Basic Permissions. 3.158 + 3.159 + All rights granted under this License are granted for the term of 3.160 +copyright on the Program, and are irrevocable provided the stated 3.161 +conditions are met. This License explicitly affirms your unlimited 3.162 +permission to run the unmodified Program. The output from running a 3.163 +covered work is covered by this License only if the output, given its 3.164 +content, constitutes a covered work. This License acknowledges your 3.165 +rights of fair use or other equivalent, as provided by copyright law. 3.166 + 3.167 + You may make, run and propagate covered works that you do not 3.168 +convey, without conditions so long as your license otherwise remains 3.169 +in force. You may convey covered works to others for the sole purpose 3.170 +of having them make modifications exclusively for you, or provide you 3.171 +with facilities for running those works, provided that you comply with 3.172 +the terms of this License in conveying all material for which you do 3.173 +not control copyright. Those thus making or running the covered works 3.174 +for you must do so exclusively on your behalf, under your direction 3.175 +and control, on terms that prohibit them from making any copies of 3.176 +your copyrighted material outside their relationship with you. 3.177 + 3.178 + Conveying under any other circumstances is permitted solely under 3.179 +the conditions stated below. Sublicensing is not allowed; section 10 3.180 +makes it unnecessary. 3.181 + 3.182 + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 3.183 + 3.184 + No covered work shall be deemed part of an effective technological 3.185 +measure under any applicable law fulfilling obligations under article 3.186 +11 of the WIPO copyright treaty adopted on 20 December 1996, or 3.187 +similar laws prohibiting or restricting circumvention of such 3.188 +measures. 3.189 + 3.190 + When you convey a covered work, you waive any legal power to forbid 3.191 +circumvention of technological measures to the extent such circumvention 3.192 +is effected by exercising rights under this License with respect to 3.193 +the covered work, and you disclaim any intention to limit operation or 3.194 +modification of the work as a means of enforcing, against the work's 3.195 +users, your or third parties' legal rights to forbid circumvention of 3.196 +technological measures. 3.197 + 3.198 + 4. Conveying Verbatim Copies. 3.199 + 3.200 + You may convey verbatim copies of the Program's source code as you 3.201 +receive it, in any medium, provided that you conspicuously and 3.202 +appropriately publish on each copy an appropriate copyright notice; 3.203 +keep intact all notices stating that this License and any 3.204 +non-permissive terms added in accord with section 7 apply to the code; 3.205 +keep intact all notices of the absence of any warranty; and give all 3.206 +recipients a copy of this License along with the Program. 3.207 + 3.208 + You may charge any price or no price for each copy that you convey, 3.209 +and you may offer support or warranty protection for a fee. 3.210 + 3.211 + 5. Conveying Modified Source Versions. 3.212 + 3.213 + You may convey a work based on the Program, or the modifications to 3.214 +produce it from the Program, in the form of source code under the 3.215 +terms of section 4, provided that you also meet all of these conditions: 3.216 + 3.217 + a) The work must carry prominent notices stating that you modified 3.218 + it, and giving a relevant date. 3.219 + 3.220 + b) The work must carry prominent notices stating that it is 3.221 + released under this License and any conditions added under section 3.222 + 7. This requirement modifies the requirement in section 4 to 3.223 + "keep intact all notices". 3.224 + 3.225 + c) You must license the entire work, as a whole, under this 3.226 + License to anyone who comes into possession of a copy. This 3.227 + License will therefore apply, along with any applicable section 7 3.228 + additional terms, to the whole of the work, and all its parts, 3.229 + regardless of how they are packaged. This License gives no 3.230 + permission to license the work in any other way, but it does not 3.231 + invalidate such permission if you have separately received it. 3.232 + 3.233 + d) If the work has interactive user interfaces, each must display 3.234 + Appropriate Legal Notices; however, if the Program has interactive 3.235 + interfaces that do not display Appropriate Legal Notices, your 3.236 + work need not make them do so. 3.237 + 3.238 + A compilation of a covered work with other separate and independent 3.239 +works, which are not by their nature extensions of the covered work, 3.240 +and which are not combined with it such as to form a larger program, 3.241 +in or on a volume of a storage or distribution medium, is called an 3.242 +"aggregate" if the compilation and its resulting copyright are not 3.243 +used to limit the access or legal rights of the compilation's users 3.244 +beyond what the individual works permit. Inclusion of a covered work 3.245 +in an aggregate does not cause this License to apply to the other 3.246 +parts of the aggregate. 3.247 + 3.248 + 6. Conveying Non-Source Forms. 3.249 + 3.250 + You may convey a covered work in object code form under the terms 3.251 +of sections 4 and 5, provided that you also convey the 3.252 +machine-readable Corresponding Source under the terms of this License, 3.253 +in one of these ways: 3.254 + 3.255 + a) Convey the object code in, or embodied in, a physical product 3.256 + (including a physical distribution medium), accompanied by the 3.257 + Corresponding Source fixed on a durable physical medium 3.258 + customarily used for software interchange. 3.259 + 3.260 + b) Convey the object code in, or embodied in, a physical product 3.261 + (including a physical distribution medium), accompanied by a 3.262 + written offer, valid for at least three years and valid for as 3.263 + long as you offer spare parts or customer support for that product 3.264 + model, to give anyone who possesses the object code either (1) a 3.265 + copy of the Corresponding Source for all the software in the 3.266 + product that is covered by this License, on a durable physical 3.267 + medium customarily used for software interchange, for a price no 3.268 + more than your reasonable cost of physically performing this 3.269 + conveying of source, or (2) access to copy the 3.270 + Corresponding Source from a network server at no charge. 3.271 + 3.272 + c) Convey individual copies of the object code with a copy of the 3.273 + written offer to provide the Corresponding Source. This 3.274 + alternative is allowed only occasionally and noncommercially, and 3.275 + only if you received the object code with such an offer, in accord 3.276 + with subsection 6b. 3.277 + 3.278 + d) Convey the object code by offering access from a designated 3.279 + place (gratis or for a charge), and offer equivalent access to the 3.280 + Corresponding Source in the same way through the same place at no 3.281 + further charge. You need not require recipients to copy the 3.282 + Corresponding Source along with the object code. If the place to 3.283 + copy the object code is a network server, the Corresponding Source 3.284 + may be on a different server (operated by you or a third party) 3.285 + that supports equivalent copying facilities, provided you maintain 3.286 + clear directions next to the object code saying where to find the 3.287 + Corresponding Source. Regardless of what server hosts the 3.288 + Corresponding Source, you remain obligated to ensure that it is 3.289 + available for as long as needed to satisfy these requirements. 3.290 + 3.291 + e) Convey the object code using peer-to-peer transmission, provided 3.292 + you inform other peers where the object code and Corresponding 3.293 + Source of the work are being offered to the general public at no 3.294 + charge under subsection 6d. 3.295 + 3.296 + A separable portion of the object code, whose source code is excluded 3.297 +from the Corresponding Source as a System Library, need not be 3.298 +included in conveying the object code work. 3.299 + 3.300 + A "User Product" is either (1) a "consumer product", which means any 3.301 +tangible personal property which is normally used for personal, family, 3.302 +or household purposes, or (2) anything designed or sold for incorporation 3.303 +into a dwelling. In determining whether a product is a consumer product, 3.304 +doubtful cases shall be resolved in favor of coverage. For a particular 3.305 +product received by a particular user, "normally used" refers to a 3.306 +typical or common use of that class of product, regardless of the status 3.307 +of the particular user or of the way in which the particular user 3.308 +actually uses, or expects or is expected to use, the product. A product 3.309 +is a consumer product regardless of whether the product has substantial 3.310 +commercial, industrial or non-consumer uses, unless such uses represent 3.311 +the only significant mode of use of the product. 3.312 + 3.313 + "Installation Information" for a User Product means any methods, 3.314 +procedures, authorization keys, or other information required to install 3.315 +and execute modified versions of a covered work in that User Product from 3.316 +a modified version of its Corresponding Source. The information must 3.317 +suffice to ensure that the continued functioning of the modified object 3.318 +code is in no case prevented or interfered with solely because 3.319 +modification has been made. 3.320 + 3.321 + If you convey an object code work under this section in, or with, or 3.322 +specifically for use in, a User Product, and the conveying occurs as 3.323 +part of a transaction in which the right of possession and use of the 3.324 +User Product is transferred to the recipient in perpetuity or for a 3.325 +fixed term (regardless of how the transaction is characterized), the 3.326 +Corresponding Source conveyed under this section must be accompanied 3.327 +by the Installation Information. But this requirement does not apply 3.328 +if neither you nor any third party retains the ability to install 3.329 +modified object code on the User Product (for example, the work has 3.330 +been installed in ROM). 3.331 + 3.332 + The requirement to provide Installation Information does not include a 3.333 +requirement to continue to provide support service, warranty, or updates 3.334 +for a work that has been modified or installed by the recipient, or for 3.335 +the User Product in which it has been modified or installed. Access to a 3.336 +network may be denied when the modification itself materially and 3.337 +adversely affects the operation of the network or violates the rules and 3.338 +protocols for communication across the network. 3.339 + 3.340 + Corresponding Source conveyed, and Installation Information provided, 3.341 +in accord with this section must be in a format that is publicly 3.342 +documented (and with an implementation available to the public in 3.343 +source code form), and must require no special password or key for 3.344 +unpacking, reading or copying. 3.345 + 3.346 + 7. Additional Terms. 3.347 + 3.348 + "Additional permissions" are terms that supplement the terms of this 3.349 +License by making exceptions from one or more of its conditions. 3.350 +Additional permissions that are applicable to the entire Program shall 3.351 +be treated as though they were included in this License, to the extent 3.352 +that they are valid under applicable law. If additional permissions 3.353 +apply only to part of the Program, that part may be used separately 3.354 +under those permissions, but the entire Program remains governed by 3.355 +this License without regard to the additional permissions. 3.356 + 3.357 + When you convey a copy of a covered work, you may at your option 3.358 +remove any additional permissions from that copy, or from any part of 3.359 +it. (Additional permissions may be written to require their own 3.360 +removal in certain cases when you modify the work.) You may place 3.361 +additional permissions on material, added by you to a covered work, 3.362 +for which you have or can give appropriate copyright permission. 3.363 + 3.364 + Notwithstanding any other provision of this License, for material you 3.365 +add to a covered work, you may (if authorized by the copyright holders of 3.366 +that material) supplement the terms of this License with terms: 3.367 + 3.368 + a) Disclaiming warranty or limiting liability differently from the 3.369 + terms of sections 15 and 16 of this License; or 3.370 + 3.371 + b) Requiring preservation of specified reasonable legal notices or 3.372 + author attributions in that material or in the Appropriate Legal 3.373 + Notices displayed by works containing it; or 3.374 + 3.375 + c) Prohibiting misrepresentation of the origin of that material, or 3.376 + requiring that modified versions of such material be marked in 3.377 + reasonable ways as different from the original version; or 3.378 + 3.379 + d) Limiting the use for publicity purposes of names of licensors or 3.380 + authors of the material; or 3.381 + 3.382 + e) Declining to grant rights under trademark law for use of some 3.383 + trade names, trademarks, or service marks; or 3.384 + 3.385 + f) Requiring indemnification of licensors and authors of that 3.386 + material by anyone who conveys the material (or modified versions of 3.387 + it) with contractual assumptions of liability to the recipient, for 3.388 + any liability that these contractual assumptions directly impose on 3.389 + those licensors and authors. 3.390 + 3.391 + All other non-permissive additional terms are considered "further 3.392 +restrictions" within the meaning of section 10. If the Program as you 3.393 +received it, or any part of it, contains a notice stating that it is 3.394 +governed by this License along with a term that is a further 3.395 +restriction, you may remove that term. If a license document contains 3.396 +a further restriction but permits relicensing or conveying under this 3.397 +License, you may add to a covered work material governed by the terms 3.398 +of that license document, provided that the further restriction does 3.399 +not survive such relicensing or conveying. 3.400 + 3.401 + If you add terms to a covered work in accord with this section, you 3.402 +must place, in the relevant source files, a statement of the 3.403 +additional terms that apply to those files, or a notice indicating 3.404 +where to find the applicable terms. 3.405 + 3.406 + Additional terms, permissive or non-permissive, may be stated in the 3.407 +form of a separately written license, or stated as exceptions; 3.408 +the above requirements apply either way. 3.409 + 3.410 + 8. Termination. 3.411 + 3.412 + You may not propagate or modify a covered work except as expressly 3.413 +provided under this License. Any attempt otherwise to propagate or 3.414 +modify it is void, and will automatically terminate your rights under 3.415 +this License (including any patent licenses granted under the third 3.416 +paragraph of section 11). 3.417 + 3.418 + However, if you cease all violation of this License, then your 3.419 +license from a particular copyright holder is reinstated (a) 3.420 +provisionally, unless and until the copyright holder explicitly and 3.421 +finally terminates your license, and (b) permanently, if the copyright 3.422 +holder fails to notify you of the violation by some reasonable means 3.423 +prior to 60 days after the cessation. 3.424 + 3.425 + Moreover, your license from a particular copyright holder is 3.426 +reinstated permanently if the copyright holder notifies you of the 3.427 +violation by some reasonable means, this is the first time you have 3.428 +received notice of violation of this License (for any work) from that 3.429 +copyright holder, and you cure the violation prior to 30 days after 3.430 +your receipt of the notice. 3.431 + 3.432 + Termination of your rights under this section does not terminate the 3.433 +licenses of parties who have received copies or rights from you under 3.434 +this License. If your rights have been terminated and not permanently 3.435 +reinstated, you do not qualify to receive new licenses for the same 3.436 +material under section 10. 3.437 + 3.438 + 9. Acceptance Not Required for Having Copies. 3.439 + 3.440 + You are not required to accept this License in order to receive or 3.441 +run a copy of the Program. Ancillary propagation of a covered work 3.442 +occurring solely as a consequence of using peer-to-peer transmission 3.443 +to receive a copy likewise does not require acceptance. However, 3.444 +nothing other than this License grants you permission to propagate or 3.445 +modify any covered work. These actions infringe copyright if you do 3.446 +not accept this License. Therefore, by modifying or propagating a 3.447 +covered work, you indicate your acceptance of this License to do so. 3.448 + 3.449 + 10. Automatic Licensing of Downstream Recipients. 3.450 + 3.451 + Each time you convey a covered work, the recipient automatically 3.452 +receives a license from the original licensors, to run, modify and 3.453 +propagate that work, subject to this License. You are not responsible 3.454 +for enforcing compliance by third parties with this License. 3.455 + 3.456 + An "entity transaction" is a transaction transferring control of an 3.457 +organization, or substantially all assets of one, or subdividing an 3.458 +organization, or merging organizations. If propagation of a covered 3.459 +work results from an entity transaction, each party to that 3.460 +transaction who receives a copy of the work also receives whatever 3.461 +licenses to the work the party's predecessor in interest had or could 3.462 +give under the previous paragraph, plus a right to possession of the 3.463 +Corresponding Source of the work from the predecessor in interest, if 3.464 +the predecessor has it or can get it with reasonable efforts. 3.465 + 3.466 + You may not impose any further restrictions on the exercise of the 3.467 +rights granted or affirmed under this License. For example, you may 3.468 +not impose a license fee, royalty, or other charge for exercise of 3.469 +rights granted under this License, and you may not initiate litigation 3.470 +(including a cross-claim or counterclaim in a lawsuit) alleging that 3.471 +any patent claim is infringed by making, using, selling, offering for 3.472 +sale, or importing the Program or any portion of it. 3.473 + 3.474 + 11. Patents. 3.475 + 3.476 + A "contributor" is a copyright holder who authorizes use under this 3.477 +License of the Program or a work on which the Program is based. The 3.478 +work thus licensed is called the contributor's "contributor version". 3.479 + 3.480 + A contributor's "essential patent claims" are all patent claims 3.481 +owned or controlled by the contributor, whether already acquired or 3.482 +hereafter acquired, that would be infringed by some manner, permitted 3.483 +by this License, of making, using, or selling its contributor version, 3.484 +but do not include claims that would be infringed only as a 3.485 +consequence of further modification of the contributor version. For 3.486 +purposes of this definition, "control" includes the right to grant 3.487 +patent sublicenses in a manner consistent with the requirements of 3.488 +this License. 3.489 + 3.490 + Each contributor grants you a non-exclusive, worldwide, royalty-free 3.491 +patent license under the contributor's essential patent claims, to 3.492 +make, use, sell, offer for sale, import and otherwise run, modify and 3.493 +propagate the contents of its contributor version. 3.494 + 3.495 + In the following three paragraphs, a "patent license" is any express 3.496 +agreement or commitment, however denominated, not to enforce a patent 3.497 +(such as an express permission to practice a patent or covenant not to 3.498 +sue for patent infringement). To "grant" such a patent license to a 3.499 +party means to make such an agreement or commitment not to enforce a 3.500 +patent against the party. 3.501 + 3.502 + If you convey a covered work, knowingly relying on a patent license, 3.503 +and the Corresponding Source of the work is not available for anyone 3.504 +to copy, free of charge and under the terms of this License, through a 3.505 +publicly available network server or other readily accessible means, 3.506 +then you must either (1) cause the Corresponding Source to be so 3.507 +available, or (2) arrange to deprive yourself of the benefit of the 3.508 +patent license for this particular work, or (3) arrange, in a manner 3.509 +consistent with the requirements of this License, to extend the patent 3.510 +license to downstream recipients. "Knowingly relying" means you have 3.511 +actual knowledge that, but for the patent license, your conveying the 3.512 +covered work in a country, or your recipient's use of the covered work 3.513 +in a country, would infringe one or more identifiable patents in that 3.514 +country that you have reason to believe are valid. 3.515 + 3.516 + If, pursuant to or in connection with a single transaction or 3.517 +arrangement, you convey, or propagate by procuring conveyance of, a 3.518 +covered work, and grant a patent license to some of the parties 3.519 +receiving the covered work authorizing them to use, propagate, modify 3.520 +or convey a specific copy of the covered work, then the patent license 3.521 +you grant is automatically extended to all recipients of the covered 3.522 +work and works based on it. 3.523 + 3.524 + A patent license is "discriminatory" if it does not include within 3.525 +the scope of its coverage, prohibits the exercise of, or is 3.526 +conditioned on the non-exercise of one or more of the rights that are 3.527 +specifically granted under this License. You may not convey a covered 3.528 +work if you are a party to an arrangement with a third party that is 3.529 +in the business of distributing software, under which you make payment 3.530 +to the third party based on the extent of your activity of conveying 3.531 +the work, and under which the third party grants, to any of the 3.532 +parties who would receive the covered work from you, a discriminatory 3.533 +patent license (a) in connection with copies of the covered work 3.534 +conveyed by you (or copies made from those copies), or (b) primarily 3.535 +for and in connection with specific products or compilations that 3.536 +contain the covered work, unless you entered into that arrangement, 3.537 +or that patent license was granted, prior to 28 March 2007. 3.538 + 3.539 + Nothing in this License shall be construed as excluding or limiting 3.540 +any implied license or other defenses to infringement that may 3.541 +otherwise be available to you under applicable patent law. 3.542 + 3.543 + 12. No Surrender of Others' Freedom. 3.544 + 3.545 + If conditions are imposed on you (whether by court order, agreement or 3.546 +otherwise) that contradict the conditions of this License, they do not 3.547 +excuse you from the conditions of this License. If you cannot convey a 3.548 +covered work so as to satisfy simultaneously your obligations under this 3.549 +License and any other pertinent obligations, then as a consequence you may 3.550 +not convey it at all. For example, if you agree to terms that obligate you 3.551 +to collect a royalty for further conveying from those to whom you convey 3.552 +the Program, the only way you could satisfy both those terms and this 3.553 +License would be to refrain entirely from conveying the Program. 3.554 + 3.555 + 13. Use with the GNU Affero General Public License. 3.556 + 3.557 + Notwithstanding any other provision of this License, you have 3.558 +permission to link or combine any covered work with a work licensed 3.559 +under version 3 of the GNU Affero General Public License into a single 3.560 +combined work, and to convey the resulting work. The terms of this 3.561 +License will continue to apply to the part which is the covered work, 3.562 +but the special requirements of the GNU Affero General Public License, 3.563 +section 13, concerning interaction through a network will apply to the 3.564 +combination as such. 3.565 + 3.566 + 14. Revised Versions of this License. 3.567 + 3.568 + The Free Software Foundation may publish revised and/or new versions of 3.569 +the GNU General Public License from time to time. Such new versions will 3.570 +be similar in spirit to the present version, but may differ in detail to 3.571 +address new problems or concerns. 3.572 + 3.573 + Each version is given a distinguishing version number. If the 3.574 +Program specifies that a certain numbered version of the GNU General 3.575 +Public License "or any later version" applies to it, you have the 3.576 +option of following the terms and conditions either of that numbered 3.577 +version or of any later version published by the Free Software 3.578 +Foundation. If the Program does not specify a version number of the 3.579 +GNU General Public License, you may choose any version ever published 3.580 +by the Free Software Foundation. 3.581 + 3.582 + If the Program specifies that a proxy can decide which future 3.583 +versions of the GNU General Public License can be used, that proxy's 3.584 +public statement of acceptance of a version permanently authorizes you 3.585 +to choose that version for the Program. 3.586 + 3.587 + Later license versions may give you additional or different 3.588 +permissions. However, no additional obligations are imposed on any 3.589 +author or copyright holder as a result of your choosing to follow a 3.590 +later version. 3.591 + 3.592 + 15. Disclaimer of Warranty. 3.593 + 3.594 + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 3.595 +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 3.596 +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 3.597 +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 3.598 +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 3.599 +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 3.600 +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 3.601 +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 3.602 + 3.603 + 16. Limitation of Liability. 3.604 + 3.605 + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 3.606 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 3.607 +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 3.608 +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 3.609 +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 3.610 +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 3.611 +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 3.612 +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 3.613 +SUCH DAMAGES. 3.614 + 3.615 + 17. Interpretation of Sections 15 and 16. 3.616 + 3.617 + If the disclaimer of warranty and limitation of liability provided 3.618 +above cannot be given local legal effect according to their terms, 3.619 +reviewing courts shall apply local law that most closely approximates 3.620 +an absolute waiver of all civil liability in connection with the 3.621 +Program, unless a warranty or assumption of liability accompanies a 3.622 +copy of the Program in return for a fee. 3.623 + 3.624 + END OF TERMS AND CONDITIONS 3.625 + 3.626 + How to Apply These Terms to Your New Programs 3.627 + 3.628 + If you develop a new program, and you want it to be of the greatest 3.629 +possible use to the public, the best way to achieve this is to make it 3.630 +free software which everyone can redistribute and change under these terms. 3.631 + 3.632 + To do so, attach the following notices to the program. It is safest 3.633 +to attach them to the start of each source file to most effectively 3.634 +state the exclusion of warranty; and each file should have at least 3.635 +the "copyright" line and a pointer to where the full notice is found. 3.636 + 3.637 + <one line to give the program's name and a brief idea of what it does.> 3.638 + Copyright (C) <year> <name of author> 3.639 + 3.640 + This program is free software: you can redistribute it and/or modify 3.641 + it under the terms of the GNU General Public License as published by 3.642 + the Free Software Foundation, either version 3 of the License, or 3.643 + (at your option) any later version. 3.644 + 3.645 + This program is distributed in the hope that it will be useful, 3.646 + but WITHOUT ANY WARRANTY; without even the implied warranty of 3.647 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 3.648 + GNU General Public License for more details. 3.649 + 3.650 + You should have received a copy of the GNU General Public License 3.651 + along with this program. If not, see <http://www.gnu.org/licenses/>. 3.652 + 3.653 +Also add information on how to contact you by electronic and paper mail. 3.654 + 3.655 + If the program does terminal interaction, make it output a short 3.656 +notice like this when it starts in an interactive mode: 3.657 + 3.658 + <program> Copyright (C) <year> <name of author> 3.659 + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 3.660 + This is free software, and you are welcome to redistribute it 3.661 + under certain conditions; type `show c' for details. 3.662 + 3.663 +The hypothetical commands `show w' and `show c' should show the appropriate 3.664 +parts of the General Public License. Of course, your program's commands 3.665 +might be different; for a GUI interface, you would use an "about box". 3.666 + 3.667 + You should also get your employer (if you work as a programmer) or school, 3.668 +if any, to sign a "copyright disclaimer" for the program, if necessary. 3.669 +For more information on this, and how to apply and follow the GNU GPL, see 3.670 +<http://www.gnu.org/licenses/>. 3.671 + 3.672 + The GNU General Public License does not permit incorporating your program 3.673 +into proprietary programs. If your program is a subroutine library, you 3.674 +may consider it more useful to permit linking proprietary applications with 3.675 +the library. If this is what you want to do, use the GNU Lesser General 3.676 +Public License instead of this License. But first, please read 3.677 +<http://www.gnu.org/philosophy/why-not-lgpl.html>.
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/libtaz/stuff/libtaz Thu Feb 24 00:23:25 2011 +0100 4.3 @@ -0,0 +1,97 @@ 4.4 +######################################################################## 4.5 +# This is the SliTaz main library (/usr/lib/slitaz/libtaz). 4.6 +# libtaz is modular : see explanation of the function source_lib bellow. 4.7 +# 4.8 +# Author : Antoine Bodin <gokhlayeh@mailoo.org> 4.9 +# 4.10 +# Version : 0.0.1 (alpha1) 4.11 +# 4.12 +# Documentation : none (will be avaible with beta version) 4.13 +# The documentation will include an explanation of all fonction, how to 4.14 +# use them and how to improve this library. 4.15 +# 4.16 +# Devnotes (suppress while beta is released) : 4.17 +# Add a generic download script ? -> download from tazlito & tazwok 4.18 +# Add a generic create/cleanup script for tmp files ? 4.19 +# check_for (pkg on cmd line, pkg, receipt, etc.) -> tazwok,tazpkg,list 4.20 +# 4.21 +# Note : as the work is progress some part are dirty code or some other 4.22 +# are note finish. I update this because we need the libdep 4.23 +# 4.24 +######################################################################## 4.25 +# INITIALIZATION 4.26 +######################## 4.27 +# Load the Slitaz main configuration file : /etc/slitaz/slitaz.conf. 4.28 +# Don't load it if application is called by one having already loaded it, 4.29 +# to avoid options overwrite. 4.30 + 4.31 +. /etc/slitaz/slitaz.conf 4.32 + 4.33 +# Load the command as some module use it. 4.34 +log_command="$0 $@" 4.35 + 4.36 +# Define & create temporary directory as it's used by report. 4.37 +tmp=/tmp/$(basename $0)-$$ 4.38 +mkdir -p $tmp 4.39 + 4.40 +######################################################################## 4.41 +# EXIT FUNCTIONS 4.42 +######################## 4.43 +# run_on_exit commands are executed when apps exit (whatever the reason) 4.44 +# run_on_kill commands are executed only when apps is killed (or Ctrl+C) 4.45 +# Note : one command per line in the variable. 4.46 +run_on_exit="rm -rf $tmp" 4.47 +run_on_kill="" 4.48 +trap run_on_exit EXIT 4.49 +trap run_on_kill INT KILL 4.50 + 4.51 +run_on_exit() 4.52 +{ 4.53 + echo "$run_on_exit" | while read c; do 4.54 + run_on_exit=$(echo "$run_on_exit" | sed 1d) 4.55 + $c 4.56 + done 4.57 + trap - EXIT 4.58 +} 4.59 + 4.60 +run_on_kill() 4.61 +{ 4.62 + echo "$run_on_kill" | while read c; do 4.63 + run_on_kill=$(echo "$run_on_kill" | sed 1d) 4.64 + $c 4.65 + done 4.66 + trap - INT KILL 4.67 + run_on_exit 4.68 +} 4.69 + 4.70 +######################################################################## 4.71 +# This function should be used after sourcing libtaz to source modular 4.72 +# libraries. Libtaz only source main configuration file and contain only 4.73 +# this function. The modular libraries should be put in slitaz lib 4.74 +# directory (/usr/lib/slitaz/libtaz-modules). 4.75 +# 4.76 +# Usage : source_lib lib [lib2] [lib3] ... 4.77 +# 4.78 +# Description of libraries including with libtaz : 4.79 +# commons : functions used by most SliTaz scripts 4.80 +# get_option* : function to check & parse arguments of a command line 4.81 +# report : display and log script in a configurable way 4.82 +# 4.83 +# * need a code rewiew, please don't use them for production : code can 4.84 +# be hardly modified. 4.85 +# 4.86 +# All theses libraries contains additionnal functions. Check them to 4.87 +# if you want to know wich ones and how to use them. 4.88 +# More information will be avaible at beta release. 4.89 + 4.90 +sourced_lib="" 4.91 +source_lib() 4.92 +{ 4.93 + for i in $@; do 4.94 + [ "$(echo $sourced_lib | grep $i)" ] && continue 4.95 + [ ! -f "/usr/lib/slitaz/libtaz-modules/$i" ] && \ 4.96 + echo "WARNING: libtaz source_lib: can't find /usr/lib/slitaz/libtaz-modules/$i" >&2 && \ 4.97 + continue 4.98 + . /usr/lib/slitaz/libtaz-modules/$i && sourced_lib="$sourced_lib $i" 4.99 + done 4.100 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/libtaz/stuff/libtaz-modules/commons Thu Feb 24 00:23:25 2011 +0100 5.3 @@ -0,0 +1,85 @@ 5.4 +status() 5.5 +{ 5.6 + local CHECK=$? 5.7 + echo -en "\\033[70G[ " 5.8 + if [ $CHECK = 0 ]; then 5.9 + echo -en "\\033[1;32mOK" 5.10 + else 5.11 + echo -en "\\033[1;31mFailed" 5.12 + fi 5.13 + echo -e "\\033[0;39m ]" 5.14 +} 5.15 + 5.16 +get_config() 5.17 +{ 5.18 + if [ -f "./`basename $0`.conf" ]; then 5.19 + . ./`basename $0`.conf 5.20 + elif [ -f "/etc/slitaz/`basename $0`.conf" ]; then 5.21 + . /etc/slitaz/`basename $0`.conf 5.22 + else 5.23 + echo -e "\nUnable to find the configuration file : /etc/slitaz/`basename $0`.conf" >&2 5.24 + echo -e "Please read the `basename $0` documentation.\n" >&2 5.25 + exit 1 5.26 + fi 5.27 +} 5.28 + 5.29 +# The classic SliTaz check_root function used in near all SliTaz tools. 5.30 +check_root() 5.31 +{ 5.32 + [ $(id -u) = 0 ] && return 5.33 + echo -e "\nYou must be root to run `basename $0` with this option." >&2 5.34 + echo -e "Please type 'su' and root password to become super-user.\n" >&2 5.35 + exit 1 5.36 +} 5.37 + 5.38 +# A classic check_dir function : 5.39 +# - create directory if needed and echo about it. 5.40 +# Return error if directory is created (to chain other commands with ||) 5.41 +check_dir() 5.42 +{ 5.43 + if ! [ -d "$1" ]; then 5.44 + echo -n "Creating $1..." 5.45 + mkdir -p "$1" 5.46 + status 5.47 + return 1 5.48 + fi 5.49 +} 5.50 + 5.51 +# Install package if missing. 5.52 +check_pkg() 5.53 +{ 5.54 + if ! [ -d $INSTALLED/$1 ]; then 5.55 +# report step "Installing package : $1" 5.56 + tazpkg get-install $1 5.57 +# report end-step 5.58 + fi 5.59 +} 5.60 + 5.61 +# Display an horizontal line, can be used to have clearest script. 5.62 +horizontal_line() 5.63 +{ 5.64 + echo "================================================================================" 5.65 +} 5.66 + 5.67 +# Store -- options in a variable. 5.68 +# Test phase. 5.69 +# Need to add something to filter options and report error in case option is not 5.70 +# listed a used by the command. 5.71 +get_options() 5.72 +{ 5.73 + if echo "$log_command" | fgrep -q ' '--help; then 5.74 + echo "Avaible options for $(echo `basename "$log_command"` | cut -d ' ' -f 1,2) : $get_options_list" 5.75 + exit 0 5.76 + fi 5.77 + for get_option in $(echo "$log_command" | tr ' ' '\n' | grep ^-- | sed 's/^--//'); do 5.78 + if [ "${get_options_list/${get_option%%=*}}" = "$get_options_list" ]; then 5.79 + echo "Option ${get_option%%=*} is incorrect, valid options are : $get_options_list". >&2 5.80 + exit 1 5.81 + fi 5.82 + if [ "$get_option" = "${get_option/=}" ]; then 5.83 + export $get_option=yes 5.84 + else 5.85 + export $get_option 5.86 + fi 5.87 + done 5.88 +}
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/libtaz/stuff/libtaz-modules/report Thu Feb 24 00:23:25 2011 +0100 6.3 @@ -0,0 +1,431 @@ 6.4 + 6.5 +# Usage : use_report functions/commands 6.6 +# 'use_report' execute functions/commands and redirect the output. 6.7 +# You can use 'report' function to display message, steps, blocs and 6.8 +# status in the terminal and organize the display of the log. 6.9 + 6.10 +report_verbosity_opt=all 6.11 + 6.12 +report_display() 6.13 +{ 6.14 + while read out; do 6.15 + [ "$out" = €øß ] && report_stop_display && return 6.16 + echo -e " ...\n ~~~~~~~~~~~~~~~~~~~~ Messages ~~~~~~~~~~~~~~~~~~~~ " 6.17 + echo "$out" 6.18 + break 6.19 + done 6.20 + while read out; do 6.21 + [ "$out" = €øß ] && report_stop_display && return 6.22 + echo "$out" 6.23 + done 6.24 +} 6.25 + 6.26 +report_create_html() 6.27 +{ 6.28 + if ! [ -f "$log_opt" ]; then 6.29 + mkdir -p "${log_opt%/*}" 6.30 + cp /usr/share/slitaz/web/template.html "$log_opt" 6.31 + sed -e "s/xml:lang=\"us\" lang=\"us\"/xml:lang=\"${LANG%%_*}\" lang=\"${LANG%%_*}\"/" \ 6.32 + -e "s~Title of the page~SliTaz GNU/Linux - Log: $0~" \ 6.33 + -e "s~Second Title~Log: $0~" -i "$log_opt" 6.34 + echo '<div id="report">' >> "$log_opt" 6.35 + else 6.36 + sed 's~</div></body></html>~~' -i "$log_opt" 6.37 + fi 6.38 + 6.39 + echo -e "<h1>$(basename "$log_command")</h1>\n<em>$(date)</em>" >> "$log_opt" 6.40 + [ -L "${log_opt%/*}/web" ] || ln -s /usr/share/slitaz/web "${log_opt%/*}/web" 6.41 +} 6.42 + 6.43 +report_start() 6.44 +{ 6.45 + # Create the temporary directory if needed. 6.46 + ! [ -d /tmp/libtaz/ ] && mkdir -p /tmp/libtaz 6.47 + ! [ -d $SLITAZ_LOG ] && mkdir -p $SLITAZ_LOG 6.48 + 6.49 + # Give permissions to all users if user is root. 6.50 + if test $(id -u) = 0 ; then 6.51 + chmod 777 /tmp/libtaz 6.52 + chmod -R 777 $SLITAZ_LOG 6.53 + fi 6.54 + 6.55 + # Get a random logfile name. 6.56 + if [ "$report_pid" ]; then 6.57 + log_tmp=/tmp/libtaz/$report_pid 6.58 + embeded_mode=enabled 6.59 + initial_bloc_level=$bloc_level 6.60 + if [ "$open_bloc" ]; then 6.61 + initial_bloc_level=$(($bloc_level+1)) 6.62 + embeded_open_bloc=yes 6.63 + fi 6.64 + if [ -p $log_tmp.stdout ] && ! [ "$open_bloc" = yes ]; then 6.65 + report_step_status 6.66 + fi 6.67 + else 6.68 + log_tmp=/tmp/libtaz/$$ 6.69 + report_pid=$$ 6.70 + fi 6.71 + 6.72 + # Use the default logfile if there's no logfile was specified by the main script. 6.73 + [ ! "$log_opt" ] && [ "$report_log_all" = yes ] && \ 6.74 + log_opt="$SLITAZ_LOG/`basename $0`/$(date -Iseconds).html" 6.75 + export report_pid log_opt 6.76 + 6.77 + #if [ "$embeded_mode" != enabled ]; then 6.78 + 6.79 + # Initialize html logfile if needed, or prepare it to be edited. 6.80 + [ "$log_opt" ] && { [ ! "$embeded_mode" ] || [ ! -f "$log_opt" ]; } && report_create_html 6.81 + 6.82 + echo -n "" > $log_tmp 6.83 + 6.84 + # Initialize named pipes & set I/O redirections. 6.85 + [ "$embeded_mode" ] || exec 3>&1 4>&2 6.86 + 6.87 + # Start debugging if the option is enabled. 6.88 + if [ "$debug_opt" ]; then 6.89 + exec 2>$log_tmp.stdout 6.90 + set -vx 6.91 + echo "[--------------------------/!\ DEBUG MODE ENABLED /!\--------------------------]" 6.92 + fi 6.93 + 6.94 + # Theses variable are used to configure the display of steps in terminal. 6.95 + bloc1_delimiter="================================================================================" 6.96 + bloc1_display=" " 6.97 + bloc2_delimiter="----------------------------------------------------------------------------" 6.98 + bloc2_display=" > " 6.99 + bloc3_delimiter="* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" 6.100 + bloc3_display=" * " 6.101 + 6.102 + # Use a trap to exit cleanly if app is killed. 6.103 + trap "report_exit $(basename $0) killed by user" SIGINT SIGTERM 6.104 + 6.105 + # Use another display function if quiet is enable. 6.106 + [ "$report_verbosity_opt" = "none" ] && report_display() 6.107 +{ 6.108 + while read out; do 6.109 + [ "$out" = €øß ] && report_stop_display && return 6.110 + done 6.111 +} 6.112 +} 6.113 + 6.114 +report_stop_display() 6.115 +{ 6.116 + rm $log_tmp.stderr $log_tmp.stdout 6.117 + sed '/^€øß$/d' -i $log_tmp 6.118 + touch $log_tmp.end 6.119 +} 6.120 + 6.121 +report_listen() 6.122 +{ 6.123 + mkfifo $log_tmp.stderr $log_tmp.stdout 6.124 + { 6.125 + { tee -a $log_tmp $log_tmp.error <$log_tmp.stderr | while read line; do echo -e "\\033[1;31m${line}\\033[0m"; done; }& 6.126 + { tee -a $log_tmp <$log_tmp.stdout; }& 6.127 + } | report_display& 6.128 + usleep 10000 6.129 + exec 1>>$log_tmp.stdout 2>>$log_tmp.stderr 6.130 +} 6.131 + 6.132 +report_stop_listen() 6.133 +{ 6.134 + if [ -p $log_tmp.stdout ]; then 6.135 + [ -f $log_tmp.end ] && rm $log_tmp.end 6.136 + usleep 10000 && echo €øß 6.137 + while ! [ -f $log_tmp.end ]; do 6.138 + usleep 10000 6.139 + done 6.140 + exec 1>&3 2>&4 6.141 + rm $log_tmp.end 6.142 + fi 6.143 +} 6.144 + 6.145 +report_stop() 6.146 +{ 6.147 + ! [ "$report_pid" ] && exit 6.148 + # End step and close blocs. 6.149 + [ "$step_running" ] && report end-step 6.150 + while [ $(($bloc_level)) -gt $(($initial_bloc_level)) ]; do 6.151 + report close-bloc 6.152 + done 6.153 + 6.154 + if [ "$embeded_mode" = enabled ]; then 6.155 + [ "$bloc_level" ] && echo $(eval echo \$bloc${bloc_level}_status) > $log_tmp.status 6.156 + if [ "$embeded_open_bloc" = opened ]; then 6.157 + touch $log_tmp.eob 6.158 + fi 6.159 + else 6.160 + [ "$log_opt" ] && echo '</div></body></html>' >> "$log_opt" 6.161 + exec 3>&- 4>&- 6.162 + rm -f $log_tmp* 6.163 + unset report_pid log_opt 6.164 + 6.165 + # Stop debugging 6.166 + [ "$debug_opt" ] && set +vx 6.167 + [ "$report_log_all" ] && create_log_index 6.168 + fi 6.169 +} 6.170 + 6.171 +# Use this to stop a program with error. 6.172 +report_exit() 6.173 +{ 6.174 + # Log&display error message. 6.175 + echo -e "$@" >&2 6.176 + 6.177 + # Close step as failed. 6.178 + if [ "$step_running" ]; then 6.179 + (exit 1) 6.180 + report end-step 6.181 + fi 6.182 + 6.183 + # Set blocs as failed, report and exit. 6.184 + bloc1_status="failed" 6.185 + bloc2_status="failed" 6.186 + bloc3_status="failed" 6.187 + report_stop 6.188 + exit 1 6.189 +} 6.190 + 6.191 +# Usage : report [command] [message] 6.192 +# 6.193 +# type :message - simply display the message. 6.194 +# step - name the step and display status when ended. 6.195 +# end-step - display status of the step, it's done automaticaly when 6.196 +# starting a new step, closing a bloc or stop report. 6.197 +# open-bloc - open the list of steps in the operation; 6.198 +# close-bloc- close the current bloc. 6.199 +report() 6.200 +{ 6.201 + # First : get status before it is changed by other commands. 6.202 + check_status=$? 6.203 + case "$1" in 6.204 + start) 6.205 + report_start 6.206 + ;; 6.207 + stop) 6.208 + report_stop 6.209 + ;; 6.210 + exit) 6.211 + shift && report_exit "$@" 6.212 + ;; 6.213 + # TODO : Code displaying a message during a step run. 6.214 + message) 6.215 + shift 6.216 + echo -e "${current_bloc_display}$@" 6.217 + report_message=$(echo "$@" | sed "s~$~<br />~g") 6.218 + [ "$log_opt" ] && echo -e "<div class=\"message\">$report_message</div>" >> "$log_opt" 6.219 + ;; 6.220 + step) 6.221 + [ "$log_step" ] && echo "$2" > $log_step 6.222 + [ "$open_bloc" ] && report_open_bloc 6.223 + [ "$step_running" ] && report_step_status 6.224 + echo -ne "$current_bloc_display$2\\033[70G[ \\033[1;32mR\\033[33mU\\033[31mN\\033[0;39m ]" >&3 6.225 + [ "$log_opt" ] && echo -e "<div class=\"$2\">\n<h$(($bloc_level+2))>$2</h$(($bloc_level+2))>" >> "$log_opt" 6.226 + export step_running="$2" 6.227 + report_listen 6.228 + ;; 6.229 + end-step) 6.230 + [ -s $(dirname $log_opt)/step ] && rm -f $(dirname $log_opt)/step 6.231 + if ! [ "$step_running" ]; then 6.232 + report_return_code=$check_status 6.233 + else 6.234 + report_step_status 6.235 + fi 6.236 + ;; 6.237 + open-bloc) 6.238 + export open_bloc=yes 6.239 + ;; 6.240 + close-bloc) 6.241 + if [ -f "$log_tmp.eob" ]; then 6.242 + report_open_bloc 6.243 + check_status=$(cat $log_tmp.status) 6.244 + rm $log_tmp.status 6.245 + report_set_bloc_status 6.246 + elif [ "$step_running" ]; then 6.247 + report_step_status 6.248 + fi 6.249 + 6.250 + # Then close the bloc and report status if it was open. 6.251 + if ! [ "$open_bloc" ]; then 6.252 + export current_bloc_display="$(eval echo \"\$bloc$((${bloc_level}-1))_display\")" 6.253 + [ "$(eval echo \"\$bloc${bloc_level}_delimiter\")" ] && \ 6.254 + echo -e "$current_bloc_display$(eval echo \"\$bloc${bloc_level}_delimiter\")" >&3 6.255 + echo -en "$current_bloc_display... $(eval echo \"\$bloc${bloc_level}_running\")" >&3 6.256 + check_status=$(eval echo \$bloc${bloc_level}_status) 6.257 + report_display_status 6.258 + 6.259 + # Set the bloc status in the log file. 6.260 + if [ "$log_opt" ]; then 6.261 + sed "s~<div class=\"bloc_level$bloc_level\">~<div class=\"$check_status\">~" -i "$log_opt" 6.262 + echo "</div>" >> "$log_opt" 6.263 + fi 6.264 + echo "" >&3 6.265 + export bloc_level=$(($bloc_level-1)) 6.266 + [ "$bloc_level" = 0 ] && unset bloc_level 6.267 + else 6.268 + unset open_bloc 6.269 + fi 6.270 + ;; 6.271 + sublog) 6.272 + shift 6.273 + ! [ "$log_list" ] && log_list="$log_opt" 6.274 + export log_list="$1 $log_list" 6.275 + export log_opt="$1" 6.276 + report_create_html 6.277 + ;; 6.278 + end-sublog) 6.279 + [ "$log_opt" ] || continue 6.280 + export log_list="${log_list#* }" 6.281 + echo '</div></body></html>' >> "$log_opt" 6.282 + # Grep the summary of sublog (main action + status) and put 6.283 + # it in the main log, plus a link. 6.284 + [ "$log_list" ] && { sed -n '/<div id="report">/,$p' $log_opt | \ 6.285 + grep -A1 -F '<div class=' | sed 1,2!d && 6.286 + echo '<a class="sublog" href="'$log_opt'">SubLog</a>' && \ 6.287 + echo "</div>" 6.288 + } >> ${log_list%% *} 6.289 + export log_opt="${log_list%% *}" 6.290 + report_step_status 6.291 + ;; 6.292 + esac 6.293 + return $report_return_code 6.294 +} 6.295 + 6.296 +# Open a bloc of substeps in terminal and log. 6.297 +report_open_bloc() 6.298 +{ 6.299 + unset open_bloc 6.300 + [ "$embeded_open_bloc" = "yes" ] && embeded_open_bloc=opened 6.301 + [ -f "$log_tmp.eob" ] && rm $log_tmp.eob 6.302 + export bloc_level=$(($bloc_level+1)) 6.303 + export bloc${bloc_level}_running="$step_running" 6.304 + if [ -p $log_tmp.stdout ]; then 6.305 + if [ -s $log_tmp ]; then 6.306 + prebloc=yes 6.307 + report_step_status 6.308 + prebloc= 6.309 + else 6.310 + report_stop_listen 6.311 + echo ' ...' >&3 6.312 + fi 6.313 + [ "$(eval echo \$bloc${bloc_level}_delimiter)" ] && \ 6.314 + echo "$current_bloc_display$(eval echo \"\$bloc${bloc_level}_delimiter\")" >&3 6.315 + [ "$log_opt" ] && sed "s~<div class=\"$step_running\">~<div class=\"bloc_level$bloc_level\">~" -i "$log_opt" 6.316 + else 6.317 + exec 1>&3 2>&4 6.318 + fi 6.319 + export current_bloc_display="$(eval echo \"\$bloc${bloc_level}_display\")" 6.320 + unset bloc${bloc_level}_status 6.321 + unset step_running 6.322 +} 6.323 + 6.324 +# This is the two new status function used by the report tool. 6.325 +# States are : ok - no error since the start of the step 6.326 +# warning - there was error(s) since the start of the step 6.327 +# failed - the last executed command has exiting anormally 6.328 +report_step_status() 6.329 +{ 6.330 + unset report_return_code 6.331 + if [ -p $log_tmp.stdout ]; then 6.332 + report_stop_listen 6.333 + 6.334 + #Close message bloc if opened. 6.335 + if [ -s $log_tmp -a "$report_verbosity_opt" = all ] || \ 6.336 + [ -s $log_tmp.error -a "$report_verbosity_opt" != none ]; then 6.337 + echo " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ " >&3 6.338 + ! [ "$prebloc" ] && echo -en "$current_bloc_display... $step_running" >&3 && report_addemptyline="yes" 6.339 + fi 6.340 + 6.341 + # Check, display and log the status of the step. 6.342 + if ! [ "$check_status" = "0" ]; then 6.343 + check_status=failed 6.344 + else 6.345 + [ -s "$log_tmp.error" ] && check_status=warning || check_status=ok 6.346 + fi 6.347 + ! [ "$prebloc" ] && report_display_status 6.348 + [ "$report_addemptyline" ] && echo "" >&3 && unset report_addemptyline 6.349 + [ "$log_opt" ] && report_rec_log 6.350 + fi 6.351 + 6.352 + [ -f "$log_tmp.eob" ] && rm $log_tmp.eob 6.353 + 6.354 + # Set blocs status if needed. 6.355 + [ -f $log_tmp.status ] && check_status=$(cat $log_tmp.status) && rm $log_tmp.status 6.356 + [ "$bloc_level" ] && report_set_bloc_status 6.357 + 6.358 + # Clear variables / temporary logs. 6.359 + ! [ "$prebloc" ] && export step_running="" 6.360 + check_status="" 6.361 + echo -n "" > $log_tmp.error 6.362 + echo -n "" > $log_tmp 6.363 +} 6.364 + 6.365 +report_display_status() 6.366 +{ 6.367 + [ "$report_return_code" = 1 ] && check_status=failed 6.368 + echo -en "\\033[70G " >&3 6.369 + echo -en "\\033[70G[ " >&3 6.370 + [ "$check_status" = ok ] && report_return_code=0 && echo -en "\\033[1;32mOK" >&3 6.371 + [ "$check_status" = warning ] && report_return_code=0 && echo -en "\\033[1;33mWarning" >&3 6.372 + [ "$check_status" = failed ] && report_return_code=1 && echo -en "\\033[1;31mFailed" >&3 6.373 + echo -e "\\033[0;39m ]" >&3 6.374 +} 6.375 + 6.376 +report_term_to_html() 6.377 +{ 6.378 + report_decolorize | sed -e 's~<~\<~' -e 's~>~\>~' -e 's/$/<br \/>/' -e 's~STDERR: \(.*\)~<span class="error">\1<\/span>~' -e 's~ ~\ \ \ \ ~' 6.379 +} 6.380 + 6.381 +report_decolorize() 6.382 +{ 6.383 + tr -d '\e' | sed -r "s/\[([0-9]{1,3}(;[0-9]{1,3})*)[m|G]//g" 6.384 +} 6.385 + 6.386 +report_rec_log() 6.387 +{ 6.388 + ! [ "$prebloc" ] && sed "s~<div class=\"$step_running\">~<div class=\"$check_status\">~" -i "$log_opt" 6.389 + if [ -s "$log_tmp" ]; then 6.390 + if [ -s "$log_tmp.error" ]; then 6.391 + cat $log_tmp.error | sort -u | while read line; do 6.392 + # Format line to avoid sed errors : 6.393 + line=$(echo "$line" | sed -e 's~\*~\\\*~g' -e 's~\[~\\\[~g' -e 's~\]~\\\]~g') 6.394 + sed "s~^$line$~STDERR: $line~" -i $log_tmp 6.395 + done 6.396 + fi 6.397 + echo -n "<pre>" >> "$log_opt" 6.398 + cat $log_tmp | report_term_to_html >> "$log_opt" 6.399 + echo "</pre>" >> "$log_opt" 6.400 + fi 6.401 + ! [ "$prebloc" ] && echo "</div>" >> "$log_opt" 6.402 +} 6.403 + 6.404 +# Theses variables keep the status of the blocs. 6.405 +# A bloc is reported as ok if all child steps are ok and as failed 6.406 +# if all child steps are failed (or if a fatal error occurs). 6.407 +# In other cases the bloc is reported as warning. 6.408 +report_set_bloc_status() 6.409 +{ 6.410 + bloc_status=$(eval echo \$bloc${bloc_level}_status) 6.411 + for n in $(seq $bloc_level -1 1); do 6.412 + ! [ "$(eval echo \$bloc${n}_status)" ] && eval bloc${n}_status=$check_status 6.413 + ! [ "$(eval echo \$bloc${n}_status)" = "$check_status" ] && \ 6.414 + eval bloc${n}_status=warning 6.415 + done 6.416 +} 6.417 + 6.418 +create_log_index() 6.419 +{ 6.420 + cd $SLITAZ_LOG 6.421 + cp -f /usr/share/slitaz/web/template.html index.html 6.422 + sed -e "s/xml:lang=\"us\" lang=\"us\"/xml:lang=\"${LANG%%_*}\" lang=\"${LANG%%_*}\"/" \ 6.423 + -e "s~Title of the page~SliTaz GNU/Linux - Logs Index~" \ 6.424 + -e "s~Second Title~Logs Index~" -i index.html 6.425 + echo '<div id="report">' >> index.html 6.426 + for log in $(ls -t */*); do 6.427 + log_title=$(grep '<h1>.*</h1>' $log | sed 's~<h1>\(.*\)</h1>~\1~') 6.428 + log_date=$(date -r $log) 6.429 + log_status=$(grep '<div class=".*">' $log | sed -e 1!d -e 's~<.*"\(.*\)">~\1~') 6.430 + echo -e " <a href=\"$log\"><div class=\"$log_status\">$log_date: $log_title</div></a>" >> index.html 6.431 + done 6.432 + echo -e '</div></body></html>' >> index.html 6.433 + chmod 666 index.html 6.434 +}
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/libtaz/stuff/slitaz.conf Thu Feb 24 00:23:25 2011 +0100 7.3 @@ -0,0 +1,91 @@ 7.4 +######################################################################## 7.5 +# This is the generic SliTaz configuration file used by libtaz to get 7.6 +# the defaults options and directories. 7.7 +# 7.8 +# Theses variables can be overwritted by a lower level of configuration. 7.9 +# Order for loading variables (the latest definition is keeped) : 7.10 +# slitaz.conf (then) main app.conf (or) local app.conf 7.11 +# (or) *.conf of the command line (then) arguments of the command line 7.12 +# 7.13 +# ** Alpha Comment by GoKhlaYeh: ** 7.14 +# With libtaz, I plan to change the default location of some important 7.15 +# directories to fit the server hierarchy. In a general view I want 7.16 +# to make the organisation on server and on released system similar. 7.17 +# The goal is having tools working out-of-the-box in both cases to make 7.18 +# the contributor work more easy and efficient. 7.19 +# Theses changes will takes place with Release Candidate, when libtaz 7.20 +# implementation in all SliTaz tools will be finish, and all code fully 7.21 +# reviewed. Hope everybody agree with that ;). 7.22 +# 7.23 + 7.24 +######################################################################## 7.25 +# COMMON DIRECTORIES 7.26 +######################## 7.27 + 7.28 +# Slitaz logs directory. 7.29 +SLITAZ_LOG="/var/log/slitaz" 7.30 + 7.31 +# Slitaz version. 7.32 +SLITAZ_VERSION="$(cat /etc/slitaz-release)" 7.33 + 7.34 +# Slitaz directory. 7.35 +SLITAZ_DIR="/home/slitaz" 7.36 + 7.37 +# Local repository for current version (can contains local packages 7.38 +# repository, wok, sources, ...). 7.39 +LOCAL_REPOSITORY="$SLITAZ_DIR/$SLITAZ_VERSION" 7.40 + 7.41 +# Online packages repository. 7.42 +ONLINE_REPOSITORY="http://mirror.slitaz.org/packages/$SLITAZ_VERSION/" 7.43 + 7.44 +# Packages cache directory. 7.45 +CACHE_DIR="/var/cache/tazpkg" 7.46 + 7.47 +# Path to repository datas. 7.48 +LOCALSTATE="/var/lib/tazpkg" 7.49 + 7.50 +# Path to installations datas. 7.51 +INSTALLED="$LOCALSTATE/installed" 7.52 + 7.53 +######################################################################## 7.54 +# COMMON VARIABLES 7.55 +######################## 7.56 + 7.57 +# Packages categories. 7.58 +CATEGORIES=" 7.59 +base-system 7.60 +x-window 7.61 +utilities 7.62 +network 7.63 +graphics 7.64 +multimedia 7.65 +office 7.66 +development 7.67 +system-tools 7.68 +security 7.69 +games 7.70 +misc 7.71 +meta 7.72 +non-free" 7.73 + 7.74 + 7.75 +######################################################################## 7.76 +# LIBTAZ OPTIONS 7.77 +######################## 7.78 +# Theses options are the default setting for all SliTaz tools which use 7.79 +# libtaz. They are : 7.80 +# * tazwok 7.81 +# * tazpkg 7.82 + 7.83 +# If this option is enabled, automaticaly install needed packages. It 7.84 +# can be depends, build_depends, or package needed to perform a specific 7.85 +# task. 7.86 +# Value can be : 7.87 +# * yes = enabled 7.88 +# * anything else = disabled 7.89 +auto_install=yes 7.90 + 7.91 +# If you want to log all operations (into /var/log/slitaz), 7.92 +# uncomment the following line 7.93 +# Note: important operations are logged by default. 7.94 +#report_log_all=yes 7.95 \ No newline at end of file
8.1 Binary file libtaz/stuff/web/favicon.ico has changed
9.1 Binary file libtaz/stuff/web/header-img.png has changed
10.1 Binary file libtaz/stuff/web/logo.png has changed
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 11.2 +++ b/libtaz/stuff/web/slitaz.css Thu Feb 24 00:23:25 2011 +0100 11.3 @@ -0,0 +1,545 @@ 11.4 +/* 11.5 + CSS style for SliTaz Network - (c) 2011 SliTaz GNU/Linux 11.6 +*/ 11.7 + 11.8 +html { 11.9 + min-height: 102%; 11.10 +} 11.11 + 11.12 +body { 11.13 + background: #ffffff; 11.14 + color: black; 11.15 + font: 13px sans-serif, vernada, arial; 11.16 + margin: 0; 11.17 + border-top: 34px solid #f1f1f1; 11.18 +} 11.19 +a { text-decoration: underline; color: #103a5e; } 11.20 +a:hover { text-decoration: none; color: blue; } 11.21 +img { border: 0pt none; } 11.22 + 11.23 +/* Accessibility */ 11.24 + 11.25 +#access { 11.26 + position: absolute; 11.27 + top: 4px; 11.28 + right: 0px; 11.29 + text-align: right; 11.30 + width: auto; 11.31 + margin: 0; 11.32 + padding: 4px 4px 4px 20px; 11.33 + font-size: 11px; 11.34 + font-weight: bold; 11.35 +} 11.36 + 11.37 +#access a { 11.38 + background: transparent; 11.39 + color: #0F314E; 11.40 + text-decoration: none; 11.41 +} 11.42 +#access a:hover { color: #b64b22; } 11.43 +#access img { vertical-align: middle; } 11.44 + 11.45 +/* Header */ 11.46 + 11.47 +#header { 11.48 + background: #351a0a url(header-img.png) no-repeat top right; 11.49 + color: black; 11.50 + width: 100%; 11.51 + height: 42px; 11.52 + border-top: 1px solid black; 11.53 + border-bottom: 1px solid #999; 11.54 + margin-bottom: 33px; 11.55 +} 11.56 + 11.57 +#titre { 11.58 + position: absolute; 11.59 + font-size: 14px; 11.60 + font-weight: bolder ; 11.61 + left: 180px; 11.62 + top: 4px; 11.63 +} 11.64 + 11.65 +#logo { 11.66 + position: absolute; 11.67 + float: left; 11.68 + left: 16px; 11.69 + top: -10px; 11.70 + width: 200px; 11.71 + height: 74px; 11.72 +} 11.73 + 11.74 +/* Side bar */ 11.75 + 11.76 +#nav { 11.77 + position: absolute; 11.78 + top: 102px; 11.79 + right: 80px; 11.80 + color: #555555; 11.81 + float: right; 11.82 + width: 250px; 11.83 + line-height: 1.5em; 11.84 + text-align: left; 11.85 + font-size: 12px; 11.86 +} 11.87 + 11.88 +#nav h4 { 11.89 + font-size: 120%; 11.90 + color: #666666; 11.91 + font-weight: bold; 11.92 + margin: 0; 11.93 + padding: 0 0 1px 0; 11.94 + border-bottom: 1px solid #cecece; 11.95 +} 11.96 + 11.97 +#nav a { 11.98 + color: #0F314E; 11.99 + background: inherit; 11.100 + display: block; 11.101 + text-decoration: none; 11.102 + font-weight: bold; 11.103 +} 11.104 + 11.105 +#nav a:hover { 11.106 + color: #b64b22; 11.107 + text-decoration: none; 11.108 + display: block; 11.109 +} 11.110 + 11.111 +#nav .nav_box ul { 11.112 + list-style-type: none; 11.113 + margin: 0; 11.114 + padding: 10px 24px 10px 0px; 11.115 + background-color: inherit; 11.116 +} 11.117 + 11.118 +#nav li { display: inline; } 11.119 + 11.120 +#nav ul { 11.121 + -moz-border-radius: 8px; 11.122 + -webkit-border-radius: 8px; 11.123 + border-radius: 8px; 11.124 + list-style-type: none; 11.125 + margin: 10px 0; 11.126 + padding: 10px 24px 10px 24px; 11.127 + background-color: #eaeaea; 11.128 +} 11.129 + 11.130 +.nav_box { 11.131 + margin: 10px 0; 11.132 + padding: 10px 24px 10px 24px; 11.133 + background-color: #eaeaea; 11.134 + text-align: justify; 11.135 +} 11.136 + 11.137 +#nav .nav_box p { line-height: 1.3em; } 11.138 + 11.139 +#nav .nav_box p a { 11.140 + display: inline; 11.141 + font-weight: normal; 11.142 + text-decoration: underline; 11.143 +} 11.144 + 11.145 +#nav .nav_box p a:hover { 11.146 + text-decoration: none; 11.147 + color: blue; 11.148 + background: inherit; 11.149 +} 11.150 + 11.151 +/* Page content */ 11.152 + 11.153 +#content, #content-full { 11.154 + background: white; 11.155 + color: black; 11.156 + text-align: justify; 11.157 + height: auto; 11.158 + margin: 6px 320px 0px 0px; 11.159 + padding: 0px 40px 60px 80px; 11.160 +} 11.161 +#content-full { 11.162 + margin: 0; 11.163 + padding: 0px 80px 40px 80px; 11.164 +} 11.165 +#content li, #content-full li { 11.166 + line-height: 1.5em; 11.167 + text-align: left; 11.168 +} 11.169 +#news li { 11.170 + list-style-type: square; 11.171 + border-bottom: 1px dotted #BEBEBE; 11.172 + margin-left: -25px; 11.173 + padding: 4px 0px 4px 0px; 11.174 +} 11.175 +#news a { text-decoration: none; } 11.176 + 11.177 +/* Box and block. */ 11.178 + 11.179 +.infobox { 11.180 + margin: 20px 60px; 11.181 + padding: 12px; 11.182 + background: #f8f8f8; 11.183 +} 11.184 +.infobox img { vertical-align: middle; } 11.185 +.infobox:hover { background-color: #FBFBFB; } 11.186 +.block { 11.187 + /*padding-bottom: 35%;*/ 11.188 + color: black; 11.189 + min-height: 200px; 11.190 + margin-bottom: 40px; 11.191 +} 11.192 +.block ul { 11.193 + list-style-type: none; 11.194 + margin: 0; 11.195 + padding: 0 20px; 11.196 +} 11.197 +.block_left { 11.198 + width: 46%; 11.199 + float: left; 11.200 + background-color: #eaeaea; 11.201 + margin: 4px 2px; 11.202 + padding: 0 10px 10px 10px; 11.203 +} 11.204 +.block_right { 11.205 + width: 46%; 11.206 + float: right; 11.207 + background-color: #eaeaea; 11.208 + margin: 4px 2px; 11.209 + padding: 0 10px 10px 10px; 11.210 +} 11.211 +#block_top { 11.212 + color: black; 11.213 + background-color: #eaeaea; 11.214 + min-height: 180px; 11.215 + margin-bottom: 40px; 11.216 + margin-right: 340px; 11.217 + padding: 0 10px; 11.218 +} 11.219 +#block_nav { 11.220 + width: 300px; 11.221 + min-height: 180px; 11.222 + float: right; 11.223 + background-color: #eaeaea; 11.224 + margin: 0; 11.225 + padding: 0 10px; 11.226 +} 11.227 +.nav_box, .infobox, .block_left, .block_right, #block_top, 11.228 +#block_nav, #footer { 11.229 + -moz-border-radius: 8px; 11.230 + -webkit-border-radius: 8px; 11.231 + border-radius: 8px; 11.232 + -moz-box-shadow: 0 1px 3px #666; 11.233 + -webkit-box-shadow: 0 1px 3px #666; 11.234 + box-shadow: 0 1px 3px #666; 11.235 + /* CSS3 transition */ 11.236 + -webkit-transition-property: background-color; 11.237 + -webkit-transition-duration: 2s; 11.238 + -moz-transition-property: background-color; 11.239 + -moz-transition-duration: 2s; 11.240 + transition-property: background-color; 11.241 + transition-duration: 2s; 11.242 +} 11.243 +#block_nav { font-weight: bold; } 11.244 +#block_nav a { text-decoration: none; } 11.245 +#block_nav li a:hover { color: #b64b22; } 11.246 +#block_nav ul { margin: 0; list-style-type: none; } 11.247 +#block_nav h3 { font-size: 110%; } 11.248 +.nav_box:hover, .block_left:hover, .block_right:hover, 11.249 +#block_top:hover, #block_nav:hover, #footer:hover { 11.250 + background-color: #f8f8f8; 11.251 +} 11.252 +.right_box { 11.253 + width: 50%; 11.254 + float: right; 11.255 +} 11.256 +/* Text transform at 45deg */ 11.257 +.floor { 11.258 + color: #999999; 11.259 + font-size: 20px; 11.260 + -webkit-transform: rotate(-45deg) skew(15deg, 15deg); 11.261 + -moz-transform: rotate(-45deg) skew(15deg, 15deg); 11.262 + -o-transform: rotate(-45deg) skew(15deg, 15deg); 11.263 + -ms-transform: rotate(-45deg) skew(15deg, 15deg); 11.264 + transform: rotate(-45deg) skew(15deg, 15deg); 11.265 +} 11.266 +#twitter, .feedbox { 11.267 + margin-top: 20px; 11.268 + -moz-border-radius: 8px; 11.269 + -webkit-border-radius: 8px; 11.270 + border-radius: 8px; 11.271 + -moz-box-shadow: 0 1px 3px #666; 11.272 + -webkit-box-shadow: 0 1px 3px #666; 11.273 + box-shadow: 0 1px 3px #666; 11.274 +} 11.275 +.feedbox { 11.276 + background-color: #f9f9f9; 11.277 + padding: 10px 20px; 11.278 + margin: 20px 100px; 11.279 +} 11.280 +.feedbox div { 11.281 + height: 320px; 11.282 + overflow: auto; 11.283 +} 11.284 +.feedbox ul { list-style-type: none; margin: 0; } 11.285 + 11.286 +/* Button */ 11.287 + 11.288 +.button { margin-left: 20px; } 11.289 +.button a { 11.290 + background-color: #b64b22; 11.291 + color: #ffffff; 11.292 + margin-right: 6px; 11.293 + padding: 6px 10px; 11.294 + font-size: 14px; 11.295 + -moz-border-radius: 4px; 11.296 + -webkit-border-radius: 4px; 11.297 + border-radius: 4px; 11.298 + -moz-box-shadow: 0 1px 3px #666; 11.299 + -webkit-box-shadow: 0 1px 3px #666; 11.300 + box-shadow: 0 1px 3px #666; 11.301 +} 11.302 +.button a:hover, input[type=submit]:hover { 11.303 + background-color: #a3431f; 11.304 + color: #ffffff; 11.305 +} 11.306 +input[type=submit] { 11.307 + border: 1px solid #b64b22; 11.308 + background-color: #b64b22; 11.309 + color: white; 11.310 + font-weight: bold; 11.311 + cursor: pointer; 11.312 + padding: 3px 10px; 11.313 + font-size: 14px; 11.314 + -moz-border-radius: 2px; 11.315 + -webkit-border-radius: 2px; 11.316 + border-radius: 2px; 11.317 + -moz-box-shadow: 0 0 5px #666; 11.318 + -webkit-box-shadow: 0 0 5px#666; 11.319 + box-shadow: 0 0 5px #666; 11.320 + margin-left: -5px; 11.321 +} 11.322 +input[type=text] { 11.323 + border: 1px solid #333333; 11.324 + padding: 3px; 11.325 + width: 100%; 11.326 +} 11.327 + 11.328 +/* Clouds */ 11.329 + 11.330 +#cloud { 11.331 + padding: 10px 0px; 11.332 + line-height: 3em; 11.333 + text-align: center; 11.334 +} 11.335 +#cloud a { padding: 0 2px; color: #444444; } 11.336 +#cloud a.tag1 { font-size: 0.7em; font-weight: 100; } 11.337 +#cloud a.tag2 { font-size: 0.8em; font-weight: 200; } 11.338 +#cloud a.tag3 { font-size: 0.9em; font-weight: 300; } 11.339 +#cloud a.tag4 { font-size: 1.0em; font-weight: 400; } 11.340 +#cloud a.tag5 { font-size: 1.2em; font-weight: 500; } 11.341 +#cloud a.tag6 { font-size: 1.4em; font-weight: 600; } 11.342 +#cloud a.tag7 { font-size: 1.6em; font-weight: 700; } 11.343 +#cloud a.tag8 { font-size: 1.8em; font-weight: 800; } 11.344 +#cloud a.tag9 { font-size: 2.2em; font-weight: 900; } 11.345 +#cloud a.tag10 { font-size: 2.5em; font-weight: 900; } 11.346 + 11.347 +/* Slideshow and gallery */ 11.348 + 11.349 +#slideshow 11.350 +{ 11.351 + overflow: hidden; 11.352 + margin: 10px auto 10px; 11.353 + position: relative; 11.354 + width: 260px; 11.355 + height: 163px; 11.356 +} 11.357 + 11.358 +#slideshow img 11.359 +{ 11.360 + border: 0; 11.361 + width: 260px; 11.362 + height: 163px; 11.363 +} 11.364 + 11.365 +#gallery { text-align: center; } 11.366 + 11.367 +/* HTML styles */ 11.368 + 11.369 +h1 { 11.370 + color: #444444; 11.371 + background: transparent; 11.372 + text-align: left; 11.373 + margin: 0px 0px 4px 0px; 11.374 + font-size: 150%; 11.375 + font-weight: bold; 11.376 + padding: 5px 0 0 10px; 11.377 +} 11.378 + 11.379 +h2 { 11.380 + color: #b64b22; 11.381 + padding: 0; 11.382 + margin: 20px 0 0 0; 11.383 + font-size: 130%; 11.384 + font-weight: bold; 11.385 +} 11.386 + 11.387 +h3 { 11.388 + font-weight: bold; 11.389 + color: #666666; 11.390 + background: transparent; 11.391 +} 11.392 + 11.393 +h3 img, h2 img { 11.394 + vertical-align: middle; 11.395 + width: 20px; 11.396 + height: 20px; 11.397 + padding-right: 4px; 11.398 +} 11.399 +code, tt { 11.400 + font-size: 12px; 11.401 + color: #669900; 11.402 +} 11.403 + 11.404 +pre, pre.script { 11.405 + padding: 10px; 11.406 + color: black; 11.407 + background: #E8E8E8; 11.408 + border: 1px inset #606060; 11.409 +} 11.410 + 11.411 +/* Packages pages */ 11.412 + 11.413 +.pkg_nav { 11.414 + border-top: 1px solid black; 11.415 + margin-top: 10px; 11.416 + padding-top: 10px; 11.417 +} 11.418 + 11.419 +pre.package { 11.420 + padding: 0px; 11.421 + color: black; 11.422 + background: white; 11.423 + border: 0px solid #fff; 11.424 +} 11.425 + 11.426 +p.get { 11.427 + text-align: center; 11.428 + padding: 10px; 11.429 + color: black; 11.430 + background: #F3F3F3; 11.431 + border: 1px solid #DEDEDE; 11.432 + border-radius: 4px; 11.433 + -moz-border-radius: 4px; 11.434 + -webkit-border-radius: 4px; 11.435 +} 11.436 +p.get a { 11.437 + font-weight: bold; 11.438 + text-decoration: none; 11.439 +} 11.440 +.pkgs-search { 11.441 + text-align: center; 11.442 + padding: 40px 20px 80px 20px; 11.443 +} 11.444 + 11.445 +#footer { 11.446 + margin: 0px 80px 80px 80px; 11.447 + padding: 10px; 11.448 + background: #eaeaea; 11.449 + color: #666666; 11.450 + height: 180px; 11.451 + clear: both; 11.452 + border-radius: 8px; 11.453 + -moz-border-radius: 8px; 11.454 + -webkit-border-radius: 8px; 11.455 + -moz-box-shadow: 0 1px 3px #666; 11.456 + -webkit-box-shadow: 0 1px 3px #666; 11.457 + box-shadow: 0 1px 3px #666; 11.458 +} 11.459 + 11.460 +#footer a { color: #666666; } 11.461 +#footer a:hover { color: #333333; } 11.462 +#footer ul { list-style-type: none; } 11.463 +#footer li { padding: 2px; } 11.464 +#footer h4 { margin: 0 20px; font-size: 125%; } 11.465 + 11.466 +.year:after { 11.467 + /* content: "2007-2011"; */ 11.468 + content: "2011"; 11.469 +} 11.470 + 11.471 +/* Report style */ 11.472 + 11.473 +#report { 11.474 + margin: 5px; 11.475 +} 11.476 + 11.477 +#report div { 11.478 + padding: 3px; 11.479 + margin: 0px; 11.480 + outline: 1px solid white 11.481 +} 11.482 + 11.483 +#report div.message { 11.484 + background: transparent; 11.485 + border: black 1px solid; 11.486 + border-left: black 3px solid; 11.487 +} 11.488 + 11.489 +#report div.ok { 11.490 + background: #d2ffd2; 11.491 + border: green 1px solid; 11.492 + border-left: green 3px solid; 11.493 +} 11.494 + 11.495 +#report div.warning { 11.496 + background: #ffffd2; 11.497 + border: yellow 1px solid; 11.498 + border-left: yellow 3px solid; 11.499 +} 11.500 + 11.501 +#report div.failed { 11.502 + background: #ffd2d2; 11.503 + border: red 1px solid; 11.504 + border-left: red 3px solid; 11.505 +} 11.506 + 11.507 +#report span.error { 11.508 + background: red; 11.509 + padding: 0px; 11.510 + margin: 0px; 11.511 + border: 0px; 11.512 + width: 100%; 11.513 + display: inline-block; 11.514 +} 11.515 + 11.516 +#report pre { 11.517 + background: black; 11.518 + color: white; 11.519 + padding: 3px; 11.520 + margin: 0px; 11.521 + border: 0px; 11.522 + word-wrap: break-word; 11.523 + white-space: normal; 11.524 +} 11.525 + 11.526 +#report h1 { 11.527 + display: inline; 11.528 +} 11.529 + 11.530 +#report h2 { 11.531 + display: inline; 11.532 +} 11.533 + 11.534 +#report h3 { 11.535 + display: inline; 11.536 +} 11.537 + 11.538 +#report h4 { 11.539 + display: inline; 11.540 +} 11.541 + 11.542 +#report h5 { 11.543 + display: inline; 11.544 +} 11.545 + 11.546 +#report h6 { 11.547 + display: inline; 11.548 +}
12.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 12.2 +++ b/libtaz/stuff/web/template.html Thu Feb 24 00:23:25 2011 +0100 12.3 @@ -0,0 +1,18 @@ 12.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 12.5 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 12.6 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="us" lang="us"> 12.7 +<head> 12.8 + <title>Title of the page</title> 12.9 + <meta http-equiv="content-type" content="text/html; text/html;charset=utf-8" /> 12.10 + <link rel="shortcut icon" href="web/favicon.ico" /> 12.11 + <link rel="stylesheet" type="text/css" href="web/slitaz.css" /> 12.12 +</head> 12.13 +<body> 12.14 + 12.15 +<!-- Header --> 12.16 +<div id="header"> 12.17 + <a href="http://bb.slitaz.org/"><img id="logo" 12.18 + src="web/logo.png" 12.19 + title="bb.slitaz.org" alt="bb.slitaz.org" /></a> 12.20 + <p id="titre">#!/Bb/Second Title</p> 12.21 +</div>