blob: b6827a04654bd0d1c52c06c42184cd5cb7d310a4 (
plain)
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
|
# $NetBSD: Makefile,v 1.2 2011/08/27 12:37:45 jmcneill Exp $
DISTNAME= netbsd-kmod-tools-5.1
CATEGORIES= sysutils
DISTFILES= #
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/
COMMENT= NetBSD kmod tools
ONLY_FOR_PLATFORM= NetBSD-5.[0-8]*-*
PKG_DESTDIR_SUPPORT= user-destdir
do-extract:
mkdir ${WRKSRC}
cp ${FILESDIR}/modstat.c ${WRKSRC}
cp ${FILESDIR}/modload.c ${WRKSRC}
cp ${FILESDIR}/modunload.c ${WRKSRC}
do-build:
cd ${WRKSRC} && ${CC} -Wall -Werror modstat.c -o modstat
cd ${WRKSRC} && ${CC} -Wall -Werror modload.c -o modload -lprop
cd ${WRKSRC} && ${CC} -Wall -Werror modunload.c -o modunload
do-install:
${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/modstat ${DESTDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/modload ${DESTDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/modunload ${DESTDIR}${PREFIX}/sbin
.include "../../mk/bsd.pkg.mk"
|