blob: 56a1dd3c36f83a90db08f230c1c57f6454d63077 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
Description: Use cmake as build system
Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Bug-Debian:
https://bugs.debian.org/873085
https://bugs.debian.org/912121
Last-Update: 2018-11-25
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,9 @@
+cmake_minimum_required(VERSION 3.7)
+project(bsd-finger)
+
+set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin")
+set(SBIN_DIR "${CMAKE_INSTALL_PREFIX}/sbin")
+set(MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man")
+
+add_subdirectory(finger)
+add_subdirectory(fingerd)
--- /dev/null
+++ b/finger/CMakeLists.txt
@@ -0,0 +1,19 @@
+
+add_executable(
+ finger
+ finger.c
+ lprint.c
+ net.c
+ sprint.c
+ util.c
+ display.c
+)
+install(
+ TARGETS finger
+ DESTINATION ${BIN_DIR}
+)
+
+install(
+ FILES finger.1
+ DESTINATION ${MAN_DIR}/man1/
+)
--- /dev/null
+++ b/fingerd/CMakeLists.txt
@@ -0,0 +1,15 @@
+
+add_executable(
+ in.fingerd
+ fingerd.c
+)
+install(
+ TARGETS in.fingerd
+ DESTINATION ${SBIN_DIR}
+)
+
+install(
+ FILES fingerd.8
+ DESTINATION ${MAN_DIR}/man8/
+ RENAME in.fingerd.8
+)
|