e8f1c6171b
- Add more patches to totally eliminate strcpy(); this code is horrible.
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2005/04/13 16:19:59 christos Exp $
|
|
#
|
|
|
|
DISTNAME= gld-1.5
|
|
PKGREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.gasmi.net/down/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= xtraeme@NetBSD.org
|
|
HOMEPAGE= http://www.gasmi.net/
|
|
COMMENT= Standalone greylisting server for Postfix
|
|
|
|
USE_PKGINSTALL= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
CONF_FILES_PERMS= ${EGDIR}/gld.conf ${PKG_SYSCONFDIR}/gld.conf \
|
|
${BINOWN} ${GLD_GROUP} 0740
|
|
|
|
RCD_SCRIPTS= gld
|
|
GLD_USER?= gld
|
|
GLD_GROUP?= gld
|
|
PKG_GROUPS= ${GLD_GROUP}
|
|
PKG_USERS= ${GLD_USER}:${GLD_GROUP}::Greylisting\\ Daemon\\ user
|
|
|
|
SUBST_CLASSES+= gld users
|
|
SUBST_STAGE.gld= post-patch
|
|
SUBST_FILES.gld= gld.h
|
|
SUBST_SED.gld= -e "s,/etc,${PKG_SYSCONFDIR},"
|
|
SUBST_MESSAGE.gld= "Fixing harcoded paths."
|
|
SUBST_STAGE.users= post-patch
|
|
SUBST_FILES.users= gld.conf
|
|
SUBST_SED.users+= -e "s|\#USER=nobody|USER=${GLD_USER}|"
|
|
SUBST_SED.users+= -e "s|\#GROUP=nobody|GROUP=${GLD_GROUP}|"
|
|
SUBST_MESSAGE.users= "Adjusting user/group in configuration file."
|
|
|
|
.include "../../mk/mysql.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|