[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
honyakudamashii
翻訳魂のpkgを作ってみました。
FreeBSDのemul pkgは保守されていないようなので、linux版にしておきました。
# rpm2pkgの方が簡単だからという話もあります :)
で、X クライアントを試したのですが、これが期待している
locale dataがsuse_linux pkgには入ってないので、
日本語が表示されません。
omron-dpkey,honyaku-dictionary,honyaku-serverをcommitする予定。
もしくはserver,dicを分けずに、omron-dpkey,honyakudamashiiにするかも。
sakamoto
--
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# japanese/honyaku-dictionary
# japanese/honyaku-dictionary/Makefile
# japanese/honyaku-dictionary/files
# japanese/honyaku-dictionary/files/md5
# japanese/honyaku-dictionary/pkg
# japanese/honyaku-dictionary/pkg/COMMENT
# japanese/honyaku-dictionary/pkg/DESCR
# japanese/honyaku-muleclient
# japanese/honyaku-muleclient/Makefile
# japanese/honyaku-muleclient/files
# japanese/honyaku-muleclient/files/md5
# japanese/honyaku-muleclient/pkg
# japanese/honyaku-muleclient/pkg/COMMENT
# japanese/honyaku-muleclient/pkg/DESCR
# japanese/honyaku-server
# japanese/honyaku-server/pkg
# japanese/honyaku-server/pkg/COMMENT
# japanese/honyaku-server/pkg/DESCR
# japanese/honyaku-server/files
# japanese/honyaku-server/files/md5
# japanese/honyaku-server/Makefile
# japanese/honyaku-server/Makefile.common
# japanese/honyaku-xclient
# japanese/honyaku-xclient/Makefile
# japanese/honyaku-xclient/files
# japanese/honyaku-xclient/files/md5
# japanese/honyaku-xclient/pkg
# japanese/honyaku-xclient/pkg/COMMENT
# japanese/honyaku-xclient/pkg/DESCR
# japanese/omron-dpkey
# japanese/omron-dpkey/Makefile
# japanese/omron-dpkey/files
# japanese/omron-dpkey/files/md5
# japanese/omron-dpkey/pkg
# japanese/omron-dpkey/pkg/COMMENT
# japanese/omron-dpkey/pkg/DESCR
#
echo c - japanese/honyaku-dictionary
mkdir -p japanese/honyaku-dictionary > /dev/null 2>&1
echo x - japanese/honyaku-dictionary/Makefile
sed 's/^X//' >japanese/honyaku-dictionary/Makefile << 'END-of-japanese/honyaku-dictionary/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= honyaku-dictionary-1.00.2
XRPMFILES= honyaku-dictionary-1.00-2.i386.rpm
X
Xpost-install:
X ${MKDIR} -p ${EMULDIR}/usr/local/honyaku/dic/usr
X @${ECHO} "@exec mkdir -p %D/${EMULSUBDIR}/usr/local/honyaku/dic/usr" \
X >> ${PLIST_SRC}
X @${ECHO} "@dirrm ${EMULSUBDIR}/usr/local/honyaku/dic/usr" \
X >> ${PLIST_SRC}
X
X.include "../honyaku-server/Makefile.common"
END-of-japanese/honyaku-dictionary/Makefile
echo c - japanese/honyaku-dictionary/files
mkdir -p japanese/honyaku-dictionary/files > /dev/null 2>&1
echo x - japanese/honyaku-dictionary/files/md5
sed 's/^X//' >japanese/honyaku-dictionary/files/md5 << 'END-of-japanese/honyaku-dictionary/files/md5'
X$NetBSD$
X
XMD5 (honyaku-dictionary-1.00-2.i386.rpm) = 558fad14cdcfe31e5c2101fb3ace4319
END-of-japanese/honyaku-dictionary/files/md5
echo c - japanese/honyaku-dictionary/pkg
mkdir -p japanese/honyaku-dictionary/pkg > /dev/null 2>&1
echo x - japanese/honyaku-dictionary/pkg/COMMENT
sed 's/^X//' >japanese/honyaku-dictionary/pkg/COMMENT << 'END-of-japanese/honyaku-dictionary/pkg/COMMENT'
XHonyakudamashii (dictionary)
END-of-japanese/honyaku-dictionary/pkg/COMMENT
echo x - japanese/honyaku-dictionary/pkg/DESCR
sed 's/^X//' >japanese/honyaku-dictionary/pkg/DESCR << 'END-of-japanese/honyaku-dictionary/pkg/DESCR'
XHonyakudamashii (dictionary)
END-of-japanese/honyaku-dictionary/pkg/DESCR
echo c - japanese/honyaku-muleclient
mkdir -p japanese/honyaku-muleclient > /dev/null 2>&1
echo x - japanese/honyaku-muleclient/Makefile
sed 's/^X//' >japanese/honyaku-muleclient/Makefile << 'END-of-japanese/honyaku-muleclient/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= honyaku-muleclient-1.00.2
XRPMFILES= honyaku-muleclient-1.00-2.i386.rpm
X
X.include "../honyaku-server/Makefile.common"
END-of-japanese/honyaku-muleclient/Makefile
echo c - japanese/honyaku-muleclient/files
mkdir -p japanese/honyaku-muleclient/files > /dev/null 2>&1
echo x - japanese/honyaku-muleclient/files/md5
sed 's/^X//' >japanese/honyaku-muleclient/files/md5 << 'END-of-japanese/honyaku-muleclient/files/md5'
X$NetBSD$
X
XMD5 (honyaku-muleclient-1.00-2.i386.rpm) = 99af6b1f86c639ebca9e3ebc483a1d2a
END-of-japanese/honyaku-muleclient/files/md5
echo c - japanese/honyaku-muleclient/pkg
mkdir -p japanese/honyaku-muleclient/pkg > /dev/null 2>&1
echo x - japanese/honyaku-muleclient/pkg/COMMENT
sed 's/^X//' >japanese/honyaku-muleclient/pkg/COMMENT << 'END-of-japanese/honyaku-muleclient/pkg/COMMENT'
XHonyakudamashii (mule client)
END-of-japanese/honyaku-muleclient/pkg/COMMENT
echo x - japanese/honyaku-muleclient/pkg/DESCR
sed 's/^X//' >japanese/honyaku-muleclient/pkg/DESCR << 'END-of-japanese/honyaku-muleclient/pkg/DESCR'
XHonyakudamashii (mule client)
END-of-japanese/honyaku-muleclient/pkg/DESCR
echo c - japanese/honyaku-server
mkdir -p japanese/honyaku-server > /dev/null 2>&1
echo c - japanese/honyaku-server/pkg
mkdir -p japanese/honyaku-server/pkg > /dev/null 2>&1
echo x - japanese/honyaku-server/pkg/COMMENT
sed 's/^X//' >japanese/honyaku-server/pkg/COMMENT << 'END-of-japanese/honyaku-server/pkg/COMMENT'
XHonyakudamashii (server)
END-of-japanese/honyaku-server/pkg/COMMENT
echo x - japanese/honyaku-server/pkg/DESCR
sed 's/^X//' >japanese/honyaku-server/pkg/DESCR << 'END-of-japanese/honyaku-server/pkg/DESCR'
XHonyakudamashii (server)
END-of-japanese/honyaku-server/pkg/DESCR
echo c - japanese/honyaku-server/files
mkdir -p japanese/honyaku-server/files > /dev/null 2>&1
echo x - japanese/honyaku-server/files/md5
sed 's/^X//' >japanese/honyaku-server/files/md5 << 'END-of-japanese/honyaku-server/files/md5'
X$NetBSD$
X
XMD5 (honyaku-server-1.00-2.i386.rpm) = d37e2949b6625fa6547cdb23dc8741cd
END-of-japanese/honyaku-server/files/md5
echo x - japanese/honyaku-server/Makefile
sed 's/^X//' >japanese/honyaku-server/Makefile << 'END-of-japanese/honyaku-server/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= honyaku-server-1.00.2
XRPMFILES= honyaku-server-1.00-2.i386.rpm
X
XDEPENDS+= omron-dpkey-*:../../japanese/omron-dpkey
X
X.include "../honyaku-server/Makefile.common"
END-of-japanese/honyaku-server/Makefile
echo x - japanese/honyaku-server/Makefile.common
sed 's/^X//' >japanese/honyaku-server/Makefile.common << 'END-of-japanese/honyaku-server/Makefile.common'
X# $NetBSD$
X#
X
XCATEGORIES= japanese
XONLY_FOR_PLATFORM= NetBSD-*-i386
X
XMAINTAINER= sakamoto@netbsd.org
XHOMEPAGE= http://www.omronsoft.co.jp/SP/pcunix/honyaku/index.html
X
XRESTRICTED= "You should buy from OMRON"
XNO_PACKAGE= ${RESTRICTED}
XMIRROR_DISTFILE=no
X
XHONYAKUDISTDIR?= /cdrom/linux
XDISTDIR= ${HONYAKUDISTDIR}
XDISTFILES= ${RPMFILES}
X
XDEPENDS= suse_base-6.1p1:../../emulators/suse_base
X
XEXTRACT_ONLY= # empty
XNO_BUILD= yes
XPLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
X
XEMULSUBDIR= emul/linux
XEMULDIR= ${PREFIX}/${EMULSUBDIR}
XSBINDIR= ${PREFIX}/sbin
X
XRPM2PKG= ${PREFIX}/sbin/rpm2pkg
XRPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${EMULSUBDIR}
X
X.for TEMP in ${DISTFILES}
XRPM2PKGARGS+= ${DISTDIR}/${TEMP}
X.endfor
X
Xdo-fetch:
X.for file in ${DISTFILES}
X @(if [ ! -f ${DISTDIR}/${file} ]; then \
X ${ECHO} "If CDROM not mounted, mount_cd9660 /dev/cd0a /cdrom; ${MAKE}"; \
X ${ECHO} "If CDROM mounted to /mnt, ${MAKE} HONYAKUDISTDIR=/mnt/linux"; \
X ${FALSE}; \
X fi)
X.endfor
X
Xdo-install:
X ${RM} -f ${PLIST_SRC}
X ${RPM2PKG} ${RPM2PKGARGS}
X @${ECHO} "@exec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR}" >> ${PLIST_SRC}
X ${ECHO} "@unexec %D/${EMULSUBDIR}/sbin/ldconfig -r %D/${EMULSUBDIR} 2> /dev/null" >>${PLIST_SRC}
X ${EMULDIR}/sbin/ldconfig -r ${EMULDIR} || ${TRUE}
X
Xshow-shlib-type:
X @${ECHO} linux-${MACHINE_ARCH}
X
X.include "../../mk/bsd.pkg.mk"
END-of-japanese/honyaku-server/Makefile.common
echo c - japanese/honyaku-xclient
mkdir -p japanese/honyaku-xclient > /dev/null 2>&1
echo x - japanese/honyaku-xclient/Makefile
sed 's/^X//' >japanese/honyaku-xclient/Makefile << 'END-of-japanese/honyaku-xclient/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= honyaku-xclient-1.00.2
XRPMFILES= honyaku-xclient-1.00-2.i386.rpm
X
X.include "../honyaku-server/Makefile.common"
END-of-japanese/honyaku-xclient/Makefile
echo c - japanese/honyaku-xclient/files
mkdir -p japanese/honyaku-xclient/files > /dev/null 2>&1
echo x - japanese/honyaku-xclient/files/md5
sed 's/^X//' >japanese/honyaku-xclient/files/md5 << 'END-of-japanese/honyaku-xclient/files/md5'
X$NetBSD$
X
XMD5 (honyaku-xclient-1.00-2.i386.rpm) = 00fca46919f89a43e56517d25abd2bb2
END-of-japanese/honyaku-xclient/files/md5
echo c - japanese/honyaku-xclient/pkg
mkdir -p japanese/honyaku-xclient/pkg > /dev/null 2>&1
echo x - japanese/honyaku-xclient/pkg/COMMENT
sed 's/^X//' >japanese/honyaku-xclient/pkg/COMMENT << 'END-of-japanese/honyaku-xclient/pkg/COMMENT'
XHonyakudamashii (X client)
END-of-japanese/honyaku-xclient/pkg/COMMENT
echo x - japanese/honyaku-xclient/pkg/DESCR
sed 's/^X//' >japanese/honyaku-xclient/pkg/DESCR << 'END-of-japanese/honyaku-xclient/pkg/DESCR'
XHonyakudamashii (X client)
END-of-japanese/honyaku-xclient/pkg/DESCR
echo c - japanese/omron-dpkey
mkdir -p japanese/omron-dpkey > /dev/null 2>&1
echo x - japanese/omron-dpkey/Makefile
sed 's/^X//' >japanese/omron-dpkey/Makefile << 'END-of-japanese/omron-dpkey/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= omron-dpkey-3.01.1
XRPMFILES= dpkey-3.01-1.i386.rpm
X
X.include "../honyaku-server/Makefile.common"
END-of-japanese/omron-dpkey/Makefile
echo c - japanese/omron-dpkey/files
mkdir -p japanese/omron-dpkey/files > /dev/null 2>&1
echo x - japanese/omron-dpkey/files/md5
sed 's/^X//' >japanese/omron-dpkey/files/md5 << 'END-of-japanese/omron-dpkey/files/md5'
X$NetBSD$
X
XMD5 (dpkey-3.01-1.i386.rpm) = b10a6f3e4a863009ea56d83d39e02afb
END-of-japanese/omron-dpkey/files/md5
echo c - japanese/omron-dpkey/pkg
mkdir -p japanese/omron-dpkey/pkg > /dev/null 2>&1
echo x - japanese/omron-dpkey/pkg/COMMENT
sed 's/^X//' >japanese/omron-dpkey/pkg/COMMENT << 'END-of-japanese/omron-dpkey/pkg/COMMENT'
XOmron dpkey server
END-of-japanese/omron-dpkey/pkg/COMMENT
echo x - japanese/omron-dpkey/pkg/DESCR
sed 's/^X//' >japanese/omron-dpkey/pkg/DESCR << 'END-of-japanese/omron-dpkey/pkg/DESCR'
XOmron dpkey server
END-of-japanese/omron-dpkey/pkg/DESCR
exit