TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Stas Degteff
from: Benny Pedersen
date: 2012-04-05 20:35:26
subject: Husky 1.4-RC7

Hello Stas!

05 Apr 2012 10:39, Stas Degteff wrote to Benny Pedersen:

 SD> ??? You can't understand the phrase "Sources may be downloaded
from CVS"?

yep

 SD> JFY: sf.net provides access to CVS in HTTP site. In the http-browser 
 SD> You may look CVS tree and also you may download any directory from CVS 
 SD> as tarball. For the 1.4 RC7 will use tag "husky-1_4-RC7"

an ebuild maintainer do not use cvs :=)

   ----- husky-1.4.ebuild begins -----
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit eutils cvs

DESCRIPTION="HUSKY Portable Fidosoft Project"
HOMEPAGE="http://husky.sf.net"
ECVS_AUTH="pserver"
ECVS_SERVER="husky.cvs.sourceforge.net:/cvsroot/husky"
ECVS_BRANCH="husky-1_4-stable"
ECVS_MODULE="huskybse smapi fidoconf"
ECVS_CVS_COMPRESS="-z3"
ECVS_LOCALNAME="husky-1_4-stable"

LICENSE="LGPL"
SLOT="0"
KEYWORDS="x86 amd64"
USE_EXPAND="HUSKY_MODULES"
IUSE_MODULES="hpt
        htick
        nltools
        sqpack
        areastat
        bsopack
        hptkill
        hptsqfix
        hpucode
        huskmisc
        msged"
IUSE="perl -doc -debug"
for module in ${IUSE_MODULES} ; do
        IUSE="${IUSE} husky_modules_${module}"
done

DEPEND="perl? ( dev-lang/perl )
        doc? ( sys-apps/texinfo )
        husky_modules_msged? ( sys-libs/ncurses )"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${ECVS_LOCALNAME}"

DESTDIR_COMPILE="/"
DESTDIR_INSTALL="${D}"

src_unpack() {
        for module in ${IUSE_MODULES} ; do
                use husky_modules_${module} &&
ECVS_MODULE="${ECVS_MODULE} ${module}"
        done
        
        cvs_src_unpack
}

src_prepare() {
        rm -rf ${T}/include
        rm -rf ${T}/lib
        
        mkdir ${T}/include > /dev/null
        mkdir ${T}/include/smapi > /dev/null
        mkdir ${T}/lib > /dev/null
        
        cd "${S}"
        cp ./huskybse/huskymak.cfg ./
        
        # prevent to strip while linking
        sed -e 's:OPTLFLAGS=-s:OPTLFLAGS=:' -i huskymak.cfg
        
        # prevent to strip while installing
        sed -e 's:OPTIBOPT=-c -s -m 555:OPTIBOPT=-c -m 555:' -i huskymak.cfg
        
        # prevent to update dynamic lybrary cache
        echo "LDCONFIG=" >> huskymak.cfg
        
        # set link time shared library search path
        echo "LD=ld -rpath-link ${T}/lib -L${T}/lib" >> huskymak.cfg
        echo "CC=cc -Xlinker -rpath-link -Xlinker ${T}/lib -Xlinker
-L${T}/lib" >> huskymak.cfg
        
        # add temporary include and lib dirs into compile and link options
        sed -e "s:-I\$(INCDIR):-I${T}/include:g" -i fidoconf/Makefile
        sed -e "s:-L\$(LIBDIR):-L${T}/lib:g" -i fidoconf/Makefile
        for module in "${IUSE_MODULES}" ; do
                if use husky_modules_${module} ; then
                        sed -e "s:-I\$(INCDIR):-I${T}/include:g"
-i ${module}/Makefile
                        sed -e "s:-L\$(LIBDIR):-L${T}/lib:g" -i
${module}/Makefile
                fi
        done
        
        use perl && sed -e 's:PERL=0:PERL=1:' -i huskymak.cfg
        use debug && sed -e 's:DEBUG=0:DEBUG=1:' -i huskymak.cfg
        
        use doc || ( echo "all:" > ./fidoconf/doc/Makefile
&& echo "install:" >> ./fidoconf/doc/Makefile )
}

