From b7c6857c6218c600b75b9ff59c8ec7a261f371b0 Mon Sep 17 00:00:00 2001 From: TJ Vanderpoel Date: Mon, 23 Feb 2015 21:43:28 -0600 Subject: [PATCH] daemontools: add slashpackage build-style and utilize --- common/build-style/slashpackage.sh | 36 ++++++++++++++++++++++++++++++ srcpkgs/daemontools/template | 14 ++---------- 2 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 common/build-style/slashpackage.sh diff --git a/common/build-style/slashpackage.sh b/common/build-style/slashpackage.sh new file mode 100644 index 00000000000..9fc26d24623 --- /dev/null +++ b/common/build-style/slashpackage.sh @@ -0,0 +1,36 @@ +# +# This helper is for templates building slashpackage software. +# http://cr.yp.to/slashpackage.html +# +# required variables +# +# build_style=slashpackage +# wrksrc=/${pkgname}-${version} +# distfiles= +# +# example (daemontools) +# +# Template file for 'daemontools' +# pkgname=daemontools +# version=0.76 +# revision=1 +# wrksrc=admin/${pkgname}-${version} +# build_style=gnu-makefile +# short_desc="A collection of tools for managing UNIX services" +# maintainer="bougyman " +# license="Public Domain" +# homepage="http://cr.yp.to/daemontools.html" +# distfiles="http://cr.yp.to/daemontools/${pkgname}-${version}.tar.gz" +# checksum=a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f +# patch_args="-p1" # << important for most slashpackage patches + + +do_build() { + package/compile +} + +do_install() { + for command in command/*; do + vbin $command + done +} diff --git a/srcpkgs/daemontools/template b/srcpkgs/daemontools/template index b0ab918c953..4552a6e2f4f 100644 --- a/srcpkgs/daemontools/template +++ b/srcpkgs/daemontools/template @@ -1,9 +1,9 @@ # Template file for 'daemontools' pkgname=daemontools version=0.76 -revision=1 +revision=2 wrksrc=admin/${pkgname}-${version} -build_style=gnu-makefile +build_style=slashpackage short_desc="A collection of tools for managing UNIX services" maintainer="bougyman " license="Public Domain" @@ -12,13 +12,3 @@ distfiles="http://cr.yp.to/daemontools/${pkgname}-${version}.tar.gz" checksum=a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f patch_args="-p1" - -do_build() { - package/compile -} - -do_install() { - for command in command/*; do - vbin $command - done -}