diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-misc/tokyotyrant | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-misc/tokyotyrant')
-rw-r--r-- | net-misc/tokyotyrant/Manifest | 1 | ||||
-rw-r--r-- | net-misc/tokyotyrant/files/fix_makefiles-1.4.41.patch | 85 | ||||
-rw-r--r-- | net-misc/tokyotyrant/files/fix_testsuite.patch | 104 | ||||
-rw-r--r-- | net-misc/tokyotyrant/files/tokyotyrant.confd | 15 | ||||
-rw-r--r-- | net-misc/tokyotyrant/files/tokyotyrant.initd | 38 | ||||
-rw-r--r-- | net-misc/tokyotyrant/metadata.xml | 8 | ||||
-rw-r--r-- | net-misc/tokyotyrant/tokyotyrant-1.1.41-r1.ebuild | 65 |
7 files changed, 316 insertions, 0 deletions
diff --git a/net-misc/tokyotyrant/Manifest b/net-misc/tokyotyrant/Manifest new file mode 100644 index 000000000000..152c351b12d1 --- /dev/null +++ b/net-misc/tokyotyrant/Manifest @@ -0,0 +1 @@ +DIST tokyotyrant-1.1.41.tar.gz 196196 SHA256 42af70fb9f2795d4e05c3e37941ce392a9eaafc991e230c48115370f6d64b88f SHA512 fb181ecab19981733b4b478614f9b28d7f1f776bafe6c58c4bc3e26ed294301a6242d7cd1d47b7d6b55a93305474d2e8e0a75f2f01af21a8bc93d158c8f8179e WHIRLPOOL a4bc53f222e3a210af6b4c1d7ed7a6f345e457b84de166535758a9459ceab9b07ee9a2654affd85980bdec1ebaaf9c287f80d7938276dc24e3be959a408b5320 diff --git a/net-misc/tokyotyrant/files/fix_makefiles-1.4.41.patch b/net-misc/tokyotyrant/files/fix_makefiles-1.4.41.patch new file mode 100644 index 000000000000..40d26cc5f93a --- /dev/null +++ b/net-misc/tokyotyrant/files/fix_makefiles-1.4.41.patch @@ -0,0 +1,85 @@ +diff --git a/Makefile.in b/Makefile.in +index b388455..52d3bc3 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -58,8 +58,8 @@ CFLAGS = @MYCFLAGS@ + LDFLAGS = @MYLDFLAGS@ + CMDLDFLAGS = @MYCMDLDFLAGS@ + LIBS = @LIBS@ +-LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:. +-RUNENV = @MYLDLIBPATHENV@=.:/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@ ++LDENV = ++RUNENV = @MYLDLIBPATHENV@=.:$(LIBDIR) + POSTCMD = @MYPOSTCMD@ + + +@@ -120,10 +120,6 @@ install : + cp -Rf $(LIBRARYFILES) $(DESTDIR)$(LIBDIR) + mkdir -p $(DESTDIR)$(BINDIR) + cp -Rf $(COMMANDFILES) $(DESTDIR)$(BINDIR) +- mkdir -p $(DESTDIR)$(SBINDIR) +- cp -Rf $(INITFILES) $(DESTDIR)$(SBINDIR) +- mkdir -p $(DESTDIR)$(DATADIR) +- cp -Rf $(SCREXTFILES) $(DOCUMENTFILES) $(DESTDIR)$(DATADIR) + mkdir -p $(DESTDIR)$(MAN1DIR) + cd man && cp -Rf $(MAN1FILES) $(DESTDIR)$(MAN1DIR) + mkdir -p $(DESTDIR)$(MAN3DIR) +@@ -132,7 +128,6 @@ install : + cd man && cp -Rf $(MAN8FILES) $(DESTDIR)$(MAN8DIR) + mkdir -p $(DESTDIR)$(PCDIR) + cp -Rf $(PCFILES) $(DESTDIR)$(PCDIR) +- [ "$$UID" == 0 ] && ldconfig || true + @printf '\n' + @printf '#================================================================\n' + @printf '# Thanks for using Tokyo Tyrant.\n' +diff --git a/configure.in b/configure.in +index fbe0c71..809a839 100644 +--- a/configure.in ++++ b/configure.in +@@ -28,33 +28,15 @@ MYDOCUMENTFILES="COPYING ChangeLog THANKS doc tokyotyrant.idl" + MYPCFILES="tokyotyrant.pc" + + # Building flags +-MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2" ++MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char" + MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I$HOME/include -I/usr/local/include" + MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__" +-MYLDFLAGS="-L. -L\$(LIBDIR) -L$HOME/lib -L/usr/local/lib" ++MYLDFLAGS="-L. -L\$(LIBDIR)" + MYCMDLDFLAGS="" + MYRUNPATH="\$(LIBDIR)" + MYLDLIBPATHENV="LD_LIBRARY_PATH" + MYPOSTCMD="true" + +-# Building paths +-PATH="$PATH:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" +-PATH="$PATH:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/xpg4/bin:/usr/xpg6/bin:/usr/ucb" +-CPATH="$HOME/include:/usr/local/include:$CPATH" +-LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH" +-LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH" +-PKG_CONFIG_PATH="$HOME/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" +-export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH +-if type pkg-config > /dev/null 2>&1 +-then +- PATH="$PATH:`pkg-config --variable=bindir tokyocabinet`" +- CPATH="$CPATH:`pkg-config --variable=includedir tokyocabinet`" +- LIBRARY_PATH="$LIBRARY_PATH:`pkg-config --variable=libdir tokyocabinet`" +- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`pkg-config --variable=libdir tokyocabinet`" +-fi +- +- +- + #================================================================ + # Options + #================================================================ +diff --git a/tokyotyrant.pc.in b/tokyotyrant.pc.in +index efb3749..efec1f6 100644 +--- a/tokyotyrant.pc.in ++++ b/tokyotyrant.pc.in +@@ -10,5 +10,5 @@ datadir=@datadir@ + Name: Tokyo Tyrant + Description: network interface of Tokyo Cabinet + Version: @PACKAGE_VERSION@ +-Libs: -L${libdir} -ltokyotyrant @LIBS@ ++Libs: -L${libdir} -ltokyotyrant + Cflags: -I${includedir} diff --git a/net-misc/tokyotyrant/files/fix_testsuite.patch b/net-misc/tokyotyrant/files/fix_testsuite.patch new file mode 100644 index 000000000000..d48825381777 --- /dev/null +++ b/net-misc/tokyotyrant/files/fix_testsuite.patch @@ -0,0 +1,104 @@ +--- Makefile.in 2009-10-14 10:33:16.000000000 +0200 ++++ Makefile.in.new 2009-10-14 10:27:39.000000000 +0200 +@@ -166,48 +166,49 @@ + + + check : ++ $(RUNENV) $(RUNCMD) ./ttserver -dmn -host 127.0.0.1 -port 19781 -pid /tmp/tttest.pid /tmp/tttest.tch + $(RUNENV) $(RUNCMD) ./tcrmgr version +- $(RUNENV) $(RUNCMD) ./tcrtest write -cnum 5 -tout 5 -rnd 127.0.0.1 50000 +- $(RUNENV) $(RUNCMD) ./tcrtest write -cnum 5 -tout 5 -nr -rnd 127.0.0.1 50000 +- $(RUNENV) $(RUNCMD) ./tcrtest write -cnum 5 -tout 5 127.0.0.1 50000 +- $(RUNENV) $(RUNCMD) ./tcrtest read -cnum 5 -tout 5 127.0.0.1 +- $(RUNENV) $(RUNCMD) ./tcrtest read -cnum 5 -tout 5 -mul 5 127.0.0.1 +- $(RUNENV) $(RUNCMD) ./tcrtest remove -cnum 5 -tout 5 127.0.0.1 +- $(RUNENV) $(RUNCMD) ./tcrtest rcat -cnum 5 -tout 5 127.0.0.1 50000 +- $(RUNENV) $(RUNCMD) ./tcrtest rcat -cnum 5 -tout 5 -shl 50 127.0.0.1 50000 +- $(RUNENV) $(RUNCMD) ./tcrmgr vanish 127.0.0.1 +- $(RUNENV) $(RUNCMD) ./tcrtest rcat -cnum 5 -tout 5 -dad 127.0.0.1 50000 +- $(RUNENV) $(RUNCMD) ./tcrtest rcat -cnum 5 -tout 5 -ext putcat -xlr 127.0.0.1 50000 +- $(RUNENV) $(RUNCMD) ./tcrtest misc -cnum 5 -tout 5 127.0.0.1 5000 +- $(RUNENV) $(RUNCMD) ./tcrtest wicked -cnum 5 -tout 5 127.0.0.1 5000 +- $(RUNENV) $(RUNCMD) ./tcrmgr inform 127.0.0.1 +- $(RUNENV) $(RUNCMD) ./tcrmgr vanish 127.0.0.1 +- $(RUNENV) $(RUNCMD) ./tcrmttest write -tnum 5 127.0.0.1 5000 +- $(RUNENV) $(RUNCMD) ./tcrmttest read -tnum 5 127.0.0.1 +- $(RUNENV) $(RUNCMD) ./tcrmttest remove -tnum 5 127.0.0.1 +- $(RUNENV) $(RUNCMD) ./tcrmttest write -tnum 5 -ext putcat -rnd 127.0.0.1 5000 +- $(RUNENV) $(RUNCMD) ./tcrmttest typical -tnum 5 127.0.0.1 5000 +- $(RUNENV) $(RUNCMD) ./tcrmgr vanish 127.0.0.1 +- $(RUNENV) $(RUNCMD) ./tcrmgr put 127.0.0.1 one first +- $(RUNENV) $(RUNCMD) ./tcrmgr put 127.0.0.1 two second +- $(RUNENV) $(RUNCMD) ./tcrmgr put -dk 127.0.0.1 three third +- $(RUNENV) $(RUNCMD) ./tcrmgr put -dc 127.0.0.1 three third +- $(RUNENV) $(RUNCMD) ./tcrmgr put -dc 127.0.0.1 three third +- $(RUNENV) $(RUNCMD) ./tcrmgr put -dc 127.0.0.1 three third +- $(RUNENV) $(RUNCMD) ./tcrmgr put 127.0.0.1 four fourth +- $(RUNENV) $(RUNCMD) ./tcrmgr put -dk 127.0.0.1 five fifth +- $(RUNENV) $(RUNCMD) ./tcrmgr out 127.0.0.1 one +- $(RUNENV) $(RUNCMD) ./tcrmgr out 127.0.0.1 two +- $(RUNENV) $(RUNCMD) ./tcrmgr get 127.0.0.1 three > check.out +- $(RUNENV) $(RUNCMD) ./tcrmgr get 127.0.0.1 four > check.out +- $(RUNENV) $(RUNCMD) ./tcrmgr get 127.0.0.1 five > check.out +- $(RUNENV) $(RUNCMD) ./tcrmgr mget 127.0.0.1 one two three four five > check.out +- $(RUNENV) $(RUNCMD) ./tcrmgr misc 127.0.0.1 putlist six sixth seven seventh +- $(RUNENV) $(RUNCMD) ./tcrmgr misc 127.0.0.1 outlist six +- $(RUNENV) $(RUNCMD) ./tcrmgr misc 127.0.0.1 getlist three four five six > check.out +- $(RUNENV) $(RUNCMD) ./tcrmgr list -pv 127.0.0.1 > check.out +- $(RUNENV) $(RUNCMD) ./tcrmgr list -pv -fm f 127.0.0.1 > check.out +- $(RUNENV) $(RUNCMD) ./tcrmgr http -ih http://127.0.0.1:1978/five > check.out ++ $(RUNENV) $(RUNCMD) ./tcrtest write -port 19781 -cnum 5 -tout 5 -rnd 127.0.0.1 50000 ++ $(RUNENV) $(RUNCMD) ./tcrtest write -port 19781 -cnum 5 -tout 5 -nr -rnd 127.0.0.1 50000 ++ $(RUNENV) $(RUNCMD) ./tcrtest write -port 19781 -cnum 5 -tout 5 127.0.0.1 50000 ++ $(RUNENV) $(RUNCMD) ./tcrtest read -port 19781 -cnum 5 -tout 5 127.0.0.1 ++ $(RUNENV) $(RUNCMD) ./tcrtest read -port 19781 -cnum 5 -tout 5 -mul 5 127.0.0.1 ++ $(RUNENV) $(RUNCMD) ./tcrtest remove -port 19781 -cnum 5 -tout 5 127.0.0.1 ++ $(RUNENV) $(RUNCMD) ./tcrtest rcat -port 19781 -cnum 5 -tout 5 127.0.0.1 50000 ++ $(RUNENV) $(RUNCMD) ./tcrtest rcat -port 19781 -cnum 5 -tout 5 -shl 50 127.0.0.1 50000 ++ $(RUNENV) $(RUNCMD) ./tcrmgr vanish -port 19781 127.0.0.1 ++ $(RUNENV) $(RUNCMD) ./tcrtest rcat -port 19781 -cnum 5 -tout 5 -dad 127.0.0.1 50000 ++ $(RUNENV) $(RUNCMD) ./tcrtest rcat -port 19781 -cnum 5 -tout 5 -ext putcat -xlr 127.0.0.1 50000 ++ $(RUNENV) $(RUNCMD) ./tcrtest misc -port 19781 -cnum 5 -tout 5 127.0.0.1 5000 ++ $(RUNENV) $(RUNCMD) ./tcrtest wicked -port 19781 -cnum 5 -tout 5 127.0.0.1 5000 ++ $(RUNENV) $(RUNCMD) ./tcrmgr inform -port 19781 127.0.0.1 ++ $(RUNENV) $(RUNCMD) ./tcrmgr vanish -port 19781 127.0.0.1 ++ $(RUNENV) $(RUNCMD) ./tcrmttest write -port 19781 -tnum 5 127.0.0.1 5000 ++ $(RUNENV) $(RUNCMD) ./tcrmttest read -port 19781 -tnum 5 127.0.0.1 ++ $(RUNENV) $(RUNCMD) ./tcrmttest remove -port 19781 -tnum 5 127.0.0.1 ++ $(RUNENV) $(RUNCMD) ./tcrmttest write -port 19781 -tnum 5 -ext putcat -rnd 127.0.0.1 5000 ++ $(RUNENV) $(RUNCMD) ./tcrmttest typical -port 19781 -tnum 5 127.0.0.1 5000 ++ $(RUNENV) $(RUNCMD) ./tcrmgr vanish -port 19781 127.0.0.1 ++ $(RUNENV) $(RUNCMD) ./tcrmgr put -port 19781 127.0.0.1 one first ++ $(RUNENV) $(RUNCMD) ./tcrmgr put -port 19781 127.0.0.1 two second ++ $(RUNENV) $(RUNCMD) ./tcrmgr put -port 19781 -dk 127.0.0.1 three third ++ $(RUNENV) $(RUNCMD) ./tcrmgr put -port 19781 -dc 127.0.0.1 three third ++ $(RUNENV) $(RUNCMD) ./tcrmgr put -port 19781 -dc 127.0.0.1 three third ++ $(RUNENV) $(RUNCMD) ./tcrmgr put -port 19781 -dc 127.0.0.1 three third ++ $(RUNENV) $(RUNCMD) ./tcrmgr put -port 19781 127.0.0.1 four fourth ++ $(RUNENV) $(RUNCMD) ./tcrmgr put -port 19781 -dk 127.0.0.1 five fifth ++ $(RUNENV) $(RUNCMD) ./tcrmgr out -port 19781 127.0.0.1 one ++ $(RUNENV) $(RUNCMD) ./tcrmgr out -port 19781 127.0.0.1 two ++ $(RUNENV) $(RUNCMD) ./tcrmgr get -port 19781 127.0.0.1 three > check.out ++ $(RUNENV) $(RUNCMD) ./tcrmgr get -port 19781 127.0.0.1 four > check.out ++ $(RUNENV) $(RUNCMD) ./tcrmgr get -port 19781 127.0.0.1 five > check.out ++ $(RUNENV) $(RUNCMD) ./tcrmgr mget -port 19781 127.0.0.1 one two three four five > check.out ++ $(RUNENV) $(RUNCMD) ./tcrmgr misc -port 19781 127.0.0.1 putlist six sixth seven seventh ++ $(RUNENV) $(RUNCMD) ./tcrmgr misc -port 19781 127.0.0.1 outlist six ++ $(RUNENV) $(RUNCMD) ./tcrmgr misc -port 19781 127.0.0.1 getlist three four five six > check.out ++ $(RUNENV) $(RUNCMD) ./tcrmgr list -port 19781 -pv 127.0.0.1 > check.out ++ $(RUNENV) $(RUNCMD) ./tcrmgr list -port 19781 -pv -fm f 127.0.0.1 > check.out ++ $(RUNENV) $(RUNCMD) ./tcrmgr http -ih http://127.0.0.1:19781/five > check.out + rm -rf ulog ; mkdir -p ulog + $(RUNENV) $(RUNCMD) ./ttultest write -lim 10000 ulog 5000 + $(RUNENV) $(RUNCMD) ./ttultest write -lim 10000 -as ulog 5000 +@@ -215,6 +216,10 @@ + rm -rf ulog ; mkdir -p ulog + $(RUNENV) $(RUNCMD) ./ttultest thread -lim 10000 ulog 5 5000 + $(RUNENV) $(RUNCMD) ./ttultest thread -lim 10000 -as ulog 5 5000 ++ ++ kill `cat /tmp/tttest.pid` ++ rm /tmp/tttest.tch ++ + @printf '\n' + @printf '#================================================================\n' + @printf '# Checking completed.\n' diff --git a/net-misc/tokyotyrant/files/tokyotyrant.confd b/net-misc/tokyotyrant/files/tokyotyrant.confd new file mode 100644 index 000000000000..b6417134f47c --- /dev/null +++ b/net-misc/tokyotyrant/files/tokyotyrant.confd @@ -0,0 +1,15 @@ +# Tokyo tyrant config + +# Listening options +TT_HOST=127.0.0.1 +TT_PORT=1978 + +# Database file - please refer to man ttserver for alternatives +TT_DB="/var/lib/tokyotyrant/casket.tch#bnum=1000000#opts=ld" + +# ttserver accepts a wide range of options, put them here +TT_OPTS="" + +# don't change these +TT_PID=/var/run/tokyotyrant/db.pid +TT_LOG=/var/log/tokyotyrant/db.log
\ No newline at end of file diff --git a/net-misc/tokyotyrant/files/tokyotyrant.initd b/net-misc/tokyotyrant/files/tokyotyrant.initd new file mode 100644 index 000000000000..edcc946ed4c4 --- /dev/null +++ b/net-misc/tokyotyrant/files/tokyotyrant.initd @@ -0,0 +1,38 @@ +#!/sbin/runscript + +extra_commands="configtest reload" + +depend() { + need net +} + +start() { + configtest || return 1 + ebegin "Starting tokyo tyrant" + start-stop-daemon --start --exec /usr/bin/ttserver -- \ + -pid ${TT_PID} -dmn -host ${TT_HOST} -log ${TT_LOG} \ + -port ${TT_PORT} ${TT_OPTS} ${TT_DB} + eend $? "Failed to start tokyo tyrant" +} + +stop() { + configtest || return 1 + ebegin "Stopping tokyo tyrant" + start-stop-daemon --stop --pidfile ${TT_PID} + eend $? "Failed to stop tokyo tyrant" + rm -f ${TT_PID} +} + +reload() { + configtest || return 1 + ebegin "Gracefully restarting tokyo tyrant" + kill -HUP `cat ${TT_PID}` &>/dev/null + eend $? "Failed to reload tokyo tyrant" +} + +configtest() { + if [ -z "${TT_DB}" ] || [ -z "${TT_PORT}" ] ; then + eerror "Please check your configuration" + eend $? + fi +} diff --git a/net-misc/tokyotyrant/metadata.xml b/net-misc/tokyotyrant/metadata.xml new file mode 100644 index 000000000000..24cbb90cf0c4 --- /dev/null +++ b/net-misc/tokyotyrant/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +</pkgmetadata> diff --git a/net-misc/tokyotyrant/tokyotyrant-1.1.41-r1.ebuild b/net-misc/tokyotyrant/tokyotyrant-1.1.41-r1.ebuild new file mode 100644 index 000000000000..18454825f1d6 --- /dev/null +++ b/net-misc/tokyotyrant/tokyotyrant-1.1.41-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils user + +DESCRIPTION="A network interface to Tokyo Cabinet" +HOMEPAGE="http://fallabs.com/tokyotyrant/" +SRC_URI="${HOMEPAGE}${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~ppc-macos ~x86-macos" +IUSE="debug examples lua" + +DEPEND="dev-db/tokyocabinet + sys-libs/zlib + app-arch/bzip2 + lua? ( dev-lang/lua )" +RDEPEND="${DEPEND}" + +pkg_setup() { + if use !prefix ; then + enewgroup tyrant + enewuser tyrant -1 -1 /var/lib/${PN} tyrant + fi +} + +src_prepare() { + epatch "${FILESDIR}"/fix_makefiles-1.4.41.patch + epatch "${FILESDIR}"/fix_testsuite.patch +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable lua) +} + +src_install() { + rm ttservctl || die "Install failed" + emake DESTDIR="${D}" install || die "Install failed" + + for x in /var/{lib,run,log}/${PN}; do + dodir "${x}" || die "Install failed" + use prefix || fowners tyrant:tyrant "${x}" + done + + if use examples; then + insinto /usr/share/${PF}/example + doins example/* || die "Install failed" + fi + + dohtml doc/* || die + + newinitd "${FILESDIR}/${PN}.initd" ${PN} || die "Install failed" + newconfd "${FILESDIR}/${PN}.confd" ${PN} || die "Install failed" + +} + +src_test() { + emake -j1 check || die "Tests failed" +} |