Merge pull request #1508 from GiedriusS/master
linux-tools: added a freefall subpkg
This commit is contained in:
commit
f1bb6881df
3 changed files with 18 additions and 1 deletions
1
srcpkgs/freefall
Symbolic link
1
srcpkgs/freefall
Symbolic link
|
@ -0,0 +1 @@
|
|||
./linux-tools
|
3
srcpkgs/linux-tools/files/freefall/run
Normal file
3
srcpkgs/linux-tools/files/freefall/run
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
[ -r conf ] && . ./conf
|
||||
exec freefall ${OPTS:=/dev/sda}
|
|
@ -15,7 +15,7 @@ homepage="http://www.kernel.org"
|
|||
distfiles="http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz"
|
||||
checksum=0f2f7d44979bc8f71c4fc5d3308c03499c26a824dd311fdf6eef4dee0d7d5991
|
||||
|
||||
subpackages="cpupower libcpupower libcpupower-devel libusbip libusbip-devel usbip perf"
|
||||
subpackages="cpupower libcpupower libcpupower-devel libusbip libusbip-devel usbip perf freefall"
|
||||
|
||||
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
makedepends+=" libnuma-devel"
|
||||
|
@ -46,6 +46,9 @@ do_build() {
|
|||
make ${makejobs}
|
||||
fi
|
||||
|
||||
cd ${wrksrc}/Documentation/laptops
|
||||
$CC ${CFLAGS} ${LDFLAGS} -o freefall freefall.c
|
||||
|
||||
cd ${wrksrc}/tools/usb/usbip
|
||||
# fix missing man page
|
||||
sed -i 's/usbip_bind_driver.8//' Makefile.am
|
||||
|
@ -63,6 +66,9 @@ do_install() {
|
|||
docdir='/usr/share/doc/cpupower' \
|
||||
install install-man
|
||||
|
||||
# freefall
|
||||
vbin "${wrksrc}/Documentation/laptops/freefall"
|
||||
|
||||
# perf
|
||||
cd ${wrksrc}/tools/perf
|
||||
make WERROR=0 DESTDIR=${DESTDIR}/usr \
|
||||
|
@ -164,3 +170,10 @@ usbip_package() {
|
|||
fi
|
||||
}
|
||||
}
|
||||
freefall_package() {
|
||||
short_desc="Disk protection for HP/DELL machines"
|
||||
pkg_install() {
|
||||
vmove usr/bin/freefall
|
||||
vsv freefall
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue