#====================================================================
+#Makefile to build the package
+#default make
+default : clean debug
+#--------------------------------------------------------------------
#test area Makefile
include Makefile.dbg
#distribution area Makefile
include Makefile.dist
-
-#Makefile to build the package
-#--------------------------------------------------------------------
-#default make
-default : clean prod
#--------------------------------------------------------------------
#Executable generation area
#--------------------------------------------------------------------
:
@ for i in $(SUBDIR) ; \
do \
- $(MAKE) -s -C $$i $@ ; \
+ $(MAKE) DB=$(DB) -s -C $$i $@ ; \
done
clean : cleanrpm
#testing TLS connection
tlsrcvr :
@ clear
- @ openssl s_client \
+ openssl s_client \
-crlf \
-CAfile certs/root-safe_CA.pem \
-cert certs/localhost-cert.pem \
-key certs/localhost-key.pem \
-starttls smtp \
- -connect $(TESTIP):$(TESTPORT)
+ -connect mailpostg.example.com:25
go465 :
@ clear
# -debug
# -showcerts
# -tls1_2
+# -connect mailpostg.example.com:25
# -connect mailprod1.safe.ca:25
# -connect $(TESTSRV):$(TESTPORT)
# -connect smtp.google.com:25
#definitions globale
APPNAME = mailleur
#--------------------------------------------------------------------
+#to set the compiled default library
+ifeq ($(strip $(DB)),)
+DB=1
+endif
+#--------------------------------------------------------------------
#Managing testarea
LIBDIR = /usr/lib
DATADIR = /usr/share
binary : rpm
@ echo "'$(APLV)' RPM binary file, building"
@ rpmbuild \
- --noclean \
--quiet \
+ --noclean \
--rebuild \
--define "_topdir $(RPMDIR)" \
--target `uname -m` \
- $(SRPM)/$(APPN)-$(VERSION).$(RELEASE)-*.src.rpm > /dev/null
+ $(SRPM)/$(APPN)-$(VERSION).$(RELEASE)-*.src.rpm
@ echo "'$(APLV)' RPM binary file, ready"
rpm : cleanrpm tarfile spec
BuildRequires : postgresql
Requires : bash
+Requires : openssl
+Requires : sed
#-----------------------------------------------------------------------------
%description
#building application
%build
+#to set the database add DB=x to Make
#DB=1 ->Postgresql
#DB=2 ->MYSQL
-%{__make} \
- DB=1 \
- debug
+#default is DB=1 (Postgresql)
+%{__make}
#-----------------------------------------------------------------------------