summaryrefslogtreecommitdiffstats
path: root/mail/ask/Makefile
blob: 3ad1225b6bd887b13d75b8dfc889184de1572613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:	ask
# Date created:				2 November 2005
# Whom:					Marcelo Araujo <araujobsd@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	ask
PORTVERSION=	2.5.3
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	a-s-k

MAINTAINER=	araujo@bsdmail.org
COMMENT=	Anti Spam Killer content filtering

USE_PYTHON=	yes
NO_BUILD=	yes

ASKLIBDIR=	${PREFIX}/lib/${PORTNAME}
BINS=		askfilter asksetup utils/asksenders
MAN1=		askfilter.1 asksenders.1 asksetup.1
SUB_FILES=	pkg-message
PORTDOCS=	*

post-extract:
	@${REINPLACE_CMD} -E \
		-e "s,/usr/share/ask/templates,${EXAMPLESDIR},g" \
		-e "s,/usr/lib/ask,${ASKLIBDIR},g" \
		-e "s,^(#!)/usr/bin/python,\1${PYTHON_CMD}," \
		${BINS:S,^,${WRKSRC}/,} ${WRKSRC}/*.py

do-install:
	${MKDIR} ${ASKLIBDIR}
	${INSTALL_DATA} ${WRKSRC}/*.py ${ASKLIBDIR}
	${INSTALL_SCRIPT} ${BINS:S,^,${WRKSRC}/,} ${PREFIX}/bin

	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/templates/* ${EXAMPLESDIR}

	${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/docs/,} ${PREFIX}/man/man1

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs/*.[!1]* ${DOCSDIR}
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud