Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
write ebuild for binary-only program
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Mr. Tao
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jul 2007
Posts: 147

PostPosted: Tue Mar 14, 2017 11:38 am    Post subject: write ebuild for binary-only program Reply with quote

I would like to install IceWarp mail server and I would like to do it Gentoo way. It's distributed as deb or rpm package.

I skimmed through ebuild writing guide but I have not found anything binary-only specific. I also checked firefox-bin and libreoffice-bin ebuilds.

The installation is handled by Makefile script.

I would really appreciate any pointers on how to proceed.

Code:
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit unpacker user


DESCRIPTION="Secure Email, Calendar, Documents & Chat for Teams"
HOMEPAGE="https://www.icewarp.com/"
SRC_URI="
   amd64?   ( http://www.icewarp.com/download/server/Debian/Debian8/${PN}11/IceWarpServer-${PV}_DEB8_x64.tar.gz )"

LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

#USE_RPMOFFSET_ONLY=1

#S=${WORKDIR}/IceWarpServer-${PV}.0_RHEL7_x64/
S=${WORKDIR}/IceWarpServer-${PV}.0_DEB8_x64

#src_unpack () {
#   rpm_src_unpack ${A}
#   cd "${S}"
#}

pkg_setup () {
   enewuser icewarp
}

src_install () {
   declare -x ICEWARP_INSTALL_PREFIX="${D}"
   emake install
}
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat Mar 25, 2017 2:40 am    Post subject: Reply with quote

I can provide an example for you to study:

http://dpaste.com/0QFY6Z5
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum