zabbix60: Fix build on NetBSD 9 NetBSD 9 provides its own popcount() that conflicts with zabbix's function of the same name. Reported by and workardound suggested by: wizdiff -r1.2 -r1.3 pkgsrc/sysutils/zabbix60-agent/Makefile
(otis)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.2 2023/02/12 21:03:07 otis Exp $ | 1 | # $NetBSD: Makefile,v 1.3 2023/02/22 21:45:17 otis Exp $ | |
2 | 2 | |||
3 | PKGREVISION= 1 | 3 | PKGREVISION= 1 | |
4 | .include "../../sysutils/zabbix60-server/Makefile.common" | 4 | .include "../../sysutils/zabbix60-server/Makefile.common" | |
5 | 5 | |||
6 | PKGNAME= ${DISTNAME:S/-/-agent-/} | 6 | PKGNAME= ${DISTNAME:S/-/-agent-/} | |
7 | COMMENT= Enterprise-class Monitoring Solution for Everyone | 7 | COMMENT= Enterprise-class Monitoring Solution for Everyone | |
8 | 8 | |||
9 | PATCHDIR= ${.CURDIR}/../../sysutils/zabbix60-server/patches | 9 | PATCHDIR= ${.CURDIR}/../../sysutils/zabbix60-server/patches | |
10 | DISTINFO_FILE= ${.CURDIR}/../../sysutils/zabbix60-server/distinfo | 10 | DISTINFO_FILE= ${.CURDIR}/../../sysutils/zabbix60-server/distinfo | |
11 | 11 | |||
12 | CONFLICTS+= zabbix-[0-9]* | 12 | CONFLICTS+= zabbix-[0-9]* | |
13 | CONFLICTS+= zabbix-agent-[0-9]* | 13 | CONFLICTS+= zabbix-agent-[0-9]* | |
14 | 14 | |||
@@ -32,23 +32,29 @@ INSTALLATION_DIRS+= ${EGDIR} share/${PKG | @@ -32,23 +32,29 @@ INSTALLATION_DIRS+= ${EGDIR} share/${PKG | |||
32 | SUBST_CLASSES+= fix-paths | 32 | SUBST_CLASSES+= fix-paths | |
33 | SUBST_STAGE.fix-paths= pre-configure | 33 | SUBST_STAGE.fix-paths= pre-configure | |
34 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | 34 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | |
35 | SUBST_FILES.fix-paths= conf/*.conf | 35 | SUBST_FILES.fix-paths= conf/*.conf | |
36 | SUBST_FILES.fix-paths+= man/*.man | 36 | SUBST_FILES.fix-paths+= man/*.man | |
37 | SUBST_SED.fix-paths= -e 's,/usr/local/etc,${PKG_SYSCONFDIR},g' | 37 | SUBST_SED.fix-paths= -e 's,/usr/local/etc,${PKG_SYSCONFDIR},g' | |
38 | 38 | |||
39 | SUBST_CLASSES+= fix-pkgbase | 39 | SUBST_CLASSES+= fix-pkgbase | |
40 | SUBST_STAGE.fix-pkgbase= pre-configure | 40 | SUBST_STAGE.fix-pkgbase= pre-configure | |
41 | SUBST_MESSAGE.fix-pkgbase= Fixing PKGBASE. | 41 | SUBST_MESSAGE.fix-pkgbase= Fixing PKGBASE. | |
42 | SUBST_FILES.fix-pkgbase= src/zabbix_agent/Makefile.in | 42 | SUBST_FILES.fix-pkgbase= src/zabbix_agent/Makefile.in | |
43 | SUBST_SED.fix-pkgbase= -e 's,%%PKGBASE%%,${PKGBASE},g' | 43 | SUBST_SED.fix-pkgbase= -e 's,%%PKGBASE%%,${PKGBASE},g' | |
44 | 44 | |||
45 | SUBST_CLASSES+= fix-popcount | |||
46 | SUBST_STAGE.fix-popcount= post-patch | |||
47 | SUBST_MESSAGE.fix-popcount= Fix conflict with NetBSD's popcount. | |||
48 | SUBST_FILES.fix-popcount+= src/zabbix_server/lld/lld_host.c | |||
49 | SUBST_SED.fix-popcount+= -e 's,popcount,zbx_popcount,g' | |||
50 | ||||
45 | PLIST_SUBST+= PKGBASE=${PKGBASE} | 51 | PLIST_SUBST+= PKGBASE=${PKGBASE} | |
46 | 52 | |||
47 | .include "../../mk/bsd.prefs.mk" | 53 | .include "../../mk/bsd.prefs.mk" | |
48 | 54 | |||
49 | .include "options.mk" | 55 | .include "options.mk" | |
50 | 56 | |||
51 | .include "../../security/openssl/buildlink3.mk" | 57 | .include "../../security/openssl/buildlink3.mk" | |
52 | .include "../../www/curl/buildlink3.mk" | 58 | .include "../../www/curl/buildlink3.mk" | |
53 | .include "../../devel/pcre2/buildlink3.mk" | 59 | .include "../../devel/pcre2/buildlink3.mk" | |
54 | .include "../../mk/bsd.pkg.mk" | 60 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.2 2023/02/12 21:03:07 otis Exp $ | 1 | # $NetBSD: Makefile,v 1.3 2023/02/22 21:45:17 otis Exp $ | |
2 | 2 | |||
3 | PKGREVISION= 1 | 3 | PKGREVISION= 1 | |
4 | .include "../../sysutils/zabbix60-server/Makefile.common" | 4 | .include "../../sysutils/zabbix60-server/Makefile.common" | |
5 | 5 | |||
6 | PKGNAME= ${DISTNAME:S/-/-proxy-${ZABBIX_DB_TYPE}-/} | 6 | PKGNAME= ${DISTNAME:S/-/-proxy-${ZABBIX_DB_TYPE}-/} | |
7 | COMMENT= Enterprise-class Monitoring Solution for Everyone | 7 | COMMENT= Enterprise-class Monitoring Solution for Everyone | |
8 | 8 | |||
9 | PATCHDIR= ${.CURDIR}/../../sysutils/zabbix60-server/patches | 9 | PATCHDIR= ${.CURDIR}/../../sysutils/zabbix60-server/patches | |
10 | DISTINFO_FILE= ${.CURDIR}/../../sysutils/zabbix60-server/distinfo | 10 | DISTINFO_FILE= ${.CURDIR}/../../sysutils/zabbix60-server/distinfo | |
11 | 11 | |||
12 | CONFLICTS+= zabbix-[0-9]* | 12 | CONFLICTS+= zabbix-[0-9]* | |
13 | CONFLICTS+= zabbix-proxy-[0-9]* | 13 | CONFLICTS+= zabbix-proxy-[0-9]* | |
14 | 14 | |||
@@ -39,41 +39,45 @@ INSTALLATION_DIRS+= ${EGDIR} share/${PKG | @@ -39,41 +39,45 @@ INSTALLATION_DIRS+= ${EGDIR} share/${PKG | |||
39 | SUBST_CLASSES+= fix-paths | 39 | SUBST_CLASSES+= fix-paths | |
40 | SUBST_STAGE.fix-paths= pre-configure | 40 | SUBST_STAGE.fix-paths= pre-configure | |
41 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | 41 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | |
42 | SUBST_FILES.fix-paths= conf/*.conf | 42 | SUBST_FILES.fix-paths= conf/*.conf | |
43 | SUBST_FILES.fix-paths+= man/*.man | 43 | SUBST_FILES.fix-paths+= man/*.man | |
44 | SUBST_SED.fix-paths= -e 's,/usr/local/etc,${PKG_SYSCONFDIR},g' | 44 | SUBST_SED.fix-paths= -e 's,/usr/local/etc,${PKG_SYSCONFDIR},g' | |
45 | 45 | |||
46 | SUBST_CLASSES+= fix-pkgbase | 46 | SUBST_CLASSES+= fix-pkgbase | |
47 | SUBST_STAGE.fix-pkgbase= pre-configure | 47 | SUBST_STAGE.fix-pkgbase= pre-configure | |
48 | SUBST_MESSAGE.fix-pkgbase= Fixing PKGBASE. | 48 | SUBST_MESSAGE.fix-pkgbase= Fixing PKGBASE. | |
49 | SUBST_FILES.fix-pkgbase= src/zabbix_proxy/Makefile.* | 49 | SUBST_FILES.fix-pkgbase= src/zabbix_proxy/Makefile.* | |
50 | SUBST_SED.fix-pkgbase= -e 's,%%PKGBASE%%,${PKGBASE},g' | 50 | SUBST_SED.fix-pkgbase= -e 's,%%PKGBASE%%,${PKGBASE},g' | |
51 | 51 | |||
52 | SUBST_CLASSES+= fix-popcount | |||
53 | SUBST_STAGE.fix-popcount= post-patch | |||
54 | SUBST_MESSAGE.fix-popcount= Fix conflict with NetBSD's popcount. | |||
55 | SUBST_FILES.fix-popcount+= src/zabbix_server/lld/lld_host.c | |||
56 | SUBST_SED.fix-popcount+= -e 's,popcount,zbx_popcount,g' | |||
57 | ||||
52 | PLIST_SUBST+= PKGBASE=${PKGBASE} | 58 | PLIST_SUBST+= PKGBASE=${PKGBASE} | |
53 | 59 | |||
54 | CFLAGS.SunOS+= -DDUK_USE_BYTEORDER=1 | 60 | CFLAGS.SunOS+= -DDUK_USE_BYTEORDER=1 | |
55 | 61 | |||
56 | .include "../../mk/bsd.prefs.mk" | 62 | .include "../../mk/bsd.prefs.mk" | |
57 | 63 | |||
58 | post-install: | 64 | post-install: | |
59 | cd ${WRKSRC}/database/${ZABBIX_DB_TYPE} && \ | 65 | cd ${WRKSRC}/database/${ZABBIX_DB_TYPE} && \ | |
60 | ${PAX} -rw . ${DESTDIR}${PREFIX}/share/${PKGBASE}/ | 66 | ${PAX} -rw . ${DESTDIR}${PREFIX}/share/${PKGBASE}/ | |
61 | ${RM} ${DESTDIR}${PREFIX}/share/${PKGBASE}/Makefile* | 67 | ${RM} ${DESTDIR}${PREFIX}/share/${PKGBASE}/Makefile* | |
62 | ${RM} ${DESTDIR}${PREFIX}/share/${PKGBASE}/data.sql | 68 | ${RM} ${DESTDIR}${PREFIX}/share/${PKGBASE}/data.sql | |
63 | ${RM} ${DESTDIR}${PREFIX}/share/${PKGBASE}/images.sql | 69 | ${RM} ${DESTDIR}${PREFIX}/share/${PKGBASE}/images.sql | |
64 | ${MV} ${DESTDIR}${PREFIX}/bin/zabbix_js \ | 70 | ${MV} ${DESTDIR}${PREFIX}/bin/zabbix_js \ | |
65 | ${DESTDIR}${PREFIX}/bin/zabbix_proxy_js | 71 | ${DESTDIR}${PREFIX}/bin/zabbix_proxy_js | |
66 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/zabbix_proxy.conf \ | |||
67 | ${DESTDIR}${PREFIX}/${EGDIR}/zabbix_proxy.conf | |||
68 | 72 | |||
69 | .include "options.mk" | 73 | .include "options.mk" | |
70 | 74 | |||
71 | .include "../../converters/libiconv/buildlink3.mk" | 75 | .include "../../converters/libiconv/buildlink3.mk" | |
72 | .include "../../databases/openldap-client/buildlink3.mk" | 76 | .include "../../databases/openldap-client/buildlink3.mk" | |
73 | .include "../../devel/libevent/buildlink3.mk" | 77 | .include "../../devel/libevent/buildlink3.mk" | |
74 | .include "../../devel/zlib/buildlink3.mk" | 78 | .include "../../devel/zlib/buildlink3.mk" | |
75 | .include "../../security/openssl/buildlink3.mk" | 79 | .include "../../security/openssl/buildlink3.mk" | |
76 | .include "../../textproc/libxml2/buildlink3.mk" | 80 | .include "../../textproc/libxml2/buildlink3.mk" | |
77 | .include "../../www/curl/buildlink3.mk" | 81 | .include "../../www/curl/buildlink3.mk" | |
78 | .include "../../devel/pcre2/buildlink3.mk" | 82 | .include "../../devel/pcre2/buildlink3.mk" | |
79 | .include "../../mk/bsd.pkg.mk" | 83 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.2 2023/02/12 21:03:07 otis Exp $ | 1 | # $NetBSD: Makefile,v 1.3 2023/02/22 21:45:17 otis Exp $ | |
2 | # used by sysutils/zabbix60-proxy/Makefile | 2 | # used by sysutils/zabbix60-proxy/Makefile | |
3 | # used by sysutils/zabbix60-agent/Makefile | 3 | # used by sysutils/zabbix60-agent/Makefile | |
4 | # | 4 | # | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 1 | |
6 | .include "Makefile.common" | 6 | .include "Makefile.common" | |
7 | 7 | |||
8 | PKGNAME= ${DISTNAME:S/-/-server-${ZABBIX_DB_TYPE}-/} | 8 | PKGNAME= ${DISTNAME:S/-/-server-${ZABBIX_DB_TYPE}-/} | |
9 | COMMENT= Enterprise-class Monitoring Solution for Everyone | 9 | COMMENT= Enterprise-class Monitoring Solution for Everyone | |
10 | 10 | |||
11 | CONFLICTS+= zabbix-[0-9]* | 11 | CONFLICTS+= zabbix-[0-9]* | |
12 | CONFLICTS+= zabbix-server-[0-9]* | 12 | CONFLICTS+= zabbix-server-[0-9]* | |
13 | 13 | |||
14 | DEPENDS+= fping-[0-9]*:../../net/fping | 14 | DEPENDS+= fping-[0-9]*:../../net/fping | |
@@ -32,56 +32,60 @@ CONF_FILES+= ${EGDIR}/zabbix_server.conf | @@ -32,56 +32,60 @@ CONF_FILES+= ${EGDIR}/zabbix_server.conf | |||
32 | 32 | |||
33 | RCD_SCRIPTS= zabbix_server | 33 | RCD_SCRIPTS= zabbix_server | |
34 | SMF_NAME= zabbix-server | 34 | SMF_NAME= zabbix-server | |
35 | 35 | |||
36 | MISCDIRS= images snmptrap | 36 | MISCDIRS= images snmptrap | |
37 | 37 | |||
38 | INSTALLATION_DIRS+= ${EGDIR} | 38 | INSTALLATION_DIRS+= ${EGDIR} | |
39 | INSTALLATION_DIRS+= share/${PKGBASE} | 39 | INSTALLATION_DIRS+= share/${PKGBASE} | |
40 | .for miscdir in ${MISCDIRS} | 40 | .for miscdir in ${MISCDIRS} | |
41 | INSTALLATION_DIRS+= share/${PKGBASE}/misc/${miscdir} | 41 | INSTALLATION_DIRS+= share/${PKGBASE}/misc/${miscdir} | |
42 | .endfor | 42 | .endfor | |
43 | 43 | |||
44 | SUBST_CLASSES+= fix-paths | 44 | SUBST_CLASSES+= fix-paths | |
45 | SUBST_STAGE.fix-paths= pre-configure | 45 | SUBST_STAGE.fix-paths= post-patch | |
46 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | 46 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | |
47 | SUBST_FILES.fix-paths= conf/*.conf | 47 | SUBST_FILES.fix-paths= conf/*.conf | |
48 | SUBST_FILES.fix-paths+= man/*.man | 48 | SUBST_FILES.fix-paths+= man/*.man | |
49 | SUBST_SED.fix-paths= -e 's,/usr/local/etc,${PKG_SYSCONFDIR},g' | 49 | SUBST_SED.fix-paths= -e 's,/usr/local/etc,${PKG_SYSCONFDIR},g' | |
50 | 50 | |||
51 | SUBST_CLASSES+= fix-pkgbase | 51 | SUBST_CLASSES+= fix-pkgbase | |
52 | SUBST_STAGE.fix-pkgbase= pre-configure | 52 | SUBST_STAGE.fix-pkgbase= post-patch | |
53 | SUBST_MESSAGE.fix-pkgbase= Fixing PKGBASE. | 53 | SUBST_MESSAGE.fix-pkgbase= Fixing PKGBASE. | |
54 | SUBST_FILES.fix-pkgbase= src/zabbix_server/Makefile.* | 54 | SUBST_FILES.fix-pkgbase= src/zabbix_server/Makefile.* | |
55 | SUBST_SED.fix-pkgbase= -e 's,%%PKGBASE%%,${PKGBASE},g' | 55 | SUBST_SED.fix-pkgbase= -e 's,%%PKGBASE%%,${PKGBASE},g' | |
56 | 56 | |||
57 | SUBST_CLASSES+= fix-popcount | |||
58 | SUBST_STAGE.fix-popcount= post-patch | |||
59 | SUBST_MESSAGE.fix-popcount= Fix conflict with NetBSD's popcount. | |||
60 | SUBST_FILES.fix-popcount+= src/zabbix_server/lld/lld_host.c | |||
61 | SUBST_SED.fix-popcount+= -e 's,popcount,zbx_popcount,g' | |||
62 | ||||
57 | PLIST_SUBST+= PKGBASE=${PKGBASE} | 63 | PLIST_SUBST+= PKGBASE=${PKGBASE} | |
58 | 64 | |||
59 | CFLAGS.SunOS+= -DDUK_USE_BYTEORDER=1 | 65 | CFLAGS.SunOS+= -DDUK_USE_BYTEORDER=1 | |
60 | 66 | |||
61 | REPLACE_BASH+= misc/snmptrap/snmptrap.sh \ | 67 | REPLACE_BASH+= misc/snmptrap/snmptrap.sh \ | |
62 | misc/images/png_to_xml.sh | 68 | misc/images/png_to_xml.sh | |
63 | 69 | |||
64 | .include "../../mk/bsd.prefs.mk" | 70 | .include "../../mk/bsd.prefs.mk" | |
65 | 71 | |||
66 | post-install: | 72 | post-install: | |
67 | cd ${WRKSRC}/database/${ZABBIX_DB_TYPE} && \ | 73 | cd ${WRKSRC}/database/${ZABBIX_DB_TYPE} && \ | |
68 | ${PAX} -rw . ${DESTDIR}${PREFIX}/share/${PKGBASE}/ | 74 | ${PAX} -rw . ${DESTDIR}${PREFIX}/share/${PKGBASE}/ | |
69 | .for miscdir in ${MISCDIRS} | 75 | .for miscdir in ${MISCDIRS} | |
70 | cd ${WRKSRC}/misc/${miscdir}; \ | 76 | cd ${WRKSRC}/misc/${miscdir}; \ | |
71 | ${PAX} -rw . ${DESTDIR}${PREFIX}/share/${PKGBASE}/misc/${miscdir} | 77 | ${PAX} -rw . ${DESTDIR}${PREFIX}/share/${PKGBASE}/misc/${miscdir} | |
72 | .endfor | 78 | .endfor | |
73 | ${RM} ${DESTDIR}${PREFIX}/share/${PKGBASE}/Makefile* | 79 | ${RM} ${DESTDIR}${PREFIX}/share/${PKGBASE}/Makefile* | |
74 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/zabbix_server.conf \ | |||
75 | ${DESTDIR}${PREFIX}/${EGDIR}/zabbix_server.conf | |||
76 | 80 | |||
77 | .include "options.mk" | 81 | .include "options.mk" | |
78 | 82 | |||
79 | .include "../../converters/libiconv/buildlink3.mk" | 83 | .include "../../converters/libiconv/buildlink3.mk" | |
80 | .include "../../databases/openldap-client/buildlink3.mk" | 84 | .include "../../databases/openldap-client/buildlink3.mk" | |
81 | .include "../../devel/libevent/buildlink3.mk" | 85 | .include "../../devel/libevent/buildlink3.mk" | |
82 | .include "../../devel/zlib/buildlink3.mk" | 86 | .include "../../devel/zlib/buildlink3.mk" | |
83 | .include "../../security/openssl/buildlink3.mk" | 87 | .include "../../security/openssl/buildlink3.mk" | |
84 | .include "../../textproc/libxml2/buildlink3.mk" | 88 | .include "../../textproc/libxml2/buildlink3.mk" | |
85 | .include "../../www/curl/buildlink3.mk" | 89 | .include "../../www/curl/buildlink3.mk" | |
86 | .include "../../devel/pcre2/buildlink3.mk" | 90 | .include "../../devel/pcre2/buildlink3.mk" | |
87 | .include "../../mk/bsd.pkg.mk" | 91 | .include "../../mk/bsd.pkg.mk" |
@@ -1,12 +1,14 @@ | @@ -1,12 +1,14 @@ | |||
1 | $NetBSD: distinfo,v 1.1 2023/02/12 18:37:32 otis Exp $ | 1 | $NetBSD: distinfo,v 1.2 2023/02/22 21:45:17 otis Exp $ | |
2 | 2 | |||
3 | BLAKE2s (zabbix-6.0.13.tar.gz) = fd8aa1f37b18943b42709d7ead74402bb9637819eb6137ea23c0b2b7cbdca775 | 3 | BLAKE2s (zabbix-6.0.13.tar.gz) = fd8aa1f37b18943b42709d7ead74402bb9637819eb6137ea23c0b2b7cbdca775 | |
4 | SHA512 (zabbix-6.0.13.tar.gz) = 188622c0c04029eac376ebf60c96ed9d67923bc1f40eff75666a241bb534cb744aca8c51ff4b79d508dfadb9e758f80d9dc46016217bcb5a67e8ede7e645788e | 4 | SHA512 (zabbix-6.0.13.tar.gz) = 188622c0c04029eac376ebf60c96ed9d67923bc1f40eff75666a241bb534cb744aca8c51ff4b79d508dfadb9e758f80d9dc46016217bcb5a67e8ede7e645788e | |
5 | Size (zabbix-6.0.13.tar.gz) = 41075557 bytes | 5 | Size (zabbix-6.0.13.tar.gz) = 41075557 bytes | |
6 | SHA1 (patch-configure) = a372473051082b7f30846a6efa062ce42e325c30 | 6 | SHA1 (patch-configure) = a372473051082b7f30846a6efa062ce42e325c30 | |
7 | SHA1 (patch-m4_ax__lib__mysql.m4) = 9786c6bff3d22334263921c201bf241a207a46bc | 7 | SHA1 (patch-m4_ax__lib__mysql.m4) = 9786c6bff3d22334263921c201bf241a207a46bc | |
8 | SHA1 (patch-m4_libssh.m4) = 8b4ac3964caf94bb0e4939d265dcefc08a07a0df | 8 | SHA1 (patch-m4_libssh.m4) = 8b4ac3964caf94bb0e4939d265dcefc08a07a0df | |
9 | SHA1 (patch-src_libs_zbxsysinfo_netbsd_net.c) = bc928301fc099d907b83127e2670abf1d6c33553 | 9 | SHA1 (patch-src_libs_zbxsysinfo_netbsd_net.c) = bc928301fc099d907b83127e2670abf1d6c33553 | |
10 | SHA1 (patch-src_zabbix__agent_Makefile.in) = efbd804ecee4b99db36db5f4fd61583b2ef96a86 | 10 | SHA1 (patch-src_zabbix__agent_Makefile.in) = efbd804ecee4b99db36db5f4fd61583b2ef96a86 | |
11 | SHA1 (patch-src_zabbix__proxy_Makefile.am) = 9d2c3d5ca06e676154653b70f0931ed2ea281cf5 | 11 | SHA1 (patch-src_zabbix__proxy_Makefile.am) = 9d2c3d5ca06e676154653b70f0931ed2ea281cf5 | |
12 | SHA1 (patch-src_zabbix__proxy_Makefile.in) = 000fe95c07af423feac01a452a564bdc63f008ff | |||
12 | SHA1 (patch-src_zabbix__server_Makefile.am) = d139b4fedf8f443fbe9966256e98374d5e5cdb67 | 13 | SHA1 (patch-src_zabbix__server_Makefile.am) = d139b4fedf8f443fbe9966256e98374d5e5cdb67 | |
14 | SHA1 (patch-src_zabbix__server_Makefile.in) = 16c899ed5a53924a351f8c334d4d3bae17490b62 |
$NetBSD: patch-src_zabbix__proxy_Makefile.in,v 1.1 2023/02/22 21:45:17 otis Exp $
Install config file to component's example directory.
--- src/zabbix_proxy/Makefile.in.orig 2023-02-01 07:20:02.432793641 +0000
+++ src/zabbix_proxy/Makefile.in
@@ -1071,7 +1071,7 @@ install-data-hook:
$(MKDIR_P) "$(DESTDIR)$(PROXY_CONFIG_FILE).d"
$(MKDIR_P) "$(DESTDIR)$(EXTERNAL_SCRIPTS_PATH)"
$(MKDIR_P) "$(DESTDIR)$(LOAD_MODULE_PATH)"
- test -f "$(DESTDIR)$(PROXY_CONFIG_FILE)" || cp "../../conf/zabbix_proxy.conf" "$(DESTDIR)$(PROXY_CONFIG_FILE)"
+ $(INSTALL_DATA) "../../conf/zabbix_proxy.conf" "$(DESTDIR)/${PREFIX}/share/examples/%%PKGBASE%%"
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
$NetBSD: patch-src_zabbix__server_Makefile.in,v 1.1 2023/02/22 21:45:17 otis Exp $
Install config file into component's example directory.
--- src/zabbix_server/Makefile.in.orig 2023-02-01 07:20:02.588795121 +0000
+++ src/zabbix_server/Makefile.in
@@ -1136,7 +1136,7 @@ install-data-hook:
$(MKDIR_P) "$(DESTDIR)$(EXTERNAL_SCRIPTS_PATH)"
$(MKDIR_P) "$(DESTDIR)$(ALERT_SCRIPTS_PATH)"
$(MKDIR_P) "$(DESTDIR)$(LOAD_MODULE_PATH)"
- test -f "$(DESTDIR)$(SERVER_CONFIG_FILE)" || cp "../../conf/zabbix_server.conf" "$(DESTDIR)$(SERVER_CONFIG_FILE)"
+ $(INSTALL_DATA) "../../conf/zabbix_server.conf" "$(DESTDIR)/${PREFIX}/share/examples/%%PKGBASE%%"
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.