diff options
author | sakamoto <sakamoto> | 2000-05-12 05:19:09 +0000 |
---|---|---|
committer | sakamoto <sakamoto> | 2000-05-12 05:19:09 +0000 |
commit | 5d1f366fd084efc81357c71cd17ab4490d8e2e42 (patch) | |
tree | 3fe28bcb7d1ad18b116f49ef55ffcf913539a9ba /emulators | |
parent | 9ba1f46f8913af4b4dbc223ecf217808590dff9f (diff) | |
download | pkgsrc-5d1f366fd084efc81357c71cd17ab4490d8e2e42.tar.gz |
depend suse_base instead of suse_linux.
Use nonmatching option at rpm extracting
instead of "mv locale locale.orig; install; deinstall; mv locale.orig locale".
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/linux-locale/Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/emulators/linux-locale/Makefile b/emulators/linux-locale/Makefile index 98e16f23ea1..f181d08c2a1 100644 --- a/emulators/linux-locale/Makefile +++ b/emulators/linux-locale/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2000/04/28 10:23:43 sakamoto Exp $ +# $NetBSD: Makefile,v 1.7 2000/05/12 05:19:09 sakamoto Exp $ # DISTNAME= locales-2.1-1mdk @@ -29,7 +29,7 @@ DISTFILES+= locales-${locale}-2.1-1mdk${EXTRACT_SUFX} DIST_SUBDIR= linux-locale ONLY_FOR_PLATFORM=NetBSD-*-i386 -DEPENDS= suse_linux-6.3:../../emulators/suse_linux +DEPENDS= suse_base-6.3:../../emulators/suse_linux EXTRACT_ONLY= # empty NO_PATCH= yes @@ -39,25 +39,25 @@ NO_BUILD= yes EMULSUBDIR= emul/linux EMULDIR= ${PREFIX}/${EMULSUBDIR} PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC +EXCLUDELIST= ${WRKDIR}/EXCLUDE CPIOLIST= ${WRKDIR}/CPIOLIST do-install: - @${MV} ${EMULDIR}/usr/share/locale ${EMULDIR}/usr/share/locale.orig @${RM} -f ${CPIOLIST} + @(cd ${EMULDIR}; \ + ${FIND} usr/share/locale -name "*" > ${EXCLUDELIST}) .for f in ${DISTFILES} - @rpm2cpio ${DISTDIR}/${DIST_SUBDIR}/${f}|cpio -t -v >> ${CPIOLIST} - @(cd ${EMULDIR}; rpm2cpio ${DISTDIR}/${DIST_SUBDIR}/${f}|cpio -i -d) + @rpm2cpio ${DISTDIR}/${DIST_SUBDIR}/${f} | \ + cpio -t -v -f -E ${EXCLUDELIST} >> ${CPIOLIST} + @(cd ${EMULDIR}; rpm2cpio ${DISTDIR}/${DIST_SUBDIR}/${f} | \ + cpio -i -d -f -E ${EXCLUDELIST}) .endfor - @${CHMOD} 755 ${EMULDIR}/usr/share/locale post-install: - @${ECHO} "@exec ${MV} ${EMULDIR}/usr/share/locale ${EMULDIR}/usr/share/locale.orig" > ${PLIST_SRC} @${CAT} ${CPIOLIST}|${GREP} "^d"|${SED} -e "s|.* \(usr\/.*\)|@exec ${MKDIR} ${EMULDIR}/\1|"|sort >> ${PLIST_SRC} @${CAT} ${CPIOLIST}|${GREP} "^-"|${SED} -e "s|.* \(usr\/.*\)|${EMULSUBDIR}/\1|"|sort >> ${PLIST_SRC} @${CAT} ${CPIOLIST}|${GREP} "^l"|${SED} -e "s|.* \(usr\/.*\) -> \(.*\)|@exec ln -s \2 %D/${EMULSUBDIR}/\1|"|sort >> ${PLIST_SRC} @${CAT} ${CPIOLIST}|${GREP} "^l"|${SED} -e "s|.* \(usr\/.*\) -> .*|@unexec rm -f %D/${EMULSUBDIR}/\1|"|sort >> ${PLIST_SRC} @${CAT} ${CPIOLIST}|${GREP} "^d"|${SED} -e "s|.* \(usr\/.*\)|@dirrm ${EMULSUBDIR}/\1|"|sort -r >> ${PLIST_SRC} - @${ECHO} "@dirrm ${EMULSUBDIR}/usr/share/locale" >> ${PLIST_SRC} - @${ECHO} "@unexec ${MV} ${EMULDIR}/usr/share/locale.orig ${EMULDIR}/usr/share/locale" >> ${PLIST_SRC} .include "../../mk/bsd.pkg.mk" |