diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-09-02 00:08:57 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-09-02 00:08:57 +0000 |
commit | b737fbfb09bae1a85dd0ae98a41558cb3561aba6 (patch) | |
tree | 5226f8f3058e811d58ca0b03739711e3c8d22929 /finance | |
parent | 506ce6e01dbd876ee46ce57ffeb9bc5a0067271a (diff) | |
download | ports-b737fbfb09bae1a85dd0ae98a41558cb3561aba6.tar.gz ports-b737fbfb09bae1a85dd0ae98a41558cb3561aba6.zip |
Notes
Diffstat (limited to 'finance')
-rw-r--r-- | finance/trytond28/Makefile | 7 | ||||
-rw-r--r-- | finance/trytond28/pkg-plist | 4 |
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 |