diff options
| author | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-19 17:44:32 +0000 |
|---|---|---|
| committer | asn <asn@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-10-19 17:44:32 +0000 |
| commit | 14f8a716bdbc8fc61d1b8be190b0985cf6e5cbca (patch) | |
| tree | a52010de203036d11a66590fa41b51a45a5e8616 | |
| parent | e9f5ff65b058ed6df931d7604adc6d417ff415e8 (diff) | |
cmake: Added oscp java build.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1387 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
| -rw-r--r-- | pki/base/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | pki/base/ocsp/CMakeLists.txt | 39 | ||||
| -rw-r--r-- | pki/base/ocsp/setup/CMakeLists.txt | 10 | ||||
| -rw-r--r-- | pki/base/ocsp/setup/config.desktop.in | 31 | ||||
| -rw-r--r-- | pki/base/ocsp/src/CMakeLists.txt | 42 |
5 files changed, 123 insertions, 0 deletions
diff --git a/pki/base/CMakeLists.txt b/pki/base/CMakeLists.txt index d70fa0eb2..e73f71684 100644 --- a/pki/base/CMakeLists.txt +++ b/pki/base/CMakeLists.txt @@ -13,3 +13,4 @@ add_subdirectory(selinux) add_subdirectory(silent) add_subdirectory(ca) add_subdirectory(kra) +add_subdirectory(ocsp) diff --git a/pki/base/ocsp/CMakeLists.txt b/pki/base/ocsp/CMakeLists.txt new file mode 100644 index 000000000..93fabbb5a --- /dev/null +++ b/pki/base/ocsp/CMakeLists.txt @@ -0,0 +1,39 @@ +project(ocsp Java) + +add_subdirectory(src) +add_subdirectory(setup) + +# install init script +install( + FILES + shared/etc/init.d/pki-ocspd + DESTINATION + ${SYSCONF_INSTALL_DIR}/init.d + PERMISSIONS + OWNER_EXECUTE OWNER_WRITE OWNER_READ + GROUP_EXECUTE GROUP_READ + WORLD_EXECUTE WORLD_READ +) + +install( + FILES + shared/conf/dtomcat5 + DESTINATION + ${SHARE_INSTALL_PREFIX}/${APPLICATION_NAME}/${PROJECT_NAME} + PERMISSIONS + OWNER_EXECUTE OWNER_WRITE OWNER_READ + GROUP_EXECUTE GROUP_READ + WORLD_EXECUTE WORLD_READ +) + +# install directories +install( + DIRECTORY + shared/ + DESTINATION + ${SHARE_INSTALL_PREFIX}/${APPLICATION_NAME}/${PROJECT_NAME} + PATTERN + "shared/conf/dtomcat5" EXCLUDE + PATTERN + "etc/*" EXCLUDE +) diff --git a/pki/base/ocsp/setup/CMakeLists.txt b/pki/base/ocsp/setup/CMakeLists.txt new file mode 100644 index 000000000..9c8713a7f --- /dev/null +++ b/pki/base/ocsp/setup/CMakeLists.txt @@ -0,0 +1,10 @@ +set(VERSION ${APPLICATION_VERSION}) + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/config.desktop @ONLY) + +install( + FILES + ${CMAKE_CURRENT_BINARY_DIR}/config.desktop + DESTINATION + ${SHARE_INSTALL_PREFIX}/${APPLICATION_NAME}/${PROJECT_NAME}/setup +) diff --git a/pki/base/ocsp/setup/config.desktop.in b/pki/base/ocsp/setup/config.desktop.in new file mode 100644 index 000000000..be5f5cf88 --- /dev/null +++ b/pki/base/ocsp/setup/config.desktop.in @@ -0,0 +1,31 @@ +# --- BEGIN COPYRIGHT BLOCK --- +# 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; version 2 of the License. +# +# 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. +# +# Copyright (C) 2007 Red Hat, Inc. +# All rights reserved. +# --- END COPYRIGHT BLOCK --- +# +[Desktop Entry] +Version=@VERSION@ +Encoding=UTF-8 +Name=Online Certificate Status Protocol Manager Configuration - [PKI_INSTANCE_ID] +GenericName=Online Certificate Status Protocol Manager Configuration +Comment=Configure Online Certificate Status Protocol Manager +Exec=firefox https://[PKI_MACHINE_NAME]:[PKI_SECURE_PORT]/ocsp/admin/console/config/login?pin=[PKI_RANDOM_NUMBER] +Icon=firefox.png +Terminal=false +Type=Application +MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml; +X-Desktop-File-Install-Version=0.9 +Categories=Application;CertServer; diff --git a/pki/base/ocsp/src/CMakeLists.txt b/pki/base/ocsp/src/CMakeLists.txt new file mode 100644 index 000000000..e43e4be82 --- /dev/null +++ b/pki/base/ocsp/src/CMakeLists.txt @@ -0,0 +1,42 @@ +project(ocsp_java Java) + +set(OCSP_JAVA_OBJECT_DIR "${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/ocsp.dir/" PARENT_SCOPE) +set(OCSP_JAR "${CMAKE_CURRENT_BINARY_DIR}/ocsp.jar" CACHE INTERNAL "ocsp jar file") + +find_file(JSS_JAR + NAMES + jss4.jar + PATHS + /usr/lib/java + /usr/share/java +) + +find_file(LDAPJDK_JAR + NAMES + ldapjdk.jar + PATHS + /usr/lib/java + /usr/share/java +) + +set(ocsp_java_SRCS + com/netscape/ocsp/OCSPResources.java + com/netscape/ocsp/OCSPAuthority.java + com/netscape/ocsp/SigningUnit.java + com/netscape/ocsp/EOCSPException.java +) + +set(CMAKE_JAVA_INCLUDE_PATH + ${JSS_JAR} ${LDAPJDK_JAR} ${NSUTIL_JAR} ${CMSUTIL_JAR} + ${OSUTIL_JAR} ${SYMKEY_JAR} ${CMS_JAR} ${CMSCORE_JAR} + ${CERTSRV_JAR}) + +add_jar(ocsp ${ocsp_java_SRCS}) +add_dependencies(ocsp nsutil cmsutil osutil symkey cms cmscore certsrv) + +install( + FILES + ${OCSP_JAR} + DESTINATION + ${JAVA_JAR_INSTALL_DIR}/pki +) |
