sv-helper: remove build-style, add do_extract()

This commit is contained in:
TJ Vanderpoel 2015-02-25 12:32:54 -06:00
parent 253138c9a7
commit 541f9dfcaf

View file

@ -2,7 +2,6 @@
pkgname=sv-helper pkgname=sv-helper
version=1.0.2 version=1.0.2
revision=1 revision=1
build_style="fetch"
depends="bash runit" depends="bash runit"
short_desc="Utilities to help administer a runit-as-pid1 system" short_desc="Utilities to help administer a runit-as-pid1 system"
maintainer="bougyman <tj@rubyists.com>" maintainer="bougyman <tj@rubyists.com>"
@ -12,16 +11,17 @@ distfiles="https://api.github.com/repos/rubyists/sv-helper/tarball/${version}>${
checksum=3997895a65ee688dc1c7b071052f822c0b097c873aeea09081ec933df3140b13 checksum=3997895a65ee688dc1c7b071052f822c0b097c873aeea09081ec933df3140b13
system_accounts="rsvlog" system_accounts="rsvlog"
log_homedir="/var/log" rsvlog_homedir="/var/log"
log_descr="User for logging" rsvlog_descr="User for logging"
_commands="sv-list svls sv-find sv-enable sv-disable"
do_extract() { do_extract() {
tar xv --xform="s|rubyists-sv-helper-[^/]*/|sv-helper-${version}/|" -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.gz local f curfile
mv ${pkgname}-${version}/* . mkdir -p ${wrksrc}
tar x --strip-components=1 -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.gz -C ${wrksrc}
} }
do_install() { do_install() {
_commands="sv-list svls sv-find sv-enable sv-disable"
vbin sv-helper.sh sv-helper vbin sv-helper.sh sv-helper
vbin rsvlog.sh rsvlog vbin rsvlog.sh rsvlog
for cmd in $_commands; do for cmd in $_commands; do