Make sure to patch all config files for %%PREFIX%%.

This commit is contained in:
Jimmy Olgeni 2015-10-09 12:12:45 +00:00
parent fccd59adfb
commit 0dcbc7e0dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=398908
2 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= usermin
PORTVERSION= 1.670
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.webmin.com/uupdates/:up \
SF/webadmin/${PORTNAME}/${PORTVERSION}:sf \
@ -43,7 +44,7 @@ post-patch:
@${REINPLACE_CMD} -i '' -e 's|=/etc/webmin|=${PREFIX}/etc/webmin|' ${WRKSRC}/${file}
.endfor
@${FIND} ${WRKSRC} -name config-freebsd\* \
@${FIND} ${WRKSRC} \( -name config-freebsd\* -or -name config \) \
-exec ${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" {} \; \
-exec ${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" {} \;

View file

@ -3,6 +3,7 @@
PORTNAME= webmin
PORTVERSION= 1.760
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://download.webmin.com/updates/:up \
SF/webadmin/${PORTNAME}/${PORTVERSION}:sf
@ -37,7 +38,7 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" ${WRKSRC}/setup.sh
@${FIND} ${WRKSRC} -name config-freebsd\* \
@${FIND} ${WRKSRC} \( -name config-freebsd\* -or -name config \) \
-exec ${REINPLACE_CMD} -e "s@/usr/local@${PREFIX}@g" {} \; \
-exec ${REINPLACE_CMD} -e "s@%%PREFIX%%@${PREFIX}@g" {} \;