aboutsummaryrefslogtreecommitdiff
path: root/korean/msdosfs/Makefile
diff options
context:
space:
mode:
authorCHOI Junho <cjh@FreeBSD.org>2001-03-24 03:48:41 +0000
committerCHOI Junho <cjh@FreeBSD.org>2001-03-24 03:48:41 +0000
commitdeeb9d53f48fc861747180a1974606d074e063cd (patch)
tree8ab2025dfa263f4cd4b9aca0edd8ac3858ed462d /korean/msdosfs/Makefile
parent45a54d9a31510ec5879d67ef06a02e80a820bb81 (diff)
downloadports-deeb9d53f48fc861747180a1974606d074e063cd.tar.gz
ports-deeb9d53f48fc861747180a1974606d074e063cd.zip
Notes
Diffstat (limited to 'korean/msdosfs/Makefile')
-rw-r--r--korean/msdosfs/Makefile69
1 files changed, 69 insertions, 0 deletions
diff --git a/korean/msdosfs/Makefile b/korean/msdosfs/Makefile
new file mode 100644
index 000000000000..65b4ae6d00e8
--- /dev/null
+++ b/korean/msdosfs/Makefile
@@ -0,0 +1,69 @@
+# Ports collection makefile for: msdosfs for Korean
+# Date created: 24 Mar 2001
+# Whom: cjh
+#
+# $FreeBSD$
+#
+# based on japanese/msdosfs
+#
+
+PORTNAME= msdosfs
+PORTVERSION= ${LAST_UPDATED}
+CATEGORIES= korean
+MASTER_SITES= http://www.kr.freebsd.org/~cjh/freebsd/msdosfs-ko/ \
+ ftp://ftp.kr.freebsd.org/pub/users/cjh/FreeBSD/ \
+ ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= asami
+DISTNAME= ${PORTNAME}-ko-20000710
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ mount_msdos-20000701.tar.gz
+
+MAINTAINER= cjh@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/msdosfs.ko
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 410001 && ${OSVERSION} < 500000
+LAST_UPDATED= 20001027
+PATCHDIR= ${MASTERDIR}/patches.4
+.elif ${OSVERSION} >= 500016
+# runs only after 9th Feb 2001 world
+LAST_UPDATED= 20010209
+PATCHDIR= ${MASTERDIR}/patches.5
+NO_PACKAGE= "to avoid crashing a machine when try to install incorrect version"
+.else
+LAST_UPDATED= 20001022
+BROKEN= "Supports up-to-date -CURRENT only"
+.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}/ko-msdosfs.sh \
+ > ${WRKDIR}/ko-msdosfs.sh
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib/ko-msdosfs
+ ${INSTALL_PROGRAM} ${WRKDIR}/mount_msdos/mount_komsdos ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${WRKSRC}/msdos_ko.ko ${PREFIX}/lib/ko-msdosfs
+ ${INSTALL_SCRIPT} ${WRKDIR}/ko-msdosfs.sh ${PREFIX}/etc/rc.d
+
+post-install:
+ /sbin/kldload ${PREFIX}/lib/ko-msdosfs/msdos_ko.ko
+
+.include <bsd.port.post.mk>