bincimap

Log | Files | Refs | LICENSE

Makefile.am (2856B)


      1 # This program is free software; you can redistribute it and/or modify
      2 # it under the terms of the GNU General Public License as published by
      3 # the Free Software Foundation; either version 2 of the License, or
      4 # (at your option) any later version.
      5 
      6 # You should have received a copy of the GNU General Public License
      7 # along with this program; if not, write to the Free Software
      8 # Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307,
      9 # USA.
     10 
     11 #--------------------------------------------------------------------------
     12 SUBDIRS = conf contrib doc man service src
     13 
     14 #--------------------------------------------------------------------------
     15 EXTRA_DIST = bincimap.spec config.h COPYING.OpenSSL config.h.in README.SSL
     16 
     17 #--------------------------------------------------------------------------
     18 cert:
     19 	@um=$(umask); umask 77 >/dev/null 2>&1; KEY=`mktemp /tmp/openssl.XXXXXX`; CERT=`mktemp /tmp/openssl.XXXXXX` ; openssl req -newkey rsa:1024 -keyout $$KEY -nodes -days 365 -out $$CERT ; cat $$KEY > bincimap.pem; echo "" >> bincimap.pem ; cat $$CERT >> bincimap.pem; rm $$CERT $$KEY; umask $(um) >/dev/null 2>&1
     20 	@echo
     21 	@echo "Created 1024 bit private key and a certificate"
     22 	@echo "request in bincimap.pem. For more info, please"
     23 	@echo "read README.SSL."
     24 
     25 #--------------------------------------------------------------------------
     26 testcert:
     27 	@um=$(umask); umask 77 >/dev/null 2>&1; PEM1=`mktemp /tmp/openssl.XXXXXX`; PEM2=`mktemp /tmp/openssl.XXXXXX` ; openssl req -newkey rsa:1024 -keyout $$PEM1 -nodes -x509 -days 365 -out $$PEM2 ; cat $$PEM1 >  $(DESTDIR)$(sysconfdir)/bincimap.pem; echo "" >> $(DESTDIR)$(sysconfdir)/bincimap.pem ; cat $$PEM2 >> $(DESTDIR)$(sysconfdir)/bincimap.pem; $(RM) $$PEM1 $$PEM2; umask $(um) >/dev/null 2>&1
     28 	@echo
     29 	@echo "Created 1024 bit bincimap.pem"
     30 	@echo "private key with a 1 year test certificate."
     31 	@echo "This certificate is only secure in closed networks."
     32 	@echo "For more info, please read README.SSL."
     33 
     34 #--------------------------------------------------------------------------
     35 cacert:
     36 	@openssl req -out ca.pem -new -x509
     37 	@um=$(umask); umask 77 >/dev/null 2>&1; KEY=`mktemp /tmp/openssl.XXXXXX`; CERT=`mktemp /tmp/openssl.XXXXXX` ; openssl req -newkey rsa:1024 -keyout $$KEY -CA ca.pem -nodes -x509 -days 365 -out $$CERT ; cat $$KEY > bincimap.pem; echo "" >> bincimap.pem; cat $$CERT >> bincimap.pem; rm $$KEY $$CERT; umask $(um) >/dev/null 2>&1
     38 	@echo
     39 	@echo "Created CA certificate in ca.pem."
     40 	@echo "Created 1024 bit private key and certificate in bincimap.pem (lasts 365 days)."
     41 	@echo "For more info, please read README.SSL."
     42 
     43 #--------------------------------------------------------------------------
     44 install-exec-hook:
     45 	@echo >> $(srcdir)/install.log
     46 	@echo "Installation of Binc IMAP v@VERSION@ is complete. Happy IMAPing!" >> $(srcdir)/install.log
     47 	@echo
     48 	@cat $(srcdir)/install.log
     49 	@echo