svn commit: r388797 - head/news/papercut

Dmitry Marakasov amdmi3 at FreeBSD.org
Mon Jun 8 01:17:16 UTC 2015


Author: amdmi3
Date: Mon Jun  8 01:17:14 2015
New Revision: 388797
URL: https://svnweb.freebsd.org/changeset/ports/388797

Log:
  - Add LICENSE
  - Add NO_ARCH
  - Modernize plist

Modified:
  head/news/papercut/Makefile
  head/news/papercut/pkg-plist

Modified: head/news/papercut/Makefile
==============================================================================
--- head/news/papercut/Makefile	Mon Jun  8 01:17:06 2015	(r388796)
+++ head/news/papercut/Makefile	Mon Jun  8 01:17:14 2015	(r388797)
@@ -9,10 +9,14 @@ MASTER_SITES=	http://pessoal.org/papercu
 MAINTAINER=	ports at 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

Modified: head/news/papercut/pkg-plist
==============================================================================
--- head/news/papercut/pkg-plist	Mon Jun  8 01:17:06 2015	(r388796)
+++ head/news/papercut/pkg-plist	Mon Jun  8 01:17:14 2015	(r388797)
@@ -2,9 +2,7 @@ bin/papercut
 %%DATADIR%%/papercut.py
 %%DATADIR%%/papercut_cache.py
 %%DATADIR%%/portable_locker.py
- at 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
- at exec if [ ! -f %D/%%DATADIR%%/settings.py ] ; then cp -p %D/%F %B/settings.py; fi
+ at 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
- at dirrm %%DATADIR%%/auth
- at dirrm %%DATADIR%%/storage
- at dirrmtry %%DATADIR%%/cache
- at dirrmtry %%DATADIR%%/logs
+ at dir %%DATADIR%%/logs
+ at 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


More information about the svn-ports-all mailing list