summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-04-21 18:49:57 +0000
committerAlin Năstac <mrness@gentoo.org>2005-04-21 18:49:57 +0000
commita6a0a09c02f91d2782f390d9c67cc36eda061699 (patch)
tree2df05f70a1e38d98fdf3796bb02a813f873a6509 /net-dialup/pptpd
parentVersion bump, resolves both bug 89851 and bug 69358 in the process. Clean out... (diff)
downloadgentoo-2-a6a0a09c02f91d2782f390d9c67cc36eda061699.tar.gz
gentoo-2-a6a0a09c02f91d2782f390d9c67cc36eda061699.tar.bz2
gentoo-2-a6a0a09c02f91d2782f390d9c67cc36eda061699.zip
beautify solution for #89895
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-dialup/pptpd')
-rw-r--r--net-dialup/pptpd/pptpd-1.2.3-r1.ebuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/net-dialup/pptpd/pptpd-1.2.3-r1.ebuild b/net-dialup/pptpd/pptpd-1.2.3-r1.ebuild
index 93f4b8ffe41a..18bb93c03d1c 100644
--- a/net-dialup/pptpd/pptpd-1.2.3-r1.ebuild
+++ b/net-dialup/pptpd/pptpd-1.2.3-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/pptpd/pptpd-1.2.3-r1.ebuild,v 1.1 2005/04/21 18:42:02 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/pptpd/pptpd-1.2.3-r1.ebuild,v 1.2 2005/04/21 18:49:57 mrness Exp $
DESCRIPTION="Linux Point-to-Point Tunnelling Protocol Server"
SRC_URI="mirror://sourceforge/poptop/${P}.tar.gz"
@@ -18,11 +18,11 @@ DEPEND="virtual/libc
src_unpack() {
unpack ${A}
- #Match pptpd-logwtmp.so's version with ppp (#89895)
- local PPP_VER=$(best_version net-dialup/ppp)
- PPP_VER=${PPP_VER#*/*-} # = ${PF}
- PPP_VER=${PPP_VER%%[_-]*} # main version without beta/pre/patch/revision
- sed -i -e "s:\\(#define[ \\t]*VERSION[ \\t]*\\)\".*\":\\1\"${PPP_VER}\":" ${S}/plugins/patchlevel.h
+ #Match pptpd-logwtmp.so's version with pppd's version (#89895)
+ local PPPD_VER=`best_version net-dialup/ppp`
+ PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
+ PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
+ sed -i -e "s:\\(#define[ \\t]*VERSION[ \\t]*\\)\".*\":\\1\"${PPPD_VER}\":" ${S}/plugins/patchlevel.h
}
src_compile() {