openbsd-ports/security/libnipper/patches/patch-CMakeLists_txt
steven 6162e4a100 import libnipper 0.12.1
Nipper enables network administrators, security professionals and auditors
to quickly produce reports on key network infrastructure devices.

testing by rui and Nigel J. Taylor who also provided a patch

ok rui@
2008-09-20 20:26:05 +00:00

22 lines
925 B
Plaintext

$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2008/09/20 20:26:05 steven Exp $
--- CMakeLists.txt.orig Fri Sep 5 22:01:55 2008
+++ CMakeLists.txt Wed Sep 17 17:31:09 2008
@@ -317,9 +317,12 @@ SET(libnipper_SRC
# Build the library...
ADD_LIBRARY(nipper SHARED ${libnipper_SRC})
+SET_TARGET_PROPERTIES(nipper PROPERTIES
+ SOVERSION ${LIBnipper_VERSION}
+)
# Install...
-INSTALL(TARGETS nipper LIBRARY DESTINATION /usr/lib)
-INSTALL(FILES nipper.conf DESTINATION /etc)
-INSTALL(FILES libnipper.h config.h DESTINATION /usr/include/libnipper/)
-INSTALL(FILES man/nipper.conf.5 DESTINATION /usr/share/man/man5)
\ No newline at end of file
+INSTALL(TARGETS nipper LIBRARY DESTINATION ${LOCALBASE}/lib)
+INSTALL(FILES nipper.conf DESTINATION ${LOCALBASE}/share/examples/libnipper)
+INSTALL(FILES libnipper.h config.h DESTINATION ${LOCALBASE}/include/libnipper/)
+INSTALL(FILES man/nipper.conf.5 DESTINATION ${LOCALBASE}/man/man5)