From e6bafb2af1ebb8ff295f9a53462a3322f382924c Mon Sep 17 00:00:00 2001 From: leeym Date: Thu, 26 Jun 2003 17:09:39 +0000 Subject: add NO_WRKSUBDIR and replace WRKDIR with WRKSRC --- chinese/gbfs/Makefile | 27 ++++++++++++++------------- chinese/gbfs/files/gbfs.sh | 2 +- 2 files changed, 15 insertions(+), 14 deletions(-) (limited to 'chinese') diff --git a/chinese/gbfs/Makefile b/chinese/gbfs/Makefile index 37217e79319..f6d717aad6f 100644 --- a/chinese/gbfs/Makefile +++ b/chinese/gbfs/Makefile @@ -19,6 +19,7 @@ SYSDIR= /usr/src/sys KMODDIR= ${PREFIX}/modules PLIST_SUB= MSDOSFSKO=${MSDOSFSKO} USE_REINPLACE= yes +NO_WRKSUBDIR= yes .include @@ -45,26 +46,26 @@ IGNORE= "You need to extract kernel source tree before you build this package" .endif do-extract: - @${MKDIR} ${WRKDIR}/msdos ${WRKDIR}/cd9660 ${WRKDIR}/ntfs - @${CP} ${MSDOSFSDIR}/* ${MSDOSFSKODIR}/Makefile ${WRKDIR}/msdos - @${CP} ${SYSDIR}/isofs/cd9660/* ${SYSDIR}/modules/cd9660/Makefile ${WRKDIR}/cd9660 - @${CP} ${NTFSDIR}/* ${SYSDIR}/modules/ntfs/Makefile ${WRKDIR}/ntfs - @(cd ${WRKDIR}; ${TAR} xzf ${DISTDIR}/${DISTFILES} ) - @${REINPLACE_CMD} -e "/^\.PATH/d" ${WRKDIR}/*/Makefile + @${MKDIR} ${WRKSRC}/msdos ${WRKSRC}/cd9660 ${WRKSRC}/ntfs + @${CP} ${MSDOSFSDIR}/* ${MSDOSFSKODIR}/Makefile ${WRKSRC}/msdos + @${CP} ${SYSDIR}/isofs/cd9660/* ${SYSDIR}/modules/cd9660/Makefile ${WRKSRC}/cd9660 + @${CP} ${NTFSDIR}/* ${SYSDIR}/modules/ntfs/Makefile ${WRKSRC}/ntfs + @(cd ${WRKSRC}; ${TAR} xzf ${DISTDIR}/${DISTFILES} ) + @${REINPLACE_CMD} -e "/^\.PATH/d" ${WRKSRC}/*/Makefile do-patch: - @(cd ${WRKDIR}/msdos; ${PATCH} --quiet < ${WRKDIR}/${MSDOSFSPATCH} ) - @(cd ${WRKDIR}/cd9660; ${PATCH} --quiet < ${WRKDIR}/${CD9660PATCH} ) - @(cd ${WRKDIR}/ntfs; ${PATCH} --quiet < ${WRKDIR}/${NTFSPATCH} ) + @(cd ${WRKSRC}/msdos; ${PATCH} --quiet < ${WRKSRC}/${MSDOSFSPATCH} ) + @(cd ${WRKSRC}/cd9660; ${PATCH} --quiet < ${WRKSRC}/${CD9660PATCH} ) + @(cd ${WRKSRC}/ntfs; ${PATCH} --quiet < ${WRKSRC}/${NTFSPATCH} ) do-build: - @(cd ${WRKDIR}/msdos; make all) - @(cd ${WRKDIR}/cd9660; make all) - @(cd ${WRKDIR}/ntfs; make all) + @(cd ${WRKSRC}/msdos; make all) + @(cd ${WRKSRC}/cd9660; make all) + @(cd ${WRKSRC}/ntfs; make all) do-install: @${MKDIR} ${KMODDIR} @${INSTALL_SCRIPT} ${FILESDIR}/gbfs.sh ${PREFIX}/etc/rc.d - @${INSTALL_SCRIPT} ${WRKDIR}/*/*.ko ${KMODDIR} + @${INSTALL_SCRIPT} ${WRKSRC}/*/*.ko ${KMODDIR} .include diff --git a/chinese/gbfs/files/gbfs.sh b/chinese/gbfs/files/gbfs.sh index 10846dab4f3..2eff687f8fe 100644 --- a/chinese/gbfs/files/gbfs.sh +++ b/chinese/gbfs/files/gbfs.sh @@ -32,7 +32,7 @@ stop) kldunload -v -n ntfs && echo -n ' GB-ntfs' ;; *) - echo "Usage: gbfs.sh {start|stop}" >&2 + echo "Usage: $0 {start|stop}" >&2 exit 1 ;; esac -- cgit