2000-10-07 15:34:21 +00:00
|
|
|
# Ports collection makefile for: mount_jamsdos
|
|
|
|
# Date created: 3 July 2000
|
|
|
|
# Whom: Ryuichiro IMURA <imura@af.airnet.ne.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= msdosfs
|
2000-10-14 23:29:54 +00:00
|
|
|
PORTVERSION= ${LAST_UPDATED}
|
2000-10-07 15:34:21 +00:00
|
|
|
CATEGORIES= japanese
|
|
|
|
MASTER_SITES= http://www.linkclub.or.jp/~clover/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
2000-10-28 08:37:18 +00:00
|
|
|
MASTER_SITE_SUBDIR= asami
|
2000-10-07 15:34:21 +00:00
|
|
|
DISTNAME= ${PORTNAME}-ja-20000421
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
mount_msdos-20000701.tar.gz
|
|
|
|
|
2000-10-28 08:37:18 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2000-10-07 15:34:21 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/msdosfs.ja
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 410001 && ${OSVERSION} < 500000
|
2000-10-27 18:44:36 +00:00
|
|
|
LAST_UPDATED= 20001027
|
2000-10-07 15:34:21 +00:00
|
|
|
PATCHDIR= ${MASTERDIR}/patches.4
|
2001-02-20 14:01:48 +00:00
|
|
|
.elif ${OSVERSION} >= 500016
|
|
|
|
# runs only after 9th Feb 2001 world
|
|
|
|
LAST_UPDATED= 20010209
|
2000-10-07 15:34:21 +00:00
|
|
|
PATCHDIR= ${MASTERDIR}/patches.5
|
2000-10-14 23:29:54 +00:00
|
|
|
NO_PACKAGE= "to avoid crashing a machine when try to install incorrect version"
|
2000-10-07 15:34:21 +00:00
|
|
|
.else
|
2001-02-20 14:01:48 +00:00
|
|
|
LAST_UPDATED= 20001022
|
|
|
|
BROKEN= "Supports up-to-date -CURRENT only"
|
2000-10-07 15:34:21 +00:00
|
|
|
.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>
|