diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-06-02 02:50:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-06-02 02:50:51 +0000 |
commit | b0e9e861de2c0b32faebb1f8d12d2c415012b0b8 (patch) | |
tree | cf576751715cf1c2b3456da2e397d382b49250c8 /net-dialup | |
parent | stable for everyone else (diff) | |
download | gentoo-2-b0e9e861de2c0b32faebb1f8d12d2c415012b0b8.tar.gz gentoo-2-b0e9e861de2c0b32faebb1f8d12d2c415012b0b8.tar.bz2 gentoo-2-b0e9e861de2c0b32faebb1f8d12d2c415012b0b8.zip |
dont install /etc/minicom/minirc.dfl if it already exists
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/minicom/minicom-2.1-r1.ebuild | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/net-dialup/minicom/minicom-2.1-r1.ebuild b/net-dialup/minicom/minicom-2.1-r1.ebuild index 35a1e7cbd2b8..309be74ab23c 100644 --- a/net-dialup/minicom/minicom-2.1-r1.ebuild +++ b/net-dialup/minicom/minicom-2.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/minicom/minicom-2.1-r1.ebuild,v 1.14 2005/05/29 11:40:57 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/minicom/minicom-2.1-r1.ebuild,v 1.15 2005/06/02 02:50:51 vapier Exp $ inherit eutils @@ -19,12 +19,11 @@ RDEPEND="${DEPEND} src_unpack() { unpack ${A} - cd ${S} + cd "${S}" # solar@gentoo.org (Mar 24 2004) # propolice/ssp caught minicom going out of bounds here. - epatch ${FILESDIR}/${P}-memcpy-bounds.diff - - epatch ${FILESDIR}/${P}-gcc4.patch + epatch "${FILESDIR}"/${P}-memcpy-bounds.diff + epatch "${FILESDIR}"/${P}-gcc4.patch } src_compile() { @@ -36,7 +35,12 @@ src_install() { einstall || die "einstall failed" dodoc doc/minicom.FAQ insinto /etc/minicom - doins ${FILESDIR}/minirc.dfl + doins "${FILESDIR}"/minirc.dfl + + dodoc AUTHORS ChangeLog INSTALL NEWS README +} - dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README +pkg_preinst() { + [[ -s /etc/minicom/minirc.dfl ]] \ + && rm -f "${IMAGE}"/etc/minicom/minirc.dfl } |