summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-03-12 20:44:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-03-12 20:44:02 +0000
commit3edaff57e369feebfa909c7118347686e223226d (patch)
tree244238d013ba29f548e0dd4952147e05d5f8edc4
parent2f29dda62ba0f1ef1f7f8a797948c42ce25ffe0a (diff)
downloadaports-3edaff57e369feebfa909c7118347686e223226d.tar.bz2
aports-3edaff57e369feebfa909c7118347686e223226d.tar.xz
extra/quagga: new style install scripts
-rw-r--r--extra/quagga/APKBUILD8
-rw-r--r--extra/quagga/quagga.install14
-rw-r--r--extra/quagga/quagga.post-install6
-rw-r--r--extra/quagga/quagga.pre-install6
4 files changed, 16 insertions, 18 deletions
diff --git a/extra/quagga/APKBUILD b/extra/quagga/APKBUILD
index e941224ce..cb5653ed7 100644
--- a/extra/quagga/APKBUILD
+++ b/extra/quagga/APKBUILD
@@ -1,14 +1,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=quagga
pkgver=0.99.11
-pkgrel=7
+pkgrel=8
pkgdesc="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP."
url="http://quagga.net/"
license="GPL-2"
depends="uclibc readline ncurses iproute2"
makedepends="readline-dev ncurses-dev
autoconf automake libtool"
-install=quagga.install
+install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.quagga.net/download/$pkgname-$pkgver.tar.gz
$pkgname-0.99.11-link-libcap.patch
@@ -54,7 +54,6 @@ build() {
--localstatedir=/var/run/quagga \
|| return 1
-# --with-cflags="${CFLAGS}" \
make || return 1
make DESTDIR="$pkgdir" install
@@ -78,4 +77,5 @@ cc109a746273bc0d6aee9d758e7524ab bgpd.initd
120ab1b53975ec86e78266f31e935ab6 ripngd.initd
3490a10510e416ab83d5b4d767136de8 zebra.initd
c38e884372406e9e59616e436cd26388 zebra.confd
-c5c0ae236d32df9e7a000b19f3fc3684 quagga.install"
+44b4c3684e4c7300665bf90fa4520af9 quagga.pre-install
+d2181a6401280478b8700cfcee32794e quagga.post-install"
diff --git a/extra/quagga/quagga.install b/extra/quagga/quagga.install
deleted file mode 100644
index 52a261a1f..000000000
--- a/extra/quagga/quagga.install
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-case "$1" in
- pre_install)
- adduser -H -h /var/empty -s /bin/false -D quagga 2>/dev/null
- mkdir -p var/empty
- ;;
- post_install)
- chown root:root var/empty
- chown quagga:quagga /var/run/quagga
- ;;
-esac
-exit 0
-
diff --git a/extra/quagga/quagga.post-install b/extra/quagga/quagga.post-install
new file mode 100644
index 000000000..c1c670d20
--- /dev/null
+++ b/extra/quagga/quagga.post-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+chown root:root var/empty
+chown quagga:quagga /var/run/quagga
+exit 0
+
diff --git a/extra/quagga/quagga.pre-install b/extra/quagga/quagga.pre-install
new file mode 100644
index 000000000..2643891dc
--- /dev/null
+++ b/extra/quagga/quagga.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+adduser -H -h /var/empty -s /bin/false -D quagga 2>/dev/null
+mkdir -p var/empty
+exit 0
+