3 ### Build script for distorted.org.uk key management
5 ### (c) 2011 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of the distorted.org.uk key management suite.
12 ### distorted-keys is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU General Public License as published by
14 ### the Free Software Foundation; either version 2 of the License, or
15 ### (at your option) any later version.
17 ### distorted-keys is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ### GNU General Public License for more details.
22 ### You should have received a copy of the GNU General Public License
23 ### along with distorted-keys; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
37 ###--------------------------------------------------------------------------
38 ### Substitution of configuration data.
40 confsubst = $(top_srcdir)/config/confsubst
41 EXTRA_DIST += config/confsubst
44 PACKAGE="$(PACKAGE)" VERSION="$(VERSION)" \
47 pkgconfdir="$(sysconfdir)/$(PACKAGE)" \
48 pkgstatedir="$(localstatedir)/$(PACKAGE)" \
49 pkglibdir="$(pkglibdir)"
51 SUBST = $(AM_V_GEN)$(confsubst)
53 ###--------------------------------------------------------------------------
56 ## Shamir secret-sharing.
58 EXTRA_DIST += shamir.in
60 shamir: shamir.in Makefile
61 $(SUBST) $(srcdir)/shamir.in $(SUBSTVARS) >shamir.new && \
62 chmod +x shamir.new && mv shamir.new shamir
64 ## Property expansion.
65 bin_SCRIPTS += extract-profile
66 EXTRA_DIST += extract-profile.in
67 CLEANFILES += extract-profile
68 extract-profile: extract-profile.in Makefile
69 $(SUBST) $(srcdir)/extract-profile.in $(SUBSTVARS) \
70 >extract-profile.new && \
71 chmod +x extract-profile.new && \
72 mv extract-profile.new extract-profile
74 ###--------------------------------------------------------------------------
75 ### Crypto operations.
77 ## Main driver program.
78 sbin_SCRIPTS += cryptop
79 EXTRA_DIST += cryptop.in
81 cryptop: cryptop.in Makefile
82 $(SUBST) $(srcdir)/cryptop.in $(SUBSTVARS) >cryptop.new && \
83 chmod +x cryptop.new && mv cryptop.new cryptop
85 ## Key type libraries.
86 dist_pkglib_DATA += ktype.gnupg
87 dist_pkglib_DATA += ktype.seccure
90 dist_pkglib_SCRIPTS += cryptop.genkey
91 dist_pkglib_SCRIPTS += cryptop.delkey
92 dist_pkglib_SCRIPTS += cryptop.recover
93 dist_pkglib_SCRIPTS += cryptop.info
94 dist_pkglib_SCRIPTS += cryptop.public
95 dist_pkglib_SCRIPTS += cryptop.encrypt
96 dist_pkglib_SCRIPTS += cryptop.decrypt
97 dist_pkglib_SCRIPTS += cryptop.sign
98 dist_pkglib_SCRIPTS += cryptop.verify
100 ###--------------------------------------------------------------------------
101 ### Main driver program and commands.
105 EXTRA_DIST += keys.in
107 keys: keys.in Makefile
108 $(SUBST) $(srcdir)/keys.in $(SUBSTVARS) >keys.new && \
109 chmod +x keys.new && mv keys.new keys
111 ## Utilities library.
112 pkglib_DATA += keyfunc.sh
113 EXTRA_DIST += keyfunc.sh.in
114 CLEANFILES += keyfunc.sh
115 keyfunc.sh: keyfunc.sh.in Makefile
116 $(SUBST) $(srcdir)/keyfunc.sh.in $(SUBSTVARS) >keyfunc.sh.new && \
117 mv keyfunc.sh.new keyfunc.sh
120 dist_pkglib_SCRIPTS += keys.conceal
121 dist_pkglib_SCRIPTS += keys.keeper-cards
122 dist_pkglib_SCRIPTS += keys.new-keeper
123 dist_pkglib_SCRIPTS += keys.new-recov
124 dist_pkglib_SCRIPTS += keys.recover
125 dist_pkglib_SCRIPTS += keys.reveal
126 dist_pkglib_SCRIPTS += keys.stash
128 ###----- That's all, folks --------------------------------------------------