src_compile() {
        DESTDIR="${DESTDIR_COMPILE}"
        
        #compile smapi
        einfo "compiling smapi..."
        cd "${S}/smapi" > /dev/null
        emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn > /dev/null \
                || die "emake failed [smapi]"
        ln -s libsmapi.so.2.4.0 libsmapi.so.2.4 > /dev/null
        ln -s libsmapi.so.2.4.0 libsmapi.so > /dev/null
        
        cp *.h ${T}/include/smapi/ > /dev/null
        cp lib*.{a,so}* ${T}/lib/ > /dev/null
        
        #compile fidoconf
        einfo "compiling fidoconf..."
        cd "${S}/fidoconf"
        emake $( useq doc && echo \
                "INFODIR=${DESTDIR}usr/share/info \
                HTMLDIR=${DESTDIR}usr/share/doc/${PF}/html" ) \
                PREFIX=${DESTDIR}usr \
                CFGDIR=${DESTDIR}etc/ftn \
                MANDIR=${DESTDIR}usr/share/man > /dev/null || die
"emake failed [fidoconf]"
        mkdir ${T}/include/fidoconf > /dev/null
        cp *.h ${T}/include/fidoconf/ > /dev/null
        cp lib*.{a,so}* ${T}/lib/ > /dev/null
        
        #compile hpt
        if use husky_modules_hpt ; then
                einfo "compiling hpt..."
                cd "${S}/hpt" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man > /dev/null ||
die "emake failed [hpt]"
                if use doc ; then
                        cd doc > /dev/null
                        emake INFODIR=${DESTDIR}usr/share/info \
                                HTMLDIR=${DESTDIR}usr/share/doc/${PF}/html \
                                html info > /dev/null || die "emake
failed [hpt docs]"
                        cd .. > /dev/null
                fi
        fi
        
        #compile htick
        if use husky_modules_htick ; then
                einfo "compiling htick..."
                cd "${S}/htick" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man > /dev/null ||
die "emake failed [htick]"
                if use doc ; then
                        cd doc > /dev/null
                        emake INFODIR=${DESTDIR}usr/share/info \
                                HTMLDIR=${DESTDIR}usr/share/doc/${PF}/html \
                                html info > /dev/null || die "emake
failed [htick docs]"
                        cd .. > /dev/null
                fi
        fi
        
        #compile nltools
        if use husky_modules_nltools ; then
                einfo "compiling nltools..."
                cd "${S}/nltools" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man > /dev/null \
                        || die "emake failed [notools]"
        fi
        
        #compile sqpack
        if use husky_modules_sqpack ; then
                einfo "compiling sqpack..."
                cd "${S}/sqpack" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man > /dev/null \
                        || die "emake failed [sqpack]"
        fi
        
        #compile areastat
        if use husky_modules_areastat ; then
                einfo "compiling areastat..."
                cd "${S}/areastat" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man > /dev/null \
                        || die "emake failed [areastat]"
        fi
        
        #compile bsopack
        if use husky_modules_bsopack ; then
                einfo "compiling bsopack..."
                cd "${S}/bsopack" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man > /dev/null \
                        || die "emake failed [bsopack]"
                if use doc ; then
                        emake docs > /dev/null || die "emake failed
[bsopack docs]"
                fi
        fi
        
        #compile hptkill
        if use husky_modules_hptkill ; then
                einfo "compiling hptkill..."
                cd "${S}/hptkill" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man > /dev/null \
                        || die "emake failed [hptkill]"
        fi
        
        #compile hptsqfix
        if use husky_modules_hptsqfix ; then
                einfo "compiling hptsqfix..."
                cd "${S}/hptsqfix" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man \
                        hptsqfix > /dev/null || die "emake failed
[hptsqfix]"
        fi
        
        #compile hpucode
        if use husky_modules_hpucode ; then
                einfo "compiling hpucode..."
                cd "${S}/hpucode" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man > /dev/null \
                        || die "emake failed [hpucode]"
                if use doc ; then
                        emake INFODIR=${DESTDIR}usr/share/info \
                        HTMLDIR=${DESTDIR}usr/share/doc/${PF}/html html info \
                        > /dev/null || die "emake failed [hpucode docs]"
                fi
        fi
        
        #compile huskmisc
        if use husky_modules_huskmisc ; then
                einfo "compiling huskmisc..."
                cd "${S}/huskmisc" > /dev/null
                emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man > /dev/null \
                        || die "emake failed [huskmisc]"
        fi
        
        #compile msged
        if use husky_modules_msged ; then
                einfo "compiling msged..."
                cd "${S}/msged" > /dev/null
                MAKEOPTS="${MAKEOPTS} -j1" emake -j1 \
                        PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man \
                        msged testcons > /dev/null \
                        || die "emake failed [msged]"
                if use doc ; then
                        cd doc/manual > /dev/null
                        emake INFODIR=${DESTDIR}usr/share/info \
                                HTMLDIR=${DESTDIR}usr/share/doc/${PF}/html
html info \
                                -f makefile.husky > /dev/null \
                                || die "emake failed [msged docs]"
                        cd .. > /dev/null
                fi
        fi
}

