Commands to install development environment on a blank CentOS install:
Executed as root (user "mark" is only used as an example, replace with your own username):
yum install java-1.6.0-openjdk-develyum install libpcap-develyum install rpmrebuildyum install gcc-c++yum install ant-nodeps (needed for "javah" task)yum install ant-junit (optional) install junit for running the ant "test" targetyum install subversionuseradd markpasswd marksu - marksvn co https://jnetpcap.svn.sourceforge.net/svnroot/jnetpcap/jnetpcap/trunk jnetpcapTo checkout a specific branch such as for release jnetpcap 1.3:
svn co https://jnetpcap.svn.sourceforge.net/svnroot/jnetpcap/jnetpcap/branches/branch-1.3 jnp_1.3Note: please note the use of '_' (underscore) in the directory name. This is required by 'rpmbuild' tool if you plan on building rpm packages. The rpmbuild tool converts dashes into underscores causing problems with the build process. Therefore it is recommended to use underscores when naming the top level build directory.
su ant clean test #if everything tested OK exit
ant -Dos=centos5 clean package-rpm
rpm -iv dist/jnetpcap-1.3.b0003-centos5.i386.rpm
ls -l /usr/lib/libjnetcap*lrwxrwxrwx 1 root root 33 Jul 4 17:33 /usr/lib/libjnetpcap.so -> /usr/lib/libjnetpcap.so.1.3.b0003 -rw-r--r-- 1 root root 1193147 Jul 4 17:29 /usr/lib/libjnetpcap.so.1.3.b0003
ls -l /usr/share/java/jnetpcap*
-rw-r--r-- 1 root root 463175 Jul 4 17:29 /usr/share/java/jnetpcap-1.3.b0003.jar lrwxrwxrwx 1 root root 38 Jul 4 17:33 /usr/share/java/jnetpcap.jar -> /usr/share/java/jnetpcap-1.3.b0003.jar
ls /usr/share/doc/jnetpcap*javadoc
Other names that should be used with the "-Dos=" argument to ant during build. You can substitute the major OS version number at the end:
This example assumes that we are taking a snapshot of the latest state of the development trunk (SVN trunk) which is assigned a build number (defined in file build.number in jnetpcap working directory). Build numbers are incremented after each official or internal build by jnetpcap builders.