From 0b390e406af7a4f9aed4e1ba600b3e1c10de006b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 8 Apr 2016 09:44:19 +0200 Subject: [PATCH] New generation of pam files for tunneler based on cmake --- ssh-tunnel/pam-http/.gitignore | 4 ++++ ssh-tunnel/pam-http/CMakeLists.txt | 1 + ssh-tunnel/pam-http/src/CMakeLists.txt | 29 ++++++++++++++++++++++++-- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 ssh-tunnel/pam-http/.gitignore diff --git a/ssh-tunnel/pam-http/.gitignore b/ssh-tunnel/pam-http/.gitignore new file mode 100644 index 000000000..c1f75a6e6 --- /dev/null +++ b/ssh-tunnel/pam-http/.gitignore @@ -0,0 +1,4 @@ +CMakeCache.txt +CMakeFiles +*.cmake +Makefile \ No newline at end of file diff --git a/ssh-tunnel/pam-http/CMakeLists.txt b/ssh-tunnel/pam-http/CMakeLists.txt index e7020870b..74873da95 100644 --- a/ssh-tunnel/pam-http/CMakeLists.txt +++ b/ssh-tunnel/pam-http/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 2.8) +set(CMAKE_BUILD_TYPE Release) project (UDS_PAM) add_subdirectory(src) \ No newline at end of file diff --git a/ssh-tunnel/pam-http/src/CMakeLists.txt b/ssh-tunnel/pam-http/src/CMakeLists.txt index ba7bae00f..06fbaf662 100644 --- a/ssh-tunnel/pam-http/src/CMakeLists.txt +++ b/ssh-tunnel/pam-http/src/CMakeLists.txt @@ -1,7 +1,32 @@ -set(uds_pam_SRCS +set(pam_uds_SRCS pam_uds.c http.c http.h ) -add_library(uds_pam SHARED ${uds_pam_SRCS}) +set(nss_uds_SRCS + shadow.c + passwd.c + group.c + http.c + http.h +) + +add_library(pam_uds SHARED ${pam_uds_SRCS}) +set_target_properties(pam_uds PROPERTIES + OUTPUT_NAME pam_uds + PREFIX "" + SUFFIX ".so" +) +target_link_libraries(pam_uds curl pam) + + +add_library(nss_uds SHARED ${nss_uds_SRCS}) + +set_target_properties(nss_uds PROPERTIES + OUTPUT_NAME nss_uds + PREFIX "lib" + SUFFIX ".so.2" +) + +target_link_libraries(nss_uds curl pam)