2004-05-22 09:52:58 +02:00
|
|
|
# New ports collection makefile for: libspf
|
|
|
|
# Date created: 28 February 2004
|
|
|
|
# Whom: Daniel Roethlisberger <daniel@roe.ch>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libspf
|
2006-05-09 04:21:46 +02:00
|
|
|
DISTVERSION= 1.0.0-p5
|
2004-05-22 09:52:58 +02:00
|
|
|
CATEGORIES= mail
|
2007-02-08 13:02:18 +01:00
|
|
|
MASTER_SITES= http://www.libspf.org/files/src/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= mnag/${PORTNAME}
|
2004-05-22 09:52:58 +02:00
|
|
|
|
2005-09-16 19:58:32 +02:00
|
|
|
MAINTAINER= mnag@FreeBSD.org
|
2004-05-22 09:52:58 +02:00
|
|
|
COMMENT= Sender Policy Framework (SPF) library and client
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2006-05-09 04:21:46 +02:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-05-09 04:21:46 +02:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2004-05-22 09:52:58 +02:00
|
|
|
|
2006-05-09 04:21:46 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2005-07-12 14:38:38 +02:00
|
|
|
OPTIONS= RFC_RECURSION "Change SPF recursion to 20 (as per RFC)" off \
|
|
|
|
LOGFILE_STATS "Enables logfile stats" off \
|
|
|
|
DEBUG "Enables debug option" off
|
2004-05-22 09:52:58 +02:00
|
|
|
|
2005-07-12 14:38:38 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-05-22 09:52:58 +02:00
|
|
|
|
2006-05-09 04:21:46 +02:00
|
|
|
.if defined(WITH_RFC_RECURSION)
|
2005-07-12 14:38:38 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-rfc-recursion
|
2004-05-22 09:52:58 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-09 04:21:46 +02:00
|
|
|
.if defined(WITH_LOGFILE_STATS)
|
2005-07-12 14:38:38 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-logfile-stats
|
2004-05-22 09:52:58 +02:00
|
|
|
.endif
|
|
|
|
|
2006-05-09 04:21:46 +02:00
|
|
|
.if defined(WITH_DEBUG)
|
2005-07-12 14:38:38 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.endif
|
2004-05-22 09:52:58 +02:00
|
|
|
|
2006-05-09 04:21:46 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|CFLAGS =|CFLAGS +=|" \
|
|
|
|
${WRKSRC}/src/libspf/Makefile.in ${WRKSRC}/src/spfqtool/Makefile.in
|
2004-05-22 09:52:58 +02:00
|
|
|
|
2005-07-12 14:38:38 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${FIND} ${WRKSRC}/docs -type d -name CVS | ${XARGS} ${RM} -rf
|
|
|
|
.for i in docs docs/API docs/API/doxygen docs/API/doxygen/html docs/RFC docs/qmail \
|
|
|
|
docs/qmail/1.03 docs/qmail/1.04 docs/qmail/1.05 docs/spfqtool docs/Postfix \
|
|
|
|
docs/Postfix/2.1.x docs/Sendmail docs/Sendmail/8.12.x docs/Sendmail/8.13.x \
|
|
|
|
docs/Courier-MTA docs/history
|
|
|
|
@${MKDIR} ${DOCSDIR}/${i}
|
|
|
|
@for f in `${FIND} ${WRKSRC}/${i} ! -type d -maxdepth 1`; do \
|
|
|
|
${INSTALL_DATA} $${f} ${DOCSDIR}/${i}; \
|
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${FIND} ${WRKSRC}/examples -type d -name CVS | ${XARGS} ${RM} -rf
|
|
|
|
.for i in examples/qmail examples/qmail/control examples/Sendmail
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}/${i}
|
|
|
|
@for f in `${FIND} ${WRKSRC}/${i} ! -type d -maxdepth 1`; do \
|
|
|
|
${INSTALL_DATA} $${f} ${EXAMPLESDIR}/${i}; \
|
|
|
|
done
|
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
@${FIND} ${WRKSRC}/patches -type d -name CVS | ${XARGS} ${RM} -rf
|
|
|
|
.for i in patches patches/qmail patches/qmail/1.03 patches/qmail/1.05 patches/Postfix \
|
|
|
|
patches/Postfix/2.1.x patches/Sendmail patches/Sendmail/8.12.x patches/Sendmail/8.13.x \
|
|
|
|
patches/Courier-MTA
|
|
|
|
@${MKDIR} ${DATADIR}/${i}
|
|
|
|
@for f in `${FIND} ${WRKSRC}/${i} ! -type d -maxdepth 1`; do \
|
|
|
|
${INSTALL_DATA} $${f} ${DATADIR}/${i}; \
|
|
|
|
done
|
|
|
|
.endfor
|
2004-05-22 09:52:58 +02:00
|
|
|
|
2005-07-12 14:38:38 +02:00
|
|
|
.include <bsd.port.post.mk>
|