- clone
aaa
(添加用户(登录)密码的模块)
cd /home/coretek/git/
git clone git clone https://github.com/oVirt/ovirt-engine-extension-aaa-jdbc.git
- 添加
lib
image.png
cd /home/coretek/git/ovirt-engine-extension-aaa-jdbc/
mkdir lib
注:从一个同版本的ovirt运行环境的/usr/share/java
目录下复制slf4j-jdk14.jar
slf4j-api.jar
postgresql-jdbc.jar
ovirt-engine-extensions-api.jar
jackson-mapper-asl.jar
jackson-core-asl.jar
commons-lang.jar
commons-codec.jar
包到 lib目录下,如图
- 编译
方法1:
修改编译出来的目录:
vi Makefile
PREFIX=/home/coretek/ovirt-engine
编译:
image.pngmake clean install
查看:在/home/coretek/ovirt-engine/share
目录下看到有ovirt-engine-extension-aaa-jdbc
的包
方法2:
make clean install PREFIX="$HOME/ovirt-engine"
engine-setup
注:
image.pngengine-setup
之后可以看到数据库中有aaa_jdbc
的模式
- 构建出rpm包
- 打包:
make dist
修改:ovirt-engine-extensions-api.jar
包路径
vi /home/coretek/rpmbuild/BUILD/ovirt-engine-extension-aaa-jdbc-1.1.8/build.properties
... jar.ovirt-engine-extensions-api=/home/coretek/git/ovirt-engine-extension-aaa-jdbc/lib/ovirt-engine-extensions-api.jar ...
- 安装包
yum localinstall -y ovirt-engine-extensions-api-impl-4.2.3.5-1.el7.centos.noarch.rpm jackson-core-2.6.3-1.el7.noarch.rpm jackson-1.9.4-7.el7.noarch.rpm postgresql-jdbc-9.2.1002-5.el7.noarch.rpm
注:ovirt-engine-extensions-api-impl-4.2.3.5-1.el7.centos.noarch.rpm
是ovirt-engine
编译出来的包,路径是/home/coretek/rpmbuild/RPMS/ovirt-engine-pkg/ovirt-engine-extensions-api-impl-4.2.3.5-1.el7.centos.noarch.rpm
- 构建rpm:
rpmbuild -tb ovirt-engine-extension-aaa-jdbc-1.1.8_master.tar.gz
网友评论