1: 2008-12-21 (日) 03:29:18 iseki |
現: 2009-01-12 (月) 12:06:12 iseki |
| Be sure to replace the path in the configs to /etc/sl_proxy | | Be sure to replace the path in the configs to /etc/sl_proxy |
| | | |
- | **** i.E. $overlay/app-misc/sl_proxy/sl_proxy-1.2.6.ebuild [#jada92f5] | + | **** i.E. $overlay/app-misc/sl_proxy/sl_proxy-1.6.1.ebuild [#d1b9521e] |
- | # Copyright 1999-2008 Gentoo Foundation | + | # Copyright 1999-2009 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 | | # Distributed under the terms of the GNU General Public License v2 |
- | # $Header: $ | + | |
| inherit eutils flag-o-matic | | inherit eutils flag-o-matic |
- | | + | |
- | DESCRIPTION="This system consists of Proxy Server (sl_relay) and Cache Server (sl_cache) for Second Life on Linux" | + | DESCRIPTION="This system consists of Proxy Server (sl_relay) and Cache Server (sl_cache) for Second Life on Linux" |
| HOMEPAGE="http://www.nsl.tuis.ac.jp/xoops/modules/xpwiki/?sl_proxy%20%28E%29" | | HOMEPAGE="http://www.nsl.tuis.ac.jp/xoops/modules/xpwiki/?sl_proxy%20%28E%29" |
- | SRC_URI="http://www.solar-system.tuis.ac.jp/SoftWare/dist/${P}.tgz" | + | SRC_URI="http://www.nsl.tuis.ac.jp/DownLoad/SoftWare/Linux/${P}.tar.gz" |
- | # check for new version here: http://www.solar-system.tuis.ac.jp/SoftWare/software_eng.html | + | |
| LICENSE="free-noncomm" | | LICENSE="free-noncomm" |
| SLOT="0" | | SLOT="0" |
| KEYWORDS="~x86" | | KEYWORDS="~x86" |
- | IUSE="" | + | IUSE="berkdb" |
| + | |
| RDEPEND="dev-libs/openssl | | RDEPEND="dev-libs/openssl |
- | sys-libs/zlib" | + | sys-libs/zlib |
| + | berkdb? ( sys-libs/db )" |
| DEPEND="${RDEPEND}" | | DEPEND="${RDEPEND}" |
| + | |
| src_unpack() { | | src_unpack() { |
- | unpack ${A} | + | unpack ${A} |
| + | einfo "Now I setting MAKEOPTS='-j1', otherwise it can get trouble" |
| + | MAKEOPTS="-j1" |
| } | | } |
| + | |
| src_compile() { | | src_compile() { |
- | emake || die | + | S="${WORKDIR}/TUIS_Lib" |
| + | cd "${S}" |
| + | if use berkdb ; then |
| + | econf --enable-db || die |
| + | else |
| + | econf || die |
| + | fi |
| + | emake || die |
| + | |
| + | S="${WORKDIR}/${P}" |
| + | cd "${S}" |
| + | if use berkdb ; then |
| + | econf --enable-db || die |
| + | else |
| + | econf || die |
| + | fi |
| + | emake || die |
| } | | } |
| + | |
| src_install() { | | src_install() { |
- | dodir /bin | + | dodir /bin |
- | dodir /etc/sl_proxy | + | dodir /etc/sl_proxy |
- | keepdir /var/sl_proxy | + | dodir /var/sl_proxy |
- | mv "${S}/sl_cache/sl_cache" "${D}/bin" | + | keepdir /var/sl_proxy |
- | mv ${S}/sl_cache/conf/* "${D}/etc/sl_proxy" | + | mv "${S}/sl_cache/sl_cache" "${D}/bin" |
- | mv "${S}/sl_relay/sl_relay" "${D}/bin" | + | mv ${S}/sl_cache/conf/* "${D}/etc/sl_proxy" |
- | mv ${S}/sl_relay/conf/* "${D}/etc/sl_proxy" | + | mv "${S}/sl_relay/sl_relay" "${D}/bin" |
- | chown nobody: "${D}/var/sl_proxy" | + | mv ${S}/sl_relay/conf/* "${D}/etc/sl_proxy" |
| + | mv "${S}/sl_info/sl_info" "${D}/bin" |
| + | mv ${S}/sl_info/conf/* "${D}/etc/sl_proxy" |
| + | chown nobody: /var/sl_proxy |
| + | einfo "Config is in /etc/sl_proxy, be sure to specify it." |
| + | einfo "This ebuild comes without Gentoo initscripts." |
| } | | } |
| + | |
| | | |
| | | |
| # Copyright 1999-2008 Gentoo Foundation | | # Copyright 1999-2008 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 | | # Distributed under the terms of the GNU General Public License v2 |
| + | |
| PIDFILE=/var/run/sl_relay.pid | | PIDFILE=/var/run/sl_relay.pid |
| + | |
| depend() { | | depend() { |
| need net sl_cache | | need net sl_cache |
| } | | } |
| + | |
| start() { | | start() { |
| ebegin "Starting sl_relay" | | ebegin "Starting sl_relay" |
| # Copyright 1999-2008 Gentoo Foundation | | # Copyright 1999-2008 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 | | # Distributed under the terms of the GNU General Public License v2 |
| + | |
| PIDFILE=/var/run/sl_cache.pid | | PIDFILE=/var/run/sl_cache.pid |
| + | |
| depend() { | | depend() { |
| need net | | need net |
| } | | } |
| + | |
| start() { | | start() { |
| ebegin "Starting sl_cache" | | ebegin "Starting sl_cache" |
| eend $? "Failed to start sl_cache" | | eend $? "Failed to start sl_cache" |
| } | | } |
| + | |
| stop() { | | stop() { |
| ebegin "Stopping sl_cache" | | ebegin "Stopping sl_cache" |