pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/filesystems/glusterfs



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Tue Mar 28 01:10:54 UTC 2023

Modified Files:
        pkgsrc/filesystems/glusterfs: Makefile PLIST distinfo
Added Files:
        pkgsrc/filesystems/glusterfs/patches: patch-events-src-Makefile.am
            patch-events-tools-Makefile.am patch-extras-Makefile.am
            patch-extras-ganesha-config-Makefile.am
            patch-geo-replication_Makefile.am

Log Message:
glusterfs: make configuration file placements match pkgsrc norm

Patch from Alexander Schreiber. Addresses PR pkg/57285 from Manuel
Bouyer.


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 pkgsrc/filesystems/glusterfs/Makefile
cvs rdiff -u -r1.41 -r1.42 pkgsrc/filesystems/glusterfs/PLIST
cvs rdiff -u -r1.75 -r1.76 pkgsrc/filesystems/glusterfs/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/filesystems/glusterfs/patches/patch-events-src-Makefile.am \
    pkgsrc/filesystems/glusterfs/patches/patch-events-tools-Makefile.am \
    pkgsrc/filesystems/glusterfs/patches/patch-extras-Makefile.am \
    pkgsrc/filesystems/glusterfs/patches/patch-extras-ganesha-config-Makefile.am \
    pkgsrc/filesystems/glusterfs/patches/patch-geo-replication_Makefile.am

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/filesystems/glusterfs/Makefile
diff -u pkgsrc/filesystems/glusterfs/Makefile:1.115 pkgsrc/filesystems/glusterfs/Makefile:1.116
--- pkgsrc/filesystems/glusterfs/Makefile:1.115 Tue Mar 28 00:57:05 2023
+++ pkgsrc/filesystems/glusterfs/Makefile       Tue Mar 28 01:10:53 2023
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.115 2023/03/28 00:57:05 gutteridge Exp $
+# $NetBSD: Makefile,v 1.116 2023/03/28 01:10:53 gutteridge Exp $
 
 DISTNAME=      glusterfs-10.3
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    filesystems
 MASTER_SITES=  http://bits.gluster.org/pub/gluster/glusterfs/src/
 
