summaryrefslogtreecommitdiff
path: root/news/papercut
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2003-07-23 22:21:44 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2003-07-23 22:21:44 +0000
commit05ee2ff260a44342290f943eebfd3c89bd3e8686 (patch)
tree545901e45f00893b1aab715ab95ff9dea36221ba /news/papercut
parentUpgrade to use new patchset 112887-04.tar (diff)
Add papercut 0.9.8,
papercut is a news server written in Python, using a MySQL backend. PR: 53989 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org>
Diffstat (limited to 'news/papercut')
-rw-r--r--news/papercut/Makefile45
-rw-r--r--news/papercut/distinfo1
-rw-r--r--news/papercut/files/papercut-wrapper13
-rw-r--r--news/papercut/pkg-descr6
-rw-r--r--news/papercut/pkg-plist48
5 files changed, 113 insertions, 0 deletions
diff --git a/news/papercut/Makefile b/news/papercut/Makefile
new file mode 100644
index 000000000000..12bcabe06c48
--- /dev/null
+++ b/news/papercut/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: papercut
+# Date created: 2003-07-01
+# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= papercut
+PORTVERSION= 0.9.8
+CATEGORIES= news python
+MASTER_SITES= http://papercut.org/ \
+ http://www.cultdeadsheep.org/FreeBSD/ports/download/distfiles/
+
+MAINTAINER= sheepkiller@cultdeadsheep.org
+COMMENT= Papercut is a news server written in Python, using a MySQL backend
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/MySQLdb/__init__.py:${PORTSDIR}/databases/py-MySQLdb
+
+USE_PYTHON= yes
+NO_BUILD= yes
+USE_REINPLACE= yes
+
+do-configure:
+ @${CP} ${FILESDIR}/papercut-wrapper ${WRKDIR}/papercut-wrapper
+ @${REINPLACE_CMD} -e "s,__DATADIR__,${DATADIR}," ${WRKDIR}/papercut-wrapper
+ @${REINPLACE_CMD} -e "s,__PYTHON__,${PYTHON_CMD}," ${WRKDIR}/papercut-wrapper
+ @${REINPLACE_CMD} "s,/home/papercut,${DATADIR}," ${WRKSRC}/settings.py
+
+do-install:
+ @${MKDIR} ${DATADIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
+ @${MKDIR} ${DATADIR}/cache
+ @${MKDIR} ${DATADIR}/logs
+.for DIR in auth storage
+ @${MKDIR} ${DATADIR}/${DIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/${DIR}/* ${DATADIR}/${DIR}
+.endfor
+ @${INSTALL_SCRIPT} ${WRKDIR}/papercut-wrapper ${PREFIX}/bin/papercut
+ @${MV} ${DATADIR}/settings.py ${DATADIR}/settings.py.sample
+
+post-install:
+ @${ECHO} "To use papercut you need to copy ${DATADIR}/settings.py.sample"
+ @${ECHO} "to ${DATADIR}/settings.py and edit it."
+
+.include <bsd.port.mk>
diff --git a/news/papercut/distinfo b/news/papercut/distinfo
new file mode 100644
index 000000000000..957c2035fbf3
--- /dev/null
+++ b/news/papercut/distinfo
@@ -0,0 +1 @@
+MD5 (papercut-0.9.8.tar.gz) = d0334a56092a79d93a1eb593430b8d31
diff --git a/news/papercut/files/papercut-wrapper b/news/papercut/files/papercut-wrapper
new file mode 100644
index 000000000000..b9aa1db56963
--- /dev/null
+++ b/news/papercut/files/papercut-wrapper
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Change this to your getmail directory; defaults to /usr/local/share/getmail
+PPCPATH="__DATADIR__"
+
+PYTHONPATH="${PPCPATH}:${PYTHONPATH}"
+export PYTHONPATH
+
+# You can change this to point to your Python interpreter if you wish.
+PYTHON=__PYTHON__
+
+exec "$PYTHON" ${PPCPATH}/papercut.py $@
+
diff --git a/news/papercut/pkg-descr b/news/papercut/pkg-descr
new file mode 100644
index 000000000000..8462d79eef5e
--- /dev/null
+++ b/news/papercut/pkg-descr
@@ -0,0 +1,6 @@
+Papercut is a news server written in 100% pure Python. It designed
+to be use as backend for PHP, or to be run on a small network.
+Messages can be stored in a MySQL database.
+It doesn't support feeding.
+
+WWW: http://papercut.org
diff --git a/news/papercut/pkg-plist b/news/papercut/pkg-plist
new file mode 100644
index 000000000000..f6fc40911cb6
--- /dev/null
+++ b/news/papercut/pkg-plist
@@ -0,0 +1,48 @@
+bin/papercut
+%%DATADIR%%/papercut.py
+%%DATADIR%%/papercut_cache.py
+%%DATADIR%%/portable_locker.py
+%%DATADIR%%/settings.py.sample
+%%DATADIR%%/auth/__init__.py
+%%DATADIR%%/auth/mysql.py
+%%DATADIR%%/auth/phorum_mysql_users.py
+%%DATADIR%%/auth/phpbb_mysql_users.py
+%%DATADIR%%/storage/__init__.py
+%%DATADIR%%/storage/forwarding_proxy.py
+%%DATADIR%%/storage/mbox.py
+%%DATADIR%%/storage/mime.py
+%%DATADIR%%/storage/mysql.py
+%%DATADIR%%/storage/mysql_storage.sql
+%%DATADIR%%/storage/p2p.py
+%%DATADIR%%/storage/phorum_mysql.py
+%%DATADIR%%/storage/phorum_mysql_fix.sql
+%%DATADIR%%/storage/phorum_pgsql.py
+%%DATADIR%%/storage/phorum_pgsql_fix.sql
+%%DATADIR%%/storage/phpbb_mysql.py
+%%DATADIR%%/storage/phpbb_mysql_fix.sql
+%%DATADIR%%/storage/strutil.py
+@exec echo "To use papercut you need to copy %D/%%DATADIR%%/settings.py.sample to %D/%%DATADIR%%/settings.py and edit it." |fmt
+@unexec [ -f %D/%%DATADIR%%/papercut.pyc ] && rm %D/%%DATADIR%%/papercut.pyc || true
+@unexec [ -f %D/%%DATADIR%%/papercut_cache.pyc ] && rm %D/%%DATADIR%%/papercut_cache.pyc || true
+@unexec [ -f %D/%%DATADIR%%/portable_locker.pyc ] && rm %D/%%DATADIR%%/portable_locker.pyc || true
+@unexec [ -f %D/%%DATADIR%%/settings.py ] || true
+@unexec [ -f %D/%%DATADIR%%/settings.pyc ] && rm %D/%%DATADIR%%/settings.pyc || true
+@unexec [ -f %D/%%DATADIR%%/auth/__init__.pyc ] && rm %D/%%DATADIR%%/auth/__init__.pyc || true
+@unexec [ -f %D/%%DATADIR%%/auth/mysql.pyc ] && rm %D/%%DATADIR%%/auth/mysql.pyc || true
+@unexec [ -f %D/%%DATADIR%%/auth/phorum_mysql_users.pyc ] && rm %D/%%DATADIR%%/auth/phorum_mysql_users.pyc || true
+@unexec [ -f %D/%%DATADIR%%/auth/phpbb_mysql_users.pyc ] && rm %D/%%DATADIR%%/auth/phpbb_mysql_users.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/__init__.pyc ] && rm %D/%%DATADIR%%/storage/__init__.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/forwarding_proxy.pyc ] && rm %D/%%DATADIR%%/storage/forwarding_proxy.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/mbox.pyc ] && rm %D/%%DATADIR%%/storage/mbox.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/mime.pyc ] && rm %D/%%DATADIR%%/storage/mime.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/mysql.pyc ] && rm %D/%%DATADIR%%/storage/mysql.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/p2p.pyc ] && rm %D/%%DATADIR%%/storage/p2p.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/phorum_mysql.pyc ] && rm %D/%%DATADIR%%/storage/phorum_mysql.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/phorum_pgsql.pyc ] && rm %D/%%DATADIR%%/storage/phorum_pgsql.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/phpbb_mysql.pyc ] && rm %D/%%DATADIR%%/storage/phpbb_mysql.pyc || true
+@unexec [ -f %D/%%DATADIR%%/storage/strutil.pyc ] && rm %D/%%DATADIR%%/storage/strutil.pyc || true
+@dirrm %%DATADIR%%/auth
+@unexec [ -d %D/%%DATADIR%%/cache ] && rmdir %%DATADIR%%/cache 2>/dev/null || true
+@unexec [ -d %D/%%DATADIR%%/logs ] && rmdir %%DATADIR%%/logs 2>/dev/null || true
+@dirrm %%DATADIR%%/storage
+@unexec [ -d %D/%%DATADIR%% ] && echo "If you are permanently removing this port, you should do a ``rm -rf %D/%%DATADIR%%`` to remove any files left." | fmt