Commit 9e0180e5 authored by Alex Norton's avatar Alex Norton

added the email configuration to the input fossology.conf

added the sample header and footer text files
added installation of the sample header and footer files to the Makefile

git-svn-id: http://svn.code.sf.net/p/fossology/code/branches/fossology2.0/fossology@5317 a5643f74-2041-0410-a2b9-94ffef304a07
parent 663bf3f5
......@@ -61,9 +61,27 @@ install: all
echo "WARNING: $(DESTDIR)$(CONFPATH)/fossology.conf already exists."; \
echo " Not overwriting, consider checking it by hand or use the OVERWRITE option."; \
fi \
if [ ! -f $(DESTDIR)$(CONFPATH)/sampleheader.txt -o "$(OVERWRITE)" ] ; then \
echo "NOTE: using default version for $(DESTDIR)$(CONFPATH)/sampleheader.txt"; \
$(INSTALL) -m 666 defconf/sampleheader.txt $(DESTDIR)$(CONFPATH)/sampleheader.txt; \
else \
echo "WARNING: $(DESTDIR)$(CONFPATH)/sampleheader.txt already exists."; \
echo " Not overwriting, consider checking it by hand or use the OVERWRITE option."; \
fi \
if [ ! -f $(DESTDIR)$(CONFPATH)/samplefooter.txt -o "$(OVERWRITE)" ] ; then \
echo "NOTE: using default version for $(DESTDIR)$(CONFPATH)/samplefooter.txt"; \
$(INSTALL) -m 666 defconf/samplefooter.txt $(DESTDIR)$(CONFPATH)/samplefooter.txt; \
else \
echo "WARNING: $(DESTDIR)$(CONFPATH)/samplefooter.txt already exists."; \
echo " Not overwriting, consider checking it by hand or use the OVERWRITE option."; \
fi \
uninstall:
rm -f $(DESTDIR)$(LIBEXECDIR)/fo-postinstall
rm -f $(DESTDIR)$(CONFPATH)/sampleheader.txt
rm -f $(DESTDIR)$(CONFPATH)/samplefooter.txt
@if [ -d $(DESTDIR)$(LIBEXECDIR) ]; then \
if [ "`ls -A $(DESTDIR)$(LIBEXECDIR)`" ]; then \
......
......@@ -76,3 +76,16 @@ PROJECTSTATEDIR=$LOCALSTATEDIR/lib/$PROJECT
; project logdir
LOGDIR=/var/log/$PROJECT
; section that allows fossology to send email notifications to users when their
; job has successfully finished. Both the header and footer for the email are
; in text files in the fossology system configuration directory (the same
; directory that contains this file). The subject is simply the subject that
; will be used in the email notification.
[EMAILNOTIFY]
header = sampleheader.txt
footer = samplefooter.txt
subject = FOSSology scan complete
client = /usr/bin/mailx
FOSSology scan has completed.
$BROWSELINK
$JOBQUEUELINK
$SCHEDULERLOG
$UPLOADFOLDERNAME
$DB.upload.upload_pk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment