Added portage ebuild script.

Fixed tarball path in the specfile.
Fixed unintended removal of specfile by "make distclean".


git-svn-id: http://voip.null.ro/svn/yate@3301 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-05-07 15:55:58 +00:00
parent 76fac28e18
commit b64a1df23e
3 changed files with 81 additions and 2 deletions

View File

@ -1195,6 +1195,7 @@ AC_SUBST(KDOC_BIN)
m4_sinclude(./YateLocal.ac)
AC_CONFIG_FILES([packing/rpm/yate.spec
packing/portage/yate.ebuild
yate.pc
yateversn.h
yateiss.inc
@ -1223,6 +1224,6 @@ AC_CONFIG_FILES([packing/rpm/yate.spec
conf.d/Makefile])
AC_CONFIG_FILES([yate-config],[chmod +x yate-config])
AC_CONFIG_FILES([run],[chmod +x run])
CONFIGURE_FILES=`echo "$ac_config_files config.status config.log" | sed 's,packing/yate\.spec *,,'`
CONFIGURE_FILES=`echo "$ac_config_files config.status config.log" | sed 's,packing/[[^ ]]* *,,g'`
AC_SUBST(CONFIGURE_FILES)
AC_OUTPUT

View File

@ -0,0 +1,78 @@
# Ebuild script for Gentoo
# Package net-voip/yate
EAPI=1
inherit eutils
DESCRIPTION="YATE - Yet Another Telephony Engine"
SRC_URI="http://yate.null.ro/tarballs/@PACKAGE_TARNAME@@PACKAGE_VERSION_MAJOR@/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-@PACKAGE_STATUS@@PACKAGE_RELEASE@.tar.gz"
HOMEPAGE="http://yate.null.ro/"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
IUSE="doc gsm speex amrnb h323 ilbc mysql postgres ssl qt4 spandsp sctp wanpipe zaptel"
DEPEND="
media-sound/sox
doc? ( || ( app-doc/doxygen >=dev-util/kdoc-2.0_alpha54 ) )
gsm? ( media-sound/gsm )
speex? ( media-libs/speex )
amrnb? ( media-libs/amrnb )
h323? ( >=net-libs/openh323-1.15.3 dev-libs/pwlib )
mysql? ( dev-db/mysql )
postgres? ( dev-db/postgresql-base )
ssl? ( dev-libs/openssl )
qt4? ( x11-libs/qt-core:4 x11-libs/qt-gui:4 )
spandsp? ( media-libs/spandsp )
sctp? ( net/sctp-tools )
wanpipe? ( net-misc/wanpipe )
zaptel? ( net-misc/zaptel )
"
RDEPEND="${DEPEND}"
src_compile()
{
local configopts
if use doc; then
if has_version app-doc/doxygen; then
configopts+=" --with-doxygen"
fi
if has_version dev-util/kdoc; then
configopts+=" --with-kdoc"
fi
else
configopts+=" --without-doxygen --without-kdoc"
fi
econf \
$(use_enable ilbc) \
$(use_enable sctp sctp) \
$(use_with gsm libgsm) \
$(use_with speex libspeex) \
$(use_with amrnb amrnb /usr) \
$(use_with h323 pwlib /usr) \
$(use_with h323 openh323 /usr) \
$(use_with mysql mysql /usr) \
$(use_with postgres libpq /usr) \
$(use_with ssl openssl) \
$(use_with qt4 libqt4) \
$(use_with spandsp) \
${configopts} || die "Configuring failed"
emake -j1 all || die "Building failed"
}
src_install()
{
local target
if use doc; then
target="install"
else
target="install-noapi"
fi
emake DESTDIR=${D} ${target} || die "emake ${target} failed"
newinitd ${S}/packing/portage/yate.init yate
newconfd ${S}/packing/portage/yate.conf yate
}

View File

@ -62,7 +62,7 @@ Version: @PACKAGE_VERSION@
Release: @PACKAGE_STATUS@%{revision}@PACKAGE_RELEASE@%{dist}
License: GPL
Packager: Paul Chitescu <paulc@voip.null.ro>
Source: http://yate.null.ro/%{name}-%{version}-@PACKAGE_STATUS@@PACKAGE_RELEASE@.tar.gz
Source: http://yate.null.ro/tarballs/@PACKAGE_TARNAME@@PACKAGE_VERSION_MAJOR@/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-@PACKAGE_STATUS@@PACKAGE_RELEASE@.tar.gz
Group: Applications/Communications
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://yate.null.ro/