Make sure to patch all config files for %%PREFIX%%.
This commit is contained in:
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
|
@ -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" {} \;
|
||||
|
||||
|
|
|
@ -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" {} \;
|
||||
|
||||
|
|
Loading…
Reference in a new issue