summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Tittelbach <service-anytun@tittelbach.org>2009-12-05 16:30:06 +0000
committerBernhard Tittelbach <service-anytun@tittelbach.org>2009-12-05 16:30:06 +0000
commit2566cd126ae5d18f2007df5ebdd7d076c7ca6aa9 (patch)
tree6c0c3a9ac317ae6ce93cb6cad8645563e0ca9e3a
parentno custom restart (diff)
makeover suggestions
-rw-r--r--gentoo-linux/net-misc/anytun/anytun-0.3.1.ebuild11
-rw-r--r--gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild7
-rw-r--r--gentoo-linux/sunrise-svn-subm.txt (renamed from gentoo-linux/subm.txt)0
3 files changed, 8 insertions, 10 deletions
diff --git a/gentoo-linux/net-misc/anytun/anytun-0.3.1.ebuild b/gentoo-linux/net-misc/anytun/anytun-0.3.1.ebuild
index 32c080c..5277c41 100644
--- a/gentoo-linux/net-misc/anytun/anytun-0.3.1.ebuild
+++ b/gentoo-linux/net-misc/anytun/anytun-0.3.1.ebuild
@@ -20,14 +20,14 @@ RDEPEND=">=dev-libs/boost-1.35
DEPEND="${RDEPEND}
<app-text/asciidoc-8.5.0" # asciidoc a2x >= 8.5.0 requires an -L switch not present in lower versions
-S="${WORKDIR}/${P}/src"
+S=${S}/src
src_compile() {
local myconf=""
use gcrypt || myconf="--use-ssl-crypto"
# anytun's configure right now only takes 1! option (no --prefix etc), so econf would be too
# much for your little script and the build would fail
- #econf ${myconf} || die "configure failed"
+ #econf ${myconf}
./configure ${myconf} || die "configure failed"
emake || die "make failed"
@@ -46,7 +46,7 @@ src_install() {
cd man/
doman anyrtpproxy.8 anytun-config.8 anytun-controld.8 anytun-showtables.8 anytun.8 || die "failed to install manpages"
- cd "../../"
+ cd ../../
insinto /usr/share/${P}/wireshark-lua/
doins wireshark-lua/* || die "failed to install wireshark-lua contrib script"
@@ -59,10 +59,9 @@ src_install() {
}
pkg_config() {
- [ -e "${ROOT}"/etc/anytun ] && die "${ROOT}/etc/anytun/ already present, rm -R it first "
- if [ ! -d "${ROOT}"/usr/share/doc/${PF}/etc-anytun-examples/ ]; then
+ [ -e "${ROOT}"/etc/anytun ] && die "${ROOT}/etc/anytun/ already present, rm -R it first"
+ [ ! -d "${ROOT}"/usr/share/doc/${PF}/etc-anytun-examples/ ] && \
die "can't copy example configs since examples were not installed (reemerge with USE=\"examples\")"
- fi
mkdir -p "${ROOT}"/etc/anytun/ || die "couldn't mkdir ${ROOT}/etc/anytun/"
cp -r "${ROOT}"/usr/share/doc/${PF}/etc-anytun-examples/* "${ROOT}"/etc/anytun/ || die "failed to copy examples"
}
diff --git a/gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild b/gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild
index a67019f..7db3f9a 100644
--- a/gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild
+++ b/gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild
@@ -19,7 +19,7 @@ RDEPEND=">=dev-libs/boost-1.35
DEPEND="${RDEPEND}
app-text/asciidoc"
-S="${WORKDIR}/${P}/src"
+S=${S}/src
src_compile() {
local myconf
@@ -54,10 +54,9 @@ src_install() {
}
pkg_config() {
- [ -e "${ROOT}"/etc/anytun ] && die "${ROOT}/etc/anytun/ already present, rm -R it first "
- if [ ! -d "${ROOT}"/usr/share/doc/${PF}/examples/etc/anytun ]; then
+ [ -e "${ROOT}"/etc/anytun ] && die "${ROOT}/etc/anytun/ already present, rm -R it first"
+ [ ! -d "${ROOT}"/usr/share/doc/${PF}/examples/etc/anytun ] && \
die "can't copy example configs since examples were not installed (reemerge with USE=\"examples\")"
- fi
cp -r "${ROOT}"/usr/share/doc/${PF}/examples/etc/anytun "${ROOT}"/etc/ || die "failed to copy examples"
}
diff --git a/gentoo-linux/subm.txt b/gentoo-linux/sunrise-svn-subm.txt
index 929e254..929e254 100644
--- a/gentoo-linux/subm.txt
+++ b/gentoo-linux/sunrise-svn-subm.txt