@@ -20,6 +20,8 @@ CONFIGURE_ARGS+=      --localstatedir=${VARBA
 CONFIGURE_ARGS+=       --without-tcmalloc
 # libtirpc not in pkgsrc (yet)
 CONFIGURE_ARGS+=       --without-libtirpc
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=       --datadir=${PREFIX}/share/examples/${PKGBASE}
 
 # Upstream glusterfs effectively dropped support for 32bit platforms
 # somewhere between 8.2 (works on e.g. NetBSD/i386) and 10.3 as various
@@ -77,7 +79,6 @@ REPLACE_BASH+=                geo-replication/src/set_
 # Explicit substitution of bash
 CHECK_PORTABILITY_SKIP+=       extras/peer_add_secret_pub.in
 
-
 SUBST_CLASSES+=                mtab
 SUBST_STAGE.mtab=      post-build
 SUBST_FILES.mtab+=     xlators/mount/fuse/utils/mount.glusterfs.in
@@ -94,8 +95,26 @@ SUBST_STAGE.bash=    pre-configure
 SUBST_FILES.bash=      build-aux/pkg-version
 SUBST_SED.bash=                -e "s,/bin/bash,${BASH},g"
 
-#EGDIR=                        ${PREFIX}/etc/glusterfs
-#CONF_FILES+=          ${EGDIR}/glusterd.vol.sample ${EGDIR}/glusterd.vol
+EGDIR=         ${PREFIX}/share/examples/${PKGBASE}
+CONF_FILES+=   ${EGDIR}/eventsconfig.json ${PKG_SYSCONFDIR}/glusterfs/eventsconfig.json
+CONF_FILES+=   ${EGDIR}/ganesha/ganesha-ha.conf.sample ${PKG_SYSCONFDIR}/glusterfs/ganesha/ganesha-ha.conf.sample
+CONF_FILES+=   ${EGDIR}/gluster-rsyslog-5.8.conf ${PKG_SYSCONFDIR}/glusterfs/gluster-rsyslog-5.8.conf
+CONF_FILES+=   ${EGDIR}/gluster-rsyslog-7.2.conf ${PKG_SYSCONFDIR}/glusterfs/gluster-rsyslog-7.2.conf
+CONF_FILES+=   ${EGDIR}/glusterd.vol ${PKG_SYSCONFDIR}/glusterfs/glusterd.vol
+CONF_FILES+=   ${EGDIR}/glusterfs-georep-logrotate ${PKG_SYSCONFDIR}/glusterfs/glusterfs-georep-logrotate
+CONF_FILES+=   ${EGDIR}/glusterfs-logrotate ${PKG_SYSCONFDIR}/glusterfs/glusterfs-logrotate
+CONF_FILES+=   ${EGDIR}/group-db-workload ${PKG_SYSCONFDIR}/glusterfs/group-db-workload
+CONF_FILES+=   ${EGDIR}/group-distributed-virt ${PKG_SYSCONFDIR}/glusterfs/group-distributed-virt
+CONF_FILES+=   ${EGDIR}/group-gluster-block ${PKG_SYSCONFDIR}/glusterfs/group-gluster-block
+CONF_FILES+=   ${EGDIR}/group-metadata-cache ${PKG_SYSCONFDIR}/glusterfs/group-metadata-cache
+CONF_FILES+=   ${EGDIR}/group-nl-cache ${PKG_SYSCONFDIR}/glusterfs/group-nl-cache
+CONF_FILES+=   ${EGDIR}/group-samba ${PKG_SYSCONFDIR}/glusterfs/group-samba
+CONF_FILES+=   ${EGDIR}/group-virt.example ${PKG_SYSCONFDIR}/glusterfs/group-virt.example
+CONF_FILES+=   ${EGDIR}/logger.conf.example ${PKG_SYSCONFDIR}/glusterfs/logger.conf.example
+CONF_FILES+=   ${EGDIR}/thin-arbiter.vol ${PKG_SYSCONFDIR}/glusterfs/thin-arbiter.vol
+OWN_DIRS+=     ${PKG_SYSCONFDIR}/glusterfs
+OWN_DIRS+=     ${PKG_SYSCONFDIR}/glusterfs/ganesha
+
 OWN_DIRS+=             ${VARBASE}/log/glusterfs
 BUILD_DEFS+=           VARBASE
 

Index: pkgsrc/filesystems/glusterfs/PLIST
diff -u pkgsrc/filesystems/glusterfs/PLIST:1.41 pkgsrc/filesystems/glusterfs/PLIST:1.42
--- pkgsrc/filesystems/glusterfs/PLIST:1.41     Sun Mar 12 17:57:44 2023
+++ pkgsrc/filesystems/glusterfs/PLIST  Tue Mar 28 01:10:53 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.41 2023/03/12 17:57:44 js Exp $
+@comment $NetBSD: PLIST,v 1.42 2023/03/28 01:10:53 gutteridge Exp $
 ${PYSITELIB}/gluster/__init__.py
 ${PYSITELIB}/gluster/__init__.pyc
 ${PYSITELIB}/gluster/__init__.pyo
@@ -9,23 +9,6 @@ ${PYSITELIB}/gluster/cliutils/cliutils.p
 ${PYSITELIB}/gluster/cliutils/cliutils.pyc
 ${PYSITELIB}/gluster/cliutils/cliutils.pyo
 bin/glusterfind
-etc/ganesha/ganesha-ha.conf.sample
-etc/glusterfs/eventsconfig.json
-etc/glusterfs/gluster-rsyslog-5.8.conf
-etc/glusterfs/gluster-rsyslog-7.2.conf
-etc/glusterfs/glusterd.vol
-etc/glusterfs/glusterfs-georep-logrotate
-etc/glusterfs/glusterfs-logrotate
-etc/glusterfs/group-db-workload
-etc/glusterfs/group-distributed-virt
-etc/glusterfs/group-gluster-block
-etc/glusterfs/group-metadata-cache
-etc/glusterfs/group-nl-cache
-etc/glusterfs/group-samba
-etc/glusterfs/group-virt.example
-etc/glusterfs/gsyncd.conf
-etc/glusterfs/logger.conf.example
-etc/glusterfs/thin-arbiter.vol
 include/glusterfs/api/glfs-handles.h
 include/glusterfs/api/glfs.h
 include/glusterfs/async.h
@@ -353,6 +336,23 @@ share/doc/glusterfs/benchmarking/local-s
 share/doc/glusterfs/benchmarking/rdd.c
 share/doc/glusterfs/glusterfs-mode.el
 share/doc/glusterfs/glusterfs.vim
+share/examples/glusterfs/eventsconfig.json
+share/examples/glusterfs/ganesha/ganesha-ha.conf.sample
+share/examples/glusterfs/gluster-rsyslog-5.8.conf
+share/examples/glusterfs/gluster-rsyslog-7.2.conf
+share/examples/glusterfs/glusterd.vol
+share/examples/glusterfs/glusterfs-georep-logrotate
+share/examples/glusterfs/glusterfs-logrotate
+share/examples/glusterfs/group-db-workload
+share/examples/glusterfs/group-distributed-virt
+share/examples/glusterfs/group-gluster-block
+share/examples/glusterfs/group-metadata-cache
+share/examples/glusterfs/group-nl-cache
+share/examples/glusterfs/group-samba
+share/examples/glusterfs/group-virt.example
+share/examples/glusterfs/gsyncd.conf
+share/examples/glusterfs/logger.conf.example
+share/examples/glusterfs/thin-arbiter.vol
 share/examples/rc.d/glusterd
 share/glusterfs/scripts/eventsdash.py
 share/glusterfs/scripts/post-upgrade-script-for-quota.sh

Index: pkgsrc/filesystems/glusterfs/distinfo
diff -u pkgsrc/filesystems/glusterfs/distinfo:1.75 pkgsrc/filesystems/glusterfs/distinfo:1.76
--- pkgsrc/filesystems/glusterfs/distinfo:1.75  Thu Mar 16 03:28:24 2023
+++ pkgsrc/filesystems/glusterfs/distinfo       Tue Mar 28 01:10:53 2023
@@ -1,7 +1,12 @@
-$NetBSD: distinfo,v 1.75 2023/03/16 03:28:24 gutteridge Exp $
+$NetBSD: distinfo,v 1.76 2023/03/28 01:10:53 gutteridge Exp $
 
 BLAKE2s (glusterfs-10.3.tar.gz) = c2f9b5670d1df7a787e445207caa421a949f1fb98cafb587441925efe8d9e25a
 SHA512 (glusterfs-10.3.tar.gz) = af7c8a15db48196a5f7022e4da87ae8d8d43a12c8968b242f40fb43ea562d1d214e75b3a67800f8594c97847e15c01367b6d464964252551d6f8d3e93fb0f832
 Size (glusterfs-10.3.tar.gz) = 8283537 bytes
 SHA1 (patch-configure.ac) = e4c2f65d6579aab9b62e28ba60b75ba542116811
+SHA1 (patch-events-src-Makefile.am) = 5a112994c9990962a19eecd3933dabb18d5db2b0
+SHA1 (patch-events-tools-Makefile.am) = b224ed16200befdb68e51eebd762257a0911e591
+SHA1 (patch-extras-Makefile.am) = e5dead8310eed0fa0c6b12aa7a0da52bbeb4d41b
+SHA1 (patch-extras-ganesha-config-Makefile.am) = 547f144948a394aa981a0b799cb7435681f8a5d5
+SHA1 (patch-geo-replication_Makefile.am) = 71c2b4fa9d14d8489db8eaff11f7801792f53122
 SHA1 (patch-libglusterfs-src-glusterfs-dict.h) = ebfdfe6ffbdda3532d15fe108d4214b1e9596304

Added files:

Index: pkgsrc/filesystems/glusterfs/patches/patch-events-src-Makefile.am
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-events-src-Makefile.am:1.1
--- /dev/null   Tue Mar 28 01:10:54 2023
+++ pkgsrc/filesystems/glusterfs/patches/patch-events-src-Makefile.am   Tue Mar 28 01:10:53 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-events-src-Makefile.am,v 1.1 2023/03/28 01:10:53 gutteridge Exp $
+
+Move config file examples into datadir/config.
+
+--- events/src/Makefile.am.orig        2023-03-26 20:21:30.925479702 +0200
++++ events/src/Makefile.am     2023-03-26 20:23:29.931392874 +0200
+@@ -18,7 +18,7 @@
+ 
+ if BUILD_EVENTS
+ eventspeerscriptdir = $(GLUSTERFS_LIBEXECDIR)
+-eventsconfdir = $(sysconfdir)/glusterfs
++eventsconfdir = $(datadir)
+ eventsconf_DATA = eventsconfig.json
+ 
+ events_PYTHON += handlers.py
Index: pkgsrc/filesystems/glusterfs/patches/patch-events-tools-Makefile.am
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-events-tools-Makefile.am:1.1
--- /dev/null   Tue Mar 28 01:10:54 2023
+++ pkgsrc/filesystems/glusterfs/patches/patch-events-tools-Makefile.am Tue Mar 28 01:10:53 2023
@@ -0,0 +1,14 @@
+$NetBSD: patch-events-tools-Makefile.am,v 1.1 2023/03/28 01:10:53 gutteridge Exp $
+
+Move config file examples into datadir/config.
+
+--- ./events/tools/Makefile.am.orig    2023-03-26 22:02:34.114370386 +0200
++++ ./events/tools/Makefile.am 2023-03-26 22:04:34.696253263 +0200
+@@ -1,6 +1,6 @@
+ EXTRA_DIST = eventsdash.py
+ 
+ if BUILD_EVENTS
+-scriptsdir = $(datadir)/glusterfs/scripts
++scriptsdir = $(datadir)/../../glusterfs/scripts
+ scripts_SCRIPTS = eventsdash.py
+ endif
Index: pkgsrc/filesystems/glusterfs/patches/patch-extras-Makefile.am
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-extras-Makefile.am:1.1
--- /dev/null   Tue Mar 28 01:10:54 2023
+++ pkgsrc/filesystems/glusterfs/patches/patch-extras-Makefile.am       Tue Mar 28 01:10:53 2023
@@ -0,0 +1,31 @@
+$NetBSD: patch-extras-Makefile.am,v 1.1 2023/03/28 01:10:53 gutteridge Exp $
+
+Move config file examples into datadir/config.
+
+--- extras/Makefile.am.orig    2023-03-26 21:13:51.077824013 +0200
++++ extras/Makefile.am 2023-03-26 22:06:51.601849285 +0200
+@@ -14,7 +14,7 @@
+           $(GEOREP_EXTRAS_SUBDIR) snap_scheduler firewalld cliutils python \
+                 ganesha
+ 
+-confdir = $(sysconfdir)/glusterfs
++confdir = $(datadir)
+ if WITH_SERVER
+ conf_DATA = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf \
+           logger.conf.example glusterfs-georep-logrotate group-virt.example \
+@@ -22,13 +22,13 @@
+           group-db-workload group-distributed-virt group-samba
+ endif
+ 
+-voldir = $(sysconfdir)/glusterfs
++voldir = $(datadir)
+ vol_DATA = thin-arbiter/thin-arbiter.vol
+ if WITH_SERVER
+ vol_DATA += glusterd.vol
+ endif
+ 
+-scriptsdir = $(datadir)/glusterfs/scripts
++scriptsdir = $(datadir)/../../glusterfs/scripts
+ scripts_SCRIPTS = thin-arbiter/setup-thin-arbiter.sh
+ if WITH_SERVER
+ scripts_SCRIPTS += post-upgrade-script-for-quota.sh \
Index: pkgsrc/filesystems/glusterfs/patches/patch-extras-ganesha-config-Makefile.am
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-extras-ganesha-config-Makefile.am:1.1
--- /dev/null   Tue Mar 28 01:10:54 2023
+++ pkgsrc/filesystems/glusterfs/patches/patch-extras-ganesha-config-Makefile.am        Tue Mar 28 01:10:53 2023
@@ -0,0 +1,12 @@
+$NetBSD: patch-extras-ganesha-config-Makefile.am,v 1.1 2023/03/28 01:10:53 gutteridge Exp $
+
+Move config file examples into datadir/config.
+
+--- extras/ganesha/config/Makefile.am.orig     2023-03-26 21:12:29.411265897 +0200
++++ extras/ganesha/config/Makefile.am  2023-03-26 21:13:03.550663093 +0200
+@@ -1,4 +1,4 @@
+ EXTRA_DIST= ganesha-ha.conf.sample
+ 
+-confdir = $(sysconfdir)/ganesha
++confdir = $(datadir)/ganesha
+ conf_DATA = ganesha-ha.conf.sample
Index: pkgsrc/filesystems/glusterfs/patches/patch-geo-replication_Makefile.am
diff -u /dev/null pkgsrc/filesystems/glusterfs/patches/patch-geo-replication_Makefile.am:1.1
--- /dev/null   Tue Mar 28 01:10:54 2023
+++ pkgsrc/filesystems/glusterfs/patches/patch-geo-replication_Makefile.am      Tue Mar 28 01:10:53 2023
@@ -0,0 +1,13 @@
+$NetBSD: patch-geo-replication_Makefile.am,v 1.1 2023/03/28 01:10:53 gutteridge Exp $
+
+Move config file examples into datadir/config.
+
+--- geo-replication/Makefile.am.orig   2023-03-26 21:48:57.832695826 +0200
++++ geo-replication/Makefile.am        2023-03-26 21:49:19.972307456 +0200
+@@ -4,5 +4,5 @@
+ 
+ EXTRA_DIST = gsyncd.conf.in
+ 
+-gsyncdconfdir = $(sysconfdir)/glusterfs/
++gsyncdconfdir = $(datadir)
+ gsyncdconf_DATA = gsyncd.conf



Home | Main Index | Thread Index | Old Index