File: use-cmake-as-buildsystem-debian-extras.patch

package info (click to toggle)
linux-ftpd-ssl 0.17.36%2Breally0.17-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,528 kB
  • sloc: ansic: 3,875; yacc: 1,379; sh: 52; makefile: 50
file content (41 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Description: Debian-specific changes to the cmake build system
Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Forwarded: not-needed
Last-Update: 2019-02-24

--- a/ftpd/CMakeLists.txt
+++ b/ftpd/CMakeLists.txt
@@ -1,4 +1,6 @@
 
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHASSETPROCTITLE -DUSE_SSL")
+
 include_directories(
     BEFORE
     "../support/"
@@ -18,6 +20,9 @@
     in.ftpd
     ${USE_CRYPT}
     support
+    ssl
+    crypto
+    ${USE_PAM}
 )
 install(
     TARGETS in.ftpd
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,14 @@
 set(MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man")
 
 find_library(USE_CRYPT crypt REQUIRED)
+find_library(USE_PAM pam)
+
+if(USE_PAM)
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_PAM=1")
+    #set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lpam")
+endif()
+
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FILE_OFFSET_BITS=64")
 
 add_subdirectory(ftpd)
 add_subdirectory(support)