From 8ec6d95d62ab29bca6b3e5ad9eb6ce1fd41ee85a Mon Sep 17 00:00:00 2001 From: sakamoto Date: Fri, 7 Jan 2000 05:23:30 +0000 Subject: Initial import of linux-locale-0.4.11 Linux wcsmbs preload libraries and locales --- emulators/linux-locale/Makefile | 68 ++++++++++++++++++++++++++++++++++++ emulators/linux-locale/files/md5 | 4 +++ emulators/linux-locale/pkg/COMMENT | 1 + emulators/linux-locale/pkg/DEINSTALL | 6 ++++ emulators/linux-locale/pkg/DESCR | 1 + 5 files changed, 80 insertions(+) create mode 100644 emulators/linux-locale/Makefile create mode 100644 emulators/linux-locale/files/md5 create mode 100644 emulators/linux-locale/pkg/COMMENT create mode 100644 emulators/linux-locale/pkg/DEINSTALL create mode 100644 emulators/linux-locale/pkg/DESCR (limited to 'emulators/linux-locale') diff --git a/emulators/linux-locale/Makefile b/emulators/linux-locale/Makefile new file mode 100644 index 00000000000..1929052ffc0 --- /dev/null +++ b/emulators/linux-locale/Makefile @@ -0,0 +1,68 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/01/07 05:23:30 sakamoto Exp $ +# + +DISTNAME= libwcsmbs-0.0.4-4jrpm +PKGNAME= linux-locale-0.4.11 +CATEGORIES= emulators +MASTER_SITES= ftp://ftp.linux.or.jp/pub/RPM/RPMS/i386-glibc/ \ + ftp://mirror.nucba.ac.jp/pub/JRPM/RPMS/i386-glibc/ \ + ftp://ftp.lab.kdd.co.jp/Linux/jrpm/RPMS/i386-glibc/ \ + ftp://ftp.cc.miyazaki-u.ac.jp/pub/OS/Linux/JRPM/RPMS/i386-glibc/ +EXTRACT_SUFX= .i386.rpm +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + wcsmbs-locale-0.4.11-1jrpm${EXTRACT_SUFX} + +MAINTAINER= sakamoto@netbsd.org + +ONLY_FOR_PLATFORM= *-*-i386 + +.include "../../mk/bsd.prefs.mk" +.if ${OPSYS} == "NetBSD" +DEPENDS= suse_linux-6.1p1:../../emulators/suse_linux +.endif + +EXTRACT_ONLY= # empty +NO_PATCH= yes +NO_CONFIGURE= yes +NO_BUILD= yes +PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC +DEINSTALL_SRC= ${PKGDIR}/DEINSTALL +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL + +EMULSUBDIR= emul/linux +EMULDIR= ${PREFIX}/${EMULSUBDIR} +EMULPRELOAD= ${EMULDIR}/etc/ld.so.preload + +RPM2PKG= ${PREFIX}/sbin/rpm2pkg +RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR} +.for TEMP in ${DISTFILES} +RPM2PKGARGS+= ${DISTDIR}/${DIST_SUBDIR}/${TEMP} +.endfor + +do-install: + @if [ -f ${PKGDIR}/PLIST ]; then \ + ${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \ + else \ + ${RM} -f ${PLIST_SRC}; \ + fi + ${RPM2PKG} ${RPM2PKGARGS} + @if ${GREP} -q 'lib.*\.so' ${PLIST_SRC}; then \ + ${ECHO_MSG} "===> [Automatic Linux shared object handling]"; \ + ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}; \ + ${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" >>${PLIST_SRC}; \ + ${ECHO} "@unexec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR} 2>/dev/null" >>${PLIST_SRC}; \ + fi + +post-install: + @${ECHO_MSG} "===> [Automatic Linux shared object preload handling]" + @grep -v 'libwcsmbs\.so' ${EMULPRELOAD} \ + > ${WRKDIR}/preload 2> /dev/null || ${TRUE} + @${MV} ${WRKDIR}/preload ${EMULPRELOAD} + @${ECHO} "libwcsmbs.so.0" >> ${EMULPRELOAD} + @${SED} -e 's|$${EMULPRELOAD}|${EMULPRELOAD}|g' \ + ${DEINSTALL_SRC} > ${DEINSTALL_FILE} + +show-shlib-type: + @${ECHO} linux-${MACHINE_ARCH} + +.include "../../mk/bsd.pkg.mk" diff --git a/emulators/linux-locale/files/md5 b/emulators/linux-locale/files/md5 new file mode 100644 index 00000000000..cb23039e759 --- /dev/null +++ b/emulators/linux-locale/files/md5 @@ -0,0 +1,4 @@ +$NetBSD: md5,v 1.1.1.1 2000/01/07 05:23:30 sakamoto Exp $ + +MD5 (libwcsmbs-0.0.4-4jrpm.i386.rpm) = 339d01d9dceba375bfd9eb54915f08ee +MD5 (wcsmbs-locale-0.4.11-1jrpm.i386.rpm) = a987271fa9b462c654d5856b47da191e diff --git a/emulators/linux-locale/pkg/COMMENT b/emulators/linux-locale/pkg/COMMENT new file mode 100644 index 00000000000..6d091bbb264 --- /dev/null +++ b/emulators/linux-locale/pkg/COMMENT @@ -0,0 +1 @@ +Linux wcsmbs preload libraries and locales diff --git a/emulators/linux-locale/pkg/DEINSTALL b/emulators/linux-locale/pkg/DEINSTALL new file mode 100644 index 00000000000..d0ce5fc559c --- /dev/null +++ b/emulators/linux-locale/pkg/DEINSTALL @@ -0,0 +1,6 @@ +# $NetBSD: DEINSTALL,v 1.1.1.1 2000/01/07 05:23:30 sakamoto Exp $ +grep -v 'libwcsmbs\.so' ${EMULPRELOAD} > /tmp/.ld.so.preload.save 2> /dev/null +mv /tmp/.ld.so.preload.save ${EMULPRELOAD} +if [ ! -s ${EMULPRELOAD} ]; then + rm -f ${EMULPRELOAD} +fi diff --git a/emulators/linux-locale/pkg/DESCR b/emulators/linux-locale/pkg/DESCR new file mode 100644 index 00000000000..6d091bbb264 --- /dev/null +++ b/emulators/linux-locale/pkg/DESCR @@ -0,0 +1 @@ +Linux wcsmbs preload libraries and locales -- cgit v1.2.3