stunnel4/tools/Makefile.am

42 lines
1.4 KiB
Makefile
Raw Normal View History

2017-03-28 09:58:13 +02:00
## Process this file with automake to produce Makefile.in
2017-11-15 15:03:25 +01:00
# by Michal Trojnara 2015-2017
2017-03-28 09:58:13 +02:00
2017-11-15 15:03:25 +01:00
EXTRA_DIST = ca.html ca.pl importCA.html importCA.sh script.sh makecert.sh
EXTRA_DIST += openssl.cnf stunnel.nsi stunnel.license stunnel.conf
EXTRA_DIST += stunnel.conf-sample.in stunnel.init.in stunnel.service.in
EXTRA_DIST += stunnel.logrotate stunnel.rh.init stunnel.spec
2017-03-28 09:58:13 +02:00
confdir = $(sysconfdir)/stunnel
conf_DATA = stunnel.conf-sample
docdir = $(datadir)/doc/stunnel
examplesdir = $(docdir)/examples
2017-11-15 15:03:25 +01:00
examples_DATA = stunnel.init stunnel.service
examples_DATA += stunnel.logrotate stunnel.rh.init stunnel.spec
examples_DATA += ca.html ca.pl importCA.html importCA.sh script.sh
CLEANFILES = stunnel.conf-sample stunnel.init stunnel.service
2017-03-28 09:58:13 +02:00
install-data-local:
${INSTALL} -d -m 1770 $(DESTDIR)$(localstatedir)/lib/stunnel
-chgrp $(DEFAULT_GROUP) $(DESTDIR)$(localstatedir)/lib/stunnel
2017-11-15 15:03:25 +01:00
cert:
$(srcdir)/makecert.sh $(srcdir) $(SSLDIR) $(RANDOM_FILE)
${INSTALL} -b -m 600 stunnel.pem $(DESTDIR)$(confdir)/stunnel.pem
rm -f stunnel.pem
edit = sed \
-e 's|@prefix[@]|$(prefix)|g' \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@localstatedir[@]|$(localstatedir)|g' \
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
-e 's|@DEFAULT_GROUP[@]|$(DEFAULT_GROUP)|g'
stunnel.conf-sample stunnel.init stunnel.service: Makefile
$(edit) '$(srcdir)/$@.in' >$@
2017-03-28 09:58:13 +02:00
2017-11-15 15:03:25 +01:00
stunnel.conf-sample: $(srcdir)/stunnel.conf-sample.in
stunnel.init: $(srcdir)/stunnel.init.in
stunnel.service: $(srcdir)/stunnel.service.in