diff options
author | root <root@rshg054.dnsready.net> | 2012-03-21 00:01:20 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-21 00:01:20 +0000 |
commit | a3108a9a809c496e1f6a0e9caf0acebac3889bfb (patch) | |
tree | df7be9bed47b2d4a4f0ae33d40a406a775a5d1e7 /testing/bootchart | |
parent | 99136e3a2e9f6f07a7ff08d5721bce354b853c8b (diff) |
Wed Mar 21 00:01:20 UTC 2012
Diffstat (limited to 'testing/bootchart')
-rw-r--r-- | testing/bootchart/PKGBUILD | 27 | ||||
-rw-r--r-- | testing/bootchart/build.patch | 34 |
2 files changed, 61 insertions, 0 deletions
diff --git a/testing/bootchart/PKGBUILD b/testing/bootchart/PKGBUILD new file mode 100644 index 000000000..d8f606056 --- /dev/null +++ b/testing/bootchart/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 153849 2012-03-19 21:13:34Z tomegun $ +# Maintainer: Tom Gundersen <teg@jklm.no> +pkgname="bootchart" +pkgver=1.15 +pkgrel=1 +pkgdesc="a 'startup' graphing tool" +url="https://meego.gitorious.org/meego-developer-tools/bootchart" +license=('GPL2') +arch=(i686 x86_64) +depends=('glibc') +source=("http://foo-projects.org/~sofar/${pkgname}/${pkgname}-${pkgver}.tar.gz" + 'build.patch') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -p1 -i ../build.patch + + make +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} +md5sums=('e24cad9db140521fca5193a88589e669' + '5546709bc77b775290cb54a29affa6ec') diff --git a/testing/bootchart/build.patch b/testing/bootchart/build.patch new file mode 100644 index 000000000..82c6e1bfd --- /dev/null +++ b/testing/bootchart/build.patch @@ -0,0 +1,34 @@ +From 4fe62e6b4c072676d246be02ba92a1df3a9d0feb Mon Sep 17 00:00:00 2001 +From: Tom Gundersen <teg@jklm.no> +Date: Fri, 16 Mar 2012 01:34:10 +0100 +Subject: [PATCH] Makefile: move binary and avoid empty dirs + +Install to /usr/bin by default, and don't install an empty /etc. +--- + Makefile | 10 ++++------ + 1 file changed, 4 insertions(+), 6 deletions(-) + +diff --git a/Makefile b/Makefile +index 566a848..c017509 100644 +--- a/Makefile ++++ b/Makefile +@@ -6,12 +6,10 @@ CC := gcc + all: bootchartd + + install: bootchartd +- mkdir -p $(DESTDIR)/sbin +- mkdir -p $(DESTDIR)/etc +- mkdir -p $(DESTDIR)/usr/share/doc/bootchart/ +- install -m0755 bootchartd $(DESTDIR)/sbin/ +- install -m0644 bootchartd.conf.example $(DESTDIR)/usr/share/doc/bootchart/ +- install -m0644 README COPYING $(DESTDIR)/usr/share/doc/bootchart/ ++ install -d $(DESTDIR)/usr/bin ++ install -d $(DESTDIR)/usr/share/doc/bootchart ++ install -m0755 bootchartd $(DESTDIR)/usr/bin/ ++ install -m0644 README COPYING bootchartd.conf.example $(DESTDIR)/usr/share/doc/bootchart/ + + OBJS := log.o svg.o bootchart.o + +-- +1.7.9.4 + |