diff options
| -rw-r--r-- | meta-oe/recipes-connectivity/smstools3/smstools3/sms_binpath_and_psops.patch | 19 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/smstools3/smstools3_3.1.15.bb | 45 |
2 files changed, 64 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/smstools3/smstools3/sms_binpath_and_psops.patch b/meta-oe/recipes-connectivity/smstools3/smstools3/sms_binpath_and_psops.patch new file mode 100644 index 0000000000..ffcaa09716 --- /dev/null +++ b/meta-oe/recipes-connectivity/smstools3/smstools3/sms_binpath_and_psops.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Index: smstools3/scripts/sms3 | ||
| 2 | =================================================================== | ||
| 3 | --- smstools3.orig/scripts/sms3 2010-05-04 11:21:44.000000000 +0200 | ||
| 4 | +++ smstools3/scripts/sms3 2015-02-22 20:05:51.615074469 +0100 | ||
| 5 | @@ -24,11 +24,11 @@ | ||
| 6 | # Logfile can also be defined in here: | ||
| 7 | LOGFILE="/var/log/smsd.log" | ||
| 8 | |||
| 9 | -DAEMON=/usr/local/bin/smsd | ||
| 10 | +DAEMON=/usr/bin/smsd | ||
| 11 | # A program which turns power off for couple of seconds: | ||
| 12 | -RESETMODEMS=/usr/local/bin/smsd_resetmodems | ||
| 13 | +RESETMODEMS=/usr/bin/smsd_resetmodems | ||
| 14 | NAME=smsd | ||
| 15 | -PSOPT="-e" | ||
| 16 | +PSOPT="" | ||
| 17 | ECHO=echo | ||
| 18 | case `uname` in | ||
| 19 | *BSD|Darwin) | ||
diff --git a/meta-oe/recipes-connectivity/smstools3/smstools3_3.1.15.bb b/meta-oe/recipes-connectivity/smstools3/smstools3_3.1.15.bb new file mode 100644 index 0000000000..7a72a1ed3b --- /dev/null +++ b/meta-oe/recipes-connectivity/smstools3/smstools3_3.1.15.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | SUMMARY = "SMS Gateway software" | ||
| 2 | DESCRIPTION = "The SMS Server Tools 3 is a SMS Gateway software which can send and receive short messages through GSM modems and mobile phones." | ||
| 3 | SECTION = "console/network" | ||
| 4 | LICENSE = "GPLv2" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4d21efa1bb2a186360dde4035f860682" | ||
| 6 | HOMEPAGE = "http://smstools3.kekekasvi.com" | ||
| 7 | |||
| 8 | SRC_URI = "http://smstools3.kekekasvi.com/packages/${BP}.tar.gz \ | ||
| 9 | file://sms_binpath_and_psops.patch" | ||
| 10 | |||
| 11 | SRC_URI[md5sum] = "0241ef60e646fac1a06254a848e61ed7" | ||
| 12 | SRC_URI[sha256sum] = "ed00ffaeaa312a5b4f969f4e97a64603a866bbe16e393ea02f5bf05234814d59" | ||
| 13 | |||
| 14 | |||
| 15 | S = "${WORKDIR}/${PN}" | ||
| 16 | |||
| 17 | RDEPENDS_${PN} = "bash" | ||
| 18 | INITSCRIPT_NAME = "sms3" | ||
| 19 | INITSCRIPT_PARAMS = "defaults" | ||
| 20 | |||
| 21 | inherit update-rc.d | ||
| 22 | |||
| 23 | do_install () { | ||
| 24 | |||
| 25 | install -d ${D}${bindir} | ||
| 26 | install -m 755 ${S}/src/smsd "${D}${bindir}/smsd" | ||
| 27 | |||
| 28 | install -m 755 ${S}/scripts/sendsms "${D}${bindir}/sendsms" | ||
| 29 | install -m 755 ${S}/scripts/sms2html "${D}${bindir}/sms2html" | ||
| 30 | install -m 755 ${S}/scripts/sms2unicode "${D}${bindir}/sms2unicode" | ||
| 31 | install -m 755 ${S}/scripts/unicode2sms "${D}${bindir}/unicode2sms" | ||
| 32 | |||
| 33 | install -d ${D}${sysconfdir} | ||
| 34 | install -m 644 ${S}/examples/smsd.conf.easy "${D}${sysconfdir}/smsd.conf" | ||
| 35 | |||
| 36 | install -d "${D}${localstatedir}/spool" | ||
| 37 | install -d "${D}${localstatedir}/spool/sms" | ||
| 38 | install -d "${D}${localstatedir}/spool/sms/incoming" | ||
| 39 | install -d "${D}${localstatedir}/spool/sms/outgoing" | ||
| 40 | install -d "${D}${localstatedir}/spool/sms/checked" | ||
| 41 | |||
| 42 | install -d ${D}${sysconfdir}/init.d | ||
| 43 | install -m 755 ${S}/scripts/sms3 "${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}" | ||
| 44 | |||
| 45 | } | ||
