mcelog: enable build_pie; build with our {C,LD}FLAGS.
This commit is contained in:
parent
8296f354e9
commit
7e29f8b4a3
1 changed files with 7 additions and 6 deletions
|
@ -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 <chneukirchen@gmail.com>"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue