1# 2# Doing a make install builds /usr/share/sendmail/ 3 4PACKAGE= sendmail 5FILESGROUPS+= SM 6SENDMAIL_DIR= ${SRCTOP}/contrib/sendmail 7CFDIR= cf 8CFPACKAGE= sendmail 9CFDIRS!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type d -print) 10CFFILES!= (cd ${SENDMAIL_DIR}; find -L ${CFDIR} \( \( -name CVS -o -name .svn \) -prune \) -o -type f -print) 11SMFILES= ${CFFILES} 12SMFILESDIR= ${DDIR} 13 14DDIR= ${DESTDIR}${SHAREDIR}/sendmail 15 16# Define SHARED to indicate whether you want symbolic links to the system 17# source (``symlinks''), or a separate copy (``copies'') 18SHARED?= copies 19 20all clean cleandir depend lint tags: 21 22beforeinstall: ${SHARED} 23META_TARGETS+= copies symlinks 24 25copies: 26 if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi 27.for dir in ${CFDIRS} 28 ${INSTALL} -T package=${PACKAGE:Usendmail} ${TAGS_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir} 29.endfor 30.for file in ${CFFILES} 31 ${INSTALL} -T package=${PACKAGE:Usendmail} ${TAGS_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 ${SENDMAIL_DIR}/${file} ${DDIR}/${file} 32.endfor 33 34symlinks: 35 rm -rf ${DDIR}/${CFDIR}; ln -s ${SENDMAIL_DIR}/${CFDIR} ${DDIR}/${CFDIR} 36 37.include <bsd.prog.mk> 38