mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
dcc5f1aa94
necessary fixes on them for the past months.
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# Created by: Marcelo Araujo <araujobsd@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ask
|
|
PORTVERSION= 2.5.3
|
|
CATEGORIES= mail
|
|
MASTER_SITES= SF/a-s-k/${PORTNAME}-beta/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.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= *
|
|
|
|
NO_STAGE= yes
|
|
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>
|