From 729e26191a3b629fc50413c1f4cd67498ed7ad3f Mon Sep 17 00:00:00 2001 From: cs1867 Date: Tue, 11 Jun 2024 17:45:02 +0000 Subject: [PATCH] move common from bundles to minor packages --- common/Makefile | 1 + .../rpm/perfsonar-common.spec | 43 +++++++++++++++++++ unibuild-order | 1 + 3 files changed, 45 insertions(+) create mode 100644 common/Makefile create mode 100644 common/unibuild-packaging/rpm/perfsonar-common.spec diff --git a/common/Makefile b/common/Makefile new file mode 100644 index 0000000..3fd93d6 --- /dev/null +++ b/common/Makefile @@ -0,0 +1 @@ +include unibuild/unibuild.make \ No newline at end of file diff --git a/common/unibuild-packaging/rpm/perfsonar-common.spec b/common/unibuild-packaging/rpm/perfsonar-common.spec new file mode 100644 index 0000000..8043748 --- /dev/null +++ b/common/unibuild-packaging/rpm/perfsonar-common.spec @@ -0,0 +1,43 @@ +%define perfsonar_auto_version 5.2.0 +%define perfsonar_auto_relnum 0.a1.0 + +Version: %{perfsonar_auto_version} +Name: perfsonar-common +Summary: Package common to all perfSONAR tools +Release: %{perfsonar_auto_relnum}%{?dist} +License: ASL 2.0 +Group: Applications/Communications +URL: http://www.perfsonar.net/ +BuildArch: noarch +Requires: coreutils +Requires(pre): coreutils +Requires(post): coreutils +Obsoletes: perfSONAR-Bundles-common +Provides: perfSONAR-Bundles-common + +%description +Package common to all perfsonar tools. Creates users, groups, logging directories, etc. + +%pre +/usr/sbin/groupadd -r perfsonar 2> /dev/null || : +/usr/sbin/useradd -g perfsonar -r -s /sbin/nologin -c "perfSONAR User" -d /tmp perfsonar 2> /dev/null || : + +%post +mkdir -p /var/log/perfsonar +chown perfsonar:perfsonar /var/log/perfsonar +mkdir -p /var/lib/perfsonar/bundles + +%files +%defattr(0644,perfsonar,perfsonar,0755) + +%changelog +* Fri Oct 15 2021 daniel.neto@rnp.br +- Add logstash configuration +* Mon Jul 14 2015 andy@es.net +- common bundle +* Mon Jul 06 2015 adelvaux@man.poznan.pl +- Tools bundle +* Wed Mar 25 2015 sowmya@es.net +- Core bundle +* Tue Mar 24 2015 sowmya@es.net +- Testpoint and CentralManagement bundle diff --git a/unibuild-order b/unibuild-order index 4f481ac..4edee7e 100644 --- a/unibuild-order +++ b/unibuild-order @@ -8,6 +8,7 @@ changecom()dnl # more information. # +common opensearch --no-install perl-CGI-Ajax perl-Data-Validate-Domain