Print this page
5166 sendmail package should be replaceable
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Toomas Soome <tsoome@me.com>
@@ -25,16 +25,18 @@
# cmd/sendmail/aux/Makefile
#
include ../../Makefile.cmd
include ../Makefile.cmd
-PROG= mailstats mconnect vacation mailcompat praliases mailq
+PROG= mailstats mconnect vacation mailcompat praliases
LIBPROG= mail.local smrsh
USRSBINPROG= etrn makemap editmap
+LIBSMTPSMPROG= mailq
+
# $(PROG) by default
CLOBBERFILES= $(LIBPROG) $(USRSBINPROG)
OBJS= $(PROG:%=%.o)
@@ -49,11 +51,11 @@
makemap := LDLIBS += -lldap
mconnect := LDLIBS += -lsocket -lnsl
praliases := LDLIBS += -lldap
smrsh := LDLIBS += -lldap
vacation := LDLIBS += -lldap
-$(ROOTBIN)/mailq := FILEMODE = 4555
+$(ROOTLIBSMTPSM)/mailq := FILEMODE = 4555
INCPATH= -I../src -I../db -I../include
ENVDEF= -DNOT_SENDMAIL
SUNENVDEF= -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH
@@ -65,11 +67,11 @@
# with libc, but can be confined to the applications themselves.
LDFLAGS += $(MAPFILE.NGB:%=-M%)
.KEEP_STATE:
-all: $(PROG) $(LIBPROG) $(USRSBINPROG)
+all: $(PROG) $(LIBSMTPSMPROG) $(LIBPROG) $(USRSBINPROG)
convtime.o: ../src/convtime.c
$(COMPILE.c) ../src/convtime.c
$(POST_PROCESS_O)
@@ -109,11 +111,12 @@
$(LINK.c) mailstats.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
../libsm/libsm.a
$(POST_PROCESS)
install: all $(ROOTPROG) $(ROOTLIB)/mail.local $(ROOTLIB)/smrsh \
- $(ROOTUSRSBIN)/makemap $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap
+ $(ROOTLIBSMTPSM)/mailq $(ROOTUSRSBIN)/makemap \
+ $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap
clean:
$(RM) $(OBJS) *.o
lint: lint_PROG