diff options
Diffstat (limited to 'comms/gsmlib')
-rw-r--r-- | comms/gsmlib/Makefile | 42 | ||||
-rw-r--r-- | comms/gsmlib/distinfo | 2 | ||||
-rw-r--r-- | comms/gsmlib/files/patch-gsmlib__gsm_map_key.h | 48 | ||||
-rw-r--r-- | comms/gsmlib/files/patch-gsmlib__gsm_me_ta.h | 29 | ||||
-rw-r--r-- | comms/gsmlib/files/patch-gsmlib__gsm_unix_serial.cc | 84 | ||||
-rw-r--r-- | comms/gsmlib/pkg-descr | 8 | ||||
-rw-r--r-- | comms/gsmlib/pkg-plist | 40 |
7 files changed, 0 insertions, 253 deletions
diff --git a/comms/gsmlib/Makefile b/comms/gsmlib/Makefile deleted file mode 100644 index a7568a415c46..000000000000 --- a/comms/gsmlib/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -# Created by: ijliao -# $FreeBSD$ - -PORTNAME= gsmlib -PORTVERSION= 1.10 -PORTREVISION= 8 -CATEGORIES= comms -MASTER_SITES= DEBIAN -#TODO: examine the Debian patches, and changes in the Mandrake -#gsmlib-1.11-0.2mdv2007.0.src.rpm, for use in this port -DISTFILES= gsmlib_1.10.orig.tar.gz - -MAINTAINER= ports@FreeBSD.org -COMMENT= Library to access GSM mobile phones through GSM modems - -LICENSE= LGPL20 -LICENSE_FILE= ${WRKSRC}/COPYING - -BROKEN= unfetchable -DEPRECATED= Unfetchable, unmaintained -EXPIRATION_DATE= 2019-10-16 - -USES= gmake libtool -USE_CXXSTD= c++98 -USE_LDCONFIG= yes -GNU_CONFIGURE= yes -INSTALL_TARGET= install-strip - -CPPFLAGS+= -DBROKEN_STRFTIME -DHAVE_DECL_GETOPT -LDFLAGS+= -lpthread - -OPTIONS_DEFINE= NLS -OPTIONS_SUB= yes - -NLS_USES= gettext localbase:ldflags -NLS_CONFIGURE_ENABLE= nls - -post-patch: - @${GREP} -lR "<malloc.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \ - 's|<malloc\.h>|<stdlib.h>|g' - -.include <bsd.port.mk> diff --git a/comms/gsmlib/distinfo b/comms/gsmlib/distinfo deleted file mode 100644 index febd2a8954f6..000000000000 --- a/comms/gsmlib/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (gsmlib_1.10.orig.tar.gz) = 66338252c63f83feea62f97ad8e6b818632c248ca5337619cf24072a84121a51 -SIZE (gsmlib_1.10.orig.tar.gz) = 474591 diff --git a/comms/gsmlib/files/patch-gsmlib__gsm_map_key.h b/comms/gsmlib/files/patch-gsmlib__gsm_map_key.h deleted file mode 100644 index fe265b2691b2..000000000000 --- a/comms/gsmlib/files/patch-gsmlib__gsm_map_key.h +++ /dev/null @@ -1,48 +0,0 @@ ---- gsmlib/gsm_map_key.h.orig Tue May 14 23:38:12 2002 -+++ gsmlib/gsm_map_key.h Sun Sep 24 00:37:00 2006 -@@ -25,6 +25,16 @@ - - // wrapper for map key, can access Sortedtore to get sortOrder() - -+ template <class SortedStore> class MapKey; -+ -+ // compare two keys -+ template <class SortedStore> -+ extern bool operator<(const MapKey<SortedStore> &x, -+ const MapKey<SortedStore> &y); -+ template <class SortedStore> -+ extern bool operator==(const MapKey<SortedStore> &x, -+ const MapKey<SortedStore> &y); -+ - template <class SortedStore> class MapKey - { - SortedStore &_myStore; // my store -@@ -61,18 +71,10 @@ - const MapKey<SortedStore> &y); - }; - -- // compare two keys -- template <class SortedStore> -- extern bool operator<(const MapKey<SortedStore> &x, -- const MapKey<SortedStore> &y); -- template <class SortedStore> -- extern bool operator==(const MapKey<SortedStore> &x, -- const MapKey<SortedStore> &y); -- - // MapKey members - - template <class SortedStore> -- bool gsmlib::operator<(const MapKey<SortedStore> &x, -+ bool operator<(const MapKey<SortedStore> &x, - const MapKey<SortedStore> &y) - { - assert(&x._myStore == &y._myStore); -@@ -97,7 +99,7 @@ - } - - template <class SortedStore> -- bool gsmlib::operator==(const MapKey<SortedStore> &x, -+ bool operator==(const MapKey<SortedStore> &x, - const MapKey<SortedStore> &y) - { - assert(&x._myStore == &y._myStore); diff --git a/comms/gsmlib/files/patch-gsmlib__gsm_me_ta.h b/comms/gsmlib/files/patch-gsmlib__gsm_me_ta.h deleted file mode 100644 index be5e42c2dbde..000000000000 --- a/comms/gsmlib/files/patch-gsmlib__gsm_me_ta.h +++ /dev/null @@ -1,29 +0,0 @@ ---- gsmlib/gsm_me_ta.h.orig Wed Dec 20 17:15:09 2006 -+++ gsmlib/gsm_me_ta.h Wed Dec 20 17:16:27 2006 -@@ -291,8 +291,8 @@ - // 3 disable phone receive RF circuits only - // 4 disable phone both transmit and receive RF circuits - // 5...127 implementation-defined -- int MeTa::getFunctionalityLevel() throw(GsmException); -- void MeTa::setFunctionalityLevel(int level) throw(GsmException); -+ int getFunctionalityLevel() throw(GsmException); -+ void setFunctionalityLevel(int level) throw(GsmException); - - // return battery charge status (+CBC): - // 0 ME is powered by the battery -@@ -386,13 +386,13 @@ - void setCallWaitingLockStatus(FacilityClass cl, - bool lock)throw(GsmException); - -- void MeTa::setCLIRPresentation(bool enable) throw(GsmException); -+ void setCLIRPresentation(bool enable) throw(GsmException); - //(+CLIR) - - // 0:according to the subscription of the CLIR service - // 1:CLIR invocation - // 2:CLIR suppression -- int MeTa::getCLIRPresentation() throw(GsmException); -+ int getCLIRPresentation() throw(GsmException); - - friend class Phonebook; - friend class SMSStore; diff --git a/comms/gsmlib/files/patch-gsmlib__gsm_unix_serial.cc b/comms/gsmlib/files/patch-gsmlib__gsm_unix_serial.cc deleted file mode 100644 index 4dabea9f4fcb..000000000000 --- a/comms/gsmlib/files/patch-gsmlib__gsm_unix_serial.cc +++ /dev/null @@ -1,84 +0,0 @@ ---- gsmlib/gsm_unix_serial.cc.orig Sun Sep 22 20:51:10 2002 -+++ gsmlib/gsm_unix_serial.cc Wed Aug 18 01:27:08 2004 -@@ -20,6 +20,7 @@ - #include <fcntl.h> - #include <iostream> - #include <strstream> -+#include <cassert> - #include <errno.h> - #include <stdio.h> - #include <unistd.h> -@@ -178,11 +179,15 @@ - - // switch off non-blocking mode - int fdFlags; -- if ((fdFlags = fcntl(_fd, F_GETFL)) == -1) -+ if ((fdFlags = fcntl(_fd, F_GETFL)) == -1) { -+ close(_fd); - throwModemException(_("getting file status flags failed")); -+ } - fdFlags &= ~O_NONBLOCK; -- if (fcntl(_fd, F_SETFL, fdFlags) == -1) -+ if (fcntl(_fd, F_SETFL, fdFlags) == -1) { -+ close(_fd); - throwModemException(_("switching of non-blocking mode failed")); -+ } - - long int saveTimeoutVal = _timeoutVal; - _timeoutVal = 3; -@@ -194,17 +199,22 @@ - - // toggle DTR to reset modem - int mctl = TIOCM_DTR; -- if (ioctl(_fd, TIOCMBIC, &mctl) < 0) -+ if (ioctl(_fd, TIOCMBIC, &mctl) < 0) { -+ close(_fd); - throwModemException(_("clearing DTR failed")); -+ } - // the waiting time for DTR toggling is increased with each loop - usleep(holdoff[initTries]); -- if (ioctl(_fd, TIOCMBIS, &mctl) < 0) -+ if (ioctl(_fd, TIOCMBIS, &mctl) < 0) { -+ close(_fd); - throwModemException(_("setting DTR failed")); -- -+ } - // get line modes -- if (tcgetattr(_fd, &t) < 0) -+ if (tcgetattr(_fd, &t) < 0) { -+ close(_fd); - throwModemException(stringPrintf(_("tcgetattr device '%s'"), - device.c_str())); -+ } - - // set line speed - cfsetispeed(&t, lineSpeed); -@@ -229,9 +239,11 @@ - t.c_cc[VSUSP] = 0; - - // write back -- if(tcsetattr (_fd, TCSANOW, &t) < 0) -+ if(tcsetattr (_fd, TCSANOW, &t) < 0) { -+ close(_fd); - throwModemException(stringPrintf(_("tcsetattr device '%s'"), - device.c_str())); -+ } - // the waiting time for writing to the ME/TA is increased with each loop - usleep(holdoff[initTries]); - -@@ -279,11 +291,14 @@ - catch (GsmException &e) - { - _timeoutVal = saveTimeoutVal; -- if (initTries == 0) -+ if (initTries == 0) { -+ close(_fd); - throw e; -+ } - } - } - // no response after 3 tries -+ close(_fd); - throw GsmException(stringPrintf(_("reset modem failed '%s'"), - device.c_str()), OtherError); - } diff --git a/comms/gsmlib/pkg-descr b/comms/gsmlib/pkg-descr deleted file mode 100644 index 2028bcc74c2b..000000000000 --- a/comms/gsmlib/pkg-descr +++ /dev/null @@ -1,8 +0,0 @@ -This distribution contains a library to access GSM mobile phones through GSM -modems. Features include: - - modification of phonebooks stored in the mobile phone or on the SIM card - - reading and writing of SMS messages stored in the mobile phone - - sending and reception of SMS messages - -Additionally, some simple command line programs are provided to use these -functionalities. diff --git a/comms/gsmlib/pkg-plist b/comms/gsmlib/pkg-plist deleted file mode 100644 index dd328c5594ba..000000000000 --- a/comms/gsmlib/pkg-plist +++ /dev/null @@ -1,40 +0,0 @@ -bin/gsmctl -bin/gsmpb -bin/gsmsendsms -bin/gsmsiectl -bin/gsmsiexfer -bin/gsmsmsd -bin/gsmsmsstore -include/gsmlib/gsm_at.h -include/gsmlib/gsm_cb.h -include/gsmlib/gsm_error.h -include/gsmlib/gsm_event.h -include/gsmlib/gsm_map_key.h -include/gsmlib/gsm_me_ta.h -include/gsmlib/gsm_parser.h -include/gsmlib/gsm_phonebook.h -include/gsmlib/gsm_port.h -include/gsmlib/gsm_sie_me.h -include/gsmlib/gsm_sms.h -include/gsmlib/gsm_sms_codec.h -include/gsmlib/gsm_sms_store.h -include/gsmlib/gsm_sorted_phonebook.h -include/gsmlib/gsm_sorted_phonebook_base.h -include/gsmlib/gsm_sorted_sms_store.h -include/gsmlib/gsm_unix_serial.h -include/gsmlib/gsm_util.h -lib/libgsmext.a -lib/libgsmext.so -lib/libgsmext.so.1 -lib/libgsmext.so.1.0.4 -lib/libgsmme.a -lib/libgsmme.so -lib/libgsmme.so.1 -lib/libgsmme.so.1.0.4 -man/man1/gsmctl.1.gz -man/man1/gsmpb.1.gz -man/man1/gsmsendsms.1.gz -man/man1/gsmsmsstore.1.gz -man/man7/gsminfo.7.gz -man/man8/gsmsmsd.8.gz -%%NLS%%share/locale/de/LC_MESSAGES/gsmlib.mo |