aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-09-02 08:08:57 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-09-02 08:08:57 +0800
commitc3421c0ee667bcf0e83edac947f7a7e168d05165 (patch)
tree5226f8f3058e811d58ca0b03739711e3c8d22929
parent65de5c57db3e39702e502d5d5ac38ac282cbe440 (diff)
downloadfreebsd-ports-gnome-c3421c0ee667bcf0e83edac947f7a7e168d05165.tar.gz
freebsd-ports-gnome-c3421c0ee667bcf0e83edac947f7a7e168d05165.tar.zst
freebsd-ports-gnome-c3421c0ee667bcf0e83edac947f7a7e168d05165.zip
- Clarify LICENSE
- Add LICENSE_FILE - Pet portlint - Switch to @sample Approved by: portmgr blanket
-rw-r--r--finance/trytond28/Makefile7
-rw-r--r--finance/trytond28/pkg-plist4
2 files changed, 5 insertions, 6 deletions
diff --git a/finance/trytond28/Makefile b/finance/trytond28/Makefile
index 5f0a587ea7b1..0255f496eaed 100644
--- a/finance/trytond28/Makefile
+++ b/finance/trytond28/Makefile
@@ -11,7 +11,8 @@ PKGNAMESUFFIX= 28
MAINTAINER= matthias@petermann-it.de
COMMENT= Tryton Application Platform (Server)
-LICENSE= GPLv3
+LICENSE= GPLv3 # or later
+LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \
${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \
@@ -42,7 +43,7 @@ PIDDIR?= /var/run
LOGDIR?= /var/log
USES= python
-USE_PYTHON= distutils autoplist
+USE_PYTHON= autoplist distutils
post-patch:
@${REINPLACE_CMD} -e 's|%%PIDDIR%%|${PIDDIR}|g' -e 's|%%LOGDIR%%|${LOGDIR}|g' \
@@ -67,6 +68,6 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pytz>=0:${PORTSDIR}/devel/py-pytz
.endif
post-install:
- ${CP} -p ${WRKSRC}/etc/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>
diff --git a/finance/trytond28/pkg-plist b/finance/trytond28/pkg-plist
index 9f4f2a5af729..105011ed51b6 100644
--- a/finance/trytond28/pkg-plist
+++ b/finance/trytond28/pkg-plist
@@ -1,3 +1 @@
-@unexec if cmp -s %D/etc/trytond.conf.sample %D/etc/trytond.conf; then rm -f %D/etc/trytond.conf; fi
-etc/trytond.conf.sample
-@exec if [ ! -f %D/etc/trytond.conf ] ; then cp -p %D/%F %B/trytond.conf; fi
+@sample etc/trytond.conf.sample