/[gentoo-x86]/net-misc/gofish/gofish-1.0.ebuild
Gentoo

Contents of /net-misc/gofish/gofish-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Apr 21 00:56:24 2015 UTC (4 years, 5 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/gofish/gofish-1.0.ebuild,v 1.3 2014/01/08 06:34:08 vapier Exp $
4
5 inherit eutils user
6
7 DESCRIPTION="Gofish gopher server"
8 HOMEPAGE="http://gofish.sourceforge.net"
9 SRC_URI="mirror://sourceforge/gofish/${P}.tar.gz"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~x86 ~ppc ~amd64"
13 IUSE=""
14
15 DEPEND=""
16 RDEPEND=""
17
18 S="${WORKDIR}/${PN}"
19
20 pkg_setup() {
21 enewgroup gopher 30
22 enewuser gopher 30 -1 -1 gopher
23 }
24
25 src_compile() {
26 econf \
27 --localstatedir=/var \
28 --disable-http || die "econf failed!"
29
30 emake || die "emake failed!"
31 }
32
33 src_install () {
34 sed -i s/';uid = -1'/'uid = 30'/ "${S}"/gofish.conf
35 sed -i s/';gid = -1'/'uid = 30'/ "${S}"/gofish.conf
36 make DESTDIR="${D}" install || die "make install failed!"
37 newinitd "${FILESDIR}"/gofish.rc gofish
38 newconfd "${FILESDIR}"/gofish.confd gofish
39 }
40
41 pkg_postinst() {
42 echo
43 elog "Please configure /etc/${PN}.conf before attempt to use it!"
44 echo
45 }

  ViewVC Help
Powered by ViewVC 1.1.20