gentoo luadch ebuild (unfinished)

Guides for Hub Software

DSHub | ADCH++ | LUADCH
Post Reply
lys
Junior Member
Posts: 25
Joined: 09 Feb 2008, 16:42

gentoo luadch ebuild (unfinished)

Post by lys » 18 Mar 2009, 18:36

hi guys i'm trying do a gentoo ebuild for luadc so far iv've got this

Code: Select all

TuXpoWer luadch # emerge luadch

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-p2p/luadch-0.08  0 kB [1]

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/overlays/lys

>>> Creating Manifest for /usr/local/overlays/lys/net-p2p/luadch

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-p2p/luadch-0.08 from lys
 * luadch_v0.08_src.zip RMD160 SHA1 SHA256 size ;-) ...                                                    [ ok ]
 * checking ebuild checksums ;-) ...                                                                       [ ok ]
 * checking auxfile checksums ;-) ...                                                                      [ ok ]
 * checking miscfile checksums ;-) ...                                                                     [ ok ]
>>> Unpacking source...
>>> Unpacking luadch_v0.08_src.zip to /var/tmp/portage/net-p2p/luadch-0.08/work
>>> Source unpacked in /var/tmp/portage/net-p2p/luadch-0.08/work
>>> Compiling source in /var/tmp/portage/net-p2p/luadch-0.08/work ...
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
Copy core...
Building lua...
Building adclib...
Building unicode...
Building luasocket...
Building luasec...
Building hub...
init.lua: import libs
init.lua: loaded 'adclib'
init.lua: loaded 'unicode'
init.lua: loaded 'socket'
init.lua: import optional libs
init.lua: loaded 'ssl'
init.lua: import core
init.lua: loaded 'const'
init.lua: loaded 'mem'
init.lua: loaded 'signal'
init.lua: loaded 'doc'
init.lua: loaded 'util'
init.lua: loaded 'types'
init.lua: loaded 'cfg'
init.lua: loaded 'out'
init.lua: loaded 'server'
init.lua: loaded 'adc'
init.lua: loaded 'scripts'
init.lua: loaded 'hub'
init.lua: init core modules
init.lua: initialized 'util'
init.lua: initialized 'cfg'
[18.03.09 18:34:12] adc.lua: try to parse 'BINF 2MZZ NI[BOT]HubSecurity DEhub\ssecurity OP1 CT5 IDDYPUMY4RQXBICYSLAK22RJQWP2H36NFQPZSFTPI HN0 HR0 HO1 VE++\sBot SL0 SS0 SF0'
[18.03.09 18:34:12] adc.lua: parsed 'BINF 2MZZ NI[BOT]HubSecurity DEhub\ssecurity OP1 CT5 IDDYPUMY4RQXBICYSLAK22RJQWP2H36NFQPZSFTPI HN0 HR0 HO1 VE++\sBot SL0 SS0 SF0
'
[18.03.09 18:34:12] ** Loaded hub_cmd_manager.lua **
[18.03.09 18:34:12] ** Loaded hub_inf_manager.lua **
[18.03.09 18:34:12] ** Loaded usr_hubs.lua **
[18.03.09 18:34:12] ** Loaded usr_slots.lua **
[18.03.09 18:34:12] ** Loaded usr_share.lua **
[18.03.09 18:34:12] ** Loaded hub_user_ranks.lua **
[18.03.09 18:34:12] ** Loaded usr_nick_prefix.lua **
[18.03.09 18:34:12] ** Loaded usr_desc_prefix.lua **
[18.03.09 18:34:12] adc.lua: try to parse 'BINF 65UW NI[BOT]OpChat DEchatroom\sfor\soperators OP1 CT5 ID5TOXXCNOH6I5X2EXRRARQQEG34GAYK3EXGPQH2Y HN0 HR0 HO1 VE++\sBot SL0 SS0 SF0'
[18.03.09 18:34:12] adc.lua: parsed 'BINF 65UW NI[BOT]OpChat DEchatroom\sfor\soperators OP1 CT5 ID5TOXXCNOH6I5X2EXRRARQQEG34GAYK3EXGPQH2Y HN0 HR0 HO1 VE++\sBot SL0 SS0 SF0
'
[18.03.09 18:34:12] ** Loaded bot_opchat.lua **
[18.03.09 18:34:12] adc.lua: try to parse 'BINF 7GQ2 NI[BOT]EchoBot DEsimple\stest\sbot OP1 CT5 IDXSDIUGT4A55LRA6TXF6WJAHLR5JIEBTH72R4LQY HN0 HR0 HO1 VE++\sBot SL0 SS0 SF0'
[18.03.09 18:34:12] adc.lua: parsed 'BINF 7GQ2 NI[BOT]EchoBot DEsimple\stest\sbot OP1 CT5 IDXSDIUGT4A55LRA6TXF6WJAHLR5JIEBTH72R4LQY HN0 HR0 HO1 VE++\sBot SL0 SS0 SF0
'
[18.03.09 18:34:12] ** Loaded bot_echobot.lua **
[18.03.09 18:34:12] ** Loaded cmd_help.lua **
[18.03.09 18:34:12] ** Loaded cmd_rules.lua **
[18.03.09 18:34:12] ** Loaded cmd_userinfo.lua **
[18.03.09 18:34:12] ** Loaded cmd_accinfo.lua **
[18.03.09 18:34:12] ** Loaded cmd_setpas.lua **
[18.03.09 18:34:12] ** Loaded cmd_upgrade.lua **
[18.03.09 18:34:12] ** Loaded cmd_mass.lua **
[18.03.09 18:34:12] ** Loaded cmd_ban.lua **
[18.03.09 18:34:12] ** Loaded cmd_unban.lua **
[18.03.09 18:34:12] ** Loaded cmd_reg.lua **
[18.03.09 18:34:12] ** Loaded cmd_delreg.lua **
[18.03.09 18:34:12] ** Loaded cmd_errors.lua **
[18.03.09 18:34:12] ** Loaded cmd_reload.lua **
[18.03.09 18:34:12] ** Loaded cmd_restart.lua **
[18.03.09 18:34:12] ** Loaded cmd_shutdown.lua **
[18.03.09 18:34:12] ** Loaded cmd_ascii.lua **
[18.03.09 18:34:12] ** Loaded cmd_userlist.lua **
[18.03.09 18:34:12] ** Loaded etc_hubcommands.lua **
[18.03.09 18:34:12] ** Loaded etc_usercommands.lua **
[18.03.09 18:34:12] ** Loaded etc_report.lua **
[18.03.09 18:34:12] ** Loaded etc_motd.lua **
[18.03.09 18:34:12] ** Loaded etc_banner.lua **
[18.03.09 18:34:12] ** Loaded etc_unknown_command.lua **
[18.03.09 18:34:12] server.lua: new server listener on *:6110
[18.03.09 18:34:12] server.lua: new server listener on *:4660
init.lua: initialized 'hub'
init.lua: initialized 'scripts'

