Fix for repeated "make install/deinstall" (development only).
Don't ${MV} /tmp/webmin.sh to ${PREFIX}/etc/rc.d: create it in ${WRKDIR} instead, and use ${CP}. If you move webmin.sh, you can't make install/deinstall/install: the last install will fail because of the missing file. No user visible changes, but speeds up testing.
This commit is contained in:
parent
d677765331
commit
4ec20860a8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38864
@ -22,6 +22,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Net/SSL
|
||||
NO_BUILD= yes
|
||||
IS_INTERACTIVE= yes
|
||||
USE_PERL5= yes
|
||||
SCRIPTS_ENV+= WRKDIR="${WRKDIR}"
|
||||
|
||||
.if defined(WITH_UPDATES)
|
||||
WEBMIN_MODULES= apache.wbm.gz mysql.wbm.gz status.wbm.gz file.wbm.gz
|
||||
@ -68,7 +69,7 @@ do-install:
|
||||
@cd ${PREFIX}/lib/webmin && find . -name "*.orig" -print \
|
||||
| xargs ${RM}
|
||||
@cd ${PREFIX}/lib/webmin && ./setup.sh
|
||||
@${MV} /tmp/webmin.sh ${PREFIX}/etc/rc.d/webmin.sh
|
||||
@${CP} ${WRKDIR}/webmin.sh ${PREFIX}/etc/rc.d/webmin.sh
|
||||
@${CHMOD} 554 ${PREFIX}/etc/rc.d/webmin.sh
|
||||
|
||||
post-install:
|
||||
|
@ -10,6 +10,6 @@ fi
|
||||
|
||||
perl -pi -e "s=!!PERL5!!=$PERL5=" ${WRKSRC}/setup.sh
|
||||
|
||||
sed -e "s=!!PREFIX!!=$PREFIX=" < ${FILESDIR}/webmin.sh.sample > /tmp/webmin.sh
|
||||
sed -e "s=!!PREFIX!!=$PREFIX=" < ${FILESDIR}/webmin.sh.sample > ${WRKDIR}/webmin.sh
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user