--- mailestd/Makefile.orig 2018-07-12 00:25:58 UTC +++ mailestd/Makefile @@ -1,10 +1,8 @@ MAILESTD_MT= # -.include - PROG= mailestd SRCS= bytebuf.c mailestd.c mailestctl.c parse.y parser.c -LINKS= ${BINDIR}/mailestd ${LOCALBASE}/bin/mailestctl +LINKS= ${BINDIR}/mailestd ${BINDIR}/mailestctl CFLAGS+= -DHAVE_LIBESTDRAFT -DMONITOR_KQUEUE .if defined(__objdir) && exists(${.CURDIR}/../libestdraft/${__objdir}) LIBESTDRAFTOBJ= ${.CURDIR}/../libestdraft/${__objdir} @@ -27,13 +25,14 @@ LDADD+= -lpthread DPADD+= ${LIBPTHREAD} .endif -beforeinstall: +X-beforeinstall: ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/../mew-mailest.sh ${PREFIX}/bin/mew-mailest ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/../cmew-mailest.sh ${PREFIX}/bin/cmew-mailest ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ ${.CURDIR}/../smew-mailest.sh ${PREFIX}/bin/smew-mailest +SCRIPTS= mew-mailest.sh cmew-mailest.sh smew-mailest.sh LDFLAGS+= -L${LIBESTDRAFTOBJ} LDADD+= -lestdraft