From 7e29f8b4a306c11e7d46469f17d14641d84598fa Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 23 Apr 2015 11:23:24 +0200 Subject: [PATCH] mcelog: enable build_pie; build with our {C,LD}FLAGS. --- srcpkgs/mcelog/template | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/srcpkgs/mcelog/template b/srcpkgs/mcelog/template index 074058c243..0824a10379 100644 --- a/srcpkgs/mcelog/template +++ b/srcpkgs/mcelog/template @@ -1,10 +1,10 @@ # Template file for 'mcelog' pkgname=mcelog version=115 -revision=1 +revision=2 +build_pie=yes conf_files="/etc/mcelog/mcelog.conf" only_for_archs="i686 i686-musl x86_64 x86_64-musl" -build_style=gnu-makefile short_desc="Decode kernel machine check log on x86 machines" maintainer="Christian Neukirchen " license="GPL-2" @@ -12,12 +12,13 @@ homepage="http://www.mcelog.org/" distfiles="https://github.com/andikleen/${pkgname}/archive/v${version}.tar.gz" checksum=ca4e917830bb705e54a09931ae70294796aba06a193aa1707de37c84e1e5506d -pre_install() { +do_build() { + make CC=$CC CFLAGS="$CFLAGS $LDFLAGS" ${makejobs} +} +do_install() { vmkdir usr/share/man/man5 vmkdir usr/share/man/man8 -} - -post_install() { + make PREFIX=/usr DESTDIR=${DESTDIR} install mv ${DESTDIR}/usr/sbin ${DESTDIR}/usr/bin vsv mcelog }