pkgsrc/mail/ezmlm-idx/Makefile

69 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.41 2017/07/26 02:01:58 schmonz Exp $
#
DISTNAME= ezmlm-idx-${IDXVERSION}
PKGREVISION= 1
CATEGORIES= mail
IDXVERSION= 7.2.2
MASTER_SITES= http://untroubled.org/ezmlm/archive/${IDXVERSION}/
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://untroubled.org/ezmlm/
COMMENT= Version of ezmlm with enhancements by third parties
LICENSE= gnu-gpl-v2
CONFLICTS= ezmlm-[0-9]*
DEPENDS+= qmail>=1.03:../../mail/qmail
PLIST_SRC= ${PKGDIR}/../../mail/ezmlm/PLIST ${PKGDIR}/PLIST
PLIST_SRC+= ${WRKDIR}/PLIST.idxcf
DJB_RESTRICTED= no
DJB_CONFIG_CMDS+= ${ECHO} ${DESTDIR:Q} > conf-destdir; \
${ECHO} ${PREFIX:Q}/libexec/cgi-bin > conf-cgibin; \
${ECHO} ${EGDIR:Q} > conf-egdir; \
${ECHO} ${PKG_SYSCONFDIR:Q} > conf-etc; \
${ECHO} ${PREFIX:Q}/lib/ezmlm > conf-lib;
LDFLAGS.SunOS+= -lsocket -lnsl
INSTALL_TARGET= install
PKG_SYSCONFSUBDIR= ezmlm
.include "cf-files.mk"
.include "cf-dirs.mk"
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
.for file in ${EZMLM_CF_FILES}
CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file}
.endfor
.for dir in ${EZMLM_CF_DIRS}
OWN_DIRS+= ${PKG_SYSCONFDIR}/${dir}
.endfor
SPECIAL_PERMS+= ${PREFIX}/libexec/cgi-bin/ezmlm-cgi ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 04755
INSTALLATION_DIRS= bin lib libexec/cgi-bin ${PKGMANDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
INSTALLATION_DIRS+= share/doc/${PKGBASE} share/examples/${PKGBASE}
post-extract:
${GREP} -v '^#' < cf-files.mk | ${CUT} -f2 | ${SED} -e 's|^|share/examples/ezmlm-idx/|g' > ${WRKDIR}/PLIST.idxcf
pre-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PKG_SYSCONFDIR}
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
. for file in BLURB CHANGES FAQ INSTALL README README.mysql README.pgsql README.std THANKS TODO UPGRADE DOWNGRADE
${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR}${DOCDIR}/${file}
. endfor
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
. for file in ezcgi.css ezcgirc ezmlmglrc ezmlmrc ezmlmsubrc
${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR}${EGDIR}/${file}
. endfor
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"