Update build infrastructure for sendmail 8.12.
This commit is contained in:
parent
1e52eaa830
commit
730b12a9a9
@ -9,19 +9,22 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
||||
PROG= rmail
|
||||
SRCS= rmail.c
|
||||
MAN= rmail.8
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/include
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/include -I.
|
||||
WARNS= 0
|
||||
WFORMAT=0
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsmutil)
|
||||
LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
|
||||
.if exists(${.OBJDIR}/../../lib/libsm)
|
||||
LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
|
||||
.else
|
||||
LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
|
||||
LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
|
||||
LIBSM:= ${LIBSMDIR}/libsm.a
|
||||
|
||||
DPADD= ${LIBSMUTIL}
|
||||
LDADD= ${LIBSMUTIL}
|
||||
DPADD= ${LIBSM}
|
||||
LDADD= ${LIBSM}
|
||||
|
||||
SRCS+= sm_os.h
|
||||
CLEANFILES+=sm_os.h
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
CFLAGS+=${SENDMAIL_CFLAGS}
|
||||
@ -36,4 +39,7 @@ LDFLAGS+=${SENDMAIL_LDFLAGS}
|
||||
# Not much point this being static. It calls a shared sendmail...
|
||||
NOSHARED?= NO
|
||||
|
||||
sm_os.h:
|
||||
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -5,7 +5,7 @@ MAINTAINER= gshapiro@FreeBSD.org
|
||||
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
||||
.PATH: ${SENDMAIL_DIR}/libsmdb
|
||||
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
||||
CFLAGS+=-DNEWDB -DNOT_SENDMAIL
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
@ -13,10 +13,15 @@ CFLAGS+=${SENDMAIL_CFLAGS}
|
||||
|
||||
LIB= smdb
|
||||
|
||||
SRCS+= sm_os.h
|
||||
SRCS+= smdb.c smdb1.c smdb2.c smndbm.c
|
||||
CLEANFILES+=sm_os.h
|
||||
|
||||
INTERNALLIB= true
|
||||
NOPIC= true
|
||||
INTERNALSTATICLIB= true
|
||||
|
||||
sm_os.h:
|
||||
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -5,7 +5,7 @@ MAINTAINER= gshapiro@FreeBSD.org
|
||||
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
||||
.PATH: ${SENDMAIL_DIR}/libsmutil
|
||||
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
||||
CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
@ -13,10 +13,15 @@ CFLAGS+=${SENDMAIL_CFLAGS}
|
||||
|
||||
LIB= smutil
|
||||
|
||||
SRCS+= debug.c errstring.c lockfile.c safefile.c snprintf.c strl.c
|
||||
SRCS+= sm_os.h
|
||||
SRCS+= debug.c err.c lockfile.c safefile.c snprintf.c cf.c
|
||||
CLEANFILES+=sm_os.h
|
||||
|
||||
INTERNALLIB= true
|
||||
NOPIC= true
|
||||
INTERNALSTATICLIB= true
|
||||
|
||||
sm_os.h:
|
||||
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
@ -9,18 +9,21 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
||||
PROG= mail.local
|
||||
SRCS= mail.local.c
|
||||
MAN= mail.local.8
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/include
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/include -I.
|
||||
WFORMAT=0
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsmutil)
|
||||
LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
|
||||
.if exists(${.OBJDIR}/../../lib/libsm)
|
||||
LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
|
||||
.else
|
||||
LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
|
||||
LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
|
||||
LIBSM:= ${LIBSMDIR}/libsm.a
|
||||
|
||||
DPADD= ${LIBSMUTIL}
|
||||
LDADD= ${LIBSMUTIL}
|
||||
DPADD= ${LIBSM}
|
||||
LDADD= ${LIBSM}
|
||||
|
||||
SRCS+= sm_os.h
|
||||
CLEANFILES+=sm_os.h
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
CFLAGS+=${SENDMAIL_CFLAGS}
|
||||
@ -28,4 +31,7 @@ DPADD+=${SENDMAIL_DPADD}
|
||||
LDADD+=${SENDMAIL_LDADD}
|
||||
LDFLAGS+=${SENDMAIL_LDFLAGS}
|
||||
|
||||
sm_os.h:
|
||||
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -9,17 +9,20 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
||||
PROG= smrsh
|
||||
SRCS= smrsh.c
|
||||
MAN= smrsh.8
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsmutil)
|
||||
LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
|
||||
.if exists(${.OBJDIR}/../../lib/libsm)
|
||||
LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
|
||||
.else
|
||||
LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
|
||||
LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
|
||||
LIBSM:= ${LIBSMDIR}/libsm.a
|
||||
|
||||
DPADD= ${LIBSMUTIL}
|
||||
LDADD= ${LIBSMUTIL}
|
||||
DPADD= ${LIBSM}
|
||||
LDADD= ${LIBSM}
|
||||
|
||||
SRCS+= sm_os.h
|
||||
CLEANFILES+=sm_os.h
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
CFLAGS+=${SENDMAIL_CFLAGS}
|
||||
@ -27,4 +30,7 @@ DPADD+=${SENDMAIL_DPADD}
|
||||
LDADD+=${SENDMAIL_LDADD}
|
||||
LDFLAGS+=${SENDMAIL_LDFLAGS}
|
||||
|
||||
sm_os.h:
|
||||
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -6,10 +6,18 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
||||
.PATH: ${SENDMAIL_DIR}/vacation
|
||||
|
||||
PROG= vacation
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
|
||||
SRCS= vacation.c
|
||||
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
||||
CFLAGS+=-DNEWDB -DNOT_SENDMAIL
|
||||
CFLAGS+=-D_FFR_LISTDB -D_FFR_DEBUG
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsm)
|
||||
LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
|
||||
.else
|
||||
LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSM:= ${LIBSMDIR}/libsm.a
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsmdb)
|
||||
LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb
|
||||
.else
|
||||
@ -24,8 +32,11 @@ LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
|
||||
|
||||
DPADD= ${LIBSMDB} ${LIBSMUTIL}
|
||||
LDADD= ${LIBSMDB} ${LIBSMUTIL}
|
||||
DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
|
||||
LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
|
||||
|
||||
SRCS+= sm_os.h
|
||||
CLEANFILES+=sm_os.h
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
CFLAGS+=${SENDMAIL_CFLAGS}
|
||||
@ -33,4 +44,7 @@ DPADD+=${SENDMAIL_DPADD}
|
||||
LDADD+=${SENDMAIL_LDADD}
|
||||
LDFLAGS+=${SENDMAIL_LDFLAGS}
|
||||
|
||||
sm_os.h:
|
||||
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -7,9 +7,18 @@ SENDMAIL_DIR= ${.CURDIR}/../../contrib/sendmail
|
||||
.PATH: ${SENDMAIL_DIR}/mailstats
|
||||
|
||||
PROG= mailstats
|
||||
SRCS= mailstats.c
|
||||
MAN= mailstats.8
|
||||
|
||||
CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -DNOT_SENDMAIL
|
||||
CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
||||
CFLAGS+= -DNOT_SENDMAIL
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsm)
|
||||
LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
|
||||
.else
|
||||
LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSM:= ${LIBSMDIR}/libsm.a
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsmutil)
|
||||
LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
|
||||
@ -18,8 +27,11 @@ LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
|
||||
|
||||
DPADD= ${LIBSMUTIL}
|
||||
LDADD= ${LIBSMUTIL}
|
||||
DPADD= ${LIBSMUTIL} ${LIBSM}
|
||||
LDADD= ${LIBSMUTIL} ${LIBSM}
|
||||
|
||||
SRCS+= sm_os.h
|
||||
CLEANFILES+=sm_os.h
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
CFLAGS+= ${SENDMAIL_CFLAGS}
|
||||
@ -27,4 +39,7 @@ DPADD+= ${SENDMAIL_DPADD}
|
||||
LDADD+= ${SENDMAIL_LDADD}
|
||||
LDFLAGS+= ${SENDMAIL_LDFLAGS}
|
||||
|
||||
sm_os.h:
|
||||
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -7,11 +7,19 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
||||
.PATH: ${SENDMAIL_DIR}/makemap
|
||||
|
||||
PROG= makemap
|
||||
SRCS= makemap.c
|
||||
MAN= makemap.8
|
||||
|
||||
CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
|
||||
CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
||||
CFLAGS+= -DNEWDB -DNOT_SENDMAIL
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsm)
|
||||
LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
|
||||
.else
|
||||
LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSM:= ${LIBSMDIR}/libsm.a
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsmdb)
|
||||
LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb
|
||||
.else
|
||||
@ -26,8 +34,11 @@ LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
|
||||
|
||||
DPADD= ${LIBSMDB} ${LIBSMUTIL}
|
||||
LDADD= ${LIBSMDB} ${LIBSMUTIL}
|
||||
DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
|
||||
LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
|
||||
|
||||
SRCS+= sm_os.h
|
||||
CLEANFILES+=sm_os.h
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
CFLAGS+=${SENDMAIL_CFLAGS}
|
||||
@ -35,4 +46,7 @@ DPADD+=${SENDMAIL_DPADD}
|
||||
LDADD+=${SENDMAIL_LDADD}
|
||||
LDFLAGS+=${SENDMAIL_LDFLAGS}
|
||||
|
||||
sm_os.h:
|
||||
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -7,11 +7,19 @@ SENDMAIL_DIR= ${.CURDIR}/../../contrib/sendmail
|
||||
.PATH: ${SENDMAIL_DIR}/praliases
|
||||
|
||||
PROG= praliases
|
||||
SRCS= praliases.c
|
||||
MAN= praliases.8
|
||||
|
||||
CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include
|
||||
CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
||||
CFLAGS+= -DNEWDB -DNOT_SENDMAIL
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsm)
|
||||
LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
|
||||
.else
|
||||
LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSM:= ${LIBSMDIR}/libsm.a
|
||||
|
||||
.if exists(${.OBJDIR}/../../lib/libsmdb)
|
||||
LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb
|
||||
.else
|
||||
@ -26,8 +34,11 @@ LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
|
||||
.endif
|
||||
LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
|
||||
|
||||
DPADD= ${LIBSMDB} ${LIBSMUTIL}
|
||||
LDADD= ${LIBSMDB} ${LIBSMUTIL}
|
||||
DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
|
||||
LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
|
||||
|
||||
SRCS+= sm_os.h
|
||||
CLEANFILES+=sm_os.h
|
||||
|
||||
# User customizations to the sendmail build environment
|
||||
CFLAGS+= ${SENDMAIL_CFLAGS}
|
||||
@ -35,4 +46,7 @@ LDFLAGS+=${SENDMAIL_LDFLAGS}
|
||||
DPADD+= ${SENDMAIL_DPADD}
|
||||
LDADD+= ${SENDMAIL_LDADD}
|
||||
|
||||
sm_os.h:
|
||||
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user