From beb94451e9bd74cb4282bfdaa0385e149a6b8a27 Mon Sep 17 00:00:00 2001 From: Ypnose Date: Tue, 22 Apr 2014 22:14:27 +0200 Subject: [PATCH] New package: sinit-git-20140422_1 --- srcpkgs/sinit-git/files/config.h | 5 +++++ srcpkgs/sinit-git/template | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/sinit-git/files/config.h create mode 100644 srcpkgs/sinit-git/template diff --git a/srcpkgs/sinit-git/files/config.h b/srcpkgs/sinit-git/files/config.h new file mode 100644 index 00000000000..c68998706c2 --- /dev/null +++ b/srcpkgs/sinit-git/files/config.h @@ -0,0 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + +static char *const rcinitcmd[] = { "/bin/rc.init", NULL }; +static char *const rcrebootcmd[] = { "/bin/rc.shutdown", "reboot", NULL }; +static char *const rcpoweroffcmd[] = { "/bin/rc.shutdown", "poweroff", NULL }; diff --git a/srcpkgs/sinit-git/template b/srcpkgs/sinit-git/template new file mode 100644 index 00000000000..3451d1ddc0b --- /dev/null +++ b/srcpkgs/sinit-git/template @@ -0,0 +1,27 @@ +# Template file for 'sinit-git' +pkgname=sinit-git +version=20140422 +revision=1 +build_style=gnu-makefile +provides="sinit-${version}_${revision}" +replaces="sinit>=0" +short_desc="A simple init, initially based on Rich Felker’s minimal init" +maintainer="Ypnose " +license="MIT" +homepage="http://tools.suckless.org/sinit/" + +do_fetch() { + local url="git://git.suckless.org/sinit" + msg_normal "Fetching source from $url ...\n" + git clone ${url} ${pkgname}-${version} +} + +pre_build() { + LD=$CC + cp ${FILESDIR}/config.h config.h +} + +post_install() { + vinstall LICENSE 644 usr/share/licenses/${pkgname} + vinstall README 644 usr/share/doc/${pkgname} +}