summaryrefslogtreecommitdiff
path: root/mail/clamsmtp/Makefile
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2008-01-09 14:10:06 +0000
committermartti <martti@pkgsrc.org>2008-01-09 14:10:06 +0000
commit858615b6b86c476d42f7e376ede80e9eb9f4ac95 (patch)
treee985849fd307e3bd6d13835475065f2baf6c413b /mail/clamsmtp/Makefile
parent1a7b4fdb6cdf834f55ff0da04febc3ddf73fc4e0 (diff)
downloadpkgsrc-858615b6b86c476d42f7e376ede80e9eb9f4ac95.tar.gz
- Some "pkglint -Wall" fixes
- Make this build on Solaris 10 by checking for strcasestr (patch received from Andri Piik in a private mail)
Diffstat (limited to 'mail/clamsmtp/Makefile')
-rw-r--r--mail/clamsmtp/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/mail/clamsmtp/Makefile b/mail/clamsmtp/Makefile
index c3106ff9dbc..c87dc71b950 100644
--- a/mail/clamsmtp/Makefile
+++ b/mail/clamsmtp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2007/12/02 13:04:10 wiz Exp $
+# $NetBSD: Makefile,v 1.37 2008/01/09 14:10:06 martti Exp $
DISTNAME= clamsmtp-1.8
PKGREVISION= 3
@@ -12,11 +12,12 @@ COMMENT= SMTP filter that allows you to check for viruses
PKG_INSTALLATION_TYPES= overwrite pkgviews
+USE_TOOLS+= aclocal autoconf autoheader automake
GNU_CONFIGURE= yes
RCD_SCRIPTS= clamsmtpd
MESSAGE_SUBST+= HOMEPAGE=${HOMEPAGE}
-FILES_SUBST+= CLAMAV_USER=${CLAMAV_USER:Q}
+FILES_SUBST+= CLAMAV_USER=${CLAMAV_USER}
# Doesn't work with GNU pth (missing required mutex features)
PTHREAD_OPTS+= require native
@@ -27,7 +28,13 @@ CONF_FILES= ${EGDIR}/clamsmtpd.conf \
INSTALLATION_DIRS= share/examples/${PKGBASE}
-PKG_USERS_VARS+= CLAMAV_USER
+PKG_USERS_VARS= CLAMAV_USER
+
+pre-configure:
+ cd ${WRKSRC} && aclocal
+ cd ${WRKSRC} && autoheader
+ cd ${WRKSRC} && automake -a --foreign -i
+ cd ${WRKSRC} && autoconf
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/clamsmtpd.conf ${EGDIR}