src_install() {
        DESTDIR="${DESTDIR_INSTALL}"
        
        #install smapi
        einfo "installing smapi..."
        cd "${S}/smapi" > /dev/null
        emake PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn -j1 \
        install > /dev/null || die "emake install failed [smapi]"
        
        #install fidoconf
        einfo "installing fidoconf..."
        cd "${S}/fidoconf" > /dev/null
        MAKEOPTS="-j1" emake $(useq doc && echo
"INFODIR=${DESTDIR}usr/share/info \
                        HTMLDIR=${DESTDIR}usr/share/doc/${PF}/html") \
                PREFIX=${DESTDIR}usr \
                CFGDIR=${DESTDIR}etc/ftn \
                MANDIR=${DESTDIR}usr/share/man \
                -j1 install install-man > /dev/null \
                || die "emake install failed [fidoconf]"
        insinto /etc/ftn
        newins doc/config config.sample
        
        #install hpt
        if use husky_modules_hpt ; then
                einfo "installing hpt..."
                cd "${S}/hpt" > /dev/null
                MAKEOPTS="-j1" emake \
                        PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man -j1 \
                        install > /dev/null \
                        || die "emake install failed [hpt]"
                use doc && doinfo doc/*.info
                use doc && dohtml doc/*.html
                insinto /etc/ftn
                doins config/config config/areas config/fileareas
config/links config/packer config/path
        fi
        
        #install htick
        if use husky_modules_htick ; then
                einfo "installing htick..."
                cd "${S}/htick" > /dev/null
                MAKEOPTS="-j1" emake \
                        PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man -j1 \
                        install > /dev/null \
                        || die "emake install failed [htick]"
                use doc && doinfo doc/*.info
                use doc && dohtml doc/*.html
                insinto /etc/ftn
                newins misc/config config.htick
                doins misc/filefix.866 misc/filefix.hlp
        fi
        
        #install nltools
        if use husky_modules_nltools ; then
                einfo "installing nltools..."
                cd "${S}/nltools" > /dev/null
                MAKEOPTS="-j1" emake \
                        PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man -j1 \
                        install > /dev/null \
                        || die "emake install failed [nltools]"
                insinto /etc/ftn
                newins sample.lnx config.nltools.sample
                doman man/*
        fi
        
        #install sqpack
        if use husky_modules_sqpack ; then
                einfo "installing sqpack..."
                cd "${S}/sqpack" > /dev/null
                MAKEOPTS="-j1" emake \
                        PREFIX=${DESTDIR}usr CFGDIR=${DESTDIR}etc/ftn \
                        MANDIR=${DESTDIR}usr/share/man -j1 \
                        install > /dev/null \
                        || die "emake install failed [sqpack]"
        fi
        
        #install areastat
        if use husky_modules_areastat ; then
                einfo "installing areastat..."
                cd "${S}/areastat" > /dev/null
                dobin areastat
                doman man/*
                insinto /etc/ftn
                newins areastat.cfg config.areastat.sample
        fi
        
        #install bsopack
        if use husky_modules_bsopack ; then
                einfo "installing bsopack..."
                cd "${S}/bsopack" > /dev/null
                dobin bsopack
                doman man/bsopack.1
                if use doc ; then
                        doinfo bsopack.info
                        dohtml bsopack.html
                fi
        fi
        
        #install hptkill
        if use husky_modules_hptkill ; then
                einfo "installing hptkill..."
                cd "${S}/hptkill" > /dev/null
                dobin hptkill
                doman hptkill.1
        fi
        
        #install hptsqfix
        if use husky_modules_hptsqfix ; then
                einfo "installing hptsqfix..."
                cd "${S}/hptsqfix" > /dev/null
                dobin hptsqfix
                doman man/hptsqfix.1
        fi
        
        #install hpucode
        if use husky_modules_hpucode ; then
                einfo "installing hpucode..."
                cd "${S}/hpucode" > /dev/null
                dobin hpucode
                doman man/hpucode.1
                if use doc ; then
                        doinfo hpucode.info
                        dohtml hpucode.html
                fi
        fi
        
        #install huskmisc
        if use husky_modules_huskmisc ; then
                einfo "installing huskmisc..."
                cd "${S}/huskmisc" > /dev/null
                dobin poll request send tolower
                doman man/*
        fi
        
        #install msged
        if use husky_modules_msged ; then
                einfo "installing msged..."
                cd "${S}/msged" > /dev/null
                dobin msged testcons
                insinto /etc/ftn
                doins msghelp.src
                newins doc/sample.cfg msged.cfg.sample
                newins doc/sample.tpl msged.tpl.sample
                doins doc/scheme.*
                insinto /etc/ftn/msged.maps
                doins bin/*
                if use doc ; then
                        doinfo doc/manual/*.info
                        dohtml doc/manual/*.html
                fi
        fi
}

pkg_postinst() {
        if use husky_modules_msged ; then
                ewarn "You must execute"
                ewarn "# msged -hc /etc/ftn/msghelp.src
/etc/ftn/msghelp.dat"
                ewarn "to create msged help file"
        fi
}
   ----- husky-1.4.ebuild ends -----

help is welcommend, flames aswell, make a patch so i know what to do :=)



 Regards Benny

... there can only be one way of life, and it works :)

--- Msged/LNX 6.2.0 (Linux/3.1.10-gentoo-r1 (i686))
* Origin: home.junc.org where qico is waiting (2:230/0)
SEEN-BY: 3/0 633/267 640/954 712/0 313 550 848 953
@PATH: 230/0 150 261/38 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.