pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
dma: Reorganize (ordering only change)
Module Name: pkgsrc-wip
Committed By: Greg Troxel <gdt%lexort.com@localhost>
Pushed By: gdt
Date: Thu Nov 26 09:21:02 2026 -0500
Changeset: 2e3cc2f9c042b34cc3f9e9df4935eaf293448636
Modified Files:
dma/Makefile
Log Message:
dma: Reorganize (ordering only change)
This package has had a lot of work and there are things in
non-canonical order (even though we don't really have rules). This
commit reorders lines (and adjusts indentation on one) so that it's
TOOLS
directory, username defs, and OWN_DIRS stuff
build defines (env, make flags, cflags, libs)
setup/subst of content from files/
installation
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2e3cc2f9c042b34cc3f9e9df4935eaf293448636
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
dma/Makefile | 54 ++++++++++++++++++++++++++++--------------------------
1 file changed, 28 insertions(+), 26 deletions(-)
diffs:
diff --git a/dma/Makefile b/dma/Makefile
index 3ab33f50fb..f5f665256d 100644
--- a/dma/Makefile
+++ b/dma/Makefile
@@ -11,24 +11,19 @@ HOMEPAGE= https://github.com/corecode/dma
COMMENT= The DragonFly Mail Agent
LICENSE= modified-bsd
-BUILD_DEFS+= VARBASE
-
-PKG_SYSCONFSUBDIR= dma
-EGDIR= ${PREFIX}/share/examples/${PKGBASE}
-DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
-
-USE_TOOLS+= flex byacc
-
-LIBS.Darwin+= -lresolv
-LIBS.Linux+= -lresolv
-LIBS.SunOS+= -lresolv -lsocket -lnsl
-
USE_LANGUAGES= c
# Not documented, but uses // comments.
USE_CC_FEATURES= c99
+USE_TOOLS+= flex byacc
+
.include "../../mk/bsd.prefs.mk"
+PKG_SYSCONFSUBDIR= dma
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
+
+BUILD_DEFS+= VARBASE
DMA_SPOOLDIR= ${VARBASE}/spool/dma
.if ${UNPRIVILEGED:tl} == "yes"
@@ -54,6 +49,17 @@ PKG_USERS= ${DMA_USER}:${DMA_GROUP}
PKG_GROUPS= ${DMA_GROUP}
.endif
+
+MAKE_ENV+= CONFDIR=${PKG_SYSCONFDIR}
+MAKE_ENV+= LIBS=${LIBS:Q}
+
+MAKE_FLAGS= "LIBEXEC=${PREFIX}/libexec"
+MAKE_FLAGS+= "MAN=${PREFIX}/${PKGMANDIR}"
+# Work around upstream bug requiring gmake when BSD make is documented
+# to work; delete when updating to a release with
+# https://github.com/corecode/dma/pull/170.
+MAKE_FLAGS+= version=${PKGVERSION_NOREV}
+
# dma has awkward getprogname detection; essentially one must define
# HAVE_ on any system without glibc (and getprogname must be present),
# and one should not define it on glibc systems. We use OPSYS Linux
@@ -69,20 +75,16 @@ CFLAGS+= -DDMA_GROUP=\"${DMA_GROUP}\"
# as root. https://github.com/corecode/dma/issues/175
CFLAGS+= -DDMA_ROOT_USER=\"${DMA_USER}\"
-MAKE_ENV+= CONFDIR=${PKG_SYSCONFDIR}
-MAKE_ENV+= LIBS=${LIBS:Q}
+LIBS.Darwin+= -lresolv
+LIBS.Linux+= -lresolv
+LIBS.SunOS+= -lresolv -lsocket -lnsl
-MAKE_FLAGS= "LIBEXEC=${PREFIX}/libexec"
-MAKE_FLAGS+= "MAN=${PREFIX}/${PKGMANDIR}"
-# Work around upstream bug requiring gmake when BSD make is documented
-# to work; delete when updating to a release with
-# https://github.com/corecode/dma/pull/170.
-MAKE_FLAGS+= version=${PKGVERSION_NOREV}
-INSTALLATION_DIRS= ${EGDIR} ${DOCDIR}
+post-extract:
+ ${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
+ ${CP} ${FILESDIR}/README.pkgsrc ${WRKDIR}/README.pkgsrc
-CONF_FILES= ${EGDIR}/dma.conf ${PKG_SYSCONFDIR}/dma.conf
-CONF_FILES+= ${EGDIR}/auth.conf ${PKG_SYSCONFDIR}/auth.conf
+INSTALLATION_DIRS= ${EGDIR} ${DOCDIR}
SUBST_CLASSES+= spool
SUBST_STAGE.spool= pre-configure
@@ -95,9 +97,9 @@ SUBST_STAGE.mailer= pre-configure
SUBST_FILES.mailer= ${WRKDIR}/mailer.conf ${WRKDIR}/README.pkgsrc
SUBST_VARS.mailer= PREFIX
-post-extract:
- ${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
- ${CP} ${FILESDIR}/README.pkgsrc ${WRKDIR}/README.pkgsrc
+CONF_FILES= ${EGDIR}/dma.conf ${PKG_SYSCONFDIR}/dma.conf
+CONF_FILES+= ${EGDIR}/auth.conf ${PKG_SYSCONFDIR}/auth.conf
+
post-install:
${INSTALL_DATA} ${WRKSRC}/dma.conf ${DESTDIR}${EGDIR}/dma.conf
Home |
Main Index |
Thread Index |
Old Index