1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Add LICENSE

- Add NO_ARCH
- Modernize plist
This commit is contained in:
Dmitry Marakasov 2015-06-08 01:17:14 +00:00
parent c212767235
commit 3974cd978b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=388797
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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