blob: ff05835aac3cdd7dfaeb048ce384b3ae32ac69ef (
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
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=smstools
pkgver=3.1.16
pkgrel=0
_realname="${pkgname}${pkgver%\.[0-9]*\.[0-9]*}"
pkgdesc="SMS Gateway software which can send and receive short messages through GSM modems and mobile phones"
url="http://smstools3.kekekasvi.com/"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev"
install=$pkgname.pre-install
subpackages=
pkgusers="smsd"
pkggroups="smsd"
source="http://smstools3.kekekasvi.com/packages/${_realname}-$pkgver.tar.gz
$pkgname.initd
$pkgname.conf
$pkgname.logrotate"
_builddir="$srcdir"/$_realname
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
make || return 1
}
package() {
cd "$_builddir"
mkdir -p $pkgdir/usr/bin/ $pkgdir/usr/sbin/ || return 1
install -m0755 $_builddir/src/smsd $pkgdir/usr/sbin/smsd || return 1
install -m0755 $_builddir/scripts/sendsms $pkgdir/usr/bin/sendsms || return 1
install -m0755 $_builddir/scripts/sms2html $pkgdir/usr/bin/sms2html || return 1
install -m0755 $_builddir/scripts/sms2unicode $pkgdir/usr/bin/sms2unicode || return 1
install -m0755 $_builddir/scripts/unicode2sms $pkgdir/usr/bin/unicode2sms || return 1
mkdir -p $pkgdir/etc/ || return 1
install -m0644 $srcdir/smstools.conf $pkgdir/etc/smsd.conf || return 1
mkdir -p $pkgdir/etc/init.d/ || return 1
install -m0755 $srcdir/smstools.initd $pkgdir/etc/init.d/smsd || return 1
#mkdir -p $pkgdir/etc/conf.d/ || return 1
#install -m0644 $srcdir/smsd.confd $pkgdir/etc/conf.d/smsd || return 1
mkdir -p $pkgdir/etc/logrotate.d/ || return 1
install -m0644 $srcdir/smstools.logrotate $pkgdir/etc/logrotate.d/smsd || 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
chown -R smsd:smsd $pkgdir/var/spool/sms || return 1
mkdir -p $pkgdir/var/log/smsd || return 1
chmod 0770 $pkgdir/var/log/smsd || return 1
chown -R smsd:smsd $pkgdir/var/log/smsd || return 1
}
md5sums="46c291cf82b0ad0a6d6a1842d33ecfab smstools3-3.1.16.tar.gz
643197999fd06c0b481a3b55fed750e6 smstools.initd
6582c2d7961b5fd888f018b7287e401b smstools.conf
b6f3db0e9fbd38058c2effc43c54abb9 smstools.logrotate"
sha256sums="f79e501c3640ffeef360f75e3146ab423a30f50304e8e27044ccdaf692276799 smstools3-3.1.16.tar.gz
f59346f202f8dfecf527fd35e24c140002ca00fd6245c4894e3e068c1a02d099 smstools.initd
fbf2f111d9ab8b3f0ede02fc426c0056a5ac6554972b948e011bb1f08fedd299 smstools.conf
f1c046c4b35c35777453cbaca32a982ed8511bf7d50a5190b9f57109e94c26e4 smstools.logrotate"
sha512sums="3cb39393f511eed49266c88f69bee60c0eb623340ddf0a1f8a4de7f47653ca3a03f3410f65135705d6c75301b57d0ba4bac1d301ed0c42972e3325aa90d5d06b smstools3-3.1.16.tar.gz
4e101ba553bdf4898b17e82a35a546b1ed64c215850b5c78da9ae68009fad84a3c53dd7f5825b05fe40e93c3ab3ed12a9baf47da91025f1e383a33431ee7c14e smstools.initd
cf2a6d605f49df10d172bc412983312d37b315e42bdb82b2ce27eda4aaaec8526a6548db293457f48aa70b8d911a4169c77682f68850bef4c084b27ca478db9d smstools.conf
668eed2143c1f08fe1deb27a20496317c77160f3278d68fbc54ac8008c5d266c0a2dc39551fd1ced92706bfffc0bc5ee7581e452670e3bff92837e598b98b10e smstools.logrotate"
|