diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-06-08 01:17:14 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-06-08 01:17:14 +0000 |
commit | 3974cd978b27b867d2c49f96ad4e27b622c911af (patch) | |
tree | 3aff37c1cde77ab588298432b1dec781b0e92d30 /news/papercut | |
parent | c2127672359c375b8eb32959b9386e174535e9dc (diff) |
Notes
Diffstat (limited to 'news/papercut')
-rw-r--r-- | news/papercut/Makefile | 4 | ||||
-rw-r--r-- | news/papercut/pkg-plist | 10 |
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 |