1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/korean/msdosfs/Makefile
Edwin Groothuis 4c97fac781 Replace all INSTALL_DATA/INSTALL_SCRIPT and INSTALL_PROGRAM/STRIP=
hacks to install kernel loadable modules correctly on amd64 platforms
with the new INSTALL_KLD command.

All PORTREVISIONS have been bumped to show when the new version of
installing became available.
2007-10-07 02:56:19 +00:00

69 lines
1.9 KiB
Makefile

# Ports collection makefile for: msdosfs for Korean
# Date created: 24 Mar 2001
# Whom: cjh
#
# $FreeBSD$
#
# based on japanese/msdosfs
#
PORTNAME= msdosfs
PORTVERSION= ${LAST_UPDATED}
PORTREVISION= 1
CATEGORIES= korean kld
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= trevor
DISTNAME= ${PORTNAME}-ko-20000710
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
mount_msdos-20000701.tar.gz
MAINTAINER= cjh@FreeBSD.org
COMMENT= Mount a Microsoft FAT Korean file system
WRKSRC= ${WRKDIR}/${DISTNAME}/msdosfs.ko
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500016 && ${OSVERSION} < 501109
# 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"
.elif ${OSVERSION} >= 501109
LAST_UPDATED= 20010209
IGNORE= is included in the base system. See mount_msdosfs(8)
.else
LAST_UPDATED= 20001022
IGNORE= is not supported on this version of FreeBSD
.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_KLD} ${WRKSRC}/msdos_ko.ko ${PREFIX}/lib/ko-msdosfs
${INSTALL_SCRIPT} ${WRKDIR}/ko-msdosfs.sh ${PREFIX}/etc/rc.d
.include <bsd.port.post.mk>