--- CMakeLists.txt.orig	2012-04-18 18:16:55.000000000 +0700
+++ CMakeLists.txt	2012-06-08 14:51:19.000000000 +0700
@@ -133,12 +133,12 @@
     INSTALL(FILES ${pgagent_SOURCE_DIR}/pgagent_upgrade.sql DESTINATION .)
 ELSE(WIN32)
     INSTALL(TARGETS pgagent DESTINATION bin)
-    INSTALL(FILES ${pgagent_SOURCE_DIR}/pgagent.sql DESTINATION share)
-    INSTALL(FILES ${pgagent_SOURCE_DIR}/pgagent_upgrade.sql DESTINATION share)
+    INSTALL(FILES ${pgagent_SOURCE_DIR}/pgagent.sql DESTINATION share/pgagent)
+    INSTALL(FILES ${pgagent_SOURCE_DIR}/pgagent_upgrade.sql DESTINATION share/pgagent)
 ENDIF(WIN32)
 
-INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION .)
-INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION .)
+INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION share/pgagent)
+INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION share/pgagent)
 
 ################################################################################
 # pgaevent
