#ident	"@(#)smail:RELEASE-3_2_0_111:EDITME-netbsdpkg,v 1.10 2000/01/31 17:18:05 woods Exp"
#
# netbsdpkg -- a netbsd install under "$PREFIX" with lots of options
#
# This should also work for FreeBSD and OpenBSD, or by hand with
# $PREFIX set in the environment (which is what the pkgsrc do-build
# target does).  Note though that you'll probably want the
# "mailwrapper" program too since this package explictly does *not*
# replace sendmail directly but installs in $PREFIX/libexec/smail.
#
CFLAGS="-g -O2 -pipe"
LDFLAGS="-g -O2 -pipe"
# don't waste time searching the sysem default directories twice for
# package libident and libwhoson.
if [ "$PREFIX" != /usr ]; then
	CPPFLAGS="-I$PREFIX/include"
	LDFLAGS="$LDFLAGS -L$PREFIX/lib"
fi
LIBS="-lident -lwrap -lwhoson"
OS_TYPE=bsd4.4-lite
MISC_DEFINES=SMAIL_LOG_STYLE=2:NO_FORWARDTO_FILE:USE_TARGET_DOMAIN:USE_LSEARCH_REGEXCMP:USE_STRICT_MX:LOG_SMTP_NON_COMPLIANCE:LOG_SMTP_ILLEGAL_OPERAND_WARNING
HAVE=RFC1413:EHLO:LIBWRAP:LIBWHOSON
# It would be nice to be able to force this to /etc/smail, but that
# cannot yet be done with NetBSD's pkg tools.
# (PLIST entries always have the value of $PREFIX added to them)
LIB_DIR=$PREFIX/etc/smail
UTIL_BIN_DIR=$PREFIX/libexec/smail
SMAIL_BIN_DIR=$UTIL_BIN_DIR
# Note that the following two depend on having mailwrapper to replace sendmail
NEWALIASES="$UTIL_BIN_DIR/newaliases"
OTHER_SMAIL_NAMES="$UTIL_BIN_DIR/sendmail:$UTIL_BIN_DIR/rmail"
# empty to use $SMAIL_BIN_DIR/smail
SMAIL_NAME=''
# Note that the pkg_* tools will not know about these /var places, but
# that's OK because they get created at run-time....
SPOOL_DIRS=/var/spool/smail
TMP_DIR=/var/spool/smail/tmp
LOG_DIR=/var/log/smail
UNSHAR_MAP_DIR=/var/spool/uumaps
NEWS_SPOOL_DIR=/var/spool/news
UUWHO_FILE=/var/spool/smail/uuwho
# These *should* be $PREFIX/share/man, but that is not yet fixed.
# If you set [PREFIX|LOCALBASE]=/usr then "ln -s share/man /usr/man"....
MAN1=$PREFIX/man/man1
MAN1_EXT=1
MAN5=$PREFIX/man/man5
MAN5_EXT=5
MAN8=$PREFIX/man/man8
MAN8_EXT=8
# The pkg_* tools won't know about /etc/aliases either, but we're simply
# stealing it from sendmail anyway....
ALIASES_FILE=/etc/aliases
# ... though we are eliminating the use of db and/or dbm
ALIASES_TYPE=lsearch
FORCE_PATHS_FILE=forcepaths
FORCE_PATHS_TYPE=lsearch
FORCE_SMTP_FILE=forcesmtp
FORCE_SMTP_TYPE=lsearch
REWRITE_FILE=rewrite
REWRITE_TYPE=lsearch
# this assumes you use the HDB UUCP style config, which is
# the only one that will work with UUCP_SYSTEM_FILE anyway...
# (and if this file does not exist "uuname" is used instead)
UUCP_SYSTEM_FILE=/etc/uucp/Systems
MISC_C_DEFINES='
#define NO_ALIASES_OPTIONAL		/* aliases file is not optional */
#define ALIASES_TRYAGAIN		/* defer message if no aliases file */
'
