aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/sample/Makefile
blob: d40f0ae0815417fb3a9053167e2173456c9d43d9 (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
# $FreeBSD$

PORTNAME=   sample
PORTVERSION=    0.02f
PORTREVISION=   1
CATEGORIES= sysutils

MAINTAINER= wg@FreeBSD.org
COMMENT=    Examine periodic stack traces of all running processes

LICENSE=    BSD3CLAUSE

BUILD_DEPENDS=  ${LOCALBASE}/lib/libbfd.a:devel/libbfd \
        ${LOCALBASE}/lib/libiberty.a:devel/gnulibiberty \
        ${LOCALBASE}/lib/libxo.a:devel/libxo \
        ${LOCALBASE}/bin/cython:lang/cython \
        ${LOCALBASE}/bin/python:lang/python

BROKEN_i386=        does not build: don't know how to make sample_support_i386.c
BROKEN_powerpc64=   does not build: don't know how to make sample_support_powerpc64.c
BROKEN_sparc64=     does not build: don't know how to make sample_support_sparc64.c

USE_GITHUB= yes
GH_ACCOUNT= freenas
GH_TAGNAME= 45e2b86

USES=       python:build kmod

MAKE_ENV=   SYSDIR=${SRC_BASE}/sys

SSP_UNSAFE= yes

do-install:
    ${INSTALL_KLD} ${WRKSRC}/driver/sample_driver.ko ${STAGEDIR}${KMODDIR}
    ${INSTALL_MAN} ${WRKSRC}/sample/sample.8 ${STAGEDIR}${PREFIX}/man/man8
    ${INSTALL_PROGRAM} ${WRKSRC}/sample/sample ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>