Added DESTDIR support. Changelog provided only in polish. Changes since 1.4.16: 1.4.16.2: - zmiana licznikow statystyk z int na unsigned int (thx to Tomasz Lemiech) - usuniety BUG przy braku HELO/EHLO i wlaczonym SPF (thx to Slawek Fydryk) - dodanie licznika dla !BUG! zwiazanych z bledami procesow potomnych 1.4.16.1: - prawidlowe wykrywanie libspf2 pod freebsd w ./configure - prawidlowe wykrywanie netfilter pod linuxem (zmiany w naglowkach kernela?)
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2009/09/25 08:08:56 bartoszkuzma Exp $
|
|
#
|
|
|
|
DISTNAME= smtp-gated-1.4.16.2
|
|
# PKGNAME= ${DISTNAME:S/-rc/rc/}
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://smtp-proxy.klolik.org/files/
|
|
|
|
MAINTAINER= bartosz.kuzma@gmail.com
|
|
HOMEPAGE= http://smtp-proxy.klolik.org/
|
|
COMMENT= Proxy for SMTP sessions with virus and spam scan
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
SMTP_GATED_GROUP?= smtpgw
|
|
SMTP_GATED_USER?= smtpgw
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
BUILD_DEFS+= SMTP_GATED_GROUP SMTP_GATED_USER
|
|
FILES_SUBST+= SMTP_GATED_GROUP=${SMTP_GATED_GROUP:Q}
|
|
FILES_SUBST+= SMTP_GATED_USER=${SMTP_GATED_USER:Q}
|
|
|
|
PKG_GROUPS= ${SMTP_GATED_GROUP}
|
|
PKG_USERS= ${SMTP_GATED_USER}:${SMTP_GATED_GROUP}
|
|
|
|
FILES_SUBST+= SMTP_GATED_GROUP=${SMTP_GATED_GROUP:Q}
|
|
FILES_SUBST+= SMTP_GATED_USER=${SMTP_GATED_USER:Q}
|
|
MESSAGE_SUBST+= SMTP_GATED_GROUP=${SMTP_GATED_GROUP:Q}
|
|
|
|
SUBST_CLASSES+= conf
|
|
SUBST_FILES.conf= ${WRKDIR}/smtp-gated.conf
|
|
SUBST_SED.conf= -e 's,@SMTP_GATED_GROUP@,${SMTP_GATED_GROUP},g'
|
|
SUBST_SED.conf+= -e 's,@SMTP_GATED_USER@,${SMTP_GATED_USER},g'
|
|
SUBST_SED.conf+= -e 's,@VARBASE@,${VARBASE},g'
|
|
SUBST_STAGE.conf= post-patch
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/smtp-gated
|
|
EGDIR= ${PREFIX}/share/examples/smtp-gated
|
|
CONF_FILES= ${EGDIR}/smtp-gated.conf \
|
|
${PKG_SYSCONFDIR}/smtp-gated.conf
|
|
RCD_SCRIPTS= smtp_gated
|
|
USE_TOOLS+= gmake
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/smtp-gated.conf ${WRKDIR}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.PL ${DESTDIR}${DOCDIR}
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/smtp-gated.conf ${DESTDIR}${EGDIR}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|