1 # Contributor: Essien Ita Essien <me@essienitaessien.com>
6 pkgdesc="Opensource WAP/SMS Gateway"
7 url="http://www.kannel.org"
10 depends=('libxml2>=2.2.5' 'libmysqlclient' 'postgresql-libs')
12 conflicts=(kannel-mbuni)
15 backup=(etc/kannel.conf)
16 source=(http://www.kannel.org/download/$pkgver/gateway-$pkgver.tar.bz2 kannel.conf modems.conf smsbox.conf wapbox.conf smsc.conf sendsms-user.conf sms-service.conf rc.bearerbox rc.smsbox rc.wapbox rc.kannel COPYING)
17 md5sums=('ae78aec906931e2af73f5a6245520cca'
18 'c600bc5f10c366467b20a2669e88a478'
19 '8420dd67817fbbbcd25cf22375c750de'
20 'c847b4c71c53434fe215c694a861716b'
21 '2be848c4af28c5b62707e8db3bb1e7c5'
22 '4efdd09e08d7e1491b6b578e81219d80'
23 '009538b72eedf61682567c63cdcde531'
24 '904c0f74de53559e2e109d5d619a2f63'
25 '7ec78fa67898902c5d8fc18808103c9e'
26 '672c562c8e069223b806c2c2b144bcfc'
27 '2bc8228eb403f485723bf286e2b2e16e'
28 'ed4234b82177bf6745729e49dfdab82b'
29 '03e9fa6510e7957e651adbe338deabd2')
32 cd $startdir/src/gateway-$pkgver
33 ./configure --prefix=/usr --with-pgsql --with-mysql
35 make DESTDIR=$startdir/pkg install
36 make DESTDIR=$startdir/pkg install-test
38 install -D -m 664 $startdir/src/kannel.conf $startdir/pkg/etc/kannel/kannel.conf
39 install -D -m 664 $startdir/src/modems.conf $startdir/pkg/etc/kannel/modems.conf
40 install -D -m 664 $startdir/src/smsbox.conf $startdir/pkg/etc/kannel/smsbox.conf
41 install -D -m 664 $startdir/src/wapbox.conf $startdir/pkg/etc/kannel/wapbox.conf
42 install -D -m 664 $startdir/src/smsc.conf $startdir/pkg/etc/kannel/smsc.conf
43 install -D -m 664 $startdir/src/sendsms-user.conf $startdir/pkg/etc/kannel/sendsms-user.conf
44 install -D -m 664 $startdir/src/sms-service.conf $startdir/pkg/etc/kannel/sms-service.conf
46 install -D -m 775 $startdir/src/rc.bearerbox $startdir/pkg/etc/rc.d/bearerbox
47 install -D -m 775 $startdir/src/rc.smsbox $startdir/pkg/etc/rc.d/smsbox
48 install -D -m 775 $startdir/src/rc.wapbox $startdir/pkg/etc/rc.d/wapbox
49 install -D -m 775 $startdir/src/rc.kannel $startdir/pkg/etc/rc.d/kannel
51 install -D -m 644 $startdir/src/COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING
53 mkdir -p $startdir/pkg/var/log/kannel/