update to smstools3-3.1.21

This commit is contained in:
sthen 2017-10-10 12:04:59 +00:00
parent 70f47e8614
commit 5c1b918c04
5 changed files with 16 additions and 55 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.33 2016/09/13 11:44:07 naddy Exp $
# $OpenBSD: Makefile,v 1.34 2017/10/10 12:04:59 sthen Exp $
COMMENT = gateway to send and receive SMS through GSM mobile phones
DISTNAME = smstools3-3.1.15
REVISION = 1
DISTNAME = smstools3-3.1.21
CATEGORIES = comms
@ -14,14 +13,12 @@ MAINTAINER = Stuart Henderson <sthen@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c iconv mm
WANTLIB = c mm
MASTER_SITES = ${HOMEPAGE}/packages/
# some scripts use formail
RUN_DEPENDS = mail/procmail
LIB_DEPENDS = converters/libiconv \
devel/mm
RUN_DEPENDS = mail/procmail # some scripts use formail(1)
LIB_DEPENDS = devel/mm
USE_GMAKE = Yes
NO_TEST = Yes
@ -30,7 +27,7 @@ WRKSRC = ${WRKDIST}/src
EXTRA_CFLAGS += -I${LOCALBASE}/include -L${LOCALBASE}/lib
MAKE_FLAGS += CFLAGS="${CFLAGS} -D NUMBER_OF_MODEMS=64 `mm-config --cflags`"
MAKE_FLAGS += CFLAGS="${CFLAGS} -D NUMBER_OF_MODEMS=64 -D DISABLE_INOTIFY `mm-config --cflags`"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/smsd ${PREFIX}/bin

View File

@ -1,2 +1,2 @@
SHA256 (smstools3-3.1.15.tar.gz) = 7QD/rqoxKltPlp9Ol6ZGA6hmu+FuOT6gL1vwUjSBTVk=
SIZE (smstools3-3.1.15.tar.gz) = 300088
SHA256 (smstools3-3.1.21.tar.gz) = omukwCsW9s8TF3v/ymySMNxf7666jjAwzU5JBfapIIQ=
SIZE (smstools3-3.1.21.tar.gz) = 356548

View File

@ -1,6 +1,7 @@
$OpenBSD: patch-scripts_sendsms,v 1.3 2010/09/21 22:40:26 sthen Exp $
--- scripts/sendsms.orig Thu Jul 8 13:41:13 2010
+++ scripts/sendsms Tue Sep 21 23:37:01 2010
$OpenBSD: patch-scripts_sendsms,v 1.4 2017/10/10 12:04:59 sthen Exp $
Index: scripts/sendsms
--- scripts/sendsms.orig
+++ scripts/sendsms
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
@ -11,8 +12,8 @@ $OpenBSD: patch-scripts_sendsms,v 1.3 2010/09/21 22:40:26 sthen Exp $
# When creating keys, remember to use -n for echo:
# echo -n "key" | md5sum
-smsd_user="smsd"
+smsd_user="_smsd"
-smsd_group="smsd"
+smsd_group="_smsd"
# Will need echo which accepts -n argument:
ECHO=echo

View File

@ -1,36 +0,0 @@
$OpenBSD: patch-src_Makefile,v 1.5 2014/03/09 20:52:25 sthen Exp $
--- src/Makefile.orig Tue Sep 21 12:29:14 2010
+++ src/Makefile Sat Oct 26 11:04:27 2013
@@ -12,10 +12,10 @@ CFLAGS = -D NUMBER_OF_MODEMS=64
CFLAGS += -D NOSTATS
# Comment this out if iconv is not available on the system
-#CFLAGS += -D USE_ICONV
+CFLAGS += -D USE_ICONV
# Uncomment this is iconv is used and it's not included in libc:
-#LFLAGS += -liconv
+LFLAGS += -liconv
# Uncomment this to force smsd to run in terminal mode
#CFLAGS += -D TERMINAL
@@ -37,15 +37,15 @@ CFLAGS += -D_FILE_OFFSET_BITS=64
# Use the following only on GNU/Linux and only if you need ps listing like "smsd: MAINPROCESS" and "smsd: GSM1"
# CFLAGS += -D USE_LINUX_PS_TRICK
-all: smsd
-
-smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o
-
ifneq (,$(findstring SOLARIS,$(CFLAGS)))
ifeq (,$(findstring DISABLE_INET_SOCKET,$(CFLAGS)))
override LFLAGS += -lsocket -lnsl
endif
endif
+
+all: smsd
+
+smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o
ifneq (,$(findstring NOSTATS,$(CFLAGS)))
$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS)

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.9 2013/03/30 22:18:20 sthen Exp $
@comment $OpenBSD: PLIST,v 1.10 2017/10/10 12:04:59 sthen Exp $
@conflict gnokii-*
@newgroup _smsd:590
@newuser _smsd:590:_smsd:daemon:smsd user:/nonexistent:/sbin/nologin
@ -10,13 +10,11 @@ bin/sms2unicode
@bin bin/smsd
bin/unicode2sms
share/doc/smstools/
share/doc/smstools/at-commands.html
share/doc/smstools/blacklist.html
share/doc/smstools/book.html
share/doc/smstools/compiling.html
share/doc/smstools/configure.html
share/doc/smstools/configure2.html
share/doc/smstools/error-messages.html
share/doc/smstools/eventhandler.html
share/doc/smstools/faq.html
share/doc/smstools/fileformat.html
@ -26,6 +24,7 @@ share/doc/smstools/history3.html
share/doc/smstools/index.html
share/doc/smstools/license.html
share/doc/smstools/localizing.html
share/doc/smstools/national_language_shift_tables.html
share/doc/smstools/run.html
share/doc/smstools/slideshow/
share/doc/smstools/slideshow/blacklist.gif