]> SAFE projects GIT repository - jmp/mailleur/commitdiff
TRying to install sorter shell script within binary rpm
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 16 Jun 2025 18:13:28 +0000 (14:13 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 16 Jun 2025 18:13:28 +0000 (14:13 -0400)
Makefile
Makefile.dist
mailleur.spec.in

index eac7a6292c4739d25afdaca6a4b020e08635e9bc..02f2642cf29eac20a3b8bb2e42a323c7962e60d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -173,17 +173,17 @@ deltest   :
 install        :
           @ # Creating all needed system directory
           @ install -d $(DESTDIR)/$(SBINDIR)/
-          @ install -d $(DESTDIR)/$(DATADIR)/$(APPN)
+          @ install -d $(DESTDIR)/$(DATADIR)/$(APPN)/
           @ install -d $(DESTDIR)/$(ETCDIR)/$(APPN)/
           @ cp -a                                      \
                bin/*                                   \
                $(DESTDIR)/$(SBINDIR)/
-          @ cp -a                                      \
-               linux
-               $(DESTDIR)/$(DATADIR)/$(APPN)
           @ cp -a                                      \
                conf/$(APPN).conf                       \
                $(DESTDIR)/$(ETCDIR)/$(APPN)
+          @ cp -a                                      \
+               linux                                   \
+               $(DESTDIR)/$(DATADIR)/$(APPN)/
 
 #--------------------------------------------------------------------
 SUBDIR =                                               \
@@ -195,7 +195,7 @@ SUBDIR      =                                               \
 APPNAME        =  mailleur
 #--------------------------------------------------------------------
 #Managing testarea
-DATDIR = usr/share
+DATADIR        = usr/share
 SBINDIR = /usr/sbin
 ETCDIR = /etc
 CURDIR  = $(shell pwd)
index 17d50e39b32b472a319aea6da58be8a5482c4e06..c6bdbedfe52b379bb7b0d9cce0012cc24946723a 100644 (file)
@@ -5,6 +5,7 @@ APPN    =       mailleur
 binary : rpm
          @ echo "'$(APLV)' RPM binary file, building"
          @ rpmbuild                                            \
+               --noclean                                       \
                --quiet                                         \
                --rebuild                                       \
                --define "_topdir $(RPMDIR)"                    \
@@ -31,15 +32,18 @@ tarfile     : clean
                $(APLV)/conf                                    \
                $(APLV)/bin                                     \
                $(APLV)/lib                                     \
+               $(APLV)/linux                                   \
                $(APLV)
          @ date > $(APLV)/$(APLV).build_date
          @ cp -a Makefile*     $(APLV)/
          @ cp -a app/*.c       $(APLV)/app/
          @ cp -a conf/*.conf   $(APLV)/conf/
          @ cp -a lib/{*.c,*.h} $(APLV)/lib/
+         @ cp -a linux/*       $(APLV)/linux/
          @ cp -a app/Makefile  $(APLV)/app/Makefile
          @ cp -a lib/Makefile  $(APLV)/lib/Makefile
          @ tar zcf $(SRC)/$(APLV).tar.gz $(APLV)
+         @ rm -fr $(APLV)
          @ echo "'$(APLV)' tar file, ready"
          
 spec   : $(APPN).spec.in
index 597bd9e3bbbbda48eda23d3d82e45a1fdd3dafcb..d8a383680990951f734cee72c5da1c3aaca1f56b 100644 (file)
@@ -24,8 +24,7 @@ search about email exchange within time and transaction context.
 %files                 
 %defattr(-,root,root,-)
 %attr(0644,%{name},mail) %config(noreplace) %{_sysconfdir}/%{name}/*
-%attr(0755,root,root) %{_datadir}/%{name}/linux/osukiss/%{name}
-%attr(0755,root,root) %{_datadir}/%{name}/linux/sysv/%{name}
+%attr(0755,root,root) %{_datadir}/%{name}/linux/osukiss/sorter
 %{_sbindir}/chkspf
 %{_sbindir}/receiver
 %{_sbindir}/sender