summaryrefslogtreecommitdiffstats
path: root/main/quagga
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-14 12:34:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-14 12:44:23 +0000
commit5b26015453e1b8d515f50709ba783119c8bae12f (patch)
tree71767c816c608a95c7aaa8778463e675c1484eed /main/quagga
parent45c393e4d2ae2cc6f9aa37205b350a3b4b190170 (diff)
downloadaports-5b26015453e1b8d515f50709ba783119c8bae12f.tar.bz2
aports-5b26015453e1b8d515f50709ba783119c8bae12f.tar.xz
main/quagga: add post-install/upgrade to cleanup
Some really old installs added /usr/lib/quagga to /etc/ld.so.conf We don't need that anymore so we clean it up
Diffstat (limited to 'main/quagga')
-rw-r--r--main/quagga/APKBUILD4
-rw-r--r--main/quagga/quagga.post-install9
l---------main/quagga/quagga.post-upgrade1
3 files changed, 12 insertions, 2 deletions
diff --git a/main/quagga/APKBUILD b/main/quagga/APKBUILD
index 17b14cf83..49830a099 100644
--- a/main/quagga/APKBUILD
+++ b/main/quagga/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=quagga
pkgver=0.99.21
-pkgrel=0
+pkgrel=1
pkgdesc="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP."
url="http://quagga.net/"
arch="all"
@@ -9,7 +9,7 @@ license="GPL-2"
depends="iproute2"
makedepends="readline-dev ncurses-dev gawk
autoconf automake libtool"
-install="$pkgname.pre-install"
+install="$pkgname.pre-install $pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-dev $pkgname-doc"
pkgusers="quagga"
pkggroups="quagga"
diff --git a/main/quagga/quagga.post-install b/main/quagga/quagga.post-install
new file mode 100644
index 000000000..b4bcef1e7
--- /dev/null
+++ b/main/quagga/quagga.post-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# early quaggas had an entry in ld.so.conf. We dont need it anymore
+if [ -r /etc/ld.so.conf ]; then
+ sed -i -e '/usr\/lib\/quagga/d' /etc/ld.so.conf
+ # remove if zero sized
+ [ -s /etc/ld.so.conf ] || rm /etc/ld.so.conf
+fi
+exit 0
diff --git a/main/quagga/quagga.post-upgrade b/main/quagga/quagga.post-upgrade
new file mode 120000
index 000000000..333e79c3a
--- /dev/null
+++ b/main/quagga/quagga.post-upgrade
@@ -0,0 +1 @@
+quagga.post-install \ No newline at end of file