File: Makefile.am

package info (click to toggle)
bincimap 1.2.14beta2.dfsg-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,832 kB
  • ctags: 1,255
  • sloc: cpp: 13,578; sh: 901; makefile: 214; perl: 38
file content (49 lines) | stat: -rw-r--r-- 2,856 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307,
# USA.

#--------------------------------------------------------------------------
SUBDIRS = conf contrib doc man service src

#--------------------------------------------------------------------------
EXTRA_DIST = bincimap.spec config.h COPYING.OpenSSL config.h.in README.SSL

#--------------------------------------------------------------------------
cert:
	@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
	@echo
	@echo "Created 1024 bit private key and a certificate"
	@echo "request in bincimap.pem. For more info, please"
	@echo "read README.SSL."

#--------------------------------------------------------------------------
testcert:
	@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
	@echo
	@echo "Created 1024 bit bincimap.pem"
	@echo "private key with a 1 year test certificate."
	@echo "This certificate is only secure in closed networks."
	@echo "For more info, please read README.SSL."

#--------------------------------------------------------------------------
cacert:
	@openssl req -out ca.pem -new -x509
	@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
	@echo
	@echo "Created CA certificate in ca.pem."
	@echo "Created 1024 bit private key and certificate in bincimap.pem (lasts 365 days)."
	@echo "For more info, please read README.SSL."

#--------------------------------------------------------------------------
install-exec-hook:
	@echo >> $(srcdir)/install.log
	@echo "Installation of Binc IMAP v@VERSION@ is complete. Happy IMAPing!" >> $(srcdir)/install.log
	@echo
	@cat $(srcdir)/install.log
	@echo