summaryrefslogtreecommitdiff
path: root/debian/patches/use-cmake-as-buildsystem.patch
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-02-08 05:14:29 +0000
committerKatolaZ <katolaz@freaknet.org>2019-02-08 05:14:29 +0000
commit9696842a61b6608f10633a984732a145c4fe5c68 (patch)
treec715b7439c3bb1d5d5eb09540952da6adc62a0d3 /debian/patches/use-cmake-as-buildsystem.patch
parent172540a4a29fa4c0c5f0431bb5bf5b3d08ec92c0 (diff)
add debian/ folder
Diffstat (limited to 'debian/patches/use-cmake-as-buildsystem.patch')
-rw-r--r--debian/patches/use-cmake-as-buildsystem.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/debian/patches/use-cmake-as-buildsystem.patch b/debian/patches/use-cmake-as-buildsystem.patch
new file mode 100644
index 0000000..56a1dd3
--- /dev/null
+++ b/debian/patches/use-cmake-as-buildsystem.patch
@@ -0,0 +1,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
++)