Gabriele Contini
2019-12-14 3d0e4a9b2134d05d1a652e10273187690fe634ff
fix centos 7 remove centos 8
3个文件已修改
53 ■■■■■ 已修改文件
.travis.yml 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CMakeLists.txt 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.travis.yml
@@ -90,22 +90,22 @@
     script: 
        - docker run --name centos7_make -v `pwd`:/root/open-license-manager centos7_configured /bin/bash -c 
            "cd /root/open-license-manager/build && make && make install && VIRT_ENV=CONTAINER make test"
   - os: linux
     dist: bionic
     name: "CentOS-8 Docker"
     before_script:
        - docker run --name centos8_toconfigure -v `pwd`:/root/open-license-manager centos:centos8 /bin/bash -c \
            "yum -y update && yum -y groupinstall 'Development Tools' &&
             yum -y install wget cmake boost boost-devel openssl-devel zlib-devel &&
             dnf -y --enablerepo=PowerTools install boost-static &&
             wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1d.tar.gz &&
             tar xzf OpenSSL_1_1_1d.tar.gz && cd openssl-OpenSSL_1_1_1d &&
             ./config && make -j 8 && make install &&
             cd /root/open-license-manager/build && cmake .."
        - docker commit centos8_toconfigure centos8_configured
     script:
        - docker run --name centos8_make -v `pwd`:/root/open-license-manager centos8_configured /bin/bash -c \
            "cd /root/open-license-manager/build && make && make install && VIRT_ENV=CONTAINER make test"
#   - os: linux
#     dist: bionic
#     name: "CentOS-8 Docker"
#     before_script:
#        - docker run --name centos8_toconfigure -v `pwd`:/root/open-license-manager centos:centos8 /bin/bash -c \
#            "yum -y update && yum -y groupinstall 'Development Tools' &&
#             yum -y install wget cmake boost boost-devel openssl-devel zlib-devel &&
#             dnf -y --enablerepo=PowerTools install boost-static &&
#             wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1d.tar.gz &&
#             tar xzf OpenSSL_1_1_1d.tar.gz && cd openssl-OpenSSL_1_1_1d &&
#             ./config && make -j 8 && make install &&
#             cd /root/open-license-manager/build && cmake .."
#        - docker commit centos8_toconfigure centos8_configured
#     script:
#        - docker run --name centos8_make -v `pwd`:/root/open-license-manager centos8_configured /bin/bash -c \
#            "cd /root/open-license-manager/build && make && make install && VIRT_ENV=CONTAINER make test"
   - os: linux
     dist: bionic
     name: "Ubuntu 18.04 - MinGW cross-compile for Windows x64"
CMakeLists.txt
@@ -45,6 +45,12 @@
        MESSAGE(SEND_ERROR "Openssl required in Linux, please install it or specify -DOPENSSL_ROOT")
    ENDIF(NOT OPENSSL_FOUND)
    
    #Zlib required when openssl version < 1.0.1f (centos 7)
    SET ( ZLIB_USE_STATIC_LIBS ON )
    find_package(ZLIB REQUIRED)
    list(APPEND EXTERNAL_LIBS ${ZLIB_LIBRARIES})
    MESSAGE(STATUS "Found zlib version ${ZLIB_VERSION} ")
    find_package(Threads)
    if(THREADS_HAVE_PTHREAD_ARG)
          list(APPEND EXTERNAL_LIBS "-pthread")
README.md
@@ -83,21 +83,8 @@
How to use
==========
This simple example shows how to integrate open-licence-manager into your project
The [examples](https://github.com/open-license-manager/examples) repository that shows various ways to integrate `open-licence-manager` into your project.
```
$ cd example
$ cmake .
$ make
$ ./example
license ERROR :
    license file not found
the pc signature is :
    Jaaa-aaaa-MG9F-ZhBB
$ ../install/bin/license_generator example -s Jaaa-aaaa-MG9F-ZhBB -o example.lic
$ ./example
licence OK
```
# How to contribute
The project is not dead but we take our time to answer. The best interaction you can have with us is through the issue system. Have a look to the [contribution guidelines](CONTRIBUTING.md)