From 8bc85e5cab24fc4fc7b282534666e16f7518d3eb Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Mon, 16 Jun 2025 14:55:11 -0400 Subject: [PATCH] Defining mailleur spooldir --- Makefile | 2 ++ mailleur.spec.in | 5 ++++- starting.sh => support/starting.sh | 0 3 files changed, 6 insertions(+), 1 deletion(-) rename starting.sh => support/starting.sh (100%) diff --git a/Makefile b/Makefile index 6e5ef48..99b5d6e 100644 --- a/Makefile +++ b/Makefile @@ -176,6 +176,7 @@ install : @ install -d $(DESTDIR)/$(ETCDIR)/$(APPN)/ @ install -d $(DESTDIR)/$(LIBDIR)/$(APPN)/ @ install -d $(DESTDIR)/$(SBINDIR)/ + @ install -d $(DESTDIR)/$(SPOOLDIR)/$(APPN)/ @ cp -a \ bin/* \ $(DESTDIR)/$(SBINDIR)/ @@ -203,6 +204,7 @@ APPNAME = mailleur LIBDIR = /usr/lib DATADIR = /usr/share SBINDIR = /usr/sbin +SPOOLDIR= /var/spool ETCDIR = /etc CURDIR = $(shell pwd) #-------------------------------------------------------------------- diff --git a/mailleur.spec.in b/mailleur.spec.in index d0fbdee..7435dcd 100644 --- a/mailleur.spec.in +++ b/mailleur.spec.in @@ -1,5 +1,6 @@ #----------------------------------------------------------------------------- %{?!dist: %define dist @@DIST@@} +%define spooldir %{_localstatedir}/spool/ #----------------------------------------------------------------------------- Name : @@APPN@@ Version : @@VERSION@@ @@ -34,7 +35,9 @@ search about email exchange within time and transaction context. %{_sbindir}/receiver %{_sbindir}/sender %{_sbindir}/sorter -%attr(0755,root,root) %{_libdir}/%{name}/shell/*.sh +%attr(0754,root,root) %{_libdir}/%{name}/shell/*.sh +%attr(0754,root,root) %{_libdir}/%{name}/support/starting.sh +%dir %{spooldir}/%{name} #----------------------------------------------------------------------------- diff --git a/starting.sh b/support/starting.sh similarity index 100% rename from starting.sh rename to support/starting.sh -- 2.47.3