1*4882a593SmuzhiyunSUMMARY = "SMS Gateway software"
2*4882a593SmuzhiyunDESCRIPTION = "The SMS Server Tools 3 is a SMS Gateway software which can send and receive short messages through GSM modems and mobile phones."
3*4882a593SmuzhiyunSECTION = "console/network"
4*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=4d21efa1bb2a186360dde4035f860682"
6*4882a593SmuzhiyunHOMEPAGE = "http://smstools3.kekekasvi.com"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSRC_URI = "http://smstools3.kekekasvi.com/packages/${BP}.tar.gz \
9*4882a593Smuzhiyun           file://sms_binpath.patch \
10*4882a593Smuzhiyun           file://scripts_no_bash.patch \
11*4882a593Smuzhiyun           file://0001-Make-extern-declarations-to-avoid-duplicate-var-defi.patch \
12*4882a593Smuzhiyun           "
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunSRC_URI[md5sum] = "6a9f038fb38a49cc3a4f8f14a88fb8af"
15*4882a593SmuzhiyunSRC_URI[sha256sum] = "a26ba4c02b16f6cf13177bffca6c9230dc5fefaeba8e3030cd4e4905f6a92084"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunS = "${WORKDIR}/${BPN}"
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunEXTRA_OEMAKE += "LFLAGS='${LDFLAGS}'"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunINITSCRIPT_NAME = "sms3"
23*4882a593SmuzhiyunINITSCRIPT_PARAMS = "defaults"
24*4882a593Smuzhiyun
25*4882a593Smuzhiyuninherit update-rc.d
26*4882a593Smuzhiyun
27*4882a593Smuzhiyundo_install () {
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun    install -d ${D}${bindir}
30*4882a593Smuzhiyun    install -m 755 ${S}/src/smsd "${D}${bindir}/smsd"
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun    install -m 755 ${S}/scripts/sendsms "${D}${bindir}/sendsms"
33*4882a593Smuzhiyun    install -m 755 ${S}/scripts/sms2html "${D}${bindir}/sms2html"
34*4882a593Smuzhiyun    install -m 755 ${S}/scripts/sms2unicode "${D}${bindir}/sms2unicode"
35*4882a593Smuzhiyun    install -m 755 ${S}/scripts/unicode2sms "${D}${bindir}/unicode2sms"
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun    install -d ${D}${sysconfdir}
38*4882a593Smuzhiyun    install -m 644 ${S}/examples/smsd.conf.easy "${D}${sysconfdir}/smsd.conf"
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun    install -d "${D}${localstatedir}/spool"
41*4882a593Smuzhiyun    install -d "${D}${localstatedir}/spool/sms"
42*4882a593Smuzhiyun    install -d "${D}${localstatedir}/spool/sms/incoming"
43*4882a593Smuzhiyun    install -d "${D}${localstatedir}/spool/sms/outgoing"
44*4882a593Smuzhiyun    install -d "${D}${localstatedir}/spool/sms/checked"
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun    install -d ${D}${sysconfdir}/init.d
47*4882a593Smuzhiyun    install -m 755 ${S}/scripts/sms3 "${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}"
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun}
50