]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Improving spec file
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 25 Jun 2025 17:11:56 +0000 (13:11 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Wed, 25 Jun 2025 17:11:56 +0000 (13:11 -0400)
Makefile
mailleur.spec.in
sql/Makefile

index 4e04ababac50f2a6da5bb13e3cbf88584cb5599b..bc45542ffd6d64e75a10343d90b2c8737ef11194 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -230,6 +230,9 @@ install     :
           @ cp -a                                      \
                sysconfig                               \
                $(DESTDIR)/$(ETCDIR)/
+          @ cp -a                                      \
+               sql                                     \
+               $(DESTDIR)/$(DATADIR)/$(APPN)/
 
 #--------------------------------------------------------------------
 SUBDIR =                                               \
index bb8fc0c463aca704567d0b819022465ad456c705..b671b13d3f602becf10ca7196d9e7576aad0e4d5 100644 (file)
@@ -49,6 +49,11 @@ search about email exchange within time and transaction context.
 %attr(0754,root,root) %{_libdir}/%{name}/support/dummy-cert.sh
 %attr(0754,root,root) %{_libdir}/%{name}/support/starting.sh
 %attr(0755,%{name},mail) %dir %{spooldir}/%{name}/{in-logs,mails,queue,out-logs}
+%attr(0640,root,root) %{_datadir}/%{name}/sql/Makefile
+%attr(0644,root,root) %{_datadir}/%{name}/sql/datatest.def
+%attr(0644,root,root) %{_datadir}/%{name}/sql/*.sql
+%exclude %{_datadir}/%{name}/sql/%{name}.mysql
+%exclude %{_datadir}/%{name}/sql/%{name}.postg
 #-----------------------------------------------------------------------------
 
 %preun
index 3243dd28d01e7b1d92cea785b97525bbf93e422e..7e1ca5bcd0ce0906209f0638978749252d0558bc 100644 (file)
@@ -14,11 +14,13 @@ prepdb      :  debug deltest newtest
           
 mailleur.postg                                 \
        :  mailleur.sql
-          @ cpp -P -DPOSTGRESQL        mailleur.sql > mailleur.postg
+          @ cpp -P -DPOSTGRESQL                \
+               mailleur.sql > mailleur.postg
 
 mailleur.mysql                                 \
        :  mailleur.sql
-          @ cpp -P -DMYSQL     mailleur.sql > mailleur.mysql
+          @ cpp -P -DMYSQL                     \
+               mailleur.sql > mailleur.mysql
 
 dbmysql        :  mailleur.mysql
           @ - (                                        \