2000-10-10 18:08:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Doing a make install builds /usr/share/sendmail/
|
|
|
|
|
2016-05-10 00:51:50 +00:00
|
|
|
PACKAGE= sendmail
|
|
|
|
FILESGROUPS+= SM
|
2000-10-10 18:08:19 +00:00
|
|
|
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
|
|
|
CFDIR= cf
|
2015-09-12 11:41:31 +00:00
|
|
|
CFPACKAGE= sendmail
|
2008-05-31 19:15:15 +00:00
|
|
|
CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type d -print)
|
|
|
|
CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type f -print)
|
2016-05-10 00:51:50 +00:00
|
|
|
SMFILES= ${CFFILES}
|
|
|
|
SMFILESDIR= ${DDIR}
|
2000-10-10 18:08:19 +00:00
|
|
|
|
2015-10-27 23:35:02 +00:00
|
|
|
DDIR= ${DESTDIR}${SHAREDIR}/sendmail
|
2000-10-10 18:08:19 +00:00
|
|
|
|
|
|
|
# Define SHARED to indicate whether you want symbolic links to the system
|
|
|
|
# source (``symlinks''), or a separate copy (``copies'')
|
|
|
|
SHARED?= copies
|
|
|
|
|
|
|
|
all clean cleandir depend lint tags:
|
|
|
|
|
|
|
|
beforeinstall: ${SHARED}
|
2016-03-11 23:45:28 +00:00
|
|
|
META_TARGETS+= copies symlinks
|
2000-10-10 18:08:19 +00:00
|
|
|
|
2016-04-14 21:04:42 +00:00
|
|
|
copies:
|
2003-05-06 03:38:24 +00:00
|
|
|
if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi
|
2000-10-10 18:08:19 +00:00
|
|
|
.for dir in ${CFDIRS}
|
2016-05-10 00:51:50 +00:00
|
|
|
${INSTALL} -T package=${PACKAGE:Usendmail} ${TAGS_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
|
2000-10-10 18:08:19 +00:00
|
|
|
.endfor
|
|
|
|
.for file in ${CFFILES}
|
2016-05-10 00:51:50 +00:00
|
|
|
${INSTALL} -T package=${PACKAGE:Usendmail} ${TAGS_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
|
2000-10-10 18:08:19 +00:00
|
|
|
.endfor
|
|
|
|
|
2016-04-14 21:04:42 +00:00
|
|
|
symlinks:
|
2000-10-10 18:08:19 +00:00
|
|
|
rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|