Notary: Difference between revisions
From Elch-Wiki
				
				
				Jump to navigationJump to search
				
				
| (2 intermediate revisions by the same user not shown) | |||
| Line 30: | Line 30: | ||
* openssl_LIBRARIES=/sw/lib/libssl.a  | * openssl_LIBRARIES=/sw/lib/libssl.a  | ||
Manually patched:  | |||
* common/server_common.h:  | * common/server_common.h:  | ||
     - #include <stdint.h> commented out  | |||
     + #include <sys/int_types.h>   |      + #include <sys/int_types.h> added  | ||
* common/net_util.c:    | * common/net_util.c:    | ||
     + #define gethostbyname2(host,family)  gethostbyname((host))     |      + #define gethostbyname2(host,family)  gethostbyname((host))   added  | ||
Then:   | |||
./do make    | |||
./do make install  | |||
== Test cases ==  | |||
curl -v 'http://stinky.trash.net:18080/?host=volution.ro&port=443&service_type=2'  | |||
Latest revision as of 08:33, 4 March 2010
How to download the notary code
In order to clone the Git repository you'll have to do:
- install Git (see http://git-scm.com/);
 - clone the repository with the following command:
 
git clone git://hephaistos.info.uvt.ro/perspectives/server.git
Prerequisites before building
- cmake must be installed
 - Berkeley-DB 4.8.x must be installed
 
How to build a notary server on trash.net
First let the defaults be set by calling ./do configure
Then change settings in ./do configure-ui:
- additional_INCLUDE_DIR=/sw/include
 - additional_LIBRARIES=socket;resolv;rt
 
- bdb_INCLUDE_DIR=/sw/pkgs/db-4.8.26/include
 - bdb_LIBRARIES=/sw/pkgs/db-4.8.26/lib/libdb.a
 
- crypto_INCLUDE_DIR=/sw/include
 - crypto_LIBRARIES=/sw/lib/libcrypto.a
 
- notary_http_listen_IP=213.144.137.162
 - notary_http_listen_PORT=18080
 
- openssl_INCLUDE_DIR=/sw/include
 - openssl_LIBRARIES=/sw/lib/libssl.a
 
Manually patched:
- common/server_common.h:
 
- #include <stdint.h> commented out + #include <sys/int_types.h> added
- common/net_util.c:
 
+ #define gethostbyname2(host,family) gethostbyname((host)) added
Then: 
./do make 
./do make install
Test cases
curl -v 'http://stinky.trash.net:18080/?host=volution.ro&port=443&service_type=2'