switched from ETCDIR back to PREFIX/etc
This commit is contained in:
parent
22bc68fbb9
commit
f0ad1a91cb
@ -39,17 +39,17 @@ NO_ARCH= yes
|
||||
|
||||
USE_RC_SUBR= isso
|
||||
|
||||
PLIST_FILES= "@sample etc/${PKGNAMEPREFIX}${PORTNAME}/isso.conf.sample"
|
||||
PLIST_FILES= "@sample etc/isso.conf.sample"
|
||||
|
||||
py27_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipaddr>2.1:devel/py-ipaddr@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser@${PY_FLAVOR}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/etc/isso.conf|${ETCDIR}/isso.conf|g' ${WRKSRC}/isso/__init__.py
|
||||
@${REINPLACE_CMD} -e 's|/etc/isso.conf|${PREFIX}/etc/isso.conf|g' ${WRKSRC}/isso/__init__.py
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
||||
${CP} ${WRKSRC}/share/isso.conf ${STAGEDIR}${ETCDIR}/isso.conf.sample
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc
|
||||
${CP} ${WRKSRC}/share/isso.conf ${STAGEDIR}${PREFIX}/etc/isso.conf.sample
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py nosetests
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user