Luadch v0.08 by blastbeat (2007-2008)
suggestions or ideas on how to get past this bit it downloads the file unpacks and configures and builds it but then starts it right up,i think ive got all the dependencies covered to as far as gentoo goes, being as comes with a compiler /glibc etc by default.

lys
Junior Member
Posts: 25
Joined: 09 Feb 2008, 16:42

Re: gentoo luadch ebuild (unfinished)

Post by lys » 18 Mar 2009, 20:30

i got it past that by redoing the ebuild using blastbeat's compile withgcc script then it gets stuck on make, even though at this point the softwares compiled allready

Code: Select all

emerge luadch
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] net-p2p/luadch-0.08  0 kB [1]

Total: 1 package (1 new), Size of downloads: 0 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/overlays/lys

>>> Creating Manifest for /usr/local/overlays/lys/net-p2p/luadch

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-p2p/luadch-0.08 from lys
 * luadch_v0.08_src.zip RMD160 SHA1 SHA256 size ;-) ...                                         [ ok ]
 * checking ebuild checksums ;-) ...                                                            [ ok ]
 * checking auxfile checksums ;-) ...                                                           [ ok ]
 * checking miscfile checksums ;-) ...                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking luadch_v0.08_src.zip to /var/tmp/portage/net-p2p/luadch-0.08/work
>>> Source unpacked in /var/tmp/portage/net-p2p/luadch-0.08/work
>>> Compiling source in /var/tmp/portage/net-p2p/luadch-0.08/work ...
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
Copy core...
Building lua...
Building adclib...
Building unicode...
Building luasocket...
Building luasec...
Building hub...
Hub Is Compiled
make: *** No targets specified and no makefile found.  Stop.
trying find a way around it ;)

lys
Junior Member
Posts: 25
Joined: 09 Feb 2008, 16:42

Re: gentoo luadch ebuild (unfinished)

Post by lys » 18 Mar 2009, 21:19

btw the file im working with is : luadch-0.08.ebuild

Code: Select all

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Author: blastbeat
# Author-email: [email protected]
# License: GPL3 // undecided as yet
inherit eutils autotools

DESCRIPTION="Luadch is a hub for the ADC network and mostly written in Lua"
HOMEPAGE="http://sourceforge.net/projects/luadch/"
SRC_URI="mirror://sourceforge/${PN}/luadch_v${PV}_src.zip"

KEYWORDS="-* ~x86 ~amd64 ~ppc"
SLOT="0"
LICENSE="GPL-2"

RDEPEND="app-arch/unzip
        dev-libs/openssl
        dev-libs/geoip
        =dev-lang/lua-5.1.4"

DEPEND="${RDEPEND}"

S=${WORKDIR}
PREFIX="/opt/luadch"

src_unpack() {
            unpack ${A}
            cd "${S}"
        cp "${FILESDIR}"/configure configure || die "cp failed"
}

