aboutsummaryrefslogtreecommitdiff
path: root/mail/ask
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2006-08-30 10:33:45 +0000
committerRenato Botelho <garga@FreeBSD.org>2006-08-30 10:33:45 +0000
commitd0da7f07a3e577a33bf8701a2ef313ea83c4d42e (patch)
tree46131c8a7ff3e3c614338a1e02c71ba47e7dbee9 /mail/ask
parent4901f1e6470dbf09bc61187c2606378760930338 (diff)
downloadports-d0da7f07a3e577a33bf8701a2ef313ea83c4d42e.tar.gz
ports-d0da7f07a3e577a33bf8701a2ef313ea83c4d42e.zip
Notes
Diffstat (limited to 'mail/ask')
-rw-r--r--mail/ask/Makefile48
-rw-r--r--mail/ask/distinfo6
-rw-r--r--mail/ask/files/pkg-message.in13
-rw-r--r--mail/ask/pkg-plist78
4 files changed, 67 insertions, 78 deletions
diff --git a/mail/ask/Makefile b/mail/ask/Makefile
index d131a0e94c08..dbd6c89afe22 100644
--- a/mail/ask/Makefile
+++ b/mail/ask/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ask
-PORTVERSION= 2.5.0
+PORTVERSION= 2.5.3
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= a-s-k
@@ -17,33 +17,35 @@ COMMENT= Anti Spam Killer content filtering
USE_PYTHON= yes
NO_BUILD= yes
-PLIST_SUB= VER=${PORTVERSION}
+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} ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/COPYING ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/ChangeLog ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/TODO ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/ask.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/askconfig.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/ask-${PORTVERSION}-1.spec ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/asklock.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/asklog.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/askmail.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/askmain.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/askmessage.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/askremote.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/asksetup.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/askversion.py ${PREFIX}/ask
- ${INSTALL_SCRIPT} ${WRKSRC}/test.py ${PREFIX}/ask
- ${CP} -R ${WRKSRC}/samples ${PREFIX}/ask
- ${CP} -R ${WRKSRC}/templates ${PREFIX}/ask
+ ${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
-post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- ${CP} -R ${WRKSRC}/docs ${DOCSDIR}
- ${CP} -R ${WRKSRC}/utils ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.[!1]* ${DOCSDIR}
.endif
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.mk>
diff --git a/mail/ask/distinfo b/mail/ask/distinfo
index d59e2c2abd08..adb1511611a1 100644
--- a/mail/ask/distinfo
+++ b/mail/ask/distinfo
@@ -1,3 +1,3 @@
-MD5 (ask-2.5.0.tar.gz) = 5f5616f3bbdb218768d78598f243921d
-SHA256 (ask-2.5.0.tar.gz) = aefb465d50471e208b8d932a88c6f9e88bcc4213930145b12aa529c83322ebbf
-SIZE (ask-2.5.0.tar.gz) = 105324
+MD5 (ask-2.5.3.tar.gz) = 491ce48168d70365d7480a6d3c28f87d
+SHA256 (ask-2.5.3.tar.gz) = f5f90d9006f655673104d45f803a6e7e1f9baba708a51510cf16e5e753183f15
+SIZE (ask-2.5.3.tar.gz) = 106339
diff --git a/mail/ask/files/pkg-message.in b/mail/ask/files/pkg-message.in
new file mode 100644
index 000000000000..7f393fa58ff3
--- /dev/null
+++ b/mail/ask/files/pkg-message.in
@@ -0,0 +1,13 @@
+=============================================================================
+
+Sample configuration files were installed in
+%%EXAMPLESDIR%%
+
+To use ASK copy them into ~/.ask directory and edit in way you like.
+
+For additional information see supplied documentation in
+%%DOCSDIR%%
+
+and/or manpages: askfilter(1) asksenders(1) asksetup(1)
+
+=============================================================================
diff --git a/mail/ask/pkg-plist b/mail/ask/pkg-plist
index 30c7b2bc132b..3385f2eaf643 100644
--- a/mail/ask/pkg-plist
+++ b/mail/ask/pkg-plist
@@ -1,52 +1,26 @@
-ask/COPYING
-ask/ChangeLog
-ask/TODO
-ask/ask.py
-ask/askconfig.py
-ask/ask-%%VER%%-1.spec
-ask/asklock.py
-ask/asklog.py
-ask/askmail.py
-ask/askmain.py
-ask/askmessage.py
-ask/askremote.py
-ask/asksetup.py
-ask/askversion.py
-ask/test.py
-ask/templates/blacklist_da.txt
-ask/templates/blacklist_de.txt
-ask/templates/blacklist_en.txt
-ask/templates/blacklist_es.txt
-ask/templates/blacklist_fr.txt
-ask/templates/blacklist_it.txt
-ask/templates/blacklist_nl.txt
-ask/templates/blacklist_ptbr.txt
-ask/templates/blacklist_fi.txt
-ask/templates/confirm_da.txt
-ask/templates/confirm_de.txt
-ask/templates/confirm_en.txt
-ask/templates/confirm_es.txt
-ask/templates/confirm_fi.txt
-ask/templates/confirm_fr.txt
-ask/templates/confirm_it.txt
-ask/templates/confirm_nl.txt
-ask/templates/confirm_ptbr.txt
-%%PORTDOCS%%%%DOCSDIR%%/utils/asksenders.py
-%%PORTDOCS%%%%DOCSDIR%%/docs/ask.py.1
-%%PORTDOCS%%%%DOCSDIR%%/docs/ask_doc.css
-%%PORTDOCS%%%%DOCSDIR%%/docs/ask_doc.html
-%%PORTDOCS%%%%DOCSDIR%%/docs/ask_doc.pdf
-%%PORTDOCS%%%%DOCSDIR%%/docs/ask_doc.txt
-%%PORTDOCS%%%%DOCSDIR%%/docs/asksenders.py.1
-%%PORTDOCS%%%%DOCSDIR%%/docs/asksetup.py.1
-%%PORTDOCS%%%%DOCSDIR%%/docs/askversion.py.1
-ask/samples/blacklist.txt
-ask/samples/ignorelist.txt
-ask/samples/sample_askrc
-ask/samples/whitelist.txt
-@dirrm %%DOCSDIR%%/docs
-@dirrm %%DOCSDIR%%/utils
-@dirrm %%DOCSDIR%%
-@dirrm ask/samples
-@dirrm ask/templates
-@dirrm ask
+bin/askfilter
+bin/asksenders
+bin/asksetup
+lib/ask/askconfig.py
+lib/ask/asklock.py
+lib/ask/asklog.py
+lib/ask/askmail.py
+lib/ask/askmain.py
+lib/ask/askmessage.py
+lib/ask/askremote.py
+lib/ask/askversion.py
+lib/ask/test.py
+%%EXAMPLESDIR%%/ask.rc
+%%EXAMPLESDIR%%/confirm_da.txt
+%%EXAMPLESDIR%%/confirm_de.txt
+%%EXAMPLESDIR%%/confirm_en.txt
+%%EXAMPLESDIR%%/confirm_es.txt
+%%EXAMPLESDIR%%/confirm_fi.txt
+%%EXAMPLESDIR%%/confirm_fr.txt
+%%EXAMPLESDIR%%/confirm_it.txt
+%%EXAMPLESDIR%%/confirm_nl.txt
+%%EXAMPLESDIR%%/confirm_ptbr.txt
+%%EXAMPLESDIR%%/ignorelist.txt
+%%EXAMPLESDIR%%/whitelist.txt
+@dirrm %%EXAMPLESDIR%%
+@dirrm lib/ask