summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-06-08 01:17:14 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-06-08 01:17:14 +0000
commit3974cd978b27b867d2c49f96ad4e27b622c911af (patch)
tree3aff37c1cde77ab588298432b1dec781b0e92d30 /news
parent- Add LICENSE (diff)
- Add LICENSE
- Add NO_ARCH - Modernize plist
Notes
Notes: svn path=/head/; revision=388797
Diffstat (limited to 'news')
-rw-r--r--news/papercut/Makefile4
-rw-r--r--news/papercut/pkg-plist10
2 files changed, 7 insertions, 7 deletions
diff --git a/news/papercut/Makefile b/news/papercut/Makefile
index 38b1def0a760..e29736560309 100644
--- a/news/papercut/Makefile
+++ b/news/papercut/Makefile
@@ -9,10 +9,14 @@ MASTER_SITES= http://pessoal.org/papercut/
MAINTAINER= ports@FreeBSD.org
COMMENT= Papercut is a news server written in Python, using a MySQL backend
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
USES= python
NO_BUILD= yes
+NO_ARCH= yes
do-configure:
${CP} ${FILESDIR}/papercut-wrapper ${WRKDIR}/papercut-wrapper
diff --git a/news/papercut/pkg-plist b/news/papercut/pkg-plist
index 3894a5cc80da..d13366143242 100644
--- a/news/papercut/pkg-plist
+++ b/news/papercut/pkg-plist
@@ -2,9 +2,7 @@ bin/papercut
%%DATADIR%%/papercut.py
%%DATADIR%%/papercut_cache.py
%%DATADIR%%/portable_locker.py
-@unexec if cmp -s %D/%%DATADIR%%/settings.py.sample %D/%%DATADIR%%/settings.py; then rm -f %D/%%DATADIR%%/settings.py; fi
-%%DATADIR%%/settings.py.sample
-@exec if [ ! -f %D/%%DATADIR%%/settings.py ] ; then cp -p %D/%F %B/settings.py; fi
+@sample %%DATADIR%%/settings.py.sample
@exec echo "To use papercut you need to edit %D/%%DATADIR%%/settings.py." |fmt
%%DATADIR%%/auth/__init__.py
%%DATADIR%%/auth/mysql.py
@@ -49,8 +47,6 @@ bin/papercut
@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
-@dirrm %%DATADIR%%/storage
-@dirrmtry %%DATADIR%%/cache
-@dirrmtry %%DATADIR%%/logs
+@dir %%DATADIR%%/logs
+@dir %%DATADIR%%/cache
@unexec rmdir %D/%%DATADIR%% 2> /dev/null || echo "If you are permanently removing this port, you should do a ``rm -rf %D/%%DATADIR%%`` to remove any files left." | fmt