]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Defining mailleur spooldir
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 16 Jun 2025 18:55:11 +0000 (14:55 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 16 Jun 2025 18:55:11 +0000 (14:55 -0400)
Makefile
mailleur.spec.in
support/starting.sh [moved from starting.sh with 100% similarity]

index 6e5ef4829a900bb66e40cc82d74aa6eea39a8c97..99b5d6e20c3e74ca8cd02be98e1d05cda801b0b0 100644 (file)
--- 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)
 #--------------------------------------------------------------------
index d0fbdee2040768445a469f3f10e12eb7f6dd13de..7435dcd51cf7d8fadc2c2ce83ca442e433ecd546 100644 (file)
@@ -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}
 
 #-----------------------------------------------------------------------------
 
similarity index 100%
rename from starting.sh
rename to support/starting.sh