/[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.2 - (show annotations) (download)
Sun Apr 22 16:35:53 2007 UTC (7 years, 5 months ago) by phreak
Branch: MAIN
Changes since 1.1: +16 -13 lines
Use die properly; Use newconfd/newinitd for #174266; Properly quote variables; Fix postinst note.
(Portage version: 2.1.2.4)

1 # Copyright 1999-2007 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.1 2005/09/03 01:36:16 vanquirius Exp $
4
5 inherit eutils
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