2000-10-10 18:08:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Doing a make install builds /usr/share/sendmail/
|
|
|
|
|
|
|
|
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
|
|
|
CFDIR= cf
|
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)
|
2000-10-10 18:08:19 +00:00
|
|
|
|
|
|
|
DDIR= ${DESTDIR}/usr/share/sendmail
|
|
|
|
|
2004-12-21 08:47:35 +00:00
|
|
|
NO_OBJ=
|
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}
|
|
|
|
|
|
|
|
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}
|
2001-05-29 17:55:49 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir}
|
2000-10-10 18:08:19 +00:00
|
|
|
.endfor
|
|
|
|
.for file in ${CFFILES}
|
2002-07-29 09:40:17 +00:00
|
|
|
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file}
|
2000-10-10 18:08:19 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
symlinks::
|
|
|
|
rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR}
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|