Use die properly; Use newconfd/newinitd for #174266; Properly quote variables; Fix...
authorChristian Heim <phreak@gentoo.org>
Sun, 22 Apr 2007 16:35:53 +0000 (16:35 +0000)
committerChristian Heim <phreak@gentoo.org>
Sun, 22 Apr 2007 16:35:53 +0000 (16:35 +0000)
Package-Manager: portage-2.1.2.4

net-misc/gofish/ChangeLog
net-misc/gofish/gofish-1.0.ebuild
net-misc/gofish/gofish-1.1.ebuild

index 76323b161de5165bcb9a3d8bd1440c5957c822af..c16e8b0ae50c86de1fff1f9d9c254e19ac3ee17c 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for net-misc/gofish
 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/gofish/ChangeLog,v 1.14 2007/04/08 11:13:17 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gofish/ChangeLog,v 1.15 2007/04/22 16:35:53 phreak Exp $
+
+  22 Apr 2007; Christian Heim <phreak@gentoo.org> gofish-1.0.ebuild,
+  gofish-1.1.ebuild:
+  Use die properly; Use newconfd/newinitd for #174266; Properly quote
+  variables; Fix postinst note.
 
   08 Apr 2007; Simon Stelling <blubb@gentoo.org> metadata.xml:
   reassign to maintainer-needed
index 2b3049786afe7ffa1c62867c6c21e19d41c12ecf..564c74d85b2f3073d46c8af5dfc760f60d858020 100644 (file)
@@ -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
 }
index bead754304ee92d541449548bfa4b801798b62b5..7bdc4829a53f1402b3c9c240c95d591642013003 100644 (file)
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 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.1.ebuild,v 1.2 2006/10/15 13:19:43 blubb Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gofish/gofish-1.1.ebuild,v 1.3 2007/04/22 16:35:53 phreak Exp $
 
 inherit eutils
 
@@ -12,8 +12,7 @@ SLOT="0"
 KEYWORDS="amd64 ~ppc ~x86"
 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
 }