Fix USES=python logic
- Silence patch message - Cosmetic change The USES=python restriction will be relaxed after net/py-ldap updated to 3.0.0.
This commit is contained in:
parent
fd15966d80
commit
38179cbe24
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466656
2 changed files with 6 additions and 8 deletions
|
@ -20,7 +20,7 @@ NO_ARCH= yes
|
|||
USERS= radicale
|
||||
GROUPS= radicale
|
||||
USE_RC_SUBR= radicale
|
||||
SUB_LIST= USERS="${USERS}" PYTHON_CMD="${PYTHON_CMD}"
|
||||
SUB_LIST= PYTHON_CMD="${PYTHON_CMD}"
|
||||
|
||||
OPTIONS_DEFINE= HTTP LDAP
|
||||
HTTP_DESC= HTTP authentication support
|
||||
|
@ -30,19 +30,17 @@ LDAP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ldap>=0:net/py-ldap@${FLAVOR}
|
|||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MHTTP} || ${PORT_OPTIONS:MLDAP}
|
||||
.if ${PORT_OPTIONS:MLDAP}
|
||||
USES+= python:2.7
|
||||
.else
|
||||
USES+= python
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} 's,= /etc,= ${PREFIX}/etc,g' ${WRKSRC}/config
|
||||
${REINPLACE_CMD} 's,~/.config/radicale,${DATADIR},g' ${WRKSRC}/config
|
||||
@${REINPLACE_CMD} 's|~/.config/radicale|${DATADIR}|; s|/etc|${PREFIX}/etc|' ${WRKSRC}/config
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}/${ETCDIR}
|
||||
${MKDIR} ${STAGEDIR}/${DATADIR}
|
||||
${MKDIR} ${STAGEDIR}/${ETCDIR} ${STAGEDIR}/${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}/${ETCDIR}/config.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/logging ${STAGEDIR}/${ETCDIR}/logging.sample
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ load_rc_config $name
|
|||
|
||||
: ${radicale_enable:=NO}
|
||||
: ${radicale_config=%%PREFIX%%/etc/radicale/config}
|
||||
: ${radicale_user=%%USERS%%}
|
||||
: ${radicale_group=%%GROUPS%%}
|
||||
: ${radicale_user:=radicale}
|
||||
: ${radicale_group:=radicale}
|
||||
|
||||
pidfile=/var/run/radicale/radicale.pid
|
||||
command=%%PREFIX%%/bin/radicale
|
||||
|
|
Loading…
Reference in a new issue