blob: 21716783f0f26b86573ec2eeabdde9512ca21885 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Created by: msmith@FreeBSD.org
# $FreeBSD$
PORTNAME= linux_kdump
PORTVERSION= 1.5
PORTREVISION= 2
CATEGORIES= devel linux
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= marcel
MAINTAINER= emulation@FreeBSD.org
COMMENT= Linux-compatibility ktrace.out processor
BUILD_DEPENDS= ${LINUXBASE}/usr/bin/gcc:${PORTSDIR}/emulators/linux_base-gentoo-stage3
USES= uidfix
ONLY_FOR_ARCHS= i386 amd64
NO_MANCOMPRESS= yes
PLIST_FILES= bin/linux_kdump man/man1/linux_kdump.1.gz
.include <bsd.port.pre.mk>
pre-everything::
@${ECHO_MSG} '===> Using the FreeBSD source tree under ${SRC_BASE}'
@${ECHO_MSG} '===> Set SRC_BASE to use an alternate source tree'
.if !exists(${SRC_BASE}/sys/i386/linux/syscalls.master)
IGNORE= requires kernel source present in ${SRC_BASE}/sys
.endif
.if !exists(${SRC_BASE}/usr.bin/ktrace/subr.c)
IGNORE= requires ktrace source present in ${SRC_BASE}/usr.bin/ktrace
.endif
.if exists(${LINUXBASE}/etc/fedora-release)
IGNORE= does not build with the default linux base, use the package instead
.endif
pre-install:
${MKDIR} ${STAGEDIR}/bin ${STAGEDIR}/man/man1
post-install:
${MV} -i ${STAGEDIR}/bin/linux_kdump ${STAGEDIR}/${PREFIX}/bin
${MV} -i ${STAGEDIR}/man/man1/linux_kdump.1.gz ${STAGEDIR}/${PREFIX}/man/man1
${RMDIR} ${STAGEDIR}/bin ${STAGEDIR}/man/man1 ${STAGEDIR}/man
.include <bsd.port.post.mk>
|