summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-04-22 16:35:53 +0000
committerChristian Heim <phreak@gentoo.org>2007-04-22 16:35:53 +0000
commit8c52dd03caf5ea2c6ebd0c4fc86d562fa0228f41 (patch)
tree49f2d355a41f37372887a18786fce7979c918cd3 /net-misc/gofish/gofish-1.0.ebuild
parentppc stable, bug #175389 (diff)
downloadgentoo-2-8c52dd03caf5ea2c6ebd0c4fc86d562fa0228f41.tar.gz
gentoo-2-8c52dd03caf5ea2c6ebd0c4fc86d562fa0228f41.tar.bz2
gentoo-2-8c52dd03caf5ea2c6ebd0c4fc86d562fa0228f41.zip
Use die properly; Use newconfd/newinitd for #174266; Properly quote variables; Fix postinst note.
(Portage version: 2.1.2.4)
Diffstat (limited to 'net-misc/gofish/gofish-1.0.ebuild')
-rw-r--r--net-misc/gofish/gofish-1.0.ebuild29
1 files changed, 16 insertions, 13 deletions
diff --git a/net-misc/gofish/gofish-1.0.ebuild b/net-misc/gofish/gofish-1.0.ebuild
index 2b3049786afe..564c74d85b2f 100644
--- a/net-misc/gofish/gofish-1.0.ebuild
+++ b/net-misc/gofish/gofish-1.0.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/gofish/gofish-1.0.ebuild,v 1.1 2005/09/03 01:36:16 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gofish/gofish-1.0.ebuild,v 1.2 2007/04/22 16:35:53 phreak Exp $
inherit eutils
@@ -12,8 +12,7 @@ SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE=""
-DEPEND="virtual/libc
- >=sys-apps/sed-4"
+DEPEND=""
RDEPEND=""
S="${WORKDIR}/${PN}"
@@ -24,19 +23,23 @@ pkg_setup() {
}
src_compile() {
- econf --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
- --disable-http || die "econf failed"
- emake || die
+ econf \
+ --localstatedir=/var \
+ --disable-http || die "econf failed!"
+
+ emake || die "emake failed!"
}
src_install () {
- sed -i s/';uid = -1'/'uid = 30'/ ${S}/gofish.conf
- sed -i s/';gid = -1'/'uid = 30'/ ${S}/gofish.conf
- make DESTDIR="${D}" install || die
- exeinto /etc/init.d ; newexe ${FILESDIR}/gofish.rc gofish
- insinto /etc/conf.d ; newins ${FILESDIR}/gofish.confd gofish
+ sed -i s/';uid = -1'/'uid = 30'/ "${S}"/gofish.conf
+ sed -i s/';gid = -1'/'uid = 30'/ "${S}"/gofish.conf
+ make DESTDIR="${D}" install || die "make install failed!"
+ newinitd "${FILESDIR}"/gofish.rc gofish
+ newconfd "${FILESDIR}"/gofish.confd gofish
}
pkg_postinst() {
- einfo "Please edit /etc/${PN}.conf before using."
+ echo
+ elog "Please configure /etc/${PN}.conf before attempt to use it!"
+ echo
}