[pgagent] Instatallation destination? - Mailing list pgadmin-support

From Christoph Berg
Subject [pgagent] Instatallation destination?
Date
Msg-id 20180720090016.GD15185@msg.df7cb.de
Whole thread Raw
Responses Re: [pgagent] Instatallation destination?
List pgadmin-support
Hi,

in the Debian package I notice that CMakeLists.txt installs README and
LICENSE to /usr (no subdirectory!), and pgagent.sql to /usr/share.
The first is clearly wrong, and the second somewhat debatable. As
pgagent.sql is not really required (extension support), I added this
patch:

Don't install README and LICENSE which would otherwise end up in /usr,
and don't install pgagent.sql to /usr/share.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,11 +144,11 @@ IF (WIN32)
     INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent.sql DESTINATION .)
 ELSE(WIN32)
     INSTALL(TARGETS pgagent DESTINATION bin)
-    INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent.sql DESTINATION share)
+    #INSTALL(FILES ${pgagent_SOURCE_DIR}/sql/pgagent.sql DESTINATION share)
 ENDIF(WIN32)

-INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION .)
-INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION .)
+#INSTALL(FILES ${pgagent_SOURCE_DIR}/README DESTINATION .)
+#INSTALL(FILES ${pgagent_SOURCE_DIR}/LICENSE DESTINATION .)

 # Extension
 IF(PG_EXTENSION)


What would be the proper fix?

Christoph


pgadmin-support by date:

Previous
From: Dave Page
Date:
Subject: Re: [pgagent] patch: supported cmake version
Next
From: Dave Page
Date:
Subject: Re: [pgagent] patch: link with -pthread