blob: 92dd3f30a26da6c6f13dc2e0123e771f38a50e2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: Denis Yantarev <denis dot yantarev at gmail dot com>
pkgname=smstools3
pkgver=3.1.21
pkgrel=3
pkgdesc="SMS gateway which can send and receive messages through GSM modems and mobile phones"
arch=('i686' 'x86_64')
url="http://smstools3.kekekasvi.com/"
license=('GPL')
backup=(etc/smsd.conf etc/logrotate.d/smsd)
install=smsd.install
depends=('bash')
makedepends=()
conflicts=('gnokii')
source=(http://smstools3.kekekasvi.com/packages/$pkgname-$pkgver.tar.gz
gcc10.patch
smsd.install
smsd.conf
smsd.tmpfiles
smsd.logrotate
smsd.service)
md5sums=('6a9f038fb38a49cc3a4f8f14a88fb8af'
'26f7b474fee86b66d70405fc2e014432'
'24b41505c471d0594174bca4a1555f8f'
'ebc64ebc17f874fc0b1e6f0b4ce7fc79'
'6209da5f6d2b53bb8814f6181aa42848'
'647c58aa56c6a29d6e68e73c239715f4'
'7357a577480e95463112963f4244d2c1')
prepare() {
cd $srcdir/$pkgname
patch -p0 < $srcdir/gcc10.patch
}
build()
{
cd $srcdir/$pkgname || return 1
make || return 1
}
package()
{
cd $srcdir/$pkgname || return 1
mkdir -p $pkgdir/usr/bin/ || return 1
install -m0755 $srcdir/$pkgname/src/smsd $pkgdir/usr/bin/smsd || return 1
install -m0755 $srcdir/$pkgname/scripts/sendsms $pkgdir/usr/bin/sendsms || return 1
install -m0755 $srcdir/$pkgname/scripts/sms2html $pkgdir/usr/bin/sms2html || return 1
install -m0755 $srcdir/$pkgname/scripts/sms2unicode $pkgdir/usr/bin/sms2unicode || return 1
install -m0755 $srcdir/$pkgname/scripts/unicode2sms $pkgdir/usr/bin/unicode2sms || return 1
mkdir -p $pkgdir/etc/ || return 1
install -m0644 $srcdir/smsd.conf $pkgdir/etc/smsd.conf || return 1
mkdir -p $pkgdir/etc/logrotate.d/ || return 1
install -m0644 $srcdir/smsd.logrotate $pkgdir/etc/logrotate.d/smsd || return 1
mkdir -p $pkgdir/usr/lib/systemd/system/ || return 1
install -m0644 $srcdir/smsd.service $pkgdir/usr/lib/systemd/system/smsd.service || return 1
mkdir -p $pkgdir/usr/lib/tmpfiles.d/ || return 1
install -m0644 $srcdir/smsd.tmpfiles $pkgdir/usr/lib/tmpfiles.d/smsd.conf || return 1
mkdir -p $pkgdir/var/spool/sms/incoming || return 1
mkdir -p $pkgdir/var/spool/sms/outgoing || return 1
mkdir -p $pkgdir/var/spool/sms/checked || return 1
chmod 0750 $pkgdir/var/spool/sms || return 1
chmod 0770 $pkgdir/var/spool/sms/* || return 1
mkdir -p $pkgdir/var/log/smsd || return 1
chmod 0770 $pkgdir/var/log/smsd || return 1
}
|