summaryrefslogtreecommitdiffstats
path: root/japanese/msdosfs/Makefile
blob: 701aa02c85214cda6f76116d37cece60498bf4d6 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Ports collection makefile for:  mount_jamsdos
# Date created:		3 July 2000
# Whom:			Ryuichiro IMURA <imura@af.airnet.ne.jp>
#
# $FreeBSD$
#

PORTNAME=	msdosfs
PORTVERSION=	${LAST_UPDATED}
CATEGORIES=	japanese
MASTER_SITES=	http://www.linkclub.or.jp/~clover/ \
		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	imura
DISTNAME=	${PORTNAME}-ja-20000421
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		mount_msdos-20000701.tar.gz

MAINTAINER=	imura@FreeBSD.org

WRKSRC=		${WRKDIR}/${DISTNAME}/msdosfs.ja

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 410001 && ${OSVERSION} < 500000
LAST_UPDATED=	20001007
PATCHDIR=	${MASTERDIR}/patches.4
.elif ${OSVERSION} >= 500013
LAST_UPDATED=	20001009
PATCHDIR=	${MASTERDIR}/patches.5
NO_PACKAGE=	"to avoid crashing a machine when try to install incorrect version"
.else
BROKEN=		"It may not work with your FreeBSD version (but I'm not sure)"
.endif

post-extract:
	cd ${WRKDIR}/mount ; co RCS/*,v
	cd ${WRKDIR}/mount_msdos ; co RCS/*,v
	${LN} -s ${WRKSRC} ${WRKSRC}/msdosfs
	${LN} -s ${WRKSRC}/msdosfsmount.h ${WRKDIR}/mount_msdos

pre-build:
	@if [ ! -d /sys -o ! -d /usr/src/sys ]; then \
		${ECHO} "****************************************" ; \
		${ECHO} " You need to extract kernel source tree" ; \
		${ECHO} " before you build this package..." ; \
		${ECHO} "****************************************" ; \
		${FALSE} ; \
	fi

post-build:
	cd ${WRKDIR}/mount_msdos && ${MAKE}
	${SED} -e "s,@@PREFIX@@,${PREFIX}," ${FILESDIR}/ja-msdosfs.sh \
		> ${WRKDIR}/ja-msdosfs.sh

do-install:
	${MKDIR} ${PREFIX}/lib/ja-msdosfs
	${INSTALL_PROGRAM} ${WRKDIR}/mount_msdos/mount_jamsdos ${PREFIX}/sbin
	${INSTALL_SCRIPT} ${WRKSRC}/msdos_ja.ko ${PREFIX}/lib/ja-msdosfs
	${INSTALL_SCRIPT} ${WRKDIR}/ja-msdosfs.sh ${PREFIX}/etc/rc.d

post-install:
	/sbin/kldload ${PREFIX}/lib/ja-msdosfs/msdos_ja.ko

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud