summaryrefslogtreecommitdiffstats
path: root/testing/coova-chilli
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-11-24 10:36:31 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-11-24 10:36:44 +0000
commit7de1f0b29b9fde06b9d336e0876193fa3970019c (patch)
tree768dd4b37bc780ccb4de7970b1919baa40e61f31 /testing/coova-chilli
parent0601ba879fa9c2efc3081b24dea5f6d1c22402db (diff)
downloadaports-7de1f0b29b9fde06b9d336e0876193fa3970019c.tar.bz2
aports-7de1f0b29b9fde06b9d336e0876193fa3970019c.tar.xz
testing/coova-chilli: move runtime data under localstatedir/chilli
Diffstat (limited to 'testing/coova-chilli')
-rw-r--r--testing/coova-chilli/APKBUILD7
-rwxr-xr-xtesting/coova-chilli/chilli.initd4
2 files changed, 7 insertions, 4 deletions
diff --git a/testing/coova-chilli/APKBUILD b/testing/coova-chilli/APKBUILD
index b61df8d18..191906fe4 100644
--- a/testing/coova-chilli/APKBUILD
+++ b/testing/coova-chilli/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=coova-chilli
pkgver=1.2.5
-pkgrel=0
+pkgrel=1
pkgdesc="CoovaChilli is an open source access controller for wireless LAN"
url="http://www.coova.org/"
license="GPL"
@@ -20,6 +20,8 @@ prepare() {
# patch -p1 -i ../coova-chilli-ssl.patch || return 1
sed -i 's/-Werror//g' src/Makefile.am || return 1
sed -i 's/-Werror//g' src/Makefile.in || return 1
+ sed -i 's%(localstatedir)/run%(localstatedir)%' src/Makefile.am || return 1
+ sed -i 's%(localstatedir)/run%(localstatedir)%' src/Makefile.in || return 1
aclocal && autoconf && automake && libtoolize || return 1
}
@@ -29,7 +31,7 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
+ --localstatedir=/var/run/chilli \
--libdir=/usr/lib \
--sysconfdir=/etc \
--with-openssl
@@ -40,6 +42,7 @@ package() {
cd $_builddir
make DESTDIR="$pkgdir" install
install -D -m755 ../../chilli.initd $pkgdir/etc/init.d/chilli
+ mkdir -p $pkgdir/var/run/chilli
}
md5sums="1b890cb043b4340e1f15c2b2cff742d3 coova-chilli-1.2.5.tar.gz
diff --git a/testing/coova-chilli/chilli.initd b/testing/coova-chilli/chilli.initd
index 96c9410fa..fe6ec72d5 100755
--- a/testing/coova-chilli/chilli.initd
+++ b/testing/coova-chilli/chilli.initd
@@ -28,8 +28,8 @@ start() {
modprobe tun >& /dev/null
fi
- start-stop-daemon --start --pidfile /var/run/chilli.pid --quiet \
- --exec /usr/sbin/chilli -- --pidfile=/var/run/chilli.pid
+ start-stop-daemon --start --pidfile /var/run/chilli/chilli.pid --quiet \
+ --exec /usr/sbin/chilli -- --pidfile=/var/run/chilli/chilli.pid
eend $?
}