src_compile()
{
        econf || die "econf failed"
#       emake || die "emake failed"
emake
}



DOCS="api default_levels manual settings_help"

src_install() {
        insinto ${PREFIX}
        doins -r *.lua *.war *.tbl *.en *.de *.ext *.config *.html *.css *.properties *.pdf *.ver *.sh *.txt || die
}

pkg_postinst() {
        elog "Warning This is an experimental ebuild"
        elog "If it doesnt work tough, use at own risk!"
        elog "for more info read the website"
        elog "http://sourceforge.net/projects/luadch/"
        elog
}
blastbeat's compile_with_gcc.sh script is used by that to configure/compile the software but removed the line that starts the hub up. gotta figure out how package it up and move it somewhere now then hopefully should work, if anyones got an suggestions or ideas feel free to post :)

lys
Junior Member
Posts: 25
Joined: 09 Feb 2008, 16:42

Re: gentoo luadch ebuild

Post by lys » 18 Mar 2009, 22:54

well works here now

Code: Select all

firewall ~ # emerge luadch
Calculating dependencies... done!
[ebuild  N    ] net-p2p/luadch-0.08  1,138 kB [1]

Total: 1 package (1 new), Size of downloads: 1,138 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/local/overlays/lys

>>> Creating Manifest for /usr/local/overlays/lys/net-p2p/luadch
  digest.assumed                 1
   luadch-0.08::luadch_v0.08_src.zip

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-p2p/luadch-0.08 from lys
>>> Downloading 'http://nchc.dl.sourceforge.net/sourceforge/luadch/luadch_v0.08_src.zip'
--2009-03-18 22:51:50--  http://nchc.dl.sourceforge.net/sourceforge/luadch/luadch_v0.08_src.zip
Resolving firewall... 127.0.0.1
Connecting to firewall|127.0.0.1|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1165291 (1.1M) [application/zip]
Saving to: `/usr/portage/distfiles/luadch_v0.08_src.zip'

100%[================================================================================================================>] 1,165,291   97.1K/s   in 12s     

2009-03-18 22:52:03 (95.8 KB/s) - `/usr/portage/distfiles/luadch_v0.08_src.zip' saved [1165291/1165291]

 * luadch_v0.08_src.zip RMD160 SHA1 SHA256 size ;-) ...                                                                                            [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                               [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                              [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking luadch_v0.08_src.zip to /var/tmp/portage/net-p2p/luadch-0.08/work
>>> Source unpacked in /var/tmp/portage/net-p2p/luadch-0.08/work
>>> Compiling source in /var/tmp/portage/net-p2p/luadch-0.08/work ...
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
Copy core...
Building lua...
Building adclib...
Building unicode...
Building luasocket...
Building luasec...
Building hub...
make 
make: *** No targets specified and no makefile found.  Stop.
>>> Source compiled.
>>> Test phase [not enabled]: net-p2p/luadch-0.08

>>> Install luadch-0.08 into /var/tmp/portage/net-p2p/luadch-0.08/image/ category net-p2p
>>> Completed installing luadch-0.08 into /var/tmp/portage/net-p2p/luadch-0.08/image/

>>> Installing net-p2p/luadch-0.08
 * checking 0 files for package collisions
 * Removing doc
 * Removing man
 * Removing info
 * Removing /usr/share/info
 * Warning This is an experimental ebuild
 * If it doesnt work tough, use at own risk!
 * the hubsoft is now installed in /opt/luadch
 * for more info read the website
 * http://sourceforge.net/projects/luadch/
 * 
it's far from perfect though, it's a starting point though i guess :-)

luadch-0.08.ebuild for gentoo linux can be found at the bottom if this post (moderator edit)

any problems with the install use FEATURES="-sandbox" emerge luadch

fyi you will need to put this in a portage overlay for instructions on that see here http://www.gentoo-wiki.info/HOWTO_Insta ... ty_Ebuilds

hope it works for you guys and maybe someone can come up with an improved ebuild, i'll look into it further aswell though :)
Attachments
luadch-overlay.tar.bz2
(2.36 KiB) Downloaded 153 times

Pietry
Senior Member
Posts: 328
Joined: 04 Dec 2007, 07:25
Location: Bucharest
Contact:

Re: gentoo luadch ebuild (unfinished)

Post by Pietry » 19 Mar 2009, 06:36

Thank you for your work. Perhaps the ebuild can be included with luadch package? I'm not too familiar on how gentoo system works ( i'm more of a red hat or debian ).
Just someone

Toast

Re: gentoo luadch ebuild (unfinished)

Post by Toast » 19 Mar 2009, 08:45

Debian user also but its really good that we get some diversity in here amongst linux distros

lys
Junior Member
Posts: 25
Joined: 09 Feb 2008, 16:42

Re: gentoo luadch ebuild (unfinished)

Post by lys » 22 Mar 2009, 05:47

no problem :)

Post Reply