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.
15 lines
329 B
Bash
15 lines
329 B
Bash
#! /bin/sh
|
|
|
|
perl -pi -e "s=!!PREFIX!!=$PREFIX=" ${WRKSRC}/setup.sh
|
|
|
|
if [ -x /usr/bin/perl5 ]; then
|
|
PERL5=/usr/bin/perl
|
|
elif [ -x $PREFIX/bin/perl ]; then
|
|
PERL5=$PREFIX/bin/perl
|
|
fi
|
|
|
|
perl -pi -e "s=!!PERL5!!=$PERL5=" ${WRKSRC}/setup.sh
|
|
|
|
sed -e "s=!!PREFIX!!=$PREFIX=" < ${FILESDIR}/webmin.sh.sample > ${WRKDIR}/webmin.sh
|
|
|
|
exit 0
|