--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -20,11 +20,11 @@
ADD_EXECUTABLE(dbtool database.c dbtool.c)
# Install Rules
-INSTALL(TARGETS mcbot RUNTIME DESTINATION sbin)
-INSTALL(TARGETS dbtool RUNTIME DESTINATION bin)
+INSTALL(TARGETS mcbot RUNTIME DESTINATION /usr/sbin)
+INSTALL(TARGETS dbtool RUNTIME DESTINATION /usr/bin)
INSTALL(DIRECTORY ../locale/ DESTINATION /var/lib/mcbot/data/locale)
-INSTALL(PROGRAMS ../scripts/runbot DESTINATION etc/rc.d/ RENAME mcbot)
-INSTALL(PROGRAMS ../scripts/mcbot.cgi DESTINATION lib/cgi-bin/)
+INSTALL(PROGRAMS ../scripts/runbot DESTINATION /etc/init.d/ RENAME mcbot)
+INSTALL(PROGRAMS ../scripts/mcbot.cgi DESTINATION /usr/lib/cgi-bin/)
# Search required programs
FIND_PROGRAM(MSGFMT_PROG msgfmt)
@@ -35,14 +35,16 @@
ENDIF (MSGFMT_PROG)
# Search required libraries
-FIND_LIBRARY(GETTEXT_LIB NAMES gettextlib
- PATHS /usr/lib/ /usr/local/lib)
-IF (GETTEXT_LIB)
- TARGET_LINK_LIBRARIES(mcbot ${GETTEXT_LIB})
- TARGET_LINK_LIBRARIES(dbtool ${GETTEXT_LIB})
-ELSE(GETTEXT_LIB)
- MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext")
-ENDIF (GETTEXT_LIB)
+#
+# freebsd needs it, debian hates it
+#FIND_LIBRARY(GETTEXT_LIB NAMES gettextlib
+# PATHS /usr/lib/ /usr/local/lib)
+#IF (GETTEXT_LIB)
+# TARGET_LINK_LIBRARIES(mcbot ${GETTEXT_LIB})
+# TARGET_LINK_LIBRARIES(dbtool ${GETTEXT_LIB})
+#ELSE(GETTEXT_LIB)
+# MESSAGE(FATAL_ERROR "YOU NEED TO INSTALL gettext")
+#ENDIF (GETTEXT_LIB)
FIND_LIBRARY(GDBM_LIB NAMES gdbm
PATHS /usr/lib/ /usr/local/lib)