blob: e82039e0569c2d9c80df55fbce743988314e37f4 (
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
|
# New ports collection makefile for: ltmdm
# Date Created: Nov 11, 2001
# Whom: Daniel O'Connor <darius@dons.net.au>
#
# $FreeBSD$
#
PORTNAME= ltmdm
PORTVERSION= 1.0
CATEGORIES= comms
MASTER_SITES= http://www.gsoft.com.au/~doconnor/
EXTRACT_SUFX= .tgz
MAINTAINER= darius@dons.net.au
ONLY_FOR_ARCHS= i386
BUILD_WRKSRC= ${WRKSRC}/sys/modules/ltmdm
NO_WRKSUBDIR= yes
pre-fetch:
.if !exists(${SRC_BASE}/sys/Makefile)
@${ECHO} "*************************************************"; \
${ECHO} "This port requires the kernel source be available"; \
${ECHO} "*************************************************"; \
exit 1
.endif
do-install:
@${PERL} -pi.orig -e "s@%%PREFIX%%@${PREFIX}@g" ${WRKSRC}/ltmdm.sh
@${MKDIR} ${DATADIR}
@${CP} ${WRKSRC}/sys/modules/ltmdm/ltmdm.ko ${DATADIR}
@(cd ${WRKSRC}/sys/modules/ltmdm; ${MAKE} clean)
@${MKDIR} ${PREFIX}/src
${TAR} -C ${WRKSRC} -cf - sys | ${TAR} -C ${PREFIX}/src -xvf -
@${INSTALL_SCRIPT} ${WRKSRC}/ltmdm.sh ${PREFIX}/etc/rc.d/
@${ECHO} ""
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|