Update the trunk with autotools makefile changes
This commit is contained in:
		
							
								
								
									
										340
									
								
								COPYING
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										340
									
								
								COPYING
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,340 @@ | |||||||
|  | 		    GNU GENERAL PUBLIC LICENSE | ||||||
|  | 		       Version 2, June 1991 | ||||||
|  |  | ||||||
|  |  Copyright (C) 1989, 1991 Free Software Foundation, Inc. | ||||||
|  |      51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA | ||||||
|  |  Everyone is permitted to copy and distribute verbatim copies | ||||||
|  |  of this license document, but changing it is not allowed. | ||||||
|  |  | ||||||
|  | 			    Preamble | ||||||
|  |  | ||||||
|  |   The licenses for most software are designed to take away your | ||||||
|  | freedom to share and change it.  By contrast, the GNU General Public | ||||||
|  | License is intended to guarantee your freedom to share and change free | ||||||
|  | software--to make sure the software is free for all its users.  This | ||||||
|  | General Public License applies to most of the Free Software | ||||||
|  | Foundation's software and to any other program whose authors commit to | ||||||
|  | using it.  (Some other Free Software Foundation software is covered by | ||||||
|  | the GNU Library General Public License instead.)  You can apply it to | ||||||
|  | your programs, too. | ||||||
|  |  | ||||||
|  |   When we speak of free software, we are referring to freedom, not | ||||||
|  | price.  Our General Public Licenses are designed to make sure that you | ||||||
|  | have the freedom to distribute copies of free software (and charge for | ||||||
|  | this service if you wish), that you receive source code or can get it | ||||||
|  | if you want it, that you can change the software or use pieces of it | ||||||
|  | in new free programs; and that you know you can do these things. | ||||||
|  |  | ||||||
|  |   To protect your rights, we need to make restrictions that forbid | ||||||
|  | anyone to deny you these rights or to ask you to surrender the rights. | ||||||
|  | These restrictions translate to certain responsibilities for you if you | ||||||
|  | distribute copies of the software, or if you modify it. | ||||||
|  |  | ||||||
|  |   For example, if you distribute copies of such a program, whether | ||||||
|  | gratis or for a fee, you must give the recipients all the rights that | ||||||
|  | you have.  You must make sure that they, too, receive or can get the | ||||||
|  | source code.  And you must show them these terms so they know their | ||||||
|  | rights. | ||||||
|  |  | ||||||
|  |   We protect your rights with two steps: (1) copyright the software, and | ||||||
|  | (2) offer you this license which gives you legal permission to copy, | ||||||
|  | distribute and/or modify the software. | ||||||
|  |  | ||||||
|  |   Also, for each author's protection and ours, we want to make certain | ||||||
|  | that everyone understands that there is no warranty for this free | ||||||
|  | software.  If the software is modified by someone else and passed on, we | ||||||
|  | want its recipients to know that what they have is not the original, so | ||||||
|  | that any problems introduced by others will not reflect on the original | ||||||
|  | authors' reputations. | ||||||
|  |  | ||||||
|  |   Finally, any free program is threatened constantly by software | ||||||
|  | patents.  We wish to avoid the danger that redistributors of a free | ||||||
|  | program will individually obtain patent licenses, in effect making the | ||||||
|  | program proprietary.  To prevent this, we have made it clear that any | ||||||
|  | patent must be licensed for everyone's free use or not licensed at all. | ||||||
|  |  | ||||||
|  |   The precise terms and conditions for copying, distribution and | ||||||
|  | modification follow. | ||||||
|  |  | ||||||
|  | 		    GNU GENERAL PUBLIC LICENSE | ||||||
|  |    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||||||
|  |  | ||||||
|  |   0. This License applies to any program or other work which contains | ||||||
|  | a notice placed by the copyright holder saying it may be distributed | ||||||
|  | under the terms of this General Public License.  The "Program", below, | ||||||
|  | refers to any such program or work, and a "work based on the Program" | ||||||
|  | means either the Program or any derivative work under copyright law: | ||||||
|  | that is to say, a work containing the Program or a portion of it, | ||||||
|  | either verbatim or with modifications and/or translated into another | ||||||
|  | language.  (Hereinafter, translation is included without limitation in | ||||||
|  | the term "modification".)  Each licensee is addressed as "you". | ||||||
|  |  | ||||||
|  | Activities other than copying, distribution and modification are not | ||||||
|  | covered by this License; they are outside its scope.  The act of | ||||||
|  | running the Program is not restricted, and the output from the Program | ||||||
|  | is covered only if its contents constitute a work based on the | ||||||
|  | Program (independent of having been made by running the Program). | ||||||
|  | Whether that is true depends on what the Program does. | ||||||
|  |  | ||||||
|  |   1. You may copy and distribute verbatim copies of the Program's | ||||||
|  | source code as you receive it, in any medium, provided that you | ||||||
|  | conspicuously and appropriately publish on each copy an appropriate | ||||||
|  | copyright notice and disclaimer of warranty; keep intact all the | ||||||
|  | notices that refer to this License and to the absence of any warranty; | ||||||
|  | and give any other recipients of the Program a copy of this License | ||||||
|  | along with the Program. | ||||||
|  |  | ||||||
|  | You may charge a fee for the physical act of transferring a copy, and | ||||||
|  | you may at your option offer warranty protection in exchange for a fee. | ||||||
|  |  | ||||||
|  |   2. You may modify your copy or copies of the Program or any portion | ||||||
|  | of it, thus forming a work based on the Program, and copy and | ||||||
|  | distribute such modifications or work under the terms of Section 1 | ||||||
|  | above, provided that you also meet all of these conditions: | ||||||
|  |  | ||||||
|  |     a) You must cause the modified files to carry prominent notices | ||||||
|  |     stating that you changed the files and the date of any change. | ||||||
|  |  | ||||||
|  |     b) You must cause any work that you distribute or publish, that in | ||||||
|  |     whole or in part contains or is derived from the Program or any | ||||||
|  |     part thereof, to be licensed as a whole at no charge to all third | ||||||
|  |     parties under the terms of this License. | ||||||
|  |  | ||||||
|  |     c) If the modified program normally reads commands interactively | ||||||
|  |     when run, you must cause it, when started running for such | ||||||
|  |     interactive use in the most ordinary way, to print or display an | ||||||
|  |     announcement including an appropriate copyright notice and a | ||||||
|  |     notice that there is no warranty (or else, saying that you provide | ||||||
|  |     a warranty) and that users may redistribute the program under | ||||||
|  |     these conditions, and telling the user how to view a copy of this | ||||||
|  |     License.  (Exception: if the Program itself is interactive but | ||||||
|  |     does not normally print such an announcement, your work based on | ||||||
|  |     the Program is not required to print an announcement.) | ||||||
|  |  | ||||||
|  | These requirements apply to the modified work as a whole.  If | ||||||
|  | identifiable sections of that work are not derived from the Program, | ||||||
|  | and can be reasonably considered independent and separate works in | ||||||
|  | themselves, then this License, and its terms, do not apply to those | ||||||
|  | sections when you distribute them as separate works.  But when you | ||||||
|  | distribute the same sections as part of a whole which is a work based | ||||||
|  | on the Program, the distribution of the whole must be on the terms of | ||||||
|  | this License, whose permissions for other licensees extend to the | ||||||
|  | entire whole, and thus to each and every part regardless of who wrote it. | ||||||
|  |  | ||||||
|  | Thus, it is not the intent of this section to claim rights or contest | ||||||
|  | your rights to work written entirely by you; rather, the intent is to | ||||||
|  | exercise the right to control the distribution of derivative or | ||||||
|  | collective works based on the Program. | ||||||
|  |  | ||||||
|  | In addition, mere aggregation of another work not based on the Program | ||||||
|  | with the Program (or with a work based on the Program) on a volume of | ||||||
|  | a storage or distribution medium does not bring the other work under | ||||||
|  | the scope of this License. | ||||||
|  |  | ||||||
|  |   3. You may copy and distribute the Program (or a work based on it, | ||||||
|  | under Section 2) in object code or executable form under the terms of | ||||||
|  | Sections 1 and 2 above provided that you also do one of the following: | ||||||
|  |  | ||||||
|  |     a) Accompany it with the complete corresponding machine-readable | ||||||
|  |     source code, which must be distributed under the terms of Sections | ||||||
|  |     1 and 2 above on a medium customarily used for software interchange; or, | ||||||
|  |  | ||||||
|  |     b) Accompany it with a written offer, valid for at least three | ||||||
|  |     years, to give any third party, for a charge no more than your | ||||||
|  |     cost of physically performing source distribution, a complete | ||||||
|  |     machine-readable copy of the corresponding source code, to be | ||||||
|  |     distributed under the terms of Sections 1 and 2 above on a medium | ||||||
|  |     customarily used for software interchange; or, | ||||||
|  |  | ||||||
|  |     c) Accompany it with the information you received as to the offer | ||||||
|  |     to distribute corresponding source code.  (This alternative is | ||||||
|  |     allowed only for noncommercial distribution and only if you | ||||||
|  |     received the program in object code or executable form with such | ||||||
|  |     an offer, in accord with Subsection b above.) | ||||||
|  |  | ||||||
|  | The source code for a work means the preferred form of the work for | ||||||
|  | making modifications to it.  For an executable work, complete source | ||||||
|  | code means all the source code for all modules it contains, plus any | ||||||
|  | associated interface definition files, plus the scripts used to | ||||||
|  | control compilation and installation of the executable.  However, as a | ||||||
|  | special exception, the source code distributed need not include | ||||||
|  | anything that is normally distributed (in either source or binary | ||||||
|  | form) with the major components (compiler, kernel, and so on) of the | ||||||
|  | operating system on which the executable runs, unless that component | ||||||
|  | itself accompanies the executable. | ||||||
|  |  | ||||||
|  | If distribution of executable or object code is made by offering | ||||||
|  | access to copy from a designated place, then offering equivalent | ||||||
|  | access to copy the source code from the same place counts as | ||||||
|  | distribution of the source code, even though third parties are not | ||||||
|  | compelled to copy the source along with the object code. | ||||||
|  |  | ||||||
|  |   4. You may not copy, modify, sublicense, or distribute the Program | ||||||
|  | except as expressly provided under this License.  Any attempt | ||||||
|  | otherwise to copy, modify, sublicense or distribute the Program is | ||||||
|  | void, and will automatically terminate your rights under this License. | ||||||
|  | However, parties who have received copies, or rights, from you under | ||||||
|  | this License will not have their licenses terminated so long as such | ||||||
|  | parties remain in full compliance. | ||||||
|  |  | ||||||
|  |   5. You are not required to accept this License, since you have not | ||||||
|  | signed it.  However, nothing else grants you permission to modify or | ||||||
|  | distribute the Program or its derivative works.  These actions are | ||||||
|  | prohibited by law if you do not accept this License.  Therefore, by | ||||||
|  | modifying or distributing the Program (or any work based on the | ||||||
|  | Program), you indicate your acceptance of this License to do so, and | ||||||
|  | all its terms and conditions for copying, distributing or modifying | ||||||
|  | the Program or works based on it. | ||||||
|  |  | ||||||
|  |   6. Each time you redistribute the Program (or any work based on the | ||||||
|  | Program), the recipient automatically receives a license from the | ||||||
|  | original licensor to copy, distribute or modify the Program subject to | ||||||
|  | these terms and conditions.  You may not impose any further | ||||||
|  | restrictions on the recipients' exercise of the rights granted herein. | ||||||
|  | You are not responsible for enforcing compliance by third parties to | ||||||
|  | this License. | ||||||
|  |  | ||||||
|  |   7. If, as a consequence of a court judgment or allegation of patent | ||||||
|  | infringement or for any other reason (not limited to patent issues), | ||||||
|  | conditions are imposed on you (whether by court order, agreement or | ||||||
|  | otherwise) that contradict the conditions of this License, they do not | ||||||
|  | excuse you from the conditions of this License.  If you cannot | ||||||
|  | distribute so as to satisfy simultaneously your obligations under this | ||||||
|  | License and any other pertinent obligations, then as a consequence you | ||||||
|  | may not distribute the Program at all.  For example, if a patent | ||||||
|  | license would not permit royalty-free redistribution of the Program by | ||||||
|  | all those who receive copies directly or indirectly through you, then | ||||||
|  | the only way you could satisfy both it and this License would be to | ||||||
|  | refrain entirely from distribution of the Program. | ||||||
|  |  | ||||||
|  | If any portion of this section is held invalid or unenforceable under | ||||||
|  | any particular circumstance, the balance of the section is intended to | ||||||
|  | apply and the section as a whole is intended to apply in other | ||||||
|  | circumstances. | ||||||
|  |  | ||||||
|  | It is not the purpose of this section to induce you to infringe any | ||||||
|  | patents or other property right claims or to contest validity of any | ||||||
|  | such claims; this section has the sole purpose of protecting the | ||||||
|  | integrity of the free software distribution system, which is | ||||||
|  | implemented by public license practices.  Many people have made | ||||||
|  | generous contributions to the wide range of software distributed | ||||||
|  | through that system in reliance on consistent application of that | ||||||
|  | system; it is up to the author/donor to decide if he or she is willing | ||||||
|  | to distribute software through any other system and a licensee cannot | ||||||
|  | impose that choice. | ||||||
|  |  | ||||||
|  | This section is intended to make thoroughly clear what is believed to | ||||||
|  | be a consequence of the rest of this License. | ||||||
|  |  | ||||||
|  |   8. If the distribution and/or use of the Program is restricted in | ||||||
|  | certain countries either by patents or by copyrighted interfaces, the | ||||||
|  | original copyright holder who places the Program under this License | ||||||
|  | may add an explicit geographical distribution limitation excluding | ||||||
|  | those countries, so that distribution is permitted only in or among | ||||||
|  | countries not thus excluded.  In such case, this License incorporates | ||||||
|  | the limitation as if written in the body of this License. | ||||||
|  |  | ||||||
|  |   9. The Free Software Foundation may publish revised and/or new versions | ||||||
|  | of the General Public License from time to time.  Such new versions will | ||||||
|  | be similar in spirit to the present version, but may differ in detail to | ||||||
|  | address new problems or concerns. | ||||||
|  |  | ||||||
|  | Each version is given a distinguishing version number.  If the Program | ||||||
|  | specifies a version number of this License which applies to it and "any | ||||||
|  | later version", you have the option of following the terms and conditions | ||||||
|  | either of that version or of any later version published by the Free | ||||||
|  | Software Foundation.  If the Program does not specify a version number of | ||||||
|  | this License, you may choose any version ever published by the Free Software | ||||||
|  | Foundation. | ||||||
|  |  | ||||||
|  |   10. If you wish to incorporate parts of the Program into other free | ||||||
|  | programs whose distribution conditions are different, write to the author | ||||||
|  | to ask for permission.  For software which is copyrighted by the Free | ||||||
|  | Software Foundation, write to the Free Software Foundation; we sometimes | ||||||
|  | make exceptions for this.  Our decision will be guided by the two goals | ||||||
|  | of preserving the free status of all derivatives of our free software and | ||||||
|  | of promoting the sharing and reuse of software generally. | ||||||
|  |  | ||||||
|  | 			    NO WARRANTY | ||||||
|  |  | ||||||
|  |   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | ||||||
|  | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN | ||||||
|  | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | ||||||
|  | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | ||||||
|  | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||||||
|  | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS | ||||||
|  | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE | ||||||
|  | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | ||||||
|  | REPAIR OR CORRECTION. | ||||||
|  |  | ||||||
|  |   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||||||
|  | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | ||||||
|  | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | ||||||
|  | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | ||||||
|  | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | ||||||
|  | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | ||||||
|  | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | ||||||
|  | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | ||||||
|  | POSSIBILITY OF SUCH DAMAGES. | ||||||
|  |  | ||||||
|  | 		     END OF TERMS AND CONDITIONS | ||||||
|  |  | ||||||
|  | 	    How to Apply These Terms to Your New Programs | ||||||
|  |  | ||||||
|  |   If you develop a new program, and you want it to be of the greatest | ||||||
|  | possible use to the public, the best way to achieve this is to make it | ||||||
|  | free software which everyone can redistribute and change under these terms. | ||||||
|  |  | ||||||
|  |   To do so, attach the following notices to the program.  It is safest | ||||||
|  | to attach them to the start of each source file to most effectively | ||||||
|  | convey the exclusion of warranty; and each file should have at least | ||||||
|  | the "copyright" line and a pointer to where the full notice is found. | ||||||
|  |  | ||||||
|  |     <one line to give the program's name and a brief idea of what it does.> | ||||||
|  |     Copyright (C) <year>  <name of author> | ||||||
|  |  | ||||||
|  |     This program is free software; you can redistribute it and/or modify | ||||||
|  |     it under the terms of the GNU General Public License as published by | ||||||
|  |     the Free Software Foundation; either version 2 of the License, or | ||||||
|  |     (at your option) any later version. | ||||||
|  |  | ||||||
|  |     This program is distributed in the hope that it will be useful, | ||||||
|  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |     GNU General Public License for more details. | ||||||
|  |  | ||||||
|  |     You should have received a copy of the GNU General Public License | ||||||
|  |     along with this program; if not, write to the Free Software | ||||||
|  |     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA | ||||||
|  |  | ||||||
|  |  | ||||||
|  | Also add information on how to contact you by electronic and paper mail. | ||||||
|  |  | ||||||
|  | If the program is interactive, make it output a short notice like this | ||||||
|  | when it starts in an interactive mode: | ||||||
|  |  | ||||||
|  |     Gnomovision version 69, Copyright (C) year  name of author | ||||||
|  |     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | ||||||
|  |     This is free software, and you are welcome to redistribute it | ||||||
|  |     under certain conditions; type `show c' for details. | ||||||
|  |  | ||||||
|  | The hypothetical commands `show w' and `show c' should show the appropriate | ||||||
|  | parts of the General Public License.  Of course, the commands you use may | ||||||
|  | be called something other than `show w' and `show c'; they could even be | ||||||
|  | mouse-clicks or menu items--whatever suits your program. | ||||||
|  |  | ||||||
|  | You should also get your employer (if you work as a programmer) or your | ||||||
|  | school, if any, to sign a "copyright disclaimer" for the program, if | ||||||
|  | necessary.  Here is a sample; alter the names: | ||||||
|  |  | ||||||
|  |   Yoyodyne, Inc., hereby disclaims all copyright interest in the program | ||||||
|  |   `Gnomovision' (which makes passes at compilers) written by James Hacker. | ||||||
|  |  | ||||||
|  |   <signature of Ty Coon>, 1 April 1989 | ||||||
|  |   Ty Coon, President of Vice | ||||||
|  |  | ||||||
|  | This General Public License does not permit incorporating your program into | ||||||
|  | proprietary programs.  If your program is a subroutine library, you may | ||||||
|  | consider it more useful to permit linking proprietary applications with the | ||||||
|  | library.  If this is what you want to do, use the GNU Library General | ||||||
|  | Public License instead of this License. | ||||||
							
								
								
									
										68
									
								
								Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										68
									
								
								Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,68 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = c_micasacache c_common c_micasadk c_micasad/lib  c_sharp  \ | ||||||
|  | 	c_policy c_adlib c_micasad c_gui login_capture c_jwrapper auth_token package | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = c_micasacache c_common c_micasadk c_micasad c_sharp  \ | ||||||
|  | 	c_policy c_adlib c_gui login_capture c_jwrapper auth_token package | ||||||
|  |  | ||||||
|  | EXTRA_DIST = include include/*.h \ | ||||||
|  | 	     doc/*txt doc/*.pdf \ | ||||||
|  | 	     Readme*.txt autogen.sh  | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASABINDIR = bin64 | ||||||
|  | else | ||||||
|  | CASABINDIR = bin | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C package $@ | ||||||
|  |  | ||||||
|  | installcheck-summary: | ||||||
|  | 	$(MAKE) -C src $@ | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	rm -rf *.suo $(CASALIBDIR)  | ||||||
|  | 	rm -rf *.suo $(CASABINDIR) | ||||||
|  | 	 | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f configure Makefile.in casa-*.tar.gz | ||||||
|  | 	rm -f aclocal.m4 conf*.sh configure.lineno | ||||||
|  | 	rm -f config.guess config.sub config.status | ||||||
|  | 	rm -f ltmain.sh libtool | ||||||
|  | 	rm -f install-sh install-sh.lnk INSTALL INSTALL.lnk | ||||||
|  | 	rm -f missing missing.lnk mkinstalldirs mkinstalldir.lnk | ||||||
|  | 	rm -rf autom4te.cache | ||||||
							
								
								
									
										176
									
								
								README
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										176
									
								
								README
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,176 @@ | |||||||
|  | /*********************************************************************** | ||||||
|  |  *  File: README | ||||||
|  |  *  | ||||||
|  |  *  Copyright (C) 2004 Novell, Inc. | ||||||
|  |  * | ||||||
|  |  *  This library is free software; you can redistribute it and/or | ||||||
|  |  *  modify it under the terms of the GNU General Public | ||||||
|  |  *  License as published by the Free Software Foundation; either | ||||||
|  |  *  version 2 of the License, or (at your option) any later version. | ||||||
|  |  * | ||||||
|  |  *  This library is distributed in the hope that it will be useful, | ||||||
|  |  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  |  *  Library General Public License for more details. | ||||||
|  |  * | ||||||
|  |  *  You should have received a copy of the GNU General Public | ||||||
|  |  *  License along with this library; if not, write to the Free | ||||||
|  |  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  |  ***********************************************************************/ | ||||||
|  |  | ||||||
|  | INTRODUCTION | ||||||
|  |  | ||||||
|  | The LoginCapture provides a service that exports the credentials used | ||||||
|  | by the user to login to the desktop to the SecretStore wallet. Once in the | ||||||
|  | SecretStore wallet, the credentials can be leveraged by desktop applications | ||||||
|  | to provide a better single sign-on experience to the user. | ||||||
|  |  | ||||||
|  | Please note that the better single sign-on experience will only be realized if | ||||||
|  | the credentials used to log to the back-end systems match the credentials | ||||||
|  | used to login to the desktop. | ||||||
|  |  | ||||||
|  | FEATURES | ||||||
|  |  | ||||||
|  | The LoginCapture services are provided by components that are platform dependent. | ||||||
|  |  | ||||||
|  | On Linux, LoginCapture provides its services through the use of a PAM module which | ||||||
|  | is inserted into the PAM configuration chain of the default Windows Manager during | ||||||
|  | the installation of the LoginCapture rpm. | ||||||
|  |   | ||||||
|  | On Windows2000 and above, LoginCapture provides its services through a Credential Manager. | ||||||
|  |  | ||||||
|  | CONTENTS | ||||||
|  |  | ||||||
|  | linux - This folder contains the Linux PAM module implementation. | ||||||
|  |  | ||||||
|  | windows - This folder contanins the Windows Credential Manager implementation. | ||||||
|  |  | ||||||
|  | package - This folder contains the files necessary to build the software packages | ||||||
|  | under windows and under linux. | ||||||
|  |  | ||||||
|  | REQUIREMENTS FOR BUILDING THE SOFTWARE PACKAGE ON WINDOWS | ||||||
|  |  | ||||||
|  |   - Install Visual Studio .NET 2003 | ||||||
|  |   - Install Cygwin - See instructions below. | ||||||
|  |  | ||||||
|  | Download and start cygwin install: | ||||||
|  | Browse to http://sources.redhat.com/cygwin/  | ||||||
|  |  | ||||||
|  | Click on "Install or update now!" or "Install Cygwin now" | ||||||
|  |  | ||||||
|  | Cygwin Setup: | ||||||
|  | Next | ||||||
|  |  | ||||||
|  | Cygwin Setup - Choose Installation Type: | ||||||
|  | Install from Internet | ||||||
|  | Next | ||||||
|  |  | ||||||
|  | Cygwin Setup - Choose Installation Directory: | ||||||
|  | Root Directory: C:\cygwin | ||||||
|  | Install For:  "All Users" | ||||||
|  |  | ||||||
|  | Default Text File Type: DOS | ||||||
|  |  | ||||||
|  | Cygwin Setup - Select Local Package Directory: | ||||||
|  |   Local Package Directory: C:\cygwin-packages | ||||||
|  |  | ||||||
|  | Cygwin Setup - Select Connection Type: | ||||||
|  |   Direct Connection | ||||||
|  |  | ||||||
|  | Choose A Download Site: | ||||||
|  |   ftp://ftp.nas.nasa.gov  | ||||||
|  |  | ||||||
|  | Cywin Setup - Select Packages: | ||||||
|  |   Base: | ||||||
|  |     defaults | ||||||
|  |  | ||||||
|  |   Devel: | ||||||
|  |     autoconf | ||||||
|  |     automake | ||||||
|  |     libtool | ||||||
|  |     make | ||||||
|  |     pkgconfig | ||||||
|  |     cvs | ||||||
|  |     gcc | ||||||
|  |     gcc-g++ | ||||||
|  |  | ||||||
|  |   Editors: | ||||||
|  |     vim (optional) | ||||||
|  |  | ||||||
|  |   Net: | ||||||
|  |     openssh | ||||||
|  |     openssl | ||||||
|  |  | ||||||
|  |   Text: | ||||||
|  |     more | ||||||
|  |  | ||||||
|  |   Utils: | ||||||
|  |     clear (optional) | ||||||
|  |  | ||||||
|  | Cygwin Setup - Create Icons: | ||||||
|  | Finish | ||||||
|  |  | ||||||
|  | Edit cygwin.bat (c:\cygwin\cygwin.bat) to add a call to | ||||||
|  | %VS71COMNTOOLS%\vsvars32.bat (see example below). This sets up the | ||||||
|  | Visual Studio tools in Cygwin. | ||||||
|  |  | ||||||
|  | Sample cygwin.bat: | ||||||
|  |  | ||||||
|  | @echo off | ||||||
|  |  | ||||||
|  | call "%VS71COMNTOOLS%\vsvars32.bat" > NUL | ||||||
|  |  | ||||||
|  | C: | ||||||
|  | chdir C:\cygwin\bin | ||||||
|  |  | ||||||
|  | bash --login -i | ||||||
|  |  | ||||||
|  |  | ||||||
|  | REQUIREMENTS FOR BUILDING THE SOFTWARE PACKAGE ON LINUX | ||||||
|  |  | ||||||
|  | Install latest mono and mono-devel RPM - Obtain RPMs from | ||||||
|  | www.go-mono.org. | ||||||
|  |  | ||||||
|  |  | ||||||
|  | BUILDING THE SOFTWARE PACKAGE | ||||||
|  |  | ||||||
|  | Windows:  Start at Step 1. | ||||||
|  | Linux:  Skip to Step 2. | ||||||
|  |  | ||||||
|  | 1. Run cygwin.bat to start up Cygwin. | ||||||
|  |  | ||||||
|  | 2. Generate autotools files: | ||||||
|  | ./autogen.sh --prefix=/<install_dir>  [--enable-debug] | ||||||
|  | (<install_dir> is some writable directory where 'make install' will | ||||||
|  | install files for testing. | ||||||
|  |  | ||||||
|  | 3. To reconfigure later, or to configure software that came from a source | ||||||
|  | distribution (.tar.gz) file, use configure. | ||||||
|  | ./configure --prefix/<install_dir> [--enable-debug] | ||||||
|  | (run ./configure --help for more options) | ||||||
|  |  | ||||||
|  | 4. Select your make target, here are a few interesting ones: | ||||||
|  |  | ||||||
|  | make [all] - build product files (package files not included) | ||||||
|  |  | ||||||
|  | make clean - clean up files built by 'make all' | ||||||
|  |  | ||||||
|  | make package - build product and package files | ||||||
|  |  | ||||||
|  | make package-clean - clean up package files | ||||||
|  |  | ||||||
|  | make install - install product files to <install_dir> specified by | ||||||
|  | --prefix during configure | ||||||
|  |  | ||||||
|  | make uninstall - undo 'make install' | ||||||
|  |  | ||||||
|  | make dist - build a source distribution tarball. | ||||||
|  |  | ||||||
|  | make distclean - removes files to return state back to same as the | ||||||
|  | source distribution (configure, Makefile.in files, and other distributed | ||||||
|  | autotools files are not removed) | ||||||
|  |  | ||||||
|  | make maintainer-clean - removes files to return state back to same as | ||||||
|  | the CVS checkout (you will need to run ./autogen.sh again before running | ||||||
|  | make again) | ||||||
|  |   | ||||||
							
								
								
									
										37
									
								
								auth_token/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								auth_token/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Juan Carlos Luciani <jluciani@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = $(TARGET_OS) krb5_token PAM | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = linux krb5_token PAM | ||||||
|  |  | ||||||
|  | CFILES = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES) *.h | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										37
									
								
								auth_token/PAM/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								auth_token/PAM/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Juan Carlos Luciani <jluciani@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = $(TARGET_OS) | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = linux | ||||||
|  |  | ||||||
|  | CFILES = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES) | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										118
									
								
								auth_token/PAM/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										118
									
								
								auth_token/PAM/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,118 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Juan Carlos Luciani <jluciani@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | CASAROOT = ../../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = .. | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME = pam_casaauthtok | ||||||
|  | MODULE_EXT = so | ||||||
|  |  | ||||||
|  | CFILES = ../pam_authtoken.c | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = -I. -I$(CASAROOT)/include | ||||||
|  | RESOURCES = | ||||||
|  | DEFINES = -Wno-format-extra-args -fno-strict-aliasing  | ||||||
|  |  | ||||||
|  | CFLAGS += $(INCLUDES) $(DEFINES) | ||||||
|  | LIBS = -lpthread -lc -lpam -lcasa_auth_token | ||||||
|  | LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT) -L$(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o)) | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.c | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | 	@echo [======== Linking $@ ========] | ||||||
|  | 	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | #cd $(TARGET_CFG); rm -rf *.dbg *.exe *.dll *.o *.so; cd ..; rmdir $(OBJDIR) | ||||||
|  | 	rm -rf $(TARGET_CFG) | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										37
									
								
								auth_token/krb5_token/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								auth_token/krb5_token/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Juan Carlos Luciani <jluciani@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = $(TARGET_OS) | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = linux | ||||||
|  |  | ||||||
|  | CFILES = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES) | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										126
									
								
								auth_token/krb5_token/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										126
									
								
								auth_token/krb5_token/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,126 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Juan Carlos Luciani <jluciani@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | CASAROOT = ../../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME = casa_krb5_token | ||||||
|  | MODULE_EXT = so | ||||||
|  |  | ||||||
|  | CFILES = $(srcdir)/interface.c \ | ||||||
|  |          $(srcdir)/util.c \ | ||||||
|  | 	 $(srcdir)/get.c \ | ||||||
|  | 	 $(srcdir)/verify.c | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = -I. -I../.. -I$(CASAROOT)/include | ||||||
|  | RESOURCES = | ||||||
|  | DEFINES = -fPIC -DPIC -DSSCS_LINUX_PLAT_F -02 -fmessage-length=0 -Wall \ | ||||||
|  |           -Wno-format-extra-args -fno-strict-aliasing  -D_REENTRANT -DALIGNMENT \ | ||||||
|  |           -DN_PLAT_UNIX -DUNIX -DLINUX -DIAPX386 | ||||||
|  |  | ||||||
|  | CFLAGS += $(INCLUDES) $(DEFINES) | ||||||
|  | LIBS = -lpthread -lc -lgssapi | ||||||
|  | LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o)) | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES) *.h | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.c | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | 	@echo [======== Linking $@ ========] | ||||||
|  | 	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | CLEAN_FILES = bin/$(TARGET_CFG)/pam_pwcapture.so | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | #	cd $(TARGET_CFG); rm -rf *.dbg *.exe *.dll *.o *.so; cd ..; rmdir $(OBJDIR) | ||||||
|  | 	rm -rf $(TARGET_CFG) | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										118
									
								
								auth_token/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										118
									
								
								auth_token/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,118 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | #  Author: Juan Carlos Luciani <jluciani@novell.com> | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | CASAROOT = ../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME = libcasa_auth_token | ||||||
|  | MODULE_EXT = so | ||||||
|  |  | ||||||
|  | CFILES = $(srcdir)/config.c \ | ||||||
|  | 	 $(srcdir)/auth_token.c | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = -I. -I.. -I$(CASAROOT)/include | ||||||
|  | RESOURCES = | ||||||
|  | DEFINES = -Wno-format-extra-args -fno-strict-aliasing  | ||||||
|  | CFLAGS += $(INCLUDES) $(DEFINES) | ||||||
|  | LIBS = -lpthread -lc -ldl | ||||||
|  | LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o)) | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES) *.h | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.c | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | 	@echo [======== Linking $@ ========] | ||||||
|  | 	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										130
									
								
								autogen.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										130
									
								
								autogen.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,130 @@ | |||||||
|  | #!/bin/sh | ||||||
|  | # Run this to generate all the initial makefiles, etc. | ||||||
|  |  | ||||||
|  | srcdir=`dirname $0` | ||||||
|  | test -z "$srcdir" && srcdir=. | ||||||
|  |  | ||||||
|  | ORIGDIR=`pwd` | ||||||
|  | cd $srcdir | ||||||
|  | PROJECT=CASA | ||||||
|  | TEST_TYPE=-f | ||||||
|  | FILE=auth_token/linux/auth_token.c | ||||||
|  |  | ||||||
|  | DIE=0 | ||||||
|  |  | ||||||
|  | (autoconf --version) < /dev/null > /dev/null 2>&1 || { | ||||||
|  | 	echo | ||||||
|  | 	echo "You must have autoconf installed to compile $PROJECT." | ||||||
|  | 	echo "Download the appropriate package for your distribution," | ||||||
|  | 	echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" | ||||||
|  | 	DIE=1 | ||||||
|  | } | ||||||
|  |  | ||||||
|  | AUTOMAKE=automake-1.9 | ||||||
|  | ACLOCAL=aclocal-1.9 | ||||||
|  |  | ||||||
|  | ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || { | ||||||
|  |         AUTOMAKE=automake | ||||||
|  |         ACLOCAL=aclocal | ||||||
|  | } | ||||||
|  |  | ||||||
|  | ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || { | ||||||
|  | 	echo | ||||||
|  | 	echo "You must have automake installed to compile $PROJECT." | ||||||
|  | 	echo "Download the appropriate package for your distribution," | ||||||
|  | 	echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" | ||||||
|  | 	DIE=1 | ||||||
|  | } | ||||||
|  |  | ||||||
|  | if test "$DIE" -eq 1; then | ||||||
|  | 	exit 1 | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | test $TEST_TYPE $FILE || { | ||||||
|  | 	echo "You must run this script in the top-level $PROJECT directory" | ||||||
|  | 	exit 1 | ||||||
|  | } | ||||||
|  |  | ||||||
|  | if test -z "$*"; then | ||||||
|  | 	echo "I am going to run ./configure with no arguments - if you wish " | ||||||
|  |         echo "to pass any to it, please specify them on the $0 command line." | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | case $CC in | ||||||
|  | *xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;; | ||||||
|  | esac | ||||||
|  |  | ||||||
|  | for coin in `find $srcdir -name configure.in -print` | ||||||
|  | do | ||||||
|  |   dr=`dirname $coin` | ||||||
|  |   if test -f $dr/NO-AUTO-GEN; then | ||||||
|  |     echo skipping $dr -- flagged as no auto-gen | ||||||
|  |   else | ||||||
|  |     echo processing $dr | ||||||
|  |     macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin` | ||||||
|  |     ( cd $dr | ||||||
|  |       aclocalinclude="$ACLOCAL_FLAGS" | ||||||
|  |       for k in $macrodirs; do | ||||||
|  |   	if test -d $k; then | ||||||
|  |           aclocalinclude="$aclocalinclude -I $k" | ||||||
|  |   	##else | ||||||
|  | 	##  echo "**Warning**: No such directory \`$k'.  Ignored." | ||||||
|  |         fi | ||||||
|  |       done | ||||||
|  |       if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then | ||||||
|  | 	if grep "sed.*POTFILES" configure.in >/dev/null; then | ||||||
|  | 	  : do nothing -- we still have an old unmodified configure.in | ||||||
|  | 	else | ||||||
|  | 	  echo "Creating $dr/aclocal.m4 ..." | ||||||
|  | 	  test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 | ||||||
|  | 	  echo "Running gettextize...  Ignore non-fatal messages." | ||||||
|  | 	  echo "no" | gettextize --force --copy | ||||||
|  | 	  echo "Making $dr/aclocal.m4 writable ..." | ||||||
|  | 	  test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 | ||||||
|  |         fi | ||||||
|  |       fi | ||||||
|  |       if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then | ||||||
|  | 	echo "Creating $dr/aclocal.m4 ..." | ||||||
|  | 	test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 | ||||||
|  | 	echo "Running gettextize...  Ignore non-fatal messages." | ||||||
|  | 	echo "no" | gettextize --force --copy | ||||||
|  | 	echo "Making $dr/aclocal.m4 writable ..." | ||||||
|  | 	test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 | ||||||
|  |       fi | ||||||
|  |       if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then | ||||||
|  | 	echo "Creating $dr/aclocal.m4 ..." | ||||||
|  | 	test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 | ||||||
|  | 	echo "Running gettextize...  Ignore non-fatal messages." | ||||||
|  | 	echo "no" | glib-gettextize --force --copy | ||||||
|  | 	echo "Making $dr/aclocal.m4 writable ..." | ||||||
|  | 	test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 | ||||||
|  |       fi | ||||||
|  |       if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then | ||||||
|  | 	echo "Running libtoolize..." | ||||||
|  | 	libtoolize --force --copy | ||||||
|  |       fi | ||||||
|  |       echo "Running $ACLOCAL $aclocalinclude ..." | ||||||
|  |       $ACLOCAL $aclocalinclude | ||||||
|  |       if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then | ||||||
|  | 	echo "Running autoheader..." | ||||||
|  | 	autoheader | ||||||
|  |       fi | ||||||
|  |       echo "Running $AUTOMAKE --gnu $am_opt ..." | ||||||
|  |       $AUTOMAKE --add-missing --gnu $am_opt | ||||||
|  |       echo "Running autoconf ..." | ||||||
|  |       autoconf | ||||||
|  |     ) | ||||||
|  |   fi | ||||||
|  | done | ||||||
|  |  | ||||||
|  | conf_flags="--config-cache --enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c | ||||||
|  |  | ||||||
|  | cd "$ORIGDIR" | ||||||
|  |  | ||||||
|  | if test x$NOCONFIGURE = x; then | ||||||
|  |   echo Running $srcdir/configure $conf_flags "$@" ... | ||||||
|  |   $srcdir/configure $conf_flags "$@" \ | ||||||
|  |   && echo Now type \`make\' to compile $PROJECT  || exit 1 | ||||||
|  | else | ||||||
|  |   echo Skipping configure process. | ||||||
|  | fi | ||||||
							
								
								
									
										128
									
								
								c_adlib/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										128
									
								
								c_adlib/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,128 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG) | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = ad_kw ad_gk ad_ff  | ||||||
|  | DIST_SUBDIRS = ad_kw ad_gk ad_ff | ||||||
|  |  | ||||||
|  | CASAROOT = .. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CSFILES) | ||||||
|  |   | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =Novell.CASA.A-D | ||||||
|  | MODULE_EXT =dll | ||||||
|  |  | ||||||
|  | CSFILES = $(srcdir)/AssemblyInfo.cs \ | ||||||
|  | 	$(srcdir)/Common.cs \ | ||||||
|  | 	$(srcdir)/IDataEngine.cs \ | ||||||
|  | 	$(srcdir)/miCASAEngine.cs \ | ||||||
|  | 	$(srcdir)/AD_Facade.cs \ | ||||||
|  | 	$(srcdir)/KWalletEngine.cs \ | ||||||
|  | 	$(srcdir)/GKEngine.cs \ | ||||||
|  | 	$(srcdir)/FFEngine.cs \ | ||||||
|  | 	$(top_srcdir)/c_gui/Logger.cs  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := $(subst /,$(SEP),$(CSFILES)) | ||||||
|  | CS_FLAGS = $(CSC_LIBFLAG) -pkg:gtk-sharp /d:LINUX  | ||||||
|  | CS_RESOURCES = | ||||||
|  | CS_LIBS =$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.DataEngines.GnomeKeyring.dll \ | ||||||
|  | 	$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.DataEngines.KWallet.dll \ | ||||||
|  | 	$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.DataEngines.FireFox.dll \ | ||||||
|  | 	$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.CASAPolicy.dll \ | ||||||
|  | 	$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.miCASAWrapper.dll  | ||||||
|  | CS_LIBPATH = $(CASALIBDIR)/$(TARGET_CFG) $(srcdir)/ad_gk/$(TARGET_CFG) $(srcdir)/ad_kw/$(TARGET_CFG) \ | ||||||
|  | 	$(srcdir)/ad_ff/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  |  | ||||||
|  | #OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)  | ||||||
|  | 	$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) $(CS_LIBPATH:%=-lib:%) $(CS_LIBS:%=/r:%) -out:$@ $(CSFILES_CSC)  | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | #$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | #	@echo [======== Linking $@ ========] | ||||||
|  | #	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | #	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
							
								
								
									
										114
									
								
								c_adlib/ad_gk/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										114
									
								
								c_adlib/ad_gk/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,114 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG) | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = native | ||||||
|  | DIST_SUBDIRS = native | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CSFILES) | ||||||
|  |  | ||||||
|  | CASAROOT = ../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =Novell.CASA.DataEngines.GnomeKeyring | ||||||
|  | MODULE_EXT =dll | ||||||
|  |  | ||||||
|  | CSFILES = $(srcdir)/GnomeKeyring.cs | ||||||
|  |  | ||||||
|  | CSFILES_CSC := $(subst /,$(SEP),$(CSFILES)) | ||||||
|  | CS_FLAGS = $(CSC_LIBFLAG) /target:library  -pkg:gtk-sharp  | ||||||
|  | CS_RESOURCES = | ||||||
|  | CS_LIBS =  | ||||||
|  | CS_LIBPATH =   | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  |  | ||||||
|  | #OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)  | ||||||
|  | 	$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) -out:$@ $(CSFILES_CSC)  | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | #$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | #	@echo [======== Linking $@ ========] | ||||||
|  | #	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | #	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
							
								
								
									
										136
									
								
								c_adlib/ad_gk/native/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										136
									
								
								c_adlib/ad_gk/native/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,136 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | CASAROOT = ../../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | BUILD_VER = 1.1.1 | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME = libad_gk | ||||||
|  | MODULE_EXT = so | ||||||
|  |  | ||||||
|  | CFILES = $(srcdir)/ad_gk.c  | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | LIBDIR = lib64 | ||||||
|  | else | ||||||
|  | LIBDIR = lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = -I. -I.. -I$(CASAROOT)/include \ | ||||||
|  | 	-I/opt/gnome/include/gnome-keyring-1 \ | ||||||
|  | 	-I/opt/gnome/include/glib-2.0 \ | ||||||
|  | 	-I/opt/gnome/$(LIBDIR)/glib-2.0/include \ | ||||||
|  | 	-L/opt/gnome/$(LIBDIR) -lglib-2.0 | ||||||
|  |  | ||||||
|  | RESOURCES = | ||||||
|  | EXTRA_CFLAGS =  | ||||||
|  | CFLAGS += $(INCLUDES) $(DEFINES)  | ||||||
|  | 	 | ||||||
|  | LIBS = -lpthread -lc -ldl | ||||||
|  | LDFLAGS = -fno-exceptions -fno-check-new -Wl,-Bsymbolic -shared -pthread -O2 \ | ||||||
|  | 	-Wl,-rpath -Wl,/usr/$(LIBDIR) -Wl,-soname -Wl,libad_gk.so.1 | ||||||
|  |  | ||||||
|  | EXTRA_LDFLAGS = -L/opt/gnome/$(LIBDIR) -lglib-2.0 -L/$(CASAROOT)/$(LIBDIR) | ||||||
|  |  | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/$(LIBDIR) | ||||||
|  |  | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o)) | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES) *.h | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.c | ||||||
|  | 	$(CC) -c $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | #$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | #	@echo [======== Linking $@ ========] | ||||||
|  | #	$(LINK) -o $@ $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | #	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER): $(OBJDIR) $(OBJS) | ||||||
|  | 	@echo [======== Linking $@ ========] | ||||||
|  | 	c++ -o $@ $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) | ||||||
|  | 	ln -sf  $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)  $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).1 | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										115
									
								
								c_adlib/ad_kw/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								c_adlib/ad_kw/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,115 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG) | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = native  | ||||||
|  | DIST_SUBDIRS = native | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CSFILES) | ||||||
|  |  | ||||||
|  | CASAROOT = ../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =Novell.CASA.DataEngines.KWallet | ||||||
|  | MODULE_EXT =dll | ||||||
|  |  | ||||||
|  | CSFILES = $(srcdir)/AssemblyInfo.cs \ | ||||||
|  | 	$(srcdir)/KWalletEnum.cs \ | ||||||
|  | 	$(srcdir)/KWalletNative.cs  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := $(subst /,$(SEP),$(CSFILES)) | ||||||
|  | CS_FLAGS = $(CSC_LIBFLAG)  | ||||||
|  | CS_RESOURCES = | ||||||
|  | CS_LIBS =  | ||||||
|  | CS_LIBPATH =   | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | #OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)  | ||||||
|  | 	$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) -out:$@ $(CSFILES_CSC)  | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | #$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | #	@echo [======== Linking $@ ========] | ||||||
|  | #	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | #	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
							
								
								
									
										138
									
								
								c_adlib/ad_kw/native/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										138
									
								
								c_adlib/ad_kw/native/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,138 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CXXFILES) $(CXX_MOC_FILES) *.h | ||||||
|  |  | ||||||
|  | CASAROOT = ../../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | BUILD_VER = 1.1.1 | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | ####this needs to be defined in configure.in | ||||||
|  | MOC = /usr/lib/qt3/bin/moc | ||||||
|  | CXX = g++ | ||||||
|  |  | ||||||
|  | MODULE_NAME =libkwallets_rw | ||||||
|  | MODULE_EXT =so | ||||||
|  |  | ||||||
|  | CXXFILES = $(srcdir)/kwallets_rw.cpp  | ||||||
|  |  | ||||||
|  | CXX_MOC_FILES = kwallets_rw.moc | ||||||
|  |  | ||||||
|  | CXXFILES_CXX := | ||||||
|  | INCLUDES =  -I. -I.. -I$(CASAROOT)/include \ | ||||||
|  | -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include -I/opt/gnome/include/gnome-keyring-1/  | ||||||
|  | CXXFLAGS = $(CPP_LIBFLAG) $(INCLUDES)  | ||||||
|  | EXTRA_CXXFLAGS = -fPIC -DPIC -DSSCS_LINUX_PLAT_F -DQT_THREAD_SUPPORT -DQT_CLEAN_NANESPACE \  | ||||||
|  |    -DQT_NO_ASCII_CAS -O2 -fmessage-length=0 -Wall -fstack-protector -g -D_REENTRANT \ | ||||||
|  |    -DALIGNMENT -DN_PLAT_UNIX -DUNIX -DLINUX -DIAPX386  | ||||||
|  | CXX_RESOURCES = | ||||||
|  | LIBS = -lpthread -lc -ldl -L/opt/kde3/lib   | ||||||
|  | LDFLAGS = -fno-exception -fno-check-new -Wl,-Bsymbolic -shared -pthread -O2  \ | ||||||
|  |         -Wl,-rpath -Wl,/usr/lib -Wl,-soname -Wl,libkwallets_rw.so.1 | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | EXTRA_LDFLAGS = -L/usr/lib64 -lpthread -lc -ldl -L/opt/kde3/lib64 -lkwalletclient \ | ||||||
|  | 	-lqt-mt -L/usr/X11R6/lib64 -L/usr/lib/qt3/lib64 -lqt-mt  | ||||||
|  | else | ||||||
|  | EXTRA_LDFLAGS = -L/usr/lib -lpthread -lc -ldl -L/opt/kde3/lib -lkwalletclient \ | ||||||
|  | 	  -lqt-mt -L/usr/X11R6/lib -L/usr/lib/qt3/lib  -lqt-mt  | ||||||
|  | endif | ||||||
|  |                                                                                                                              | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CXXFILES:%.cpp=%.o)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(CXX_MOC_FILES): kwallets_rw.h | ||||||
|  | 	$(MOC) $^ -o $@  | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | #	$(CXX) -c $(CXXFLAGS) $(EXTRA_CXXFLAGS) -o $@ $< | ||||||
|  | 	c++ -c -g $(CXXFLAGS) $(EXTRA_CXXFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER):$(CXX_MOC_FILES) $(OBJDIR) $(OBJS) | ||||||
|  | 	@echo [======== Linking $@ ========] | ||||||
|  | 	c++ -o $@ $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) | ||||||
|  | 	ln -sf  $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)  $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).1 | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  | 	if [ -f $(CXX_MOC_FILES) ]; then rm -f $(CXX_MOC_FILES); fi  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
							
								
								
									
										36
									
								
								c_common/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								c_common/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = $(TARGET_OS)  | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = linux  | ||||||
|  |  | ||||||
|  | CFILES = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES)  | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										122
									
								
								c_common/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										122
									
								
								c_common/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,122 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES)  | ||||||
|  |  | ||||||
|  | CASAROOT = ../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = .. | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =sscs_ll | ||||||
|  | MODULE_EXT =o | ||||||
|  |  | ||||||
|  | CFILES = ../sscs_ll.c  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = -I. -I.. -I$(CASAROOT)/include -I/opt/gnome/include/gnome-keyring-1/ | ||||||
|  | EXTRA_CFLAGS =  | ||||||
|  | RESOURCES = | ||||||
|  | CFLAGS += $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES) | ||||||
|  | LIBS = -lpthread -lc -ldl | ||||||
|  | LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.c | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | #$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | #	@echo [======== Linking $@ ========] | ||||||
|  | #	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | #	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT):  | ||||||
|  | 	@echo [========  Creating symlink $@ ========] | ||||||
|  | 	ln -f $(CFILES) $(CASAROOT)/c_micasadk      	 | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										143
									
								
								c_gui/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										143
									
								
								c_gui/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,143 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG)   | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS =   | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CSFILES) *.sh CASAManager.* help/en/*.htm help/en/*.gif \ | ||||||
|  | 	     images/*.png images/*.ico images/*.glade* \ | ||||||
|  |              images/*.bmp | ||||||
|  |  | ||||||
|  | #EXTRA_DIST = $(CSFILES) help/en  help/en/*.htm  help/en/*.gif \ | ||||||
|  | #	     images/*.png images/*.ico images/*.glade* \ | ||||||
|  | #	     images/*.bmp  | ||||||
|  |  | ||||||
|  | CASAROOT = .. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64/$(TARGET_CFG) | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib/$(TARGET_CFG) | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASABINDIR = $(CASAROOT)/bin64 | ||||||
|  | else | ||||||
|  | CASABINDIR = $(CASAROOT)/bin | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =CASAManager | ||||||
|  | MODULE_EXT =exe | ||||||
|  |  | ||||||
|  | CSFILES =$(srcdir)/AssemblyInfo.cs \  | ||||||
|  | 	$(srcdir)/CasaMain.cs \ | ||||||
|  | 	$(srcdir)/CasaTray.cs \ | ||||||
|  | 	$(srcdir)/TrayLib.cs \ | ||||||
|  | 	$(srcdir)/Firefox.cs \ | ||||||
|  | 	$(srcdir)/GnomeKeyring.cs \ | ||||||
|  | 	$(srcdir)/KdeWallet.cs \ | ||||||
|  | 	$(srcdir)/Logger.cs \ | ||||||
|  | 	$(srcdir)/MiCasa.cs \ | ||||||
|  | 	$(srcdir)/Mozilla.cs \ | ||||||
|  | 	$(srcdir)/Store.cs \ | ||||||
|  | 	$(srcdir)/StoreDataInterface.cs \ | ||||||
|  | 	$(srcdir)/StorePolicyInterface.cs \ | ||||||
|  | 	$(srcdir)/CommonGUI.cs \ | ||||||
|  | 	$(srcdir)/Common.cs  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := $(subst /,$(SEP),$(CSFILES)) | ||||||
|  | CS_FLAGS = -pkg:gtk-sharp -pkg:glade-sharp -d:LINUX -nowarn:169  | ||||||
|  | CS_RESOURCES = | ||||||
|  | CS_LIBS =$(CASALIBDIR)/Novell.CASA.Common.dll \ | ||||||
|  | 	$(CASALIBDIR)/Novell.CASA.miCASAWrapper.dll \ | ||||||
|  | 	$(CASALIBDIR)/Novell.CASA.A-D.dll \ | ||||||
|  | 	$(CASALIBDIR)/Novell.CASA.CASAPolicy.dll  | ||||||
|  | CS_LIBPATH = ../c_micasad/test/dependencies  \ | ||||||
|  | 	$(CASALIBDIR)  | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | #OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)  | ||||||
|  | 	$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) $(CS_LIBPATH:%=-lib:%) $(CS_LIBS:%=/r:%) -out:$@ $(CSFILES_CSC)  | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASABINDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | #$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | #	@echo [======== Linking $@ ========] | ||||||
|  | #	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | #	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASABINDIR) ] || mkdir -p $(CASABINDIR) | ||||||
|  | 	[ -d $(CASABINDIR)/$(TARGET_CFG) ] || mkdir -p $(CASABINDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
							
								
								
									
										34
									
								
								c_jwrapper/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								c_jwrapper/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = src jnsscs  | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = src jnsscs | ||||||
|  |  | ||||||
|  | EXTRA_DIST = c_jwrapper* | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										34
									
								
								c_jwrapper/jnsscs/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								c_jwrapper/jnsscs/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = $(TARGET_OS)  | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = linux  | ||||||
|  |  | ||||||
|  | EXTRA_DIST = *.c jnsscs* | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										125
									
								
								c_jwrapper/jnsscs/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										125
									
								
								c_jwrapper/jnsscs/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,125 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = *.exp | ||||||
|  |  | ||||||
|  | CASAROOT = ../../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | BUILD_VER = 1.1.1 | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = .. | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME = libjmicasa | ||||||
|  | MODULE_EXT = so | ||||||
|  |  | ||||||
|  | CFILES = ../jmicasa.c   | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = -I. -I.. -I$(CASAROOT)/include -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux \ | ||||||
|  |            -I/opt/gnome/include/gnome-keyring-1  | ||||||
|  | RESOURCES = | ||||||
|  | DEFINES =  | ||||||
|  | CFLAGS += $(INCLUDES) $(DEFINES) | ||||||
|  | LIBS = -lpthread -lc -ldl  | ||||||
|  | LDFLAGS = -Wl,-Bsymbolic -shared -Wl,--version-script=jmicasa_lux.exp -Wl,-rpath -Wl,/usr/lib \ | ||||||
|  | 	 -L$(CASALIBDIR)/$(TARGET_CFG) -lmicasa -Wl,-soname -Wl,libjmicasa.so.1   | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.c | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | #$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | #	@echo [======== Linking $@ ========] | ||||||
|  | #	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | #	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER): $(OBJDIR) $(OBJS) | ||||||
|  | 	@echo [======== Linking $@ ========] | ||||||
|  | 	cc -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										119
									
								
								c_jwrapper/src/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										119
									
								
								c_jwrapper/src/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,119 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS =  | ||||||
|  |  | ||||||
|  | EXTRA_DIST =$(JAVAFILES) com/novell/casa/*.java   | ||||||
|  |  | ||||||
|  | CASAROOT = ../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  |  | ||||||
|  | JAVAROOT = . | ||||||
|  | JAVAC= javac | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME = miCASA | ||||||
|  | MODULE_EXT = jar | ||||||
|  |  | ||||||
|  | JAVAFILES = $(srcdir)/com/novell/casa/MiCasa.java \ | ||||||
|  | 	 $(srcdir)/com/novell/casa/NetCredential.java \ | ||||||
|  | 	 $(srcdir)/com/novell/casa/MiCasaException.java  | ||||||
|  |  | ||||||
|  | JAVA_CLASS_FILES = com/novell/casa/MiCasa.class \ | ||||||
|  | 	com/novell/casa/NetCredential.class \ | ||||||
|  | 	com/novell/casa/MiCasaException.class   | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = $(CASAROOT)/include  | ||||||
|  | RESOURCES = | ||||||
|  | CFLAGS += $(INCLUDES) $(DEFINES) | ||||||
|  | LIBS =  | ||||||
|  | LDFLAGS =  | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | OBJS =  | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(srcdir)/com/novell/casa/MiCasa.class:$(srcdir)/com/novell/casa/MiCasa.java | ||||||
|  | 	@echo making Micasa.class  | ||||||
|  | 	$(JAVAC) -classpath $(JAVAROOT)  $^ | ||||||
|  |  | ||||||
|  | $(CASAROOT)/include/com_novell_casa_MiCasa.h:$(srcdir)/com/novell/casa/MiCasa.class   | ||||||
|  | 	javah -d $(INCLUDES) com.novell.casa.MiCasa 	 | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CASAROOT)/include/com_novell_casa_MiCasa.h | ||||||
|  | 	jar cvf $(OBJDIR)/miCASA.jar $(JAVA_CLASS_FILES)  | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  | 	cd $(srcdir)/com/novell/casa && rm -f *.class | ||||||
|  | 	cd $(CASAROOT)/include && rm -f com_novell_casa_MiCasa.h | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										36
									
								
								c_micasacache/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								c_micasacache/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = $(TARGET_OS) | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = linux | ||||||
|  |  | ||||||
|  | CFILES = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = *.c | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										121
									
								
								c_micasacache/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										121
									
								
								c_micasacache/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,121 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w  | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CFILES)   | ||||||
|  |  | ||||||
|  | CASAROOT = ../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = ..  | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =libmicasacache | ||||||
|  | MODULE_EXT =a | ||||||
|  |  | ||||||
|  | CFILES = ../sscs_unx_cache.c \ | ||||||
|  | 	 ../sscs_unx_ipc_client.c \ | ||||||
|  |          ../sscs_ipc.c | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = -I. -I.. -I$(CASAROOT)/include -I/opt/gnome/include/gnome-keyring-1/ | ||||||
|  | EXTRA_CFLAGS =  | ||||||
|  | RESOURCES = | ||||||
|  | CFLAGS += $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES) | ||||||
|  | LIBS = -lpthread -lc -ldl | ||||||
|  | LDFLAGS = -init _init -Bsymbolic -shared -soname=$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.c | ||||||
|  | 	@echo [======== Compiling $@ ========] | ||||||
|  | 	@echo [======== OBJDIR $(OBJDIR) ========] | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | 	@echo [======== Linking $@ ========] | ||||||
|  | #	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | 	ar crus  $@  $(OBJS) | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										190
									
								
								c_micasad/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										190
									
								
								c_micasad/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,190 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG) | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = lib  | ||||||
|  | DIST_SUBDIRS = lib   | ||||||
|  |  | ||||||
|  | DIST_SOURCES = *.cs | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CSFILES) micasad* init/*.cs \ | ||||||
|  | cache/*.cs common/*.cs communication/*.cs communication/win/*.cs \ | ||||||
|  | init/*.cs init/*.resx lss/*.cs startup/micasad* verbs/*.cs  \ | ||||||
|  | test/cache/*.cs test/common/*.cs communication/*.cs communication/win/*.cs \ | ||||||
|  | test/dependencies/*.dll test/verbs/*.cs test/*.txt \ | ||||||
|  | startup/micasad* startup/casacfgpam startup/casaucfgpam | ||||||
|  |  | ||||||
|  | CASAROOT = .. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASABINDIR = $(CASAROOT)/bin64 | ||||||
|  | else | ||||||
|  | CASABINDIR = $(CASAROOT)/bin | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =micasad | ||||||
|  | MODULE_EXT =exe | ||||||
|  |  | ||||||
|  |  | ||||||
|  | CSFILES=$(srcdir)/AssemblyInfo.cs \ | ||||||
|  | 	$(srcdir)/init/Main.cs \ | ||||||
|  | 	$(srcdir)/init/AppHandler.cs \ | ||||||
|  | 	$(srcdir)/common/RequestParser.cs \ | ||||||
|  | 	$(srcdir)/common/SessionManager.cs \ | ||||||
|  | 	$(srcdir)/common/User.cs \ | ||||||
|  | 	$(srcdir)/common/UnixUser.cs \ | ||||||
|  | 	$(srcdir)/common/UserIdentifier.cs \ | ||||||
|  | 	$(srcdir)/common/UnixUserIdentifier.cs \ | ||||||
|  | 	$(srcdir)/common/Constants.cs \ | ||||||
|  | 	$(srcdir)/common/CSSSLogger.cs \ | ||||||
|  | 	$(srcdir)/common/CSSSException.cs \ | ||||||
|  | 	$(srcdir)/communication/IPCChannel.cs \ | ||||||
|  | 	$(srcdir)/communication/CommunicationFactory.cs \ | ||||||
|  | 	$(srcdir)/communication/UnixIPCChannel.cs \ | ||||||
|  | 	$(srcdir)/communication/ICommunication.cs \ | ||||||
|  | 	$(srcdir)/communication/UnixCommunication.cs \ | ||||||
|  | 	$(srcdir)/cache/KeyChain.cs \ | ||||||
|  | 	$(srcdir)/cache/Secret.cs \ | ||||||
|  | 	$(srcdir)/cache/SecretStore.cs \ | ||||||
|  | 	$(srcdir)/cache/KeyValue.cs \ | ||||||
|  | 	$(srcdir)/cache/IKeychain.cs \ | ||||||
|  | 	$(srcdir)/cache/ISecret.cs \ | ||||||
|  | 	$(srcdir)/lss/LocalStorage.cs \ | ||||||
|  | 	$(srcdir)/lss/CASACrypto.cs \ | ||||||
|  | 	$(srcdir)/lss/Rfc2898DeriveBytes.cs \ | ||||||
|  | 	$(srcdir)/verbs/ISSVerb.cs \ | ||||||
|  | 	$(srcdir)/verbs/GetSecretStoreInfo.cs \ | ||||||
|  | 	$(srcdir)/verbs/OpenSecretStore.cs \ | ||||||
|  | 	$(srcdir)/verbs/CloseSecretStore.cs \ | ||||||
|  | 	$(srcdir)/verbs/RemoveSecretStore.cs \ | ||||||
|  | 	$(srcdir)/verbs/AddKeyChain.cs \ | ||||||
|  | 	$(srcdir)/verbs/RemoveKeyChain.cs \ | ||||||
|  | 	$(srcdir)/verbs/WriteSecret.cs \ | ||||||
|  | 	$(srcdir)/verbs/ReadSecret.cs \ | ||||||
|  | 	$(srcdir)/verbs/RemoveSecret.cs \ | ||||||
|  | 	$(srcdir)/verbs/EnumerateKeyChainIds.cs \ | ||||||
|  | 	$(srcdir)/verbs/EnumerateSecretIds.cs \ | ||||||
|  | 	$(srcdir)/verbs/SetMasterPassword.cs \ | ||||||
|  | 	$(srcdir)/verbs/WriteKey.cs \ | ||||||
|  | 	$(srcdir)/verbs/ReadKey.cs \ | ||||||
|  | 	$(srcdir)/verbs/WriteBinaryKey.cs \ | ||||||
|  | 	$(srcdir)/verbs/ReadBinaryKey.cs \ | ||||||
|  | 	$(srcdir)/verbs/IsSecretPersistent.cs \ | ||||||
|  | 	$(srcdir)/verbs/ObjectSerialization.cs \ | ||||||
|  | 	$(srcdir)/test/cache/TestSecret.cs \ | ||||||
|  | 	$(srcdir)/test/cache/TestKeyChain.cs \ | ||||||
|  | 	$(srcdir)/test/cache/TestSecretStore.cs \ | ||||||
|  | 	$(srcdir)/test/common/TestSessionManager.cs \ | ||||||
|  | 	$(srcdir)/test/common/TestRequestParser.cs \ | ||||||
|  | 	$(srcdir)/test/communication/TestUnixCommunication.cs \ | ||||||
|  | 	$(srcdir)/test/verbs/TestOpenSecretStore.cs \ | ||||||
|  | 	$(srcdir)/test/verbs/TestCloseSecretStore.cs \ | ||||||
|  | 	$(srcdir)/test/verbs/TestEnumerateKeyChainIDs.cs \ | ||||||
|  | 	$(srcdir)/test/verbs/TestEnumerateSecIDs.cs \ | ||||||
|  | 	$(srcdir)/test/verbs/TestReadSecret.cs \ | ||||||
|  | 	$(srcdir)/test/verbs/TestRemoveKeyChain.cs \ | ||||||
|  | 	$(srcdir)/test/verbs/TestWriteSecret.cs | ||||||
|  |  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := $(subst /,$(SEP),$(CSFILES)) | ||||||
|  | CS_FLAGS = -d:LINUX -nowarn:169  | ||||||
|  | CS_RESOURCES = | ||||||
|  | CS_LIBS =Mono.Posix.dll \ | ||||||
|  | 	nunit.core.dll \ | ||||||
|  | 	nunit.framework.dll \ | ||||||
|  | 	nunit.extensions.dll \ | ||||||
|  | 	nunit.util.dll \ | ||||||
|  | 	nunit.mocks.dll \ | ||||||
|  |         $(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.Common.dll \  | ||||||
|  | 	$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.DataEngines.GnomeKeyring.dll  | ||||||
|  |  | ||||||
|  | CS_LIBPATH = $(CASALIBDIR)/$(TARGET_CFG) $(srcdir)/test/dependencies | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES) | ||||||
|  | 	@echo compiling $@ ... | ||||||
|  | 	$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) $(CS_LIBPATH:%=-lib:%) $(CS_LIBS:%=/r:%) -out:$@ $(CSFILES_CSC) | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASABINDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | #$(OBJDIR): | ||||||
|  | #	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | #	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | #	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASABINDIR) ] || mkdir -p $(CASABINDIR) | ||||||
|  | 	[ -d $(CASABINDIR)/$(TARGET_CFG) ] || mkdir -p $(CASABINDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
							
								
								
									
										119
									
								
								c_micasad/lib/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										119
									
								
								c_micasad/lib/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,119 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | #CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG) | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS = common communication  | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CSFILES) | ||||||
|  |  | ||||||
|  | CASAROOT = ../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =Novell.CASA.Common | ||||||
|  | MODULE_EXT =dll | ||||||
|  |  | ||||||
|  | CSFILES = $(srcdir)/AssemblyInfo.cs \ | ||||||
|  | 	$(srcdir)/common/LinkedKeyInfo.cs \ | ||||||
|  | 	$(srcdir)/common/Utils.cs \ | ||||||
|  | 	$(srcdir)/common/Ping.cs \ | ||||||
|  | 	$(srcdir)/common/ResetMasterPassword.cs \ | ||||||
|  | 	$(srcdir)/common/WrappedObject.cs \ | ||||||
|  | 	$(srcdir)/common/MiCASAStore.cs \ | ||||||
|  | 	$(srcdir)/communication/IClientChannel.cs \ | ||||||
|  | 	$(srcdir)/communication/IPCClientFactory.cs \ | ||||||
|  | 	$(srcdir)/communication/MiCasaRequestReply.cs \ | ||||||
|  | 	$(srcdir)/communication/UnixIPCClientChannel.cs  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := $(subst /,$(SEP),$(CSFILES)) | ||||||
|  | CS_INCLUDES = -I. -I.. -I$(CASAROOT)/include | ||||||
|  | CS_FLAGS = /target:"library" /r:Mono.Posix.dll -d:LINUX    | ||||||
|  | CS_RESOURCES = | ||||||
|  | CS_LIBS =  | ||||||
|  | CS_LIBPATH =  | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | #OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)  | ||||||
|  | 	$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) -out:$@ $(CSFILES_CSC)  | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
							
								
								
									
										36
									
								
								c_micasad/lib/common/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								c_micasad/lib/common/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS =  | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS =  | ||||||
|  |  | ||||||
|  | CFILES = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CSFILES)  | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										36
									
								
								c_micasad/lib/communication/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								c_micasad/lib/communication/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS =  | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS =  | ||||||
|  |  | ||||||
|  | CFILES = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = $(CSFILES)  | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										34
									
								
								c_micasadk/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								c_micasadk/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = $(TARGET_OS) | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = linux | ||||||
|  |  | ||||||
|  | EXTRA_DIST = *.c  | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										119
									
								
								c_micasadk/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										119
									
								
								c_micasadk/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,119 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = *.exp  | ||||||
|  |  | ||||||
|  | CASAROOT = ../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | OBJDIR = $(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | OBJDIR = $(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | BUILD_VER = 1.1.1 | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = .. | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =libmicasa | ||||||
|  | MODULE_EXT =so | ||||||
|  |  | ||||||
|  | CFILES = ../sscs_ll.c \ | ||||||
|  | 	../sscs_ndk.c  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = -I. -I.. -I$(CASAROOT)/include -I/opt/gnome/include/gnome-keyring-1/ | ||||||
|  | EXTRA_CFLAGS =  | ||||||
|  | RESOURCES = | ||||||
|  | CFLAGS += $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES) | ||||||
|  | LIBS = -L/$(CASALIBDIR)/$(TARGET_CFG)   | ||||||
|  |  | ||||||
|  | LDFLAGS = -Wl,-Bsymbolic -shared -Wl,--version-script=micasa_lux.exp \ | ||||||
|  | 	-Wl,-rpath -Wl,/usr/lib -L/usr/lib -lpthread \ | ||||||
|  | 	-lc -ldl -Wl,-soname -Wl,libmicasa.so.1 | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o)) | ||||||
|  | #COMMON_OBJS = -L/../../c_common/linux/$(OBJDIR) ../../c_common/linux/$(OBJDIR)/sscs_ll.o  | ||||||
|  | COMMON_OBJS = $(OBJDIR)/sscs_ll.o  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.c | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER): $(OBJDIR) $(OBJS) | ||||||
|  | 	@echo [======== Linking $@ ========] | ||||||
|  | 	cc $(LDFLAGS) -o $@ $(OBJS) $(LIBS)  $(CASALIBDIR)/$(TARGET_CFG)/libmicasacache.a | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER) | ||||||
|  | 	ln -sf  $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)  $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).1 | ||||||
|  | 	ln -sf  $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT).$(BUILD_VER)  $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										115
									
								
								c_policy/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								c_policy/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,115 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG) | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = *.cs $(CSFILES) | ||||||
|  |  | ||||||
|  | CASAROOT = .. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =Novell.CASA.CASAPolicy | ||||||
|  | MODULE_EXT =dll | ||||||
|  |  | ||||||
|  | CSFILES = $(srcdir)/AssemblyInfo.cs \ | ||||||
|  | 	$(srcdir)/Policy.cs \ | ||||||
|  | 	$(srcdir)/PolicyImpl.cs \ | ||||||
|  | 	$(srcdir)/PolicyConstants.cs \ | ||||||
|  | 	$(srcdir)/AggregationPol.cs \ | ||||||
|  | 	$(srcdir)/PersistencePol.cs \ | ||||||
|  | 	$(srcdir)/UIPol.cs \ | ||||||
|  | 	$(srcdir)/SynchPol.cs  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := $(subst /,$(SEP),$(CSFILES)) | ||||||
|  | CS_FLAGS = $(CSC_LIBFLAG)  | ||||||
|  | CS_RESOURCES = | ||||||
|  | CS_LIBS =  | ||||||
|  | CS_LIBPATH =   | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | #OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)  | ||||||
|  | 	$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) -out:$@ $(CSFILES_CSC)  | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
							
								
								
									
										34
									
								
								c_sharp/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								c_sharp/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = NSSCSWrapper  | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = NSSCSWrapper  | ||||||
|  |  | ||||||
|  | EXTRA_DIST =    | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										119
									
								
								c_sharp/NSSCSWrapper/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										119
									
								
								c_sharp/NSSCSWrapper/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,119 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | CS_EXTRA_FLAGS = $(CSCFLAGS_DEBUG) | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = *.cs $(CSFILES)  | ||||||
|  |  | ||||||
|  | CASAROOT = ../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME =Novell.CASA.miCASAWrapper | ||||||
|  | MODULE_EXT =dll | ||||||
|  |  | ||||||
|  | CSFILES = $(srcdir)/miCasaException.cs \ | ||||||
|  | 	$(srcdir)/BasicCredential.cs \ | ||||||
|  | 	$(srcdir)/miCASA.cs \ | ||||||
|  | 	$(srcdir)/AssemblyInfo.cs \ | ||||||
|  | 	$(srcdir)/NativeCalls.cs \ | ||||||
|  | 	$(srcdir)/Secret.cs \ | ||||||
|  | 	$(srcdir)/SecretStore.cs  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := $(subst /,$(SEP),$(CSFILES)) | ||||||
|  | CS_FLAGS = /target:"library"  | ||||||
|  | CS_RESOURCES = | ||||||
|  | CS_LIBS =$(CASALIBDIR)/$(TARGET_CFG)/Novell.CASA.Common.dll  | ||||||
|  | CS_LIBPATH = $(CASALIBDIR)/$(TARGET_CFG)  | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | #OBJS = $(addprefix $(OBJDIR)/, $(CSFILES:%.dll=%.cs)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cs $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(CSFILES)  | ||||||
|  | 	$(CSC) $(CS_FLAGS) $(CS_EXTRA_FLAGS) $(CS_LIBS:%=/r:%) $(CS_LIBPATH:%=-lib:%) -out:$@ $(CSFILES_CSC)  | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | #$(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | #	@echo [======== Linking $@ ========] | ||||||
|  | #	$(LINK) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | #	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | 	if [ -d $(TARGET_CFG) ]; then  rm -rf $(TARGET_CFG); fi | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
							
								
								
									
										280
									
								
								configure.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										280
									
								
								configure.in
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,280 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | AC_INIT(auth_token/linux/auth_token.c) | ||||||
|  | AC_CANONICAL_SYSTEM | ||||||
|  | AM_INIT_AUTOMAKE(CASA, 1.6.399) | ||||||
|  | RELEASE=`date +%Y%m%d_%H%M` | ||||||
|  | AC_SUBST(RELEASE) | ||||||
|  | AM_MAINTAINER_MODE | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Check for a valid C# compiler | ||||||
|  | # | ||||||
|  | AC_CHECK_PROG(CSC, csc, csc) | ||||||
|  | test -z "$CSC" && AC_CHECK_PROG(CSC, mcs, mcs) | ||||||
|  | test -z "$CSC" && AC_MSG_ERROR([no acceptable C Sharp compiler found in \$PATH]) | ||||||
|  |  | ||||||
|  | case $CSC in | ||||||
|  |     # | ||||||
|  |     # Mono-specific configuration | ||||||
|  |     # | ||||||
|  |     mcs) | ||||||
|  |         CSC_EXEFLAG=/target:exe | ||||||
|  |         CSC_LIBFLAG=/target:library | ||||||
|  |         CSC_EXEFLAG=/target:exe | ||||||
|  |         CSC_WINEXEFLAG=/target:winexe | ||||||
|  |         CSCFLAGS='/d:MONO /warn:4 /d:TRACE -d:LINUX' | ||||||
|  |         CSCFLAGS_DEBUG="/debug+ /d:DEBUG" | ||||||
|  |         CSCFLAGS_OPTIMIZE="/optimize+" | ||||||
|  |         MONO=mono | ||||||
|  |         MONO_DEBUG='mono --debug' | ||||||
|  |         MONO_PATH= | ||||||
|  |         SYSTEM_XML='System.Xml.dll' | ||||||
|  |     ;; | ||||||
|  |     # | ||||||
|  |     # .NET-specific configuration | ||||||
|  |     # | ||||||
|  |     csc) | ||||||
|  |         CSC_EXEFLAG=/target:exe | ||||||
|  |         CSC_LIBFLAG=/target:library | ||||||
|  |         CSC_EXEFLAG=/target:exe | ||||||
|  |         CSC_WINEXEFLAG=/target:winexe | ||||||
|  |         CSCFLAGS='/d:DOTNET /warn:4 /d:TRACE /nologo' | ||||||
|  |         CSCFLAGS_DEBUG="/debug+ /d:DEBUG" | ||||||
|  |         CSCFLAGS_OPTIMIZE="/optimize+" | ||||||
|  |         MONO= | ||||||
|  |         MONO_DEBUG= | ||||||
|  |         MONO_PATH= | ||||||
|  |         SYSTEM_XML='System.XML.dll' | ||||||
|  |     ;; | ||||||
|  | esac | ||||||
|  | AC_SUBST(CSC) | ||||||
|  | AC_SUBST(CSC_EXEFLAG) | ||||||
|  | AC_SUBST(CSC_LIBFLAG) | ||||||
|  | AC_SUBST(CSC_WINEXEFLAG) | ||||||
|  | AC_SUBST(CSCFLAGS) | ||||||
|  | AC_SUBST(CSCFLAGS_DEBUG) | ||||||
|  | AC_SUBST(MONO) | ||||||
|  | AC_SUBST(MONO_PATH) | ||||||
|  | AC_SUBST(SYSTEM_XML) | ||||||
|  |  | ||||||
|  | SRCDIR='$(top_srcdir)' | ||||||
|  | DOCDIR="$SRCDIR/doc" | ||||||
|  |  | ||||||
|  | AC_SUBST(SRCDIR) | ||||||
|  | AC_SUBST(DOCDIR) | ||||||
|  |  | ||||||
|  | EMPTY= | ||||||
|  | SPACE='$(EMPTY) $(EMPTY)' | ||||||
|  |  | ||||||
|  | AC_SUBST(EMPTY) | ||||||
|  | AC_SUBST(SPACE) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Check for a valid operating system | ||||||
|  | # | ||||||
|  | case $host_os in | ||||||
|  |     linux*) | ||||||
|  |         TARGET_OS='linux' | ||||||
|  |     ;; | ||||||
|  |     cygwin*) | ||||||
|  |         TARGET_OS='windows' | ||||||
|  |     ;; | ||||||
|  |     *) | ||||||
|  |         AC_MSG_ERROR([Unknown host_os: $host_os]) | ||||||
|  |     ;; | ||||||
|  | esac | ||||||
|  | AC_SUBST(TARGET_OS) | ||||||
|  | AM_CONDITIONAL(LINUX, test "$TARGET_OS" = "linux") | ||||||
|  | AM_CONDITIONAL(WINDOWS, test "$TARGET_OS" = "windows") | ||||||
|  |  | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Check for architecture | ||||||
|  | case $target_cpu in | ||||||
|  |     x86_64*) | ||||||
|  |         TARGET_ARCH='X86' | ||||||
|  |     ;; | ||||||
|  |     i*86) | ||||||
|  |         TARGET_ARCH='I586' | ||||||
|  |     ;; | ||||||
|  |     *) | ||||||
|  |         AC_MSG_ERROR([Unknown host_os: $target_cpu]) | ||||||
|  |     ;; | ||||||
|  | esac | ||||||
|  |  | ||||||
|  | AC_SUBST(TARGET_ARCH) | ||||||
|  | AM_CONDITIONAL(X86, test "$TARGET_ARCH" = "X86") | ||||||
|  | AM_CONDITIONAL(I586, test "$TARGET_ARCH" = "I586") | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # | ||||||
|  | # Set platform-specific variables | ||||||
|  | # | ||||||
|  | case $TARGET_OS in | ||||||
|  |     # | ||||||
|  |     # Linux-specific configuration | ||||||
|  |     # | ||||||
|  |     linux) | ||||||
|  |         # | ||||||
|  |         # Set variables | ||||||
|  |         # | ||||||
|  |         COMMON_CLEAN_FILES='' | ||||||
|  |         ICON_EXT='.ico' | ||||||
|  |         ICON_FLAG='/resource:' | ||||||
|  |         PLATFORM_SUBDIRS=$LINUX_SUBDIRS | ||||||
|  |         SEP='/' | ||||||
|  | 	LINK=ld | ||||||
|  |     ;; | ||||||
|  |     # | ||||||
|  |     # Windows-specific configuration | ||||||
|  |     # | ||||||
|  |     windows) | ||||||
|  |         COMMON_CLEAN_FILES='*.suo */*.suo *.csproj.user */*.csproj.user bin obj */bin */obj *.xml */*.xml *.pdb */*.pdb' | ||||||
|  |         ICON_EXT='.ico' | ||||||
|  |         ICON_FLAG='/win32icon:' | ||||||
|  |         PLATFORM_SUBDIRS=$WINDOWS_SUBDIRS | ||||||
|  |         SEP='$(EMPTY)\\$(EMPTY)' | ||||||
|  | 	LINK= | ||||||
|  |     ;; | ||||||
|  | esac | ||||||
|  | AC_SUBST(COMMON_CLEAN_FILES) | ||||||
|  | AC_SUBST(ICON_EXT) | ||||||
|  | AC_SUBST(ICON_FLAG) | ||||||
|  | AC_SUBST(PLATFORM_SUBDIRS) | ||||||
|  | AC_SUBST(SEP) | ||||||
|  | AC_SUBST(LINK) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Run standard macros | ||||||
|  | # | ||||||
|  | AM_PROG_CC_STDC | ||||||
|  | AC_PROG_INSTALL | ||||||
|  | AC_HEADER_STDC | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Handle --enable-debug | ||||||
|  | # | ||||||
|  | AC_ARG_ENABLE(debug, [ | ||||||
|  |   --enable-debug          configure the Makefiles to build in DEBUG mode], | ||||||
|  |     [case "${enableval}" in | ||||||
|  |         yes) enable_debug=true ;; | ||||||
|  |         no)  enable_debug=false ;; | ||||||
|  |         *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; | ||||||
|  |     esac],[enable_debug=false]) | ||||||
|  | AM_CONDITIONAL(DEBUG, test x$enable_debug = xtrue) | ||||||
|  | if test "$enable_debug" = "true" | ||||||
|  | then | ||||||
|  |   # Build debug version. | ||||||
|  |  # CFLAGS="$CFLAGS_DEBUG $CFLAGS -DDBG -DDEBUG" | ||||||
|  |   CFLAGS="$CFLAGS_DEBUG $CFLAGS -g -DDBG -DDEBUG \ | ||||||
|  | -fPIC -DPIC -DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \ | ||||||
|  | -fstack-protector -D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \ | ||||||
|  | -DUNIX -DLINUX -DIAPX38" | ||||||
|  |   CSCFLAGS="$CSCFLAGS_DEBUG $CSCFLAGS" | ||||||
|  |   CXXFLAGS="$CXXFLAGS_DEBUG $CXXFLAGS" | ||||||
|  |   DEVENV_CONFIGURATION=Debug | ||||||
|  |   MONO=$MONO_DEBUG | ||||||
|  | else | ||||||
|  |   # Build optimized version. | ||||||
|  |   CFLAGS="$CFLAGS_OPTIMIZE $CFLAGS -g -fPIC -DPIC \ | ||||||
|  | -DSSCS_LINUX_PLAT_F -O2 -fmessage-length=0 -Wall \ | ||||||
|  | -fstack-protector -D_REENTRANT -DALIGNMENT -DN_PLAT_UNIX \ | ||||||
|  | -DUNIX -DLINUX -DIAPX38" | ||||||
|  |   CSCFLAGS="$CSCFLAGS_OPTIMIZE $CSCFLAGS" | ||||||
|  |   CXXFLAGS="$CXXFLAGS_OPTIMIZE $CXXFLAGS" | ||||||
|  |   DEVENV_CONFIGURATION=Release | ||||||
|  | fi | ||||||
|  | AC_SUBST(CSCFLAGS) | ||||||
|  | AC_SUBST(DEVENV_CONFIGURATION) | ||||||
|  |  | ||||||
|  | # Check for GCC version to add fstack-protector flag | ||||||
|  | # | ||||||
|  |                                                                                                                | ||||||
|  | GCC_VER="`gcc -dumpversion`" | ||||||
|  |                                                                                                                | ||||||
|  | case "$GCC_VER" in | ||||||
|  |         3*) | ||||||
|  | 	;; | ||||||
|  |         4*) | ||||||
|  |         CFLAGS="$CFLAGS -fstack-protector" | ||||||
|  | 	;; | ||||||
|  |         *) | ||||||
|  |         ;; | ||||||
|  | esac | ||||||
|  |                                                                                                                | ||||||
|  | AC_SUBST(GCC_VER) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Configure PKG_CONFIG | ||||||
|  | # | ||||||
|  | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | ||||||
|  | if test "x$PKG_CONFIG" = "xno"; then | ||||||
|  | 	AC_MSG_ERROR([You need to install pkg-config]) | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Configure files | ||||||
|  | # | ||||||
|  | AC_OUTPUT([ | ||||||
|  | Makefile | ||||||
|  | auth_token/Makefile | ||||||
|  | auth_token/linux/Makefile | ||||||
|  | auth_token/PAM/Makefile | ||||||
|  | auth_token/PAM/linux/Makefile | ||||||
|  | auth_token/krb5_token/Makefile | ||||||
|  | auth_token/krb5_token/linux/Makefile | ||||||
|  | c_micasacache/Makefile | ||||||
|  | c_micasacache/linux/Makefile | ||||||
|  | c_common/Makefile | ||||||
|  | c_common/linux/Makefile | ||||||
|  | c_micasadk/Makefile | ||||||
|  | c_micasadk/linux/Makefile | ||||||
|  | c_micasad/lib/Makefile | ||||||
|  | c_micasad/lib/common/Makefile | ||||||
|  | c_micasad/lib/communication/Makefile | ||||||
|  | c_sharp/Makefile | ||||||
|  | c_sharp/NSSCSWrapper/Makefile | ||||||
|  | c_micasad/Makefile | ||||||
|  | c_policy/Makefile | ||||||
|  | c_adlib/ad_kw/native/Makefile | ||||||
|  | c_adlib/ad_kw/Makefile | ||||||
|  | c_adlib/ad_gk/native/Makefile | ||||||
|  | c_adlib/ad_gk/Makefile | ||||||
|  | c_adlib/ad_ff/native/Makefile | ||||||
|  | c_adlib/ad_ff/Makefile | ||||||
|  | c_adlib/Makefile | ||||||
|  | c_gui/Makefile | ||||||
|  | login_capture/Makefile | ||||||
|  | login_capture/PAM/Makefile | ||||||
|  | login_capture/PAM/linux/Makefile | ||||||
|  | c_jwrapper/Makefile | ||||||
|  | c_jwrapper/src/Makefile | ||||||
|  | c_jwrapper/jnsscs/Makefile | ||||||
|  | c_jwrapper/jnsscs/linux/Makefile | ||||||
|  | package/Makefile | ||||||
|  | package/linux/Makefile | ||||||
|  | package/linux/CASA.spec | ||||||
|  | ]) | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
							
								
								
									
										34
									
								
								login_capture/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								login_capture/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = PAM  | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = PAM  | ||||||
|  |  | ||||||
|  | EXTRA_DIST =   | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										34
									
								
								login_capture/PAM/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								login_capture/PAM/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = $(TARGET_OS)  | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = linux  | ||||||
|  |  | ||||||
|  | EXTRA_DIST = *.h *.c  | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										119
									
								
								login_capture/PAM/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										119
									
								
								login_capture/PAM/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,119 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | if DEBUG | ||||||
|  | TARGET_CFG = Debug | ||||||
|  | CFLAGS += -v -w | ||||||
|  | else | ||||||
|  | TARGET_CFG = Release | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | SUBDIRS = | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = | ||||||
|  |  | ||||||
|  | EXTRA_DIST = *.exp  | ||||||
|  |  | ||||||
|  | CASAROOT = ../../.. | ||||||
|  |  | ||||||
|  | if X86 | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib64 | ||||||
|  | else | ||||||
|  | CASALIBDIR = $(CASAROOT)/lib | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | # handle Mono secondary dependencies | ||||||
|  | export MONO_PATH := $(MONO_PATH) | ||||||
|  |  | ||||||
|  | PLATFORMINDEPENDENTSOURCEDIR = .. | ||||||
|  | PLATFORMDEPENDENTSOURCEDIR = . | ||||||
|  |  | ||||||
|  | MODULE_NAME = pam_micasa | ||||||
|  | MODULE_EXT = so | ||||||
|  |  | ||||||
|  | CFILES = ../pam_sscs_utils.c \ | ||||||
|  | 	../pam_sscs.c  | ||||||
|  |  | ||||||
|  | CSFILES_CSC := | ||||||
|  | INCLUDES = -I. -I$(CASAROOT)/include -I/opt/gnome/include/gnome-keyring-1 | ||||||
|  | RESOURCES = | ||||||
|  | DEFINES= -fno-strict-aliasing | ||||||
|  | CFLAGS += $(INCLUDES) $(DEFINES) | ||||||
|  | LIBS =    | ||||||
|  |  | ||||||
|  | LDFLAGS = -Wl,-Bsymbolic -shared -Wl,--version-script=pam_micasa_lux.exp \ | ||||||
|  | 	-Wl,-rpath -Wl,/usr/lib -L/usr/lib  -lpthread -lc -ldl \ | ||||||
|  | 	-lpam -Wl,-soname -Wl,pam_micasa.so | ||||||
|  | if X86 | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib64 | ||||||
|  | else | ||||||
|  | OBJDIR = ./$(TARGET_CFG)/lib | ||||||
|  | endif | ||||||
|  | OBJS = $(addprefix $(OBJDIR)/, $(CFILES:%.c=%.o)) | ||||||
|  |  | ||||||
|  | CUR_DIR := $(shell pwd) | ||||||
|  |  | ||||||
|  | all: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | # | ||||||
|  | # Pattern based rules. | ||||||
|  | # | ||||||
|  | vpath %.c $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  | vpath %.cpp $(PLATFORMDEPENDENTSOURCEDIR) $(PLATFORMINDEPENDENTSOURCEDIR) | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.c | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/%.o: %.cpp | ||||||
|  | 	$(CC) -c $(CFLAGS) -o $@ $< | ||||||
|  |  | ||||||
|  | $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT): $(OBJDIR) $(OBJS) | ||||||
|  | 	@echo [======== Linking $@ ========] | ||||||
|  | 	cc -o $@ $(LDFLAGS) $(OBJS) $(LIBS) | ||||||
|  | 	cp -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(CASALIBDIR)/$(TARGET_CFG)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  |  | ||||||
|  | $(OBJDIR): | ||||||
|  | 	[ -d $(OBJDIR) ] || mkdir -p $(OBJDIR) | ||||||
|  | 	[ -d $(CASALIBDIR) ] || mkdir -p $(CASALIBDIR) | ||||||
|  | 	[ -d $(CASALIBDIR)/$(TARGET_CFG) ] || mkdir -p $(CASALIBDIR)/$(TARGET_CFG) | ||||||
|  |  | ||||||
|  | install-exec-local: $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | 	$(INSTALL_PROGRAM) $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) $(DESTDIR)$(libdir)/ | ||||||
|  |  | ||||||
|  | uninstall-local: | ||||||
|  | 	cd $(DESTDIR)$(libdir); rm -f $(OBJDIR)/$(MODULE_NAME).$(MODULE_EXT) | ||||||
|  | 	rmdir $(DESTDIR)$(libdir) | ||||||
|  |  | ||||||
|  | #installcheck-local: install | ||||||
|  | #	$(mkinstalldirs) $(DESTDIR)$(libdir) | ||||||
|  | #	$(INSTALL_PROGRAM) $(DESTDIR)$(libdir) | ||||||
|  | #	cd $(DESTDIR)$(libdir); $(MONO) | ||||||
|  |  | ||||||
|  | clean-local: | ||||||
|  | #cd $(TARGET_CFG); rm -rf *.dbg *.exe *.dll *.o *.so; cd ..; rmdir $(OBJDIR) | ||||||
|  | 	rm -rf $(TARGET_CFG) | ||||||
|  |  | ||||||
|  | distclean-local: | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										32
									
								
								package/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								package/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  |  | ||||||
|  | SUBDIRS = $(TARGET_OS) | ||||||
|  |  | ||||||
|  | DIST_SUBDIRS = linux | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall | ||||||
|  | package package-clean package-install package-uninstall: | ||||||
|  | 	$(MAKE) -C $(TARGET_OS) $@ | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
							
								
								
									
										268
									
								
								package/linux/CASA.spec.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										268
									
								
								package/linux/CASA.spec.in
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,268 @@ | |||||||
|  | # | ||||||
|  | # spec file for package CASA (Version 1.6.0) | ||||||
|  | # | ||||||
|  | # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. | ||||||
|  | # This file and all modifications and additions to the pristine | ||||||
|  | # package are under the same license as the package itself. | ||||||
|  | # | ||||||
|  | # Please submit bugfixes or comments via http://bugs.opensuse.org | ||||||
|  | # | ||||||
|  |  | ||||||
|  | # norootforbuild | ||||||
|  |  | ||||||
|  | ## for debug, uncomment the following lines | ||||||
|  | # %define cfg Debug | ||||||
|  | # %define debug_opt --enable-debug | ||||||
|  |  | ||||||
|  | # For debug build, please commnent out the following lines | ||||||
|  | %define cfg Release | ||||||
|  | %define debug_opt "" | ||||||
|  |                                                                                                                             | ||||||
|  |  | ||||||
|  | Name:          @PACKAGE@  | ||||||
|  | URL:          http://www.novell.com/products | ||||||
|  | BuildRequires:  gcc-c++ glade-sharp glib-sharp glib2-devel gnome-filesystem gnome-keyring-devel gtk-sharp gtk-sharp-gapi gtk2-devel java2-devel-packages kdelibs3-devel krb5-devel libgssapi libstdc++-devel mono-devel pam-devel pkgconfig qt3-devel | ||||||
|  | %define prefix		/usr/share/doc/packages | ||||||
|  | %define bin_prefix	/usr | ||||||
|  | License:       LGPL | ||||||
|  | Group:         Productivity/Other | ||||||
|  | Autoreqprov:   on | ||||||
|  | %define	       bldno	1.1.1 | ||||||
|  | Version:       @VERSION@  | ||||||
|  | Release:       0 | ||||||
|  | Summary:       Novell Common Authentication Service Adapter (CASA) | ||||||
|  | Source:        %{name}-%{version}.tar.bz2 | ||||||
|  | #Patch:	       %{name}-%{version}.dif | ||||||
|  | #Patch2:        CASA-detect_lib64.patch | ||||||
|  | BuildRoot:     %{_tmppath}/%{name}-%{version}-build | ||||||
|  | Requires:      mono >= 1.1.13 mono-core >= 1.1.13  | ||||||
|  | PreReq:        %fillup_prereq %insserv_prereq | ||||||
|  | #ExclusiveArch: %ix86 x86_64 | ||||||
|  | #NoSource:     0 | ||||||
|  |  | ||||||
|  | %description | ||||||
|  | CASA (Common Authentication Services Adaptor) is a common authentication  | ||||||
|  | and security package providing a set of libraries for application and  | ||||||
|  | service developers to provide single sign-on to an enterprise network.  | ||||||
|  | CASA provides a local on box credential store that is purely session  | ||||||
|  | based in 1.0. This store is populated with your Desktop and Network Login  | ||||||
|  | credentials on Novell Linux Desktop, Windows and Apple workstations. | ||||||
|  |  | ||||||
|  | %package devel | ||||||
|  | Summary:      Include Files and Libraries mandatory for Development. | ||||||
|  | Group:        Productivity/Other | ||||||
|  | Requires:     CASA >= 1.0.0 | ||||||
|  | Provides:     CASA-devel | ||||||
|  |  | ||||||
|  | %description devel  | ||||||
|  | This package contains all necessary include files and libraries needed | ||||||
|  | to develop applications that can use CASA (Common Authnetication Services Adapter)  | ||||||
|  | for credential storage and single sign-on. | ||||||
|  |  | ||||||
|  | %package gui | ||||||
|  | Summary:      The CASA Console Utility | ||||||
|  | Group:        Productivity/Other | ||||||
|  | Requires:     CASA = %{version} gtk-sharp >= 1.0.9 kdelibs3 >= 3.2.1 gtk2 >= 2.4.14 | ||||||
|  | Provides:     CASA-gui | ||||||
|  |  | ||||||
|  | %description gui  | ||||||
|  | This package contains the CASA (Common Authnetication Services Adapter)  | ||||||
|  | Management application that allows you to manage credentials within CASA  | ||||||
|  | and for your kwallet gnome keyring.  Additionally, you can also link secrets  | ||||||
|  | to one another. | ||||||
|  |  | ||||||
|  | %prep | ||||||
|  | %setup -q | ||||||
|  | #%patch2 | ||||||
|  | %if %{_lib} == "lib64" | ||||||
|  | %define binsource bin64 | ||||||
|  | %else | ||||||
|  | %define binsource bin | ||||||
|  | %endif | ||||||
|  |  | ||||||
|  |  | ||||||
|  | %build | ||||||
|  | export PATH=.:$PATH:/usr/%_lib/qt3/bin | ||||||
|  | #export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -fstack-protector" | ||||||
|  | ./autogen.sh  | ||||||
|  | make | ||||||
|  |  | ||||||
|  | %install | ||||||
|  |  | ||||||
|  | mkdir -p %{buildroot}%{prefix} | ||||||
|  | mkdir -p %{buildroot}%{prefix}/CASA | ||||||
|  | mkdir -p %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | mkdir -p %{buildroot}%{bin_prefix}/bin | ||||||
|  | mkdir -p %{buildroot}%{bin_prefix}/sbin | ||||||
|  | mkdir -p %{buildroot}%{bin_prefix}/include | ||||||
|  | mkdir -p %{buildroot}%{prefix}/CASA/images | ||||||
|  | mkdir -p %{buildroot}%{prefix}/CASA/help | ||||||
|  | mkdir -p %{buildroot}%{prefix}/CASA/help/en | ||||||
|  | mkdir -p %{buildroot}%{prefix}/CASA/doc | ||||||
|  | mkdir -p %{buildroot}/%{_lib}/security | ||||||
|  | mkdir -p %{buildroot}/etc/init.d | ||||||
|  | mkdir -p %{buildroot}/etc/ld.so.conf.d | ||||||
|  |  | ||||||
|  | install -m 755 %{_lib}/%{cfg}/libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/libkwallets_rw.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/libad_ff.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/Novell.CASA.miCASAWrapper.dll %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/Novell.CASA.Common.dll %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/Novell.CASA.A-D.dll %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/Novell.CASA.CASAPolicy.dll %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/Novell.CASA.DataEngines.GnomeKeyring.dll %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/Novell.CASA.DataEngines.KWallet.dll %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -m 755 %{_lib}/%{cfg}/Novell.CASA.DataEngines.FireFox.dll %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  |  | ||||||
|  | install -m 755 %{binsource}/%{cfg}/micasad.exe %{buildroot}%{bin_prefix}/bin | ||||||
|  | install -m 755 %{binsource}/%{cfg}/CASAManager.exe %{buildroot}%{bin_prefix}/bin | ||||||
|  | install -m 755 c_gui/CASAManager.sh %{buildroot}%{bin_prefix}/bin | ||||||
|  | install -m 755 c_gui/CASAManager.exe.config %{buildroot}%{bin_prefix}/bin | ||||||
|  | install -m 755 c_gui/images/* %{buildroot}%{prefix}/CASA/images | ||||||
|  | install -m 755 c_gui/help/en/* %{buildroot}%{prefix}/CASA/help/en | ||||||
|  | install -m 755 c_micasad/startup/micasad %{buildroot}/etc/init.d | ||||||
|  | install -m 755 c_micasad/startup/micasad.sh %{buildroot}%{bin_prefix}/sbin | ||||||
|  | install -m 755 c_micasad/startup/casacfgpam %{buildroot}%{bin_prefix}/sbin | ||||||
|  | install -m 755 c_micasad/startup/casaucfgpam %{buildroot}%{bin_prefix}/sbin | ||||||
|  |  | ||||||
|  | install -m 755 %{_lib}/%{cfg}/pam_micasa.so %{buildroot}/%{_lib}/security | ||||||
|  |  | ||||||
|  | install -d %{buildroot}%{bin_prefix}/%{_lib} | ||||||
|  | install -d %{buildroot}%{bin_prefix}/bin | ||||||
|  | install -d %{buildroot}%{bin_prefix}/sbin | ||||||
|  | install -d %{buildroot}%{bin_prefix}/include | ||||||
|  | install -d %{buildroot}%{prefix}/CASA/doc | ||||||
|  | install -d %{buildroot}%{prefix}/CASA/images | ||||||
|  | install -d %{buildroot}%{prefix}/CASA/help/en | ||||||
|  | install -d %{buildroot}/%{_lib}/security | ||||||
|  | install -d %{buildroot}/etc/init.d | ||||||
|  |  | ||||||
|  | #install -m 644 %{buildroot}%{prefix}/%{_lib}/miCASA.jar %{buildroot}%{prefix}/CASA/%{_lib} | ||||||
|  |  | ||||||
|  | install -m 644 doc/CASA_Reference_Guide.pdf %{buildroot}%{prefix}/CASA/doc | ||||||
|  | install -m 644 doc/License.txt %{buildroot}%{prefix}/CASA/doc | ||||||
|  | install -m 644 doc/Readme.txt %{buildroot}%{prefix}/CASA/doc | ||||||
|  | install -m 644 include/micasa_mgmd.h %{buildroot}%{bin_prefix}/include | ||||||
|  | install -m 644 include/micasa_types.h %{buildroot}%{bin_prefix}/include | ||||||
|  |  | ||||||
|  | ln -s libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libmicasa.so | ||||||
|  | ln -s libmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libmicasa.so.1 | ||||||
|  | ln -s libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libjmicasa.so | ||||||
|  | ln -s libjmicasa.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libjmicasa.so.1 | ||||||
|  | #ln -s miCASA.jar %{buildroot}%{bin_prefix}/CASA/%{_lib}/jmiCASA.jar | ||||||
|  |  | ||||||
|  | ln -s libkwallets_rw.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libkwallets_rw.so | ||||||
|  | ln -s libkwallets_rw.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libkwallets_rw.so.1 | ||||||
|  |  | ||||||
|  | ln -s libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_gk.so | ||||||
|  | ln -s libad_gk.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_gk.so.1 | ||||||
|  |  | ||||||
|  | ln -s libad_ff.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_ff.so | ||||||
|  | ln -s libad_ff.so.%{bldno} %{buildroot}%{bin_prefix}/%{_lib}/libad_ff.so.1 | ||||||
|  |  | ||||||
|  | ln -s /etc/init.d/micasad %{buildroot}%{bin_prefix}/sbin/rcmicasad  | ||||||
|  | echo "/usr/%{_lib}/" >> %{buildroot}/etc/ld.so.conf.d/CASA.conf | ||||||
|  |  | ||||||
|  | install -d %{buildroot}/usr/share/applications | ||||||
|  | install c_gui/CASAManager.desktop %{buildroot}/usr/share/applications | ||||||
|  | %suse_update_desktop_file CASAManager | ||||||
|  |   | ||||||
|  | %post | ||||||
|  | echo " " | ||||||
|  | %{fillup_and_insserv -y micasad} | ||||||
|  | echo " " | ||||||
|  | #if [ "x$1" == "x1" ] || [ "x$1" == "x2" ] | ||||||
|  | #then | ||||||
|  | #	casacfgpam | ||||||
|  | #fi | ||||||
|  | /usr/sbin/casacfgpam | ||||||
|  | /sbin/ldconfig | ||||||
|  |  | ||||||
|  | %post gui | ||||||
|  | /sbin/ldconfig | ||||||
|  | %preun | ||||||
|  | %stop_on_removal micasad | ||||||
|  | if [ "x$1" == "x0" ] | ||||||
|  | then | ||||||
|  | 	/usr/sbin/casaucfgpam | ||||||
|  | fi | ||||||
|  |  | ||||||
|  |  | ||||||
|  | %postun | ||||||
|  | %restart_on_update | ||||||
|  |  | ||||||
|  | %insserv_cleanup | ||||||
|  | /sbin/ldconfig | ||||||
|  |  | ||||||
|  | %postun gui | ||||||
|  | /sbin/ldconfig | ||||||
|  | %clean | ||||||
|  | rm -rf $RPM_BUILD_ROOT | ||||||
|  |  | ||||||
|  | %files | ||||||
|  | %defattr(-,root,root) | ||||||
|  | %dir %{prefix}/CASA | ||||||
|  | %dir %{prefix}/CASA/doc | ||||||
|  | %dir %{bin_prefix}/%{_lib}/libmicasa.so.%{bldno} | ||||||
|  | %dir %{bin_prefix}/%{_lib}/libmicasa.so | ||||||
|  | %dir %{bin_prefix}/%{_lib}/libmicasa.so.1 | ||||||
|  | %dir %{bin_prefix}/%{_lib}/libjmicasa.so.%{bldno} | ||||||
|  | %dir %{bin_prefix}/%{_lib}/libjmicasa.so | ||||||
|  | %dir %{bin_prefix}/%{_lib}/libjmicasa.so.1 | ||||||
|  | %dir %{bin_prefix}/%{_lib}/Novell.CASA.miCASAWrapper.dll | ||||||
|  | %dir %{bin_prefix}/%{_lib}/Novell.CASA.Common.dll | ||||||
|  |  | ||||||
|  | /etc/init.d/micasad | ||||||
|  | /%{_lib}/security/pam_micasa.so | ||||||
|  | /etc/ld.so.conf.d/CASA.conf | ||||||
|  |  | ||||||
|  | %{bin_prefix}/sbin/rcmicasad | ||||||
|  | %{bin_prefix}/sbin/casacfgpam | ||||||
|  | %{bin_prefix}/sbin/casaucfgpam | ||||||
|  | %{bin_prefix}/sbin/micasad.sh | ||||||
|  |  | ||||||
|  | %{bin_prefix}/bin/micasad.exe | ||||||
|  |  | ||||||
|  | %{prefix}/CASA/doc/CASA_Reference_Guide.pdf | ||||||
|  | %{prefix}/CASA/doc/License.txt | ||||||
|  | %{prefix}/CASA/doc/Readme.txt | ||||||
|  |  | ||||||
|  |  | ||||||
|  | %files devel  | ||||||
|  | %defattr(-,root,root) | ||||||
|  | %{bin_prefix}/include/micasa_mgmd.h | ||||||
|  | %{bin_prefix}/include/micasa_types.h | ||||||
|  |  | ||||||
|  |  | ||||||
|  | %files gui | ||||||
|  | %defattr(-,root,root) | ||||||
|  | %{bin_prefix}/bin/CASAManager.sh | ||||||
|  | %{bin_prefix}/bin/CASAManager.exe.config | ||||||
|  | %{bin_prefix}/bin/CASAManager.exe | ||||||
|  | %{bin_prefix}/share/applications/CASAManager.desktop | ||||||
|  |  | ||||||
|  | %{bin_prefix}/%{_lib}/libad_gk.so.%{bldno} | ||||||
|  | %{bin_prefix}/%{_lib}/libad_gk.so | ||||||
|  | %{bin_prefix}/%{_lib}/libad_gk.so.1 | ||||||
|  | %{bin_prefix}/%{_lib}/libkwallets_rw.so.%{bldno} | ||||||
|  | %{bin_prefix}/%{_lib}/libkwallets_rw.so | ||||||
|  | %{bin_prefix}/%{_lib}/libkwallets_rw.so.1 | ||||||
|  | %{bin_prefix}/%{_lib}/libad_ff.so.%{bldno} | ||||||
|  | %{bin_prefix}/%{_lib}/libad_ff.so | ||||||
|  | %{bin_prefix}/%{_lib}/libad_ff.so.1 | ||||||
|  | %{bin_prefix}/%{_lib}/Novell.CASA.A-D.dll | ||||||
|  | %{bin_prefix}/%{_lib}/Novell.CASA.CASAPolicy.dll | ||||||
|  | %{bin_prefix}/%{_lib}/Novell.CASA.DataEngines.GnomeKeyring.dll | ||||||
|  | %{bin_prefix}/%{_lib}/Novell.CASA.DataEngines.KWallet.dll | ||||||
|  | %{bin_prefix}/%{_lib}/Novell.CASA.DataEngines.FireFox.dll | ||||||
|  |  | ||||||
|  | %dir %{prefix}/CASA/images | ||||||
|  | %{prefix}/CASA/images/* | ||||||
|  |  | ||||||
|  | %dir %{prefix}/CASA/help | ||||||
|  | %dir %{prefix}/CASA/help/en | ||||||
|  | %{prefix}/CASA/help/en/* | ||||||
|  |  | ||||||
|  | %changelog -n CASA | ||||||
							
								
								
									
										67
									
								
								package/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								package/linux/Makefile.am
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,67 @@ | |||||||
|  | ####################################################################### | ||||||
|  | # | ||||||
|  | #  Copyright (C) 2006 Novell, Inc. | ||||||
|  | # | ||||||
|  | #  This program is free software; you can redistribute it and/or | ||||||
|  | #  modify it under the terms of the GNU General Public | ||||||
|  | #  License as published by the Free Software Foundation; either | ||||||
|  | #  version 2 of the License, or (at your option) any later version. | ||||||
|  | # | ||||||
|  | #  This program is distributed in the hope that it will be useful, | ||||||
|  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU | ||||||
|  | #  General Public License for more details. | ||||||
|  | # | ||||||
|  | #  You should have received a copy of the GNU General Public | ||||||
|  | #  License along with this program; if not, write to the Free | ||||||
|  | #  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||||||
|  | # | ||||||
|  | # | ||||||
|  | ####################################################################### | ||||||
|  | #how do you get the version?? | ||||||
|  | RPM_FILE = $(PACKAGE)-$(VERSION)-$(RELEASE).$(target_cpu).rpm | ||||||
|  | #SRPM_FILE = $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm | ||||||
|  | SRPM_FILE = $(PACKAGE)-$(VERSION)*.src.rpm | ||||||
|  |  | ||||||
|  | SPEC_FILE = CASA.spec | ||||||
|  |  | ||||||
|  | .PHONY: package package-clean package-install package-uninstall casa | ||||||
|  |  | ||||||
|  | #all: $(RPM_FILE) | ||||||
|  |  | ||||||
|  | package: $(RPM_FILE) | ||||||
|  |  | ||||||
|  | all clean: | ||||||
|  |  | ||||||
|  | $(RPM_FILE): | ||||||
|  | 	cd $(top_srcdir); make dist-bzip2 | ||||||
|  | 	rm -rf RPM | ||||||
|  | 	mkdir RPM | ||||||
|  | 	echo %_topdir `pwd`/RPM > $(HOME)/.rpmmacros | ||||||
|  | 	mkdir -p RPM/BUILD | ||||||
|  | 	mkdir -p RPM/RPMS | ||||||
|  | 	mkdir -p RPM/SOURCES | ||||||
|  | 	mkdir -p RPM/SPECS | ||||||
|  | 	mkdir -p RPM/SRPMS | ||||||
|  | 	cp $(SPEC_FILE) RPM/SPECS | ||||||
|  | 	cp $(top_srcdir)/$(PACKAGE)-*.tar.bz2 RPM/SOURCES | ||||||
|  | 	mv $(top_srcdir)/$(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION).tar.bz2  | ||||||
|  | 	rpmbuild -ba -v -vv --target=$(target_triplet) RPM/SPECS/$(SPEC_FILE) | ||||||
|  | 	cp RPM/RPMS/*/*.rpm . | ||||||
|  | 	cp RPM/SRPMS/$(SRPM_FILE) . | ||||||
|  |  | ||||||
|  | package-install: package | ||||||
|  | 	su -c "rpm -Uvh $(RPM_FILE)" | ||||||
|  | 	 | ||||||
|  | package-uninstall: | ||||||
|  | 	su -c "rpm -e $(PACKAGE)" | ||||||
|  |  | ||||||
|  | package-clean clean-local: | ||||||
|  | 	rm -rf *.rpm RPM *.bz2 | ||||||
|  |  | ||||||
|  | distclean-local: package-clean | ||||||
|  | 	rm -f Makefile $(SPEC_FILE) | ||||||
|  |  | ||||||
|  | maintainer-clean-local: | ||||||
|  | 	rm -f Makefile.in | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user