New generation of pam files for tunneler based on cmake

This commit is contained in:
Adolfo Gómez García 2016-04-08 09:44:19 +02:00
parent f301e4654a
commit 0b390e406a
3 changed files with 32 additions and 2 deletions

4
ssh-tunnel/pam-http/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
CMakeCache.txt
CMakeFiles
*.cmake
Makefile

View File

@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
set(CMAKE_BUILD_TYPE Release)
project (UDS_PAM) project (UDS_PAM)
add_subdirectory(src) add_subdirectory(src)

View File

@ -1,7 +1,32 @@
set(uds_pam_SRCS set(pam_uds_SRCS
pam_uds.c pam_uds.c
http.c http.c
http.h 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)