You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2008/02/29 16:26:06 UTC
svn commit: r632351 - in
/directory/sandbox/pamarcelot/trunks/apacheds-binary-installer: ./ README
apacheds_installer.bin bootstrap.sh createInstaller.sh data/ sh/
sh/functions.sh sh/install.sh sh/variables.sh
Author: pamarcelot
Date: Fri Feb 29 07:26:01 2008
New Revision: 632351
URL: http://svn.apache.org/viewvc?rev=632351&view=rev
Log:
Added the Apache Directory Server binary installer generation script.
Added:
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/README
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/apacheds_installer.bin (with props)
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/bootstrap.sh
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/createInstaller.sh (with props)
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/data/
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/functions.sh
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/install.sh
directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/variables.sh
Added: directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/README
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/README?rev=632351&view=auto
==============================================================================
--- directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/README (added)
+++ directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/README Fri Feb 29 07:26:01 2008
@@ -0,0 +1,7 @@
+The createInstaller.sh shell script creates the BIN installer (binary file) for a release of Apache Directory Server on Linux.
+
+To create a new BIN installer, you have to put in the "data" folder the Apache Directory Server release files.
+
+Then, you can launch the shell script: ./createInstaller.sh
+
+An "apacheds_installer.bin" binary installer will be generated.
\ No newline at end of file
Added: directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/apacheds_installer.bin
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/apacheds_installer.bin?rev=632351&view=auto
==============================================================================
--- directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/apacheds_installer.bin (added)
+++ directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/apacheds_installer.bin Fri Feb 29 07:26:01 2008
@@ -0,0 +1,244 @@
+#!/bin/sh
+
+# Displaying welcome message and license terms
+more <<"EOF"
+ WELCOME TO THE APACHE DS INSTALLER PROGRAM
+ _ _ ____ ____
+ / \ _ __ __ _ ___| |__ ___| _ \/ ___|
+ / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \
+ / ___ \| |_) | (_| | (__| | | | __/ |_| |___) |
+ /_/ \_\ .__/ \__,_|\___|_| |_|\___|____/|____/
+ |_|
+
+ Apache DS is distributed under the Apache Software License Version 2.0.
+
+ Please, take some time to read the license terms below.
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+EOF
+
+# Asking for license agreement
+echo ""
+echo "Do you agree to the above license terms? [yes or no]"
+
+# Reading userInput
+while [ "true" ];
+do
+ read userInput leftover
+ case $userInput in
+ [yY] | [yY][eE][sS])
+ break;;
+ [nN] | [nN][oO])
+ echo "If you don't agree to the license this software cannot be installed."
+ exit 1
+ esac
+done
+
+# This is the name of the contained archive
+archiveName=__tmp.tar.gz
+
+# Unpacking the installer
+echo "Unpacking the installer..."
+trap 'rm -f $archiveName; exit 1' HUP INT QUIT TERM
+tail -n +236 $0 > $archiveName
+
+# Extracting the installer
+echo "Extracting the installer..."
+tar xzf $archiveName
+
+# Launching the installer
+cd sh
+. ./install.sh
+
+# Cleaning
+cd ..
+rm -rf sh
+rm -rd data
+rm -f $archiveName
+
+# Finishing
+echo "Done."
+echo "Apache DS has been installed successfully."
+exit 0
+ ~#ÈG íZ[oÛÈÖ(²}ë¾¥ø²uµ¼uâ,´¶¶6`Å[[ÙnªU¬19²¸¡HHnÒ÷>ôwôõÌpx,Ù2`)t>@9<sÎ3ç¦$ %íú²Õ<i·rëAѨ×ù÷Ac«ÑsôçA®oªåje¿^Ë+Õj¹òôAèÄȹä2ZNdÁ&Ú0~û§ßå~˵Wð°±ÜïñSÅOöüïÕX6;Ë\ç¿gbÆ¿ðó9/Òñ/ug¤×µ¨Ö¡ eëaÚ·ø²Ý<>{ݹ¸:}±Oø¿ÁâÑÿxüïï×çâ¿rpPñ¿ ttÙ¸DË¢æÁRË_÷L7ï}ö»³×`ư}cÚÄ»iÑ8ð¨EOÁ@Ó%:Î91=ªÒ]QïNsl87íp¢)JÇìq¦Mdzü÷àÎ aH>Ppà _q-Tæ¶*
+´dÇFµaúLÞÚ[Ø`ÐÖAvÅ îEQ6¨2üëDK
°Dj±ün(ÜRzÈÊÐ>÷^/?Äê?@+¦cû¸Ê5Èx´þï×xücð7ì}¥V/7düo«Ôÿ»\TÿÿÃ&ì"N
,g)êÿÁêüçH¾HÇ×ÿ7ïß¼@g¨VþüMý¹W.ãñ¿æè4þ±üçã¿r°/ãÈUÂÊUbÕ-_|V(yxã¼q ðx&¹±xA¤6Òëx¬4ëCþR9â/Èñ°Éî²c£Ð
+ðbÏ`|t^öïbÀ6nÚ¬i w|K¸@fj¢º½Êûí¸ÀÎÂrÆXS3:Dz±~¯`
+/ãéì¡ûrFW=>(õª÷ì¶%þûkxd´½£|TXÂÎÃÕ{ÓuÊtäw`6õù+s ](þÔBE
Â5Ú ÄÉÞ£AèÙüq`*1;J<}(LÀ¢GísíñÐÄÖÉôÁvÐÄY|/wøl¤dDG}7»hCÖÖh[ºPÄ6î]·{ècCE{½ÝB%ó}¡â7glù¥wÝw¤HÅ¿OóÅÞn©´ÕDFòúT:PÌû9¯öycyYKaWÃY{-1`ùcêÆñ²÷·e:+÷Hr<é¾þ:zpÑØnAqP³pGöT`öàÚdKyXBõib¦\XäÃj«
+EÌðaIõ%å¡ìH0¾M7õ
þvà¾þT>f-L<$zÞFd\
õXÄÇ9Ó@M4ËRýUlJäKjfÙqúKÉf-ÈNfò!'ËR¥L%FL×ʬÍí8¢¦ÐÐ ä=LâáÇb$SÎxZÆtÌÓF&RÆ|y±Mý,\ðUY*>¼P<r@ç@£@ä!Â&ý ª<©MøzÔe1.ô¿¤#çO±À#À3ÏAÖÙD/Ôó+§É!ë¼i6Ümg3c©§¿ÔÆç4ØÂë¿ç¦qT+a
:¹i
¿
®p³CP_ÌÓ-2ó="µ÷³Z>Mw{g*H[Ë%%ì· úÁاm1ø?×ÄöÇbkzpÌËx}ä6P'Ù}Áx´cÒ{æHõ|94Ú/hêùR;/ð»?ÉþK÷!YZv?Þ¼è¥X¸#YÇ B´n
+ÌøHì8ýÆ]]ô$:9FÉöE¹Cdéûµ"«¤ÐïáÄ g8µ
¶x®`~̼i$ë~ʧÏÝß?~þ#>Óï¿äþ§²¿ß¨W«ì÷_¹v ÿmO¾ÿYùüg;'ï~õÀø_sô?ÿÕF½2ÿÕ~Éøß ²ç?pîDíVr"¨h Í2ª¸)KÏtøá «ÚØufû
+?8êu(ZðeOúîø½a5õ ð?Ëàk¨ô¸¹+pjdõ`S%»ä8DDLùSÊ4ªïy\Îî?/î"oól¥?RÏÜÅ
7-Øx(yìñ¶!ÀuBßÄ6=´ûð6ì¥
+;J·xù´º°;>_< YÈúÎ u ñÖÕbØ¢½ ZÄHÈ'f x¡äYã=VDj+§t@ÓpÒ ¤btÇ÷dÊè½azPt¡Ðü¡y|Ú:¹º>½h·®OÎ.[ÇË·îBÑM+ñäøR¬´»|=fwjL(o³ßN§Î(sk|öúªÓ|}ÜzÛÖ°x$<Ý÷ØnE
dÔjwïÞòs9üêÒV¯ë_õv®¯õS³ýÃykNÖÑR-J46Ú©æyNYÒ{ðrË0DîÜ>ÚeÁÁcù ¼ÐN©ÑSb7FúMܪÄo4¶äíQZ!.®þæzKQoô¯gàéódm2²ÐØ®=¸¥%
úDWÖÿyÿMÊk±zÿß`·A¬ÿ¯Õäýïf°¾þ''ûÿ_=0þ×ýǽVÿJ¥&ãHûÿ¿ñyÃáÿ9jL°Ó¤OMºÄéönZ
+}˯N¬¤ªO§+2
¸:úÓe
×´ðqäO¥töT9ÿß2DÝMDM/[ÍNë:®À±àéçó¹÷EBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBbü[úg[ P
\ No newline at end of file
Propchange: directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/apacheds_installer.bin
------------------------------------------------------------------------------
svn:executable = *
Added: directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/bootstrap.sh
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/bootstrap.sh?rev=632351&view=auto
==============================================================================
--- directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/bootstrap.sh (added)
+++ directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/bootstrap.sh Fri Feb 29 07:26:01 2008
@@ -0,0 +1,235 @@
+#!/bin/sh
+
+# Displaying welcome message and license terms
+more <<"EOF"
+ WELCOME TO THE APACHE DS INSTALLER PROGRAM
+ _ _ ____ ____
+ / \ _ __ __ _ ___| |__ ___| _ \/ ___|
+ / _ \ | '_ \ / _` |/ __| '_ \ / _ \ | | \___ \
+ / ___ \| |_) | (_| | (__| | | | __/ |_| |___) |
+ /_/ \_\ .__/ \__,_|\___|_| |_|\___|____/|____/
+ |_|
+
+ Apache DS is distributed under the Apache Software License Version 2.0.
+
+ Please, take some time to read the license terms below.
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+EOF
+
+# Asking for license agreement
+echo ""
+echo "Do you agree to the above license terms? [yes or no]"
+
+# Reading userInput
+while [ "true" ];
+do
+ read userInput leftover
+ case $userInput in
+ [yY] | [yY][eE][sS])
+ break;;
+ [nN] | [nN][oO])
+ echo "If you don't agree to the license this software cannot be installed."
+ exit 1
+ esac
+done
+
+# This is the name of the contained archive
+archiveName=__tmp.tar.gz
+
+# Unpacking the installer
+echo "Unpacking the installer..."
+trap 'rm -f $archiveName; exit 1' HUP INT QUIT TERM
+tail -n +@LINES@ $0 > $archiveName
+
+# Extracting the installer
+echo "Extracting the installer..."
+tar xzf $archiveName
+
+# Launching the installer
+cd sh
+. ./install.sh
+
+# Cleaning
+cd ..
+rm -rf sh
+rm -rd data
+rm -f $archiveName
+
+# Finishing
+echo "Done."
+echo "Apache DS has been installed successfully."
+exit 0
Added: directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/createInstaller.sh
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/createInstaller.sh?rev=632351&view=auto
==============================================================================
--- directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/createInstaller.sh (added)
+++ directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/createInstaller.sh Fri Feb 29 07:26:01 2008
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# This is the name of the installer
+installerName=apacheds_installer.bin
+
+# This is the name of the archive
+archiveName=__tmp.tar.gz
+
+# Copying bootstrap.sh to the installer (and replacing the @lines@ variable)
+lines=`wc -l < bootstrap.sh`
+lines=`expr $lines + 1`
+sed -e "s/@LINES@/${lines}/" bootstrap.sh > $installerName
+
+# Packing the data and shell scripts
+tar czf $archiveName data/* sh/*
+
+# Adding the archive to the installer
+cat $archiveName >> $installerName
+
+# Modifying permission on the installer so it is executable
+chmod 750 $installerName
+
+# Cleaning
+rm $archiveName
+
+echo "Done."
+echo "The installer for Apache DS has been created."
\ No newline at end of file
Propchange: directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/createInstaller.sh
------------------------------------------------------------------------------
svn:executable = *
Added: directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/functions.sh
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/functions.sh?rev=632351&view=auto
==============================================================================
--- directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/functions.sh (added)
+++ directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/functions.sh Fri Feb 29 07:26:01 2008
@@ -0,0 +1,95 @@
+#!/bin/sh
+
+#------------------------------------------------------------------------------
+# Updates a variables that will be exported. The question, the variable name,
+# the default value and the mandatory aspect of the input are stored in the
+# "variables.sh" file under the following form:
+# <question> | <variable> | [<default value>] | [<mandatory>]
+#------------------------------------------------------------------------------
+ask_param()
+{
+ # Skipping empty lines
+ if [ -z "$1" ]
+ then
+ return
+ fi
+
+ # Searching for the current line (which is not a comment)
+ curline=`cat -n variables.sh | grep -e "^[[:space:]]*$1[[:space:]][[:space:]]*" | sed -e 's/^[^a-aA-Z|#-]*//'`
+ comment=`echo $curline | grep -e "^\#"`
+
+ # Skipping comments
+ if [ -n "$comment" ]
+ then
+ return
+ fi
+
+ # Getting question, variable, default and mandatory values
+ question=`echo $curline | cut -d'|' -f1 | sed -e 's/^[ ]*//' -e 's/[ ]*$//'` # The question
+ variable=`echo $curline | cut -d'|' -f2 | sed -e 's/^[ ]*//' -e 's/[ ]*$//'` # The variable
+ default=`echo $curline | cut -d'|' -f3 | sed -e 's/^[ ]*//' -e 's/[ ]*$//'` # The default value
+ mandatory=`echo $curline | cut -d'|' -f4 | sed -e 's/^[ ]*//' -e 's/[ ]*$//'` # Mandatory input ?
+
+ # Use the commands below for debug
+ #echo "Current Line = " $curline
+ #echo "Question = " $question
+ #echo "Variable = " $variable
+ #echo "Default value = " $default
+ #echo "Mandatory = " $mandatory
+
+ # The line must include a variable
+ if [ -z "$variable" ]
+ then
+ return
+ fi
+
+ # If there is no question, we update the variable and we return
+ if [ -z "$question" ]
+ then
+ var=`eval echo $default`
+ export $variable="$var"
+ return
+ fi
+
+ # Removing extra spaces from mandatory
+ if [ -n "$mandatory" ]
+ then
+ mandatory=`echo $mandatory | sed -e 's/[[:space:]*M[[:space:]]*/M/'`
+ fi
+
+ # Let's ask the question
+ if [ -n "$default" ]
+ then
+ printf "$question? [Default: ";
+ printf `eval echo $default`;
+ printf "]\n"
+ else
+ echo "$question?"
+ fi
+
+ # Reading anwser
+ read read_answer
+ while [ -z "$read_answer" ]
+ do
+ if [ "x$mandatory" = "xM" ]
+ then
+ echo "You have to anwser, please."
+ if [ -n "$default" ]
+ then
+ printf "$question? [Default: ";
+ printf `eval echo $default`;
+ printf "]\n"
+ else
+ echo "$question?"
+ fi
+ read read_answer
+ else
+ # If the user does not enter any input and the input is not
+ # mandatory, we use the default value
+ read_answer=`eval echo $default`
+ fi
+ done
+
+ # Exporting the variable
+ export $variable="$read_answer"
+}
\ No newline at end of file
Added: directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/install.sh
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/install.sh?rev=632351&view=auto
==============================================================================
--- directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/install.sh (added)
+++ directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/install.sh Fri Feb 29 07:26:01 2008
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+# Loading functions
+. ./functions.sh
+
+# Reading variables file and asking questions
+lines=`wc -l < ./variables.sh`
+count=1
+lines=`expr ${lines:-0} + 1`
+while [ $count -lt $lines ]
+do
+ ask_param $count
+ count=`expr ${count:-0} + 1`
+done
+
+#
+# Starting installation
+#
+
+# Verifying the user is root
+#if ( test `id -un` != "root" )
+#then
+# echo "Only root can install this software."
+# echo "Apache DS installation has failed."
+# exit 1 ;
+#fi
+
+# Installing
+echo "Installing..."
+
+# Installing Apache DS core files
+mkdir -p $APACHEDS_HOME_DIRECTORY
+cp -r ../data/apacheds/* $APACHEDS_HOME_DIRECTORY
+
+# Creating Instances Home Directory
+mkdir -p $INSTANCES_HOME_DIRECTORY
+
+# Creating the Example Instance
+case $userInput in
+ [yY] | [yY][eE][sS])
+ EXAMPLE_HOME_DIRECTORY=$INSTANCES_HOME_DIRECTORY/example;
+ mkdir -p $EXAMPLE_HOME_DIRECTORY;
+ mkdir -p $EXAMPLE_HOME_DIRECTORY/conf;
+ mkdir -p $EXAMPLE_HOME_DIRECTORY/ldif;
+ mkdir -p $EXAMPLE_HOME_DIRECTORY/log;
+ mkdir -p $EXAMPLE_HOME_DIRECTORY/partitions;
+ mkdir -p $EXAMPLE_HOME_DIRECTORY/run;
+ cp ../data/example_instance/apacheds.conf $EXAMPLE_HOME_DIRECTORY/conf/;
+ cp ../data/example_instance/log4j.properties $EXAMPLE_HOME_DIRECTORY/conf/;
+ cp ../data/example_instance/server.xml $EXAMPLE_HOME_DIRECTORY/conf/;
+ cp ../data/example_instance/example.ldif $EXAMPLE_HOME_DIRECTORY/ldif/
+esac
Added: directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/variables.sh
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/variables.sh?rev=632351&view=auto
==============================================================================
--- directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/variables.sh (added)
+++ directory/sandbox/pamarcelot/trunks/apacheds-binary-installer/sh/variables.sh Fri Feb 29 07:26:01 2008
@@ -0,0 +1,4 @@
+#!/bin/sh
+Where do you want to install Apache DS|APACHEDS_HOME_DIRECTORY|/usr/local/apacheds||
+Where do you want to install Apache DS instances|INSTANCES_HOME_DIRECTORY|${APACHEDS_HOME_DIRECTORY}/instances||
+Do you want to create an example instance|CREATE_EXAMPLE_INSTANCE|yes||