Date: Thu, 21 Jul 2005 18:39:26 +0200 (CEST) From: Benny Kjaergaard <benny@wax.dk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/83870: Update port: comms/smstools fixes broken fetch of distfiles Message-ID: <200507211639.j6LGdQaJ037520@lillemis.catpipe.net> Resent-Message-ID: <200507211640.j6LGeEcG048201@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83870 >Category: ports >Synopsis: Update port: comms/smstools fixes broken fetch of distfiles >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jul 21 16:40:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Benny Kjaergaard >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD lillemis.catpipe.net 7.0-CURRENT FreeBSD 7.0-CURRENT #12: Tue Jul 19 19:25:51 CEST 2005 root@lillemis.catpipe.net:/usr/ obj/usr/src/sys/LILLEMIS i386 >Description: >How-To-Repeat: >Fix: Fixes broken distfile location, is also updated to version 14.11 from 14.8 # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # smstools # smstools/files # smstools/files/patch-Makefile # smstools/files/patch-bin_sms # smstools/files/patch-examples_smsd.conf.easy # smstools/files/patch-src_smsd_cfg.c # smstools/files/patch-examples_smsd.conf.full # smstools/files/patch-install.sub # smstools/Makefile # smstools/distinfo # smstools/pkg-descr # smstools/pkg-plist # echo c - smstools mkdir -p smstools > /dev/null 2>&1 echo c - smstools/files mkdir -p smstools/files > /dev/null 2>&1 echo x - smstools/files/patch-Makefile sed 's/^X//' >smstools/files/patch-Makefile << 'END-of-smstools/files/patch-Makefile' X--- Makefile.orig Sat Nov 6 16:09:09 2004 X+++ Makefile Sat Nov 6 16:09:24 2004 X@@ -1,9 +1,8 @@ X # Makefile X X-VERSION=$(shell grep package_version src/version.h | cut -f2) X- X+all: compile X compile: X- cd src && $(MAKE) -$(MAKEFLAGS) X+ cd src && $(MAKE) X X install: compile X ./install.sub END-of-smstools/files/patch-Makefile echo x - smstools/files/patch-bin_sms sed 's/^X//' >smstools/files/patch-bin_sms << 'END-of-smstools/files/patch-bin_sms' X--- bin/sms.orig Sun Apr 17 12:56:51 2005 X+++ bin/sms Sun Apr 17 12:58:09 2005 X@@ -1,21 +1,27 @@ X-#! /bin/sh X-# This script can be used to start/stop smsd X-# as a daemon in Linux and Solaris. X+#!/bin/sh X+# X+# $FreeBSD: ports/comms/smstools/files/patch-bin_sms,v 1.1 2005/05/01 19:43:33 sem Exp $ X+# X+# PROVIDE: smsd X+# REQUIRE: DAEMON X+# KEYWORD: FreeBSD X+# X+# Add the following line to %%PREFIX%%/etc/rc.conf to enable smsd: X+# X+# smsd_enable="YES" X+# X+smsd_enable=${smsd_enable-"NO"} X+smsd_flags=${smsd_flags-""} X X-case "$1" in X- start) X- find /var/spool/sms -name '*.LOCK' -exec rm {} \; X- /usr/local/bin/smsd & X- ;; X- stop) X- pkill smsd X- ;; X- restart|reload) X- $0 stop X- $0 start X- ;; X- *) X- echo "Usage: $0 {start|stop|restart}" X- exit 1 X-esac X+. /etc/rc.subr X+ X+name=smsd X+rcvar=`set_rcvar` X+ X+command="find /var/spool/sms -name '*.LOCK' -exec rm {} \; %%PREFIX%%/sbin/${name}" X+pidfile=/var/run/${name}.pid X+sig_stop=-KILL X+ X+load_rc_config ${name} X+run_rc_command "$1" X END-of-smstools/files/patch-bin_sms echo x - smstools/files/patch-examples_smsd.conf.easy sed 's/^X//' >smstools/files/patch-examples_smsd.conf.easy << 'END-of-smstools/files/patch-examples_smsd.conf.easy' X--- examples/smsd.conf.easy.orig Sat Nov 6 16:10:46 2004 X+++ examples/smsd.conf.easy Sat Nov 6 16:12:34 2004 X@@ -7,8 +7,8 @@ X loglevel = 7 X X [GSM1] X-# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0 X-device = /dev/ttyS0 X+# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0, FreeBSD5: /dev/cuaa0 X+device = /dev/cuaa0 X incoming = yes X cs_convert = yes X #pin = 1111 END-of-smstools/files/patch-examples_smsd.conf.easy echo x - smstools/files/patch-src_smsd_cfg.c sed 's/^X//' >smstools/files/patch-src_smsd_cfg.c << 'END-of-smstools/files/patch-src_smsd_cfg.c' X--- src/smsd_cfg.orig Sat Nov 6 16:04:24 2004 X+++ src/smsd_cfg.c Sat Nov 6 16:06:29 2004 X@@ -329,7 +329,7 @@ X printf(" -h this help\n"); X printf(" -s display status monitor\n"); X printf(" -V print copyright and version\n\n"); X- printf("All other options are set by the file /etc/smsd.conf.\n\n"); X+ printf("All other options are set by the file %%PREFIX%%/etc/smsd.conf.\n\n"); X printf("Output is written to stdout, errors are written to stderr.\n\n"); X exit(0); X } X@@ -337,7 +337,7 @@ X void parsearguments(int argc,char** argv) X { X int result; X- strcpy(configfile,"/etc/smsd.conf"); X+ strcpy(configfile,"%%PREFIX%%/etc/smsd.conf"); X debug=0; X printstatus=0; X END-of-smstools/files/patch-src_smsd_cfg.c echo x - smstools/files/patch-examples_smsd.conf.full sed 's/^X//' >smstools/files/patch-examples_smsd.conf.full << 'END-of-smstools/files/patch-examples_smsd.conf.full' X--- examples/smsd.conf.full.orig Sat Nov 6 16:11:35 2004 X+++ examples/smsd.conf.full Sat Nov 6 16:16:54 2004 X@@ -45,8 +45,8 @@ X X [GSM1] X init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1 X-# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0 X-device = /dev/ttyS0 X+# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0, FreeBSD5: /dev/cuaa0 X+device = /dev/cuaa0 X incoming = yes X queues = OTHER X #You don't need a PIN for mobile phones X@@ -61,8 +61,8 @@ X X [GSM2] X init = ATE0 X-# Windows: /dev/com2, Solaris: /dev/cua/b, Linux /dev/ttyS1 X-device = /dev/ttyS1 X+# Windows: /dev/com2, Solaris: /dev/cua/b, Linux /dev/ttyS1, FreeBSD5: /dev/cuaa1 X+device = /dev/cuaa1 X incoming = yes X queues = OTHER X #You don't need a PIN for mobile phones END-of-smstools/files/patch-examples_smsd.conf.full echo x - smstools/files/patch-install.sub sed 's/^X//' >smstools/files/patch-install.sub << 'END-of-smstools/files/patch-install.sub' X--- install.sub.orig Wed Apr 21 22:37:00 2004 X+++ install.sub Sun May 1 19:37:23 2005 X@@ -15,19 +15,24 @@ X exit 1 X fi X echo "Installing" X-cp bin/smsd* bin/getsms* bin/putsms* /usr/local/bin X-copy bin/smsevent /usr/local/bin/smsevent X-copy bin/mysmsd /usr/local/bin/mysmsd X-copy bin/email2sms /usr/local/bin/email2sms X-copy bin/sendsms /usr/local/bin/sendsms X-copy bin/smsresend /usr/local/bin/smsresend X-copy examples/smsd.conf.easy /etc/smsd.conf X-[ -d /etc/init.d ] && copy bin/sms /etc/init.d/sms X-[ -d /sbin/init.d ] && copy bin/sms /sbin/init.d/sms X+cp bin/smsd* bin/getsms* bin/putsms* %%PREFIX%%/bin X+copy bin/smsevent %%PREFIX%%/bin/smsevent X+copy bin/mysmsd %%PREFIX%%/bin/mysmsd X+copy bin/email2sms %%PREFIX%%/bin/email2sms X+copy bin/sendsms %%PREFIX%%/bin/sendsms X+copy bin/smsresend %%PREFIX%%/bin/smsresend X+copy examples/smsd.conf.easy %%PREFIX%%/etc/smsd.conf X+rm examples/.qmailrc X+rm examples/.procmailrc X+[ -d %%PREFIX%%/etc/rc.d ] && copy bin/sms %%PREFIX%%/etc/rc.d/smsd.sh.sample X+[ -d %%EXAMPLESDIR%% ] || mkdir -p %%EXAMPLESDIR%% X+[ -d %%EXAMPLESDIR%% ] && cp -R examples/* %%EXAMPLESDIR%% X+[ -d %%DOCSDIR%% ] || mkdir -p %%DOCSDIR%% X+[ -d %%DOCSDIR%% ] && cp -R doc/* %%DOCSDIR%% X [ -d /var/spool ] || mkdir /var/spool X [ -d /var/spool/sms ] || mkdir /var/spool/sms X [ -d /var/spool/sms/incoming ] || mkdir /var/spool/sms/incoming X [ -d /var/spool/sms/outgoing ] || mkdir /var/spool/sms/outgoing X [ -d /var/spool/sms/checked ] || mkdir /var/spool/sms/checked X echo Installation finished X-echo 'Please dont forget to edit /etc/smsd.conf.' X+echo 'Please dont forget to edit %%PREFIX%%/etc/smsd.conf.' END-of-smstools/files/patch-install.sub echo x - smstools/Makefile sed 's/^X//' >smstools/Makefile << 'END-of-smstools/Makefile' X# New ports collection makefile for: smstools X# Date created: 21-07-2005 X# Whom: Benny Kjaergaard <bennyk@wax.dk> X# X# $FreeBSD$ X# X XPORTNAME= smstools XPORTVERSION= 1.14.11 XCATEGORIES= comms XMASTER_SITES= http://mirrors.catpipe.net/smstools/ X XMAINTAINER= bennyk@wax.dk XCOMMENT= Tools to handle Short Message Service X XLIB_DEPENDS= mm:${PORTSDIR}/devel/mm X XWRKSRC= ${WRKDIR}/smstools XUSE_GMAKE= yes XUSE_REINPLACE= yes X Xpost-patch: X echo "${EXAMPLESDIR}" X @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \ X ${WRKSRC}/src/smsd_cfg.c \ X ${WRKSRC}/install.sub \ X ${WRKSRC}/Makefile \ X ${WRKSRC}/examples/smsd.conf.easy \ X ${WRKSRC}/examples/smsd.conf.full \ X ${WRKSRC}/bin/sms X @${REINPLACE_CMD} -e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g; \ X s|%%DOCSDIR%%|${DOCSDIR}|g" \ X ${WRKSRC}/install.sub X X.include <bsd.port.mk> END-of-smstools/Makefile echo x - smstools/distinfo sed 's/^X//' >smstools/distinfo << 'END-of-smstools/distinfo' XMD5 (smstools-1.14.11.tar.gz) = 3c68b1c8b367fbee7bf1435f05b7dbb5 XSIZE (smstools-1.14.11.tar.gz) = 315527 END-of-smstools/distinfo echo x - smstools/pkg-descr sed 's/^X//' >smstools/pkg-descr << 'END-of-smstools/pkg-descr' XSMS server tools , utils to handle a sms gateway X Xfor more info see authors site at: X XWWW: http://smstools.meinemullemaus.de/ X X- Benny Xbennyk@wax.dk END-of-smstools/pkg-descr echo x - smstools/pkg-plist sed 's/^X//' >smstools/pkg-plist << 'END-of-smstools/pkg-plist' Xbin/email2sms Xbin/sendsms Xbin/smsresend Xbin/smsd Xbin/getsms Xbin/putsms Xbin/mysmsd Xbin/smsevent Xetc/rc.d/smsd.sh.sample Xetc/smsd.conf X%%EXAMPLESDIR%%/operator_logo2.sms X%%EXAMPLESDIR%%/received_report.sms X%%EXAMPLESDIR%%/received_sms.sms X%%EXAMPLESDIR%%/send_sms.sms X%%EXAMPLESDIR%%/smsd.black X%%EXAMPLESDIR%%/smsd.conf.easy X%%EXAMPLESDIR%%/smsd.conf.full X%%EXAMPLESDIR%%/sql_demo X%%EXAMPLESDIR%%/smsd.conf.easy.orig X%%EXAMPLESDIR%%/smsd.conf.full.orig X%%EXAMPLESDIR%%/smsd.conf.full.bak X%%EXAMPLESDIR%%/smsd.conf.easy.bak X%%EXAMPLESDIR%%/operator_logo1.sms X X%%DOCSDIR%%/html/slideshow/status.gif X%%DOCSDIR%%/html/slideshow/eventhandler.gif X%%DOCSDIR%%/html/slideshow/logfile.gif X%%DOCSDIR%%/html/slideshow/modem.gif X%%DOCSDIR%%/html/slideshow/move_l.gif X%%DOCSDIR%%/html/slideshow/move_r.gif X%%DOCSDIR%%/html/slideshow/page1.html X%%DOCSDIR%%/html/slideshow/page2.html X%%DOCSDIR%%/html/slideshow/page3.html X%%DOCSDIR%%/html/slideshow/page4.html X%%DOCSDIR%%/html/slideshow/page5.html X%%DOCSDIR%%/html/slideshow/page6.html X%%DOCSDIR%%/html/slideshow/page7.html X%%DOCSDIR%%/html/slideshow/page8.html X%%DOCSDIR%%/html/slideshow/queue.gif X%%DOCSDIR%%/html/slideshow/sms.gif X%%DOCSDIR%%/html/slideshow/statistic.gif X%%DOCSDIR%%/html/slideshow/blacklist.gif X%%DOCSDIR%%/html/blacklist.html X%%DOCSDIR%%/html/book.html X%%DOCSDIR%%/html/butterfly.gif X%%DOCSDIR%%/html/compiling.html X%%DOCSDIR%%/html/configure.html X%%DOCSDIR%%/html/configure2.html X%%DOCSDIR%%/html/contact.html X%%DOCSDIR%%/html/costs.html X%%DOCSDIR%%/html/download.html X%%DOCSDIR%%/html/email.png X%%DOCSDIR%%/html/book.html~ X%%DOCSDIR%%/html/eventhandler.html X%%DOCSDIR%%/html/faq.html X%%DOCSDIR%%/html/fileformat.html X%%DOCSDIR%%/html/gpl.html X%%DOCSDIR%%/html/gpl_de.html X%%DOCSDIR%%/html/gsmmodem.html X%%DOCSDIR%%/html/hardwarecomp.html X%%DOCSDIR%%/html/history.html X%%DOCSDIR%%/html/index.html X%%DOCSDIR%%/html/index.html~ X%%DOCSDIR%%/html/key.png X%%DOCSDIR%%/html/license.html X%%DOCSDIR%%/html/links.html X%%DOCSDIR%%/html/logging.html X%%DOCSDIR%%/html/mnp.html X%%DOCSDIR%%/html/news.html X%%DOCSDIR%%/html/public_key_stefan_frings.txt X%%DOCSDIR%%/html/quotes.html X%%DOCSDIR%%/html/redundancy.html X%%DOCSDIR%%/html/referenzen.html X%%DOCSDIR%%/html/run.html X%%DOCSDIR%%/html/softwarecomp.html X%%DOCSDIR%%/html/sql.html X%%DOCSDIR%%/html/sql2.html X%%DOCSDIR%%/html/statformat.html X%%DOCSDIR%%/html/statusmonitor.html X%%DOCSDIR%%/html/tc35.gif X%%DOCSDIR%%/html/thanks.html X%%DOCSDIR%%/html/twist.gif X%%DOCSDIR%%/html/windows.html X%%DOCSDIR%%/html/thanks.gif X%%DOCSDIR%%/html/alarmhandler.html X%%DOCSDIR%%/html/shippingdetails.html X%%DOCSDIR%%/html/book.jpg X%%DOCSDIR%%/html/bugs.html X%%DOCSDIR%%/html/compiling.html~ X%%DOCSDIR%%/html/download.html~ X%%DOCSDIR%%/html/european.html X%%DOCSDIR%%/html/hardwarecomp.html~ X%%DOCSDIR%%/html/history.html~ X%%DOCSDIR%%/html/postpaid.html X%%DOCSDIR%%/html/shippingdetails.html~ X%%DOCSDIR%%/html/whypaypal.html X%%DOCSDIR%%/html/windows.html~ X%%DOCSDIR%%/license.txt X%%DOCSDIR%%/manual.html X X@dirrm %%EXAMPLESDIR%% X@dirrm %%DOCSDIR%%/html/slideshow X@dirrm %%DOCSDIR%%/html X@dirrm %%DOCSDIR%% END-of-smstools/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507211639.j6LGdQaJ037520>