1 # Maintainer: Denis Yantarev <denis dot yantarev at gmail dot com>
6 pkgdesc="SMS gateway which can send and receive messages through GSM modems and mobile phones"
8 url="http://smstools3.kekekasvi.com/"
10 backup=(etc/smsd.conf etc/conf.d/smsd etc/logrotate.d/smsd)
13 makedepends=('gcc' 'make' 'patch')
14 source=(http://smstools3.kekekasvi.com/packages/$pkgname-$pkgver.tar.gz
21 md5sums=('e0f9f84240f0db9a286aa3a5fa3bd8fb'
22 'eabdaf793ed2fb9883ea0923b31450d3'
23 'ebc64ebc17f874fc0b1e6f0b4ce7fc79'
24 'cb30274447a530ff2bd31ef7ac8a34b3'
25 'ffefb5c99a720360bb5df16ddb6bb881'
26 'b6f3db0e9fbd38058c2effc43c54abb9'
27 '3e190d6e8f3fe67ec9b61475a347be45')
31 cd $srcdir || return 1
32 patch -p0 <sendsms.patch || return 1
34 cd $pkgname || return 1
40 cd $srcdir/$pkgname || return 1
42 mkdir -p $pkgdir/usr/bin/ || return 1
43 install -m0755 $srcdir/$pkgname/src/smsd $pkgdir/usr/bin/smsd || return 1
44 install -m0755 $srcdir/$pkgname/scripts/sendsms $pkgdir/usr/bin/sendsms || return 1
45 install -m0755 $srcdir/$pkgname/scripts/sms2html $pkgdir/usr/bin/sms2html || return 1
46 install -m0755 $srcdir/$pkgname/scripts/sms2unicode $pkgdir/usr/bin/sms2unicode || return 1
47 install -m0755 $srcdir/$pkgname/scripts/unicode2sms $pkgdir/usr/bin/unicode2sms || return 1
49 mkdir -p $pkgdir/etc/ || return 1
50 install -m0644 $srcdir/smsd.conf $pkgdir/etc/smsd.conf || return 1
52 mkdir -p $pkgdir/etc/rc.d/ || return 1
53 install -m0755 $srcdir/smsd.rc $pkgdir/etc/rc.d/smsd || return 1
55 mkdir -p $pkgdir/etc/conf.d/ || return 1
56 install -m0755 $srcdir/smsd.conf.d $pkgdir/etc/conf.d/smsd || return 1
58 mkdir -p $pkgdir/etc/logrotate.d/ || return 1
59 install -m0644 $srcdir/smsd.logrotate $pkgdir/etc/logrotate.d/smsd || return 1
61 mkdir -p $pkgdir/var/spool/sms/incoming || return 1
62 mkdir -p $pkgdir/var/spool/sms/outgoing || return 1
63 mkdir -p $pkgdir/var/spool/sms/checked || return 1
64 chmod 0750 $pkgdir/var/spool/sms || return 1
65 chmod 0770 $pkgdir/var/spool/sms/* || return 1
67 mkdir -p $pkgdir/var/log/smsd || return 1
68 chmod 0770 $pkgdir/var/log/smsd || return 1
70 mkdir -p $pkgdir/var/run/smsd || return 1