diff options
Diffstat (limited to 'comms')
-rw-r--r-- | comms/gammu-devel/Makefile | 39 | ||||
-rw-r--r-- | comms/gammu-devel/distinfo | 3 | ||||
-rw-r--r-- | comms/gammu-devel/files/extra-patch-CMakeLists.txt | 40 | ||||
-rw-r--r-- | comms/gammu-devel/files/patch-CMakeLists.txt | 11 | ||||
-rw-r--r-- | comms/gammu-devel/files/patch-bluetooth | 66 | ||||
-rw-r--r-- | comms/gammu-devel/files/patch-common.device.devfunc.c | 11 | ||||
-rw-r--r-- | comms/gammu-devel/files/patch-common.service.gsmmisc.c | 10 | ||||
-rw-r--r-- | comms/gammu-devel/pkg-descr | 11 | ||||
-rw-r--r-- | comms/gammu-devel/pkg-plist | 33 | ||||
-rw-r--r-- | comms/kremotecontrol/Makefile | 34 | ||||
-rw-r--r-- | comms/kremotecontrol/distinfo | 3 | ||||
-rw-r--r-- | comms/kremotecontrol/files/patch-ark_plugins_libzipplugin-zipplugin.cpp | 13 | ||||
-rw-r--r-- | comms/kremotecontrol/pkg-descr | 1 | ||||
-rw-r--r-- | comms/kremotecontrol/pkg-plist | 322 | ||||
-rw-r--r-- | comms/mgetty+sendfax/Makefile | 4 | ||||
-rw-r--r-- | comms/mgetty+sendfax/files/mgettycfg.in | 635 | ||||
-rw-r--r-- | comms/mgetty+sendfax/files/patch-CVE-2008-4936 | 52 |
17 files changed, 54 insertions, 1234 deletions
diff --git a/comms/gammu-devel/Makefile b/comms/gammu-devel/Makefile deleted file mode 100644 index c07a0a92f137..000000000000 --- a/comms/gammu-devel/Makefile +++ /dev/null @@ -1,39 +0,0 @@ -# New ports collection makefile for: gammu -# Date created: 12 december 2003 -# Whom: Kirill Bezzubets <kirill@solaris.ru> -# -# $FreeBSD$ -# - -PORTNAME= gammu -PORTVERSION= 1.20.0 -CATEGORIES= comms -MASTER_SITES= ftp://dl.cihar.com/gammu/releases/ \ - http://dl.cihar.com/gammu/releases/ - -MAINTAINER= bsam@FreeBSD.org -COMMENT= GNU All Mobile Management Utilities - -RUN_DEPENDS= cdialog:${PORTSDIR}/devel/cdialog - -CMAKE_ARGS+= -DINSTALL_LIBDATA_DIR=${LOCALBASE}/libdata - -USE_CMAKE= yes -USE_GNOME= pkgconfig - -.if defined(NOPORTDOCS) -EXTRA_PATCHES=files/extra-patch-CMakeLists.txt -.else -MAN1= gammu.1 gammu-config.1 jadmaker.1 -PORTDOCS= * -.endif - -.include <bsd.port.pre.mk> - -post-patch: - @${REINPLACE_CMD} -i '' -e 's:bash:sh:' -e 's:dialog:cdialog:' ${WRKSRC}/utils/gammu-config -.if ${OSVERSION} < 700042 - @${REINPLACE_CMD} -e 's@ -Wno-pointer-sign@@g' ${WRKSRC}/CMakeLists.txt -.endif - -.include <bsd.port.post.mk> diff --git a/comms/gammu-devel/distinfo b/comms/gammu-devel/distinfo deleted file mode 100644 index 1459ebeab86e..000000000000 --- a/comms/gammu-devel/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (gammu-1.20.0.tar.gz) = 7785130e5c2822a57cc3528ed87a0e4b -SHA256 (gammu-1.20.0.tar.gz) = f9e14bdfb57dd684665586b8e4455e825538393fd2ecb3147d8f847c91718286 -SIZE (gammu-1.20.0.tar.gz) = 1377601 diff --git a/comms/gammu-devel/files/extra-patch-CMakeLists.txt b/comms/gammu-devel/files/extra-patch-CMakeLists.txt deleted file mode 100644 index 8d289bbda171..000000000000 --- a/comms/gammu-devel/files/extra-patch-CMakeLists.txt +++ /dev/null @@ -1,40 +0,0 @@ ---- CMakeLists.txt.orig 2007-12-16 23:09:38.185441426 +0300 -+++ CMakeLists.txt 2007-12-16 23:12:28.043527300 +0300 -@@ -768,37 +768,6 @@ - DESTINATION "${INSTALL_LIBDATA_DIR}/pkgconfig" - ) - --install ( -- FILES ${DOCS} -- DESTINATION "${INSTALL_DOC_DIR}" -- ) -- --install ( -- FILES ${SYMBIAN_FILES} -- DESTINATION "${INSTALL_DOC_DIR}/symbian" -- ) -- --foreach (DOC ${DEVELDOCS}) -- string (REGEX REPLACE "docs/develop(.*)/[^/]*$" "\\1" DIRNAME ${DOC}) -- install ( -- FILES ${DOC} -- DESTINATION "${INSTALL_DOC_DIR}/devel/${DIRNAME}" -- ) --endforeach (DOC) -- --foreach (EXAMPLE ${EXAMPLES}) -- string (REGEX REPLACE "(docs/examples|other/php)(.*)/[^/]*$" "\\2" DIRNAME ${EXAMPLE}) -- install ( -- FILES ${EXAMPLE} -- DESTINATION "${INSTALL_DOC_DIR}/examples/${DIRNAME}" -- ) --endforeach (EXAMPLE) -- --install ( -- FILES ${MAN1_PAGES} -- DESTINATION "${INSTALL_MAN_DIR}/man1" -- ) -- - add_subdirectory(common) - - # Include tests, we build them also when cross compiling diff --git a/comms/gammu-devel/files/patch-CMakeLists.txt b/comms/gammu-devel/files/patch-CMakeLists.txt deleted file mode 100644 index ff650b5530a6..000000000000 --- a/comms/gammu-devel/files/patch-CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ ---- CMakeLists.txt.orig 2007-08-08 16:30:55.000000000 +0400 -+++ CMakeLists.txt 2007-08-21 00:18:05.000000000 +0400 -@@ -601,7 +604,7 @@ - set (INSTALL_DOC_DIR "share/doc/gammu" CACHE STRING "Path for documentation installation") - mark_as_advanced (INSTALL_DOC_DIR) - --set (INSTALL_MAN_DIR "share/man" CACHE STRING "Path for man pages installation") -+set (INSTALL_MAN_DIR "man" CACHE STRING "Path for man pages installation") - mark_as_advanced (INSTALL_MAN_DIR) - - # Generate pkgconfig file diff --git a/comms/gammu-devel/files/patch-bluetooth b/comms/gammu-devel/files/patch-bluetooth deleted file mode 100644 index c7629e4612e7..000000000000 --- a/comms/gammu-devel/files/patch-bluetooth +++ /dev/null @@ -1,66 +0,0 @@ ---- common/device/bluetoth/bluez.c.orig 2007-03-10 19:47:59.000000000 +0300 -+++ common/device/bluetoth/bluez.c 2007-06-29 20:00:48.000000000 +0400 -@@ -23,6 +23,8 @@ - #ifdef GSM_ENABLE_BLUETOOTHDEVICE - #ifdef GSM_ENABLE_BLUEZ - -+#define BDADDR_ANY NG_HCI_BDADDR_ANY -+ - #include <stdlib.h> - #include <stdio.h> - #include <fcntl.h> -@@ -31,11 +33,7 @@ - #include <sys/socket.h> - #include <sys/time.h> - #include <unistd.h> --#include <bluetooth/bluetooth.h> --#include <bluetooth/rfcomm.h> --#include <bluetooth/sdp.h> --#include <bluetooth/sdp_lib.h> --#include <bluetooth/hci_lib.h> -+#include <bluetooth.h> - - #include "../../gsmcomon.h" - #include "../devfunc.h" -@@ -44,7 +42,7 @@ - GSM_Error bluetooth_connect(GSM_StateMachine *s, int port, char *device) - { - GSM_Device_BlueToothData *d = &s->Device.Data.BlueTooth; -- struct sockaddr_rc laddr, raddr; -+ struct sockaddr_rfcomm laddr, raddr; - bdaddr_t bdaddr; - int fd; - -@@ -53,15 +51,15 @@ - - smprintf(s, "Connecting to RF channel %i\n",port); - -- fd = socket(PF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM); -+ fd = socket(PF_BLUETOOTH, SOCK_STREAM, BLUETOOTH_PROTO_RFCOMM); - if (fd < 0) { - dbgprintf("Can't create socket\n"); - return ERR_DEVICENODRIVER; - } - -- bacpy(&laddr.rc_bdaddr, BDADDR_ANY); -- laddr.rc_family = AF_BLUETOOTH; -- laddr.rc_channel = 0; -+ bacpy(&laddr.rfcomm_bdaddr, BDADDR_ANY); -+ laddr.rfcomm_family = AF_BLUETOOTH; -+ laddr.rfcomm_channel = 0; - - if (bind(fd, (struct sockaddr *)&laddr, sizeof(laddr)) < 0) { - dbgprintf("Can't bind socket\n"); -@@ -70,9 +68,9 @@ - } - - str2ba(device, &bdaddr); -- bacpy(&raddr.rc_bdaddr, &bdaddr); -- raddr.rc_family = AF_BLUETOOTH; -- raddr.rc_channel = port; -+ bacpy(&raddr.rfcomm_bdaddr, &bdaddr); -+ raddr.rfcomm_family = AF_BLUETOOTH; -+ raddr.rfcomm_channel = port; - - if (connect(fd, (struct sockaddr *)&raddr, sizeof(raddr)) < 0) { - dbgprintf("Can't connect\n"); diff --git a/comms/gammu-devel/files/patch-common.device.devfunc.c b/comms/gammu-devel/files/patch-common.device.devfunc.c deleted file mode 100644 index 6dea7c02c241..000000000000 --- a/comms/gammu-devel/files/patch-common.device.devfunc.c +++ /dev/null @@ -1,11 +0,0 @@ ---- common/device/devfunc.c.orig Fri Feb 23 23:50:01 2007 -+++ common/device/devfunc.c Tue Apr 10 23:46:39 2007 -@@ -18,6 +18,8 @@ - - #include <string.h> - #include <fcntl.h> -+#include <sys/stat.h> -+#include <sys/socket.h> - #ifdef WIN32 - # include <io.h> - #else diff --git a/comms/gammu-devel/files/patch-common.service.gsmmisc.c b/comms/gammu-devel/files/patch-common.service.gsmmisc.c deleted file mode 100644 index 4fd010de5d40..000000000000 --- a/comms/gammu-devel/files/patch-common.service.gsmmisc.c +++ /dev/null @@ -1,10 +0,0 @@ ---- common/service/gsmmisc.c.orig Fri Dec 30 18:18:47 2005 -+++ common/service/gsmmisc.c Fri Dec 30 18:19:07 2005 -@@ -3,6 +3,7 @@ - #include <string.h> - #include <stdlib.h> - #include <sys/stat.h> -+#include <sys/socket.h> - #ifdef WIN32 - # include <io.h> - # include <fcntl.h> diff --git a/comms/gammu-devel/pkg-descr b/comms/gammu-devel/pkg-descr deleted file mode 100644 index b329b1944038..000000000000 --- a/comms/gammu-devel/pkg-descr +++ /dev/null @@ -1,11 +0,0 @@ -Gammu (Gnu All Mobile Management Utilities) 0.98.0 - -Gammu allows you to manage your mobile phone directly from -your PC. It has many features, such as SMS handling, Calendar, -Java support, ringtones, pictures, and many, many other good -things. - -WWW: http://www.gammu.org/wiki/index.php?title=Gammu:Main_Page - -- Kirill Bezzubets -<kirill@solaris.ru> diff --git a/comms/gammu-devel/pkg-plist b/comms/gammu-devel/pkg-plist deleted file mode 100644 index 3bfa6e58b2aa..000000000000 --- a/comms/gammu-devel/pkg-plist +++ /dev/null @@ -1,33 +0,0 @@ -bin/gammu -bin/gammu-config -bin/jadmaker -include/gammu/gammu-backup.h -include/gammu/gammu-bitmap.h -include/gammu/gammu-calendar.h -include/gammu/gammu-call.h -include/gammu/gammu-callback.h -include/gammu/gammu-category.h -include/gammu/gammu-config.h -include/gammu/gammu-datetime.h -include/gammu/gammu-debug.h -include/gammu/gammu-error.h -include/gammu/gammu-file.h -include/gammu/gammu-info.h -include/gammu/gammu-inifile.h -include/gammu/gammu-keys.h -include/gammu/gammu-limits.h -include/gammu/gammu-memory.h -include/gammu/gammu-message.h -include/gammu/gammu-misc.h -include/gammu/gammu-nokia.h -include/gammu/gammu-ringtone.h -include/gammu/gammu-security.h -include/gammu/gammu-settings.h -include/gammu/gammu-statemachine.h -include/gammu/gammu-types.h -include/gammu/gammu-unicode.h -include/gammu/gammu-wap.h -include/gammu/gammu.h -lib/libGammu.a -libdata/pkgconfig/gammu.pc -@dirrm include/gammu diff --git a/comms/kremotecontrol/Makefile b/comms/kremotecontrol/Makefile deleted file mode 100644 index 62ce2227f6ce..000000000000 --- a/comms/kremotecontrol/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -# New ports collection Makefile for: kdeutils -# Date created: 2008-01-31 -# Whom: Martin Wilke <miwi@FreeBSD.org> -# -# $FreeBSD$ - -PORTNAME= kdeutils -PORTVERSION= ${KDE4_VERSION} -CATEGORIES= misc kde -MASTER_SITES= ${MASTER_SITE_KDE} -MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src -DIST_SUBDIR= KDE - -MAINTAINER= kde@FreeBSD.org -COMMENT= Utilities for the KDE4 integrated X11 Desktop - -LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 \ - netsnmp:${PORTSDIR}/net-mgmt/net-snmp \ - qimageblitz.4:${PORTSDIR}/x11/qimageblitz \ - zip.1:${PORTSDIR}/archivers/libzip -RUN_DEPENDS= gpg:${PORTSDIR}/security/gnupg - -LATEST_LINK= ${PORTNAME}4 - -USE_BZIP2= yes -USE_QT_VER= 4 -KDE4_BUILDENV= yes -USE_KDE4= kdelibs pimlibs workspace kdeprefix kdehier automoc4 -QT_COMPONENTS= network gui moc rcc uic porting xml - -post-extract: - ${MKDIR} ${WRKSRC} - -.include <bsd.port.mk> diff --git a/comms/kremotecontrol/distinfo b/comms/kremotecontrol/distinfo deleted file mode 100644 index bf6758c9e18f..000000000000 --- a/comms/kremotecontrol/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (KDE/kdeutils-4.1.1.tar.bz2) = ba8d72606f71afcb649d2b9871815359 -SHA256 (KDE/kdeutils-4.1.1.tar.bz2) = e3998eeafd4ddc62ec2c4170747478eda560de5cf106f3b4e0c47e8230ae0187 -SIZE (KDE/kdeutils-4.1.1.tar.bz2) = 2281009 diff --git a/comms/kremotecontrol/files/patch-ark_plugins_libzipplugin-zipplugin.cpp b/comms/kremotecontrol/files/patch-ark_plugins_libzipplugin-zipplugin.cpp deleted file mode 100644 index c5e3f75034b6..000000000000 --- a/comms/kremotecontrol/files/patch-ark_plugins_libzipplugin-zipplugin.cpp +++ /dev/null @@ -1,13 +0,0 @@ ---- ../ark/plugins/libzipplugin/zipplugin.cpp.orig 2008-08-30 13:07:45.000000000 +0400 -+++ ../ark/plugins/libzipplugin/zipplugin.cpp 2008-08-30 13:12:59.000000000 +0400 -@@ -30,8 +30,8 @@ - //usually compiled with off_t to 32bit. in the long run libzip should be - //compiled according to bugs.kde.org bug #167018 - //but for now this will probably do --#define __off_t_defined --typedef quint32 off_t; -+// #define __off_t_defined -+// typedef quint32 off_t; - - #include "kerfuffle/archiveinterface.h" - #include "kerfuffle/archivefactory.h" diff --git a/comms/kremotecontrol/pkg-descr b/comms/kremotecontrol/pkg-descr deleted file mode 100644 index 90ae45773bea..000000000000 --- a/comms/kremotecontrol/pkg-descr +++ /dev/null @@ -1 +0,0 @@ -KDE provides an integrated X11 based environment, much like CDE. diff --git a/comms/kremotecontrol/pkg-plist b/comms/kremotecontrol/pkg-plist deleted file mode 100644 index 7d5239c2aaab..000000000000 --- a/comms/kremotecontrol/pkg-plist +++ /dev/null @@ -1,322 +0,0 @@ -bin/ark -bin/kcalc -bin/kcharselect -bin/kdessh -bin/kdf -bin/kfloppy -bin/kgpg -bin/ktimer -bin/kwalletmanager -bin/kwikdisk -bin/okteta -bin/superkaramba -bin/sweeper -lib/kde4/kcm_kdf.so -lib/kde4/kcm_kwallet.so -lib/kde4/kerfuffle_bk.so -lib/kde4/kerfuffle_libarchive.so -lib/kde4/kerfuffle_libzip.so -lib/kde4/kerfuffle_rar.so -lib/kde4/libarkpart.so -lib/kde4/libkbytearrayedit.so -lib/kde4/liboktetapart.so -lib/kde4/plasma_package_superkaramba.so -lib/kde4/plasma_scriptengine_superkaramba.so -lib/libkdeinit4_kcalc.so -lib/libkerfuffle.so -lib/libkerfuffle.so.5 -lib/libkerfuffle.so.5.0.0 -lib/liboktetacore.so -lib/liboktetacore.so.5 -lib/liboktetacore.so.5.0.0 -lib/liboktetagui.so -lib/liboktetagui.so.5 -lib/liboktetagui.so.5.0.0 -lib/libsuperkaramba.so -lib/libsuperkaramba.so.5 -lib/libsuperkaramba.so.5.0.0 -share/applications/kde4/KCharSelect.desktop -share/applications/kde4/KFloppy.desktop -share/applications/kde4/ark.desktop -share/applications/kde4/kcalc.desktop -share/applications/kde4/kdf.desktop -share/applications/kde4/kgpg.desktop -share/applications/kde4/ktimer.desktop -share/applications/kde4/kwalletmanager-kwalletd.desktop -share/applications/kde4/kwalletmanager.desktop -share/applications/kde4/kwikdisk.desktop -share/applications/kde4/okteta.desktop -share/applications/kde4/superkaramba.desktop -share/applications/kde4/sweeper.desktop -share/apps/ark/ark_part.rc -share/apps/ark/arkui.rc -share/apps/kcalc/kcalcui.rc -share/apps/kcalc/scienceconstants.xml -share/apps/kcharselect/kcharselectui.rc -share/apps/kconf_update/kcalcrc.upd -share/apps/kconf_update/kcharselect.upd -share/apps/kdf/kdfui.rc -share/apps/kdf/pics/delete.png -share/apps/kdf/pics/tick.png -share/apps/kgpg/icons/oxygen/16x16/actions/document-export-key.png -share/apps/kgpg/icons/oxygen/16x16/actions/document-import-key.png -share/apps/kgpg/icons/oxygen/16x16/actions/document-properties-key.png -share/apps/kgpg/icons/oxygen/16x16/status/key-group.png -share/apps/kgpg/icons/oxygen/16x16/status/key-orphan.png -share/apps/kgpg/icons/oxygen/16x16/status/key-pair.png -share/apps/kgpg/icons/oxygen/16x16/status/key-single.png -share/apps/kgpg/icons/oxygen/22x22/actions/document-export-key.png -share/apps/kgpg/icons/oxygen/22x22/actions/document-import-key.png -share/apps/kgpg/icons/oxygen/22x22/actions/document-properties-key.png -share/apps/kgpg/icons/oxygen/22x22/actions/key-generate-pair.png -share/apps/kgpg/icons/oxygen/22x22/actions/view-key-secret.png -share/apps/kgpg/icons/oxygen/22x22/status/key-group.png -share/apps/kgpg/icons/oxygen/22x22/status/key-pair.png -share/apps/kgpg/icons/oxygen/22x22/status/key-single.png -share/apps/kgpg/icons/oxygen/32x32/actions/document-export-key.png -share/apps/kgpg/icons/oxygen/32x32/actions/document-import-key.png -share/apps/kgpg/icons/oxygen/32x32/actions/document-properties-key.png -share/apps/kgpg/icons/oxygen/32x32/status/key-group.png -share/apps/kgpg/icons/oxygen/32x32/status/key-pair.png -share/apps/kgpg/icons/oxygen/32x32/status/key-single.png -share/apps/kgpg/icons/oxygen/48x48/actions/document-export-key.png -share/apps/kgpg/icons/oxygen/48x48/actions/document-import-key.png -share/apps/kgpg/icons/oxygen/48x48/actions/document-properties-key.png -share/apps/kgpg/icons/oxygen/48x48/status/key-group.png -share/apps/kgpg/icons/oxygen/48x48/status/key-pair.png -share/apps/kgpg/icons/oxygen/48x48/status/key-single.png -share/apps/kgpg/icons/oxygen/scalable/actions/document-export-key.svgz -share/apps/kgpg/icons/oxygen/scalable/actions/document-import-key.svgz -share/apps/kgpg/icons/oxygen/scalable/actions/document-properties-key.svgz -share/apps/kgpg/icons/oxygen/scalable/status/key-group.svgz -share/apps/kgpg/icons/oxygen/scalable/status/key-pair.svgz -share/apps/kgpg/icons/oxygen/scalable/status/key-single.svgz -share/apps/kgpg/keysmanager.rc -share/apps/kgpg/kgpg.rc -share/apps/kgpg/pics/kgpg_anim.gif -share/apps/kgpg/tips -share/apps/kwalletmanager/icons/oxygen/22x22/actions/folder_closed.png -share/apps/kwalletmanager/icons/oxygen/22x22/actions/folder_open.png -share/apps/kwalletmanager/kwalleteditor.rc -share/apps/kwalletmanager/kwalletmanager.rc -share/apps/okteta/oktetaui.rc -share/apps/oktetapart/oktetapartui.rc -share/apps/superkaramba/superkarambaui.rc -share/apps/sweeper/sweeperui.rc -share/autostart/kgpg.desktop -share/config.kcfg/ark.kcfg -share/config.kcfg/kcalc.kcfg -share/config.kcfg/kgpg.kcfg -share/config/superkaramba.knsrc -share/dbus-1/interfaces/org.kde.kgpg.Key.xml -share/dbus-1/interfaces/org.kde.superkaramba.xml -share/dbus-1/interfaces/org.kde.sweeper.xml -share/doc/HTML/en/ark/common -share/doc/HTML/en/ark/index.cache.bz2 -share/doc/HTML/en/ark/index.docbook -share/doc/HTML/en/ark/man-ark.1.docbook -share/doc/HTML/en/kcalc/commands.docbook -share/doc/HTML/en/kcalc/common -share/doc/HTML/en/kcalc/index.cache.bz2 -share/doc/HTML/en/kcalc/index.docbook -share/doc/HTML/en/kcharselect/common -share/doc/HTML/en/kcharselect/index.cache.bz2 -share/doc/HTML/en/kcharselect/index.docbook -share/doc/HTML/en/kdf/common -share/doc/HTML/en/kdf/index.cache.bz2 -share/doc/HTML/en/kdf/index.docbook -share/doc/HTML/en/kdf/kdf.png -share/doc/HTML/en/kdf/kdf_config.png -share/doc/HTML/en/kfloppy/common -share/doc/HTML/en/kfloppy/index.cache.bz2 -share/doc/HTML/en/kfloppy/index.docbook -share/doc/HTML/en/kgpg/common -share/doc/HTML/en/kgpg/editor.png -share/doc/HTML/en/kgpg/index.cache.bz2 -share/doc/HTML/en/kgpg/index.docbook -share/doc/HTML/en/kgpg/keygen.png -share/doc/HTML/en/kgpg/keymanage.png -share/doc/HTML/en/kgpg/keyprop.png -share/doc/HTML/en/kgpg/keys.png -share/doc/HTML/en/kgpg/keyserver.png -share/doc/HTML/en/kgpg/kicker.png -share/doc/HTML/en/kgpg/options.png -share/doc/HTML/en/ktimer/common -share/doc/HTML/en/ktimer/index.cache.bz2 -share/doc/HTML/en/ktimer/index.docbook -share/doc/HTML/en/kwallet/common -share/doc/HTML/en/kwallet/edit1.png -share/doc/HTML/en/kwallet/edit2.png -share/doc/HTML/en/kwallet/edit3.png -share/doc/HTML/en/kwallet/index.cache.bz2 -share/doc/HTML/en/kwallet/index.docbook -share/doc/HTML/en/kwallet/kwalletmanager.png -share/doc/HTML/en/kwallet/ox22-action-wallet_closed.png -share/doc/HTML/en/kwallet/ox22-action-wallet_open.png -share/doc/HTML/en/kwallet/password1.png -share/doc/HTML/en/kwallet/password2.png -share/doc/HTML/en/okteta/basics.docbook -share/doc/HTML/en/okteta/common -share/doc/HTML/en/okteta/credits.docbook -share/doc/HTML/en/okteta/index.cache.bz2 -share/doc/HTML/en/okteta/index.docbook -share/doc/HTML/en/okteta/introduction.docbook -share/doc/HTML/en/okteta/menu.docbook -share/doc/HTML/en/okteta/tools.docbook -share/doc/HTML/en/superkaramba/common -share/doc/HTML/en/superkaramba/index.cache.bz2 -share/doc/HTML/en/superkaramba/index.docbook -share/icons/hicolor/128x128/apps/kdf.png -share/icons/hicolor/128x128/apps/kfloppy.png -share/icons/hicolor/128x128/apps/ktimer.png -share/icons/hicolor/128x128/apps/kwalletmanager.png -share/icons/hicolor/128x128/apps/kwalletmanager2.png -share/icons/hicolor/128x128/apps/kwikdisk.png -share/icons/hicolor/128x128/apps/superkaramba.png -share/icons/hicolor/16x16/apps/kcalc.png -share/icons/hicolor/16x16/apps/kdf.png -share/icons/hicolor/16x16/apps/kfloppy.png -share/icons/hicolor/16x16/apps/kgpg.png -share/icons/hicolor/16x16/apps/ktimer.png -share/icons/hicolor/16x16/apps/kwalletmanager.png -share/icons/hicolor/16x16/apps/kwalletmanager2.png -share/icons/hicolor/16x16/apps/kwikdisk.png -share/icons/hicolor/16x16/apps/okteta.png -share/icons/hicolor/16x16/apps/superkaramba.png -share/icons/hicolor/22x22/apps/kcalc.png -share/icons/hicolor/22x22/apps/kdf.png -share/icons/hicolor/22x22/apps/kfloppy.png -share/icons/hicolor/22x22/apps/kgpg.png -share/icons/hicolor/22x22/apps/kwalletmanager.png -share/icons/hicolor/22x22/apps/kwikdisk.png -share/icons/hicolor/22x22/apps/superkaramba.png -share/icons/hicolor/32x32/apps/kcalc.png -share/icons/hicolor/32x32/apps/kdf.png -share/icons/hicolor/32x32/apps/kfloppy.png -share/icons/hicolor/32x32/apps/kgpg.png -share/icons/hicolor/32x32/apps/ktimer.png -share/icons/hicolor/32x32/apps/kwalletmanager.png -share/icons/hicolor/32x32/apps/kwalletmanager2.png -share/icons/hicolor/32x32/apps/kwikdisk.png -share/icons/hicolor/32x32/apps/okteta.png -share/icons/hicolor/32x32/apps/superkaramba.png -share/icons/hicolor/48x48/apps/kcalc.png -share/icons/hicolor/48x48/apps/kdf.png -share/icons/hicolor/48x48/apps/kfloppy.png -share/icons/hicolor/48x48/apps/kgpg.png -share/icons/hicolor/48x48/apps/ktimer.png -share/icons/hicolor/48x48/apps/kwalletmanager.png -share/icons/hicolor/48x48/apps/kwalletmanager2.png -share/icons/hicolor/48x48/apps/kwikdisk.png -share/icons/hicolor/48x48/apps/okteta.png -share/icons/hicolor/48x48/apps/superkaramba.png -share/icons/hicolor/64x64/apps/kcalc.png -share/icons/hicolor/64x64/apps/kdf.png -share/icons/hicolor/64x64/apps/kfloppy.png -share/icons/hicolor/64x64/apps/kwalletmanager.png -share/icons/hicolor/64x64/apps/kwalletmanager2.png -share/icons/hicolor/64x64/apps/kwikdisk.png -share/icons/hicolor/64x64/apps/superkaramba.png -share/icons/hicolor/scalable/apps/kcalc.svgz -share/icons/hicolor/scalable/apps/superkaramba.svgz -share/icons/oxygen/16x16/apps/kcmdf.png -share/icons/oxygen/22x22/apps/kcmdf.png -share/icons/oxygen/32x32/apps/kcmdf.png -share/kde4/services/ServiceMenus/encryptfile.desktop -share/kde4/services/ServiceMenus/encryptfolder.desktop -share/kde4/services/ServiceMenus/floppy_format.desktop -share/kde4/services/ark_part.desktop -share/kde4/services/kbytearrayedit.desktop -share/kde4/services/kcmdf.desktop -share/kde4/services/kerfuffle_bk.desktop -share/kde4/services/kerfuffle_libarchive.desktop -share/kde4/services/kerfuffle_libzip.desktop -share/kde4/services/kerfuffle_rar.desktop -share/kde4/services/kwalletconfig.desktop -share/kde4/services/kwalletmanager_show.desktop -share/kde4/services/oktetapart.desktop -share/kde4/services/plasma-package-superkaramba.desktop -share/kde4/services/plasma-scriptengine-superkaramba.desktop -share/kde4/servicetypes/kerfufflePlugin.desktop -@dirrmtry share/kde4/servicetypes -@dirrmtry share/kde4/services/ServiceMenus -@dirrmtry share/kde4/services -@dirrmtry share/kde4 -@dirrmtry share/icons/oxygen/32x32/apps -@dirrmtry share/icons/oxygen/32x32 -@dirrmtry share/icons/oxygen/22x22/apps -@dirrmtry share/icons/oxygen/22x22 -@dirrmtry share/icons/oxygen/16x16/apps -@dirrmtry share/icons/oxygen/16x16 -@dirrmtry share/icons/oxygen -@dirrmtry share/icons/hicolor/scalable/apps -@dirrmtry share/icons/hicolor/scalable -@dirrmtry share/icons/hicolor/64x64/apps -@dirrmtry share/icons/hicolor/64x64 -@dirrmtry share/icons/hicolor/48x48/apps -@dirrmtry share/icons/hicolor/48x48 -@dirrmtry share/icons/hicolor/32x32/apps -@dirrmtry share/icons/hicolor/32x32 -@dirrmtry share/icons/hicolor/22x22/apps -@dirrmtry share/icons/hicolor/22x22 -@dirrmtry share/icons/hicolor/16x16/apps -@dirrmtry share/icons/hicolor/16x16 -@dirrmtry share/icons/hicolor/128x128/apps -@dirrmtry share/icons/hicolor/128x128 -@dirrmtry share/icons/hicolor -@dirrmtry share/icons -@dirrm share/doc/HTML/en/superkaramba -@dirrm share/doc/HTML/en/okteta -@dirrm share/doc/HTML/en/kwallet -@dirrm share/doc/HTML/en/ktimer -@dirrm share/doc/HTML/en/kgpg -@dirrm share/doc/HTML/en/kfloppy -@dirrm share/doc/HTML/en/kdf -@dirrm share/doc/HTML/en/kcharselect -@dirrm share/doc/HTML/en/kcalc -@dirrm share/doc/HTML/en/ark -@dirrmtry share/doc/HTML/en -@dirrmtry share/doc/HTML -@dirrmtry share/dbus-1/interfaces -@dirrmtry share/dbus-1 -@dirrmtry share/config.kcfg -@dirrmtry share/config -@dirrmtry share/autostart -@dirrm share/apps/sweeper -@dirrm share/apps/superkaramba -@dirrm share/apps/oktetapart -@dirrm share/apps/okteta -@dirrm share/apps/kwalletmanager/icons/oxygen/22x22/actions -@dirrm share/apps/kwalletmanager/icons/oxygen/22x22 -@dirrm share/apps/kwalletmanager/icons/oxygen -@dirrm share/apps/kwalletmanager/icons -@dirrm share/apps/kwalletmanager -@dirrm share/apps/kgpg/pics -@dirrm share/apps/kgpg/icons/oxygen/scalable/status -@dirrm share/apps/kgpg/icons/oxygen/scalable/actions -@dirrm share/apps/kgpg/icons/oxygen/scalable -@dirrm share/apps/kgpg/icons/oxygen/48x48/status -@dirrm share/apps/kgpg/icons/oxygen/48x48/actions -@dirrm share/apps/kgpg/icons/oxygen/48x48 -@dirrm share/apps/kgpg/icons/oxygen/32x32/status -@dirrm share/apps/kgpg/icons/oxygen/32x32/actions -@dirrm share/apps/kgpg/icons/oxygen/32x32 -@dirrm share/apps/kgpg/icons/oxygen/22x22/status -@dirrm share/apps/kgpg/icons/oxygen/22x22/actions -@dirrm share/apps/kgpg/icons/oxygen/22x22 -@dirrm share/apps/kgpg/icons/oxygen/16x16/status -@dirrm share/apps/kgpg/icons/oxygen/16x16/actions -@dirrm share/apps/kgpg/icons/oxygen/16x16 -@dirrm share/apps/kgpg/icons/oxygen -@dirrm share/apps/kgpg/icons -@dirrm share/apps/kgpg -@dirrm share/apps/kdf/pics -@dirrm share/apps/kdf -@dirrmtry share/apps/kconf_update -@dirrmtry share/apps/kcharselect -@dirrm share/apps/kcalc -@dirrm share/apps/ark -@dirrmtry share/apps -@dirrmtry share/applications/kde4 -@dirrmtry share/applications -@dirrmtry lib/kde4 diff --git a/comms/mgetty+sendfax/Makefile b/comms/mgetty+sendfax/Makefile index b715e8a41066..9a2ec97e6169 100644 --- a/comms/mgetty+sendfax/Makefile +++ b/comms/mgetty+sendfax/Makefile @@ -7,12 +7,12 @@ PORTNAME= mgetty PORTVERSION= 1.1.35 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= comms MASTER_SITES= ftp://mgetty.greenie.net/pub/mgetty/source/1.1/ DISTNAME= ${PORTNAME}${PORTVERSION}-Feb22 -MAINTAINER= jmz@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Handle external logins, send and receive faxes USE_PERL5= yes diff --git a/comms/mgetty+sendfax/files/mgettycfg.in b/comms/mgetty+sendfax/files/mgettycfg.in deleted file mode 100644 index 8e0d3bcf3830..000000000000 --- a/comms/mgetty+sendfax/files/mgettycfg.in +++ /dev/null @@ -1,635 +0,0 @@ -#!/usr/bin/perl - -exit 0 if $ARGV[1] ne "POST-INSTALL"; -exit 0 if $ENV{'BATCH'}; -exit 0 if ! -t; - -print STDERR "\n\n\n =========== mgetty+sendfax configuration ===========\n\n"; -$prefix = $ENV{'PKG_PREFIX'}; -$sep = "~"; - -&read_config ("$prefix/etc/mgetty+sendfax/mgetty.config"); -foreach (keys(%var)) { - $var_m{$_} = $var{$_}; - delete $var{$_}; -} -&read_config ("$prefix/etc/mgetty+sendfax/sendfax.config"); -foreach (keys(%var)) { - $var_f{$_} = $var{$_}; -} - -$a = 1; -$devices = $var{'ports'} ? $var{'ports'} : "cuaa1"; -while ($a) { - $devices = &ask ("list of devices", $devices); - - $_ = $devices; - $w = 0; - foreach (split) { - if (! -c "/dev/$_" ) { - print STDERR "warning: device file /dev/$_ does not exist!\n"; - $w++; - } - } - if ($w) { - $a = 0 if (&yesno ("are you sure?" , "n") eq "y"); - } else { - $a = 0; - } -} - -open (TMP1, ">/tmp/mgetty.config.$$") || die "$!\n"; -open (TMP2, ">/tmp/sendfax.config.$$") || die "$!\n"; -$_ = join (":", $devices); -print TMP2 "fax-devices $_\n\n"; - -$_ = $devices; - -foreach $port (split) { - print STDERR "\n\n *** Configuring for port $port ***\n\n"; - print TMP1 "\nport $port\n"; - print TMP2 "\nport $port\n"; - &setdef ($port); -again: - &inq_m; - $settings_m = $settings; - &inq_f; - $settings_f = "fax-id modem-type switchbd $settings"; - goto again if (&confirm ($port) ne "y"); - &write_tmp; -} - -close (TMP1); -close (TMP2); -if ( -e "$prefix/etc/mgetty+sendfax/mgetty.config") { - system ("mv -f $prefix/etc/mgetty+sendfax/mgetty.config $prefix/etc/mgetty+sendfax/mgetty.config.old"); - system ("rm -f $prefix/etc/mgetty+sendfax/mgetty.config"); -} -if ( -e "$prefix/etc/mgetty+sendfax/sendfax.config") { - system ("mv -f $prefix/etc/mgetty+sendfax/sendfax.config $prefix/etc/mgetty+sendfax/sendfax.config.old"); - system ("rm -f $prefix/etc/mgetty+sendfax/sendfax.config"); -} -system ("mv -f /tmp/mgetty.config.$$ $prefix/etc/mgetty+sendfax/mgetty.config"); -system ("mv -f /tmp/sendfax.config.$$ $prefix/etc/mgetty+sendfax/sendfax.config"); - -open (F, ">$prefix/etc/mgetty+sendfax/faxheader"); -print F "\n FAX FROM: **not configured** $def{fax-id} TO: \@T\@ PAGE: \@P\@ OF \@M\@ \n"; -close (F); - - -print STDERR "\n\nediting /etc/ttys...\n"; - -open (F, "/etc/ttys"); -@ttys = <F>; -close (F); - -foreach $tty (@ttys) { - $_ = $devices; - foreach $port (split) { - if ($tty =~ /^\s*$port/) { - print STDERR "replacing line $tty"; - $tty = "$port\t\"$prefix/sbin/mgetty\"\tunknown on insecure\n"; - $replaced{$port} = 1; - } - } -} -$_ = $devices; -foreach $port (split) { - if (!$replaced{$port}) { - print STDERR "adding port $port\n"; - push (@ttys, "$port\t\"$prefix/sbin/mgetty\"\tunknown on insecure\n"); - } -} -system ("mv -f /etc/ttys /etc/ttys.old"); -open (F, ">/etc/ttys"); -print F @ttys; -close (F); - -# install new_fax -if (-e "$prefix/lib/mgetty+sendfax/lib/new_fax") { - print STDERR "$prefix/lib/mgetty+sendfax/lib/new_fax already exists - not changed\n"; -} else { - print STDERR "installing $prefix/lib/mgetty+sendfax/lib/samples/new_fax.mail as new_fax\n"; - open (F, "$prefix/lib/mgetty+sendfax/lib/samples/new_fax.mail"); - open (G, "$prefix/lib/mgetty+sendfax/lib/new_fax"); - while (<F>) { - s:/usr/local/bin/:$prefix:; - s:/usr/lib/sendmail:/usr/sbin/sendmail:; - s/^MAILTO=.*/$def{'notify'}\n/; - print G "$_"; - } - close F; - close G; - chmod 0755, "$prefix/lib/mgetty+sendfax/lib/new_fax"; -} -print STDERR "\n\n*** WARNING the directory /var/spool/fax/outgoing/ is world writable.\n*** This is potentially insecure\n"; - -exit 0; - -sub confirm { - $_ = shift; - print STDERR "\n\n\tSettings for port $_\n\t------------------------\n"; - $_ = $settings_m; - foreach (split) { - print STDERR "\t$_ $def{$_}\n" if ($def{$_}); - } - $_ = $settings_f; - foreach (split) { - print STDERR "\t$_ $def_f{$_}\n" if ($def_f{$_}); - } - return &yesno ("OK?", "y"); -} - -sub write_tmp { - $_ = $settings_m; - foreach (split) { - print TMP1 "$_ $def{$_}\n" if ($def{$_}); - } - $_ = $settings_f; - foreach (split) { - print TMP2 "$_ $def_f{$_}\n" if ($def_f{$_}); - } -} - -sub inq_m { - $settings = "debug"; - $def{'debug'} = 4 if !$def{'debug'}; - $def{'debug'} = &ask (" - `debug (mgetty)' - This sets the amount of logging `mgetty' will do. A good value is - 4, more details are seen with `5', and `9' is really noisy. Try - it! The log data is written to the file `/tmp/log_mg.cuaxx'.", - $def{'debug'}); - - $settings .= " fax-id"; - $def{'fax-id'} = "00 00 000000" if ! $def{'fax-id'}; - $def{'fax-id'} = &ask (" - `fax-id' - This sets the fax station ID used in fax mode to identify your - site to the caller (usually this is simply your fax phone number). - ", $def{'fax-id'}) ; - $def_f{'fax-id'} = $def{'fax-id'} ; - - $settings .= " speed"; - $def{'speed'} = 38400 if !$def{'speed'}; - $def{'speed'} = &ask (" - `speed' - Specify, as integer value, the port speed to use. Default is - 38400. If the given speed is not valid, `mgetty' complains loudly - and exits.", $def{'speed'}); - - $settings .= " switchbd"; - $def{'switchbd'} = 0 if !$def{'switchbd'}; - $def{'switchbd'} = &ask (" - `switchbd' - Some modems, mainly Rockwell chipsets, switch to 19200 bps when - entering fax mode. Others may need other speed switches (but I - know none). If your modem is Rockwell based, try `switchbd 19200' - if fax reception doesn't work. (*Warning:* if this is set wrongly, - fax reception will definitely fail. For most sane modems, you do - *not need* this.). Set speed or `0'", $def{'switchbd'}); - $def_f{'switchbd'} = $def{'switchbd'}; - - $settings .= " direct"; - $def{'direct'} = "NO" if !$def{'direct'}; - $def{'direct'} = &ask (" - `direct' - Tells mgetty that it is running on a direct line. Mgetty won't try - to initialize any modem, nor will it wait for `RING'. It will just - wait for any character, and then output the issue file and login - prompt. This option is used if you want to connect to machines via - nullmodem cable.", $def{'direct'}); - - $settings .= " blocking"; - $def{'blocking'} = "NO" if !$def{'blocking'}; - $def{'blocking'} = &ask (" - `blocking' - Tells mgetty to open the device in `blocking' mode, that is, the - `open()' system call won't succeed until carrier detect is set. - This is set if `mgetty' is called as `getty'. I'm not sure whether - it's very useful, but I include it for completeness", $def{'blocking'}); - - $settings .= " port-owner"; - $def{'port-owner'} = "uucp" if !$def{'port-owner'}; - $def{'port-owner'} = &ask (" - `port-owner' - If set, mgetty will `chown' the tty line to the given username (you - can specify a string or an integer uid, but the integer must be - valid). This is highly recommended for security purposes: only - give port access to those users you trust not to misuse your modem - lines!", $def{'port-owner'}); - - $settings .= " port-group"; - $def{'port-group'} = "uucp" if !$def{'port-group'}; - $def{'port-group'} = &ask (" - `port-group' - If set, mgetty will `chgrp' the tty line to this group id (which - can be given as group name, or as integer gid). If it's not given, - or not valid, the primary group id of `port-owner' - will be used.", $def{'port-group'}); - - $settings .= " port-mode"; - $def{'port-mode'} = "0660" if !$def{'port-mode'}; - $def{'port-mode'} = &ask (" - `port-mode' - Specifies the permissions to `chmod' the device to. - *Never* make a modem device world-accessible, better use `0660' - or even `0600'.", $def{'port-mode'} ); - - $settings .= " toggle-dtr"; - $def{'toggle-dtr'} = "YES" if !$def{'toggle-dtr'}; - $def{'toggle-dtr'} = &ask (" - `toggle-dtr' - Tells mgetty whether it should lower the DTR line upon startup to - reset modem. Default is `yes', but some (few) modems react - allergic to that and crash.", $def{'toggle-dtr'}); - - $settings .= " toggle-dtr-waittime"; - $def{'toggle-dtr-waittime'} = 500 if !$def{'toggle-dtr-waittime'}; - $def{'toggle-dtr-waittime'} = &ask (" - `toggle-dtr-waittime' - Specifies the time (in ms) to hold the DTR line low.", $def{'toggle-dtr-waittime'} ); - - $settings .= " data-only"; - $def{'data-only'} = "NO" if !$def{'data-only'}; - $def{'data-only'} =&ask (" - `data-only' - Tells `mgetty' to forget about faxing and only use the data part of - the modem. Default is `false'. You need this if your modem can't - distinguish incoming fax and data calls.", $def{'data-only'} ); - - $settings .= " fax-only"; - $def{'fax-only'} = "NO" if !$def{'fax-only'}; - $def{'fax-only'} = &ask (" - `fax-only' - Tells `mgetty' to put the modem in fax-only mode. You need this if - your modem can't distinguish incoming fax and data calls, but you - need fax more important than data; and you need it if you want to - disable data calls for security reasons (this could be achieved - via `login.config' as well)", $def{'fax-only'}); - - $settings .= " modem-type"; - $def{'modem-type'} = "auto" if ! $def{'modem-type'}; - $def{'modem-type'} = &ask (" - `modem-type' - Specifies the kind of modem connected to the port. Valid options are: - * auto - Mgetty will detect the modem type itself (which may occasionally - be not desirable, or it may fail on old modem equipment). - * c2.0 - Modem is a CLASS 2.0 fax mode. Works better than class 2, if - both are available, because its better standardized. Known to - work with USR and ZyXEL. - * cls2 - Modem is a CLASS 2 fax modem, mgetty will not try class 2.0. - * data - Do not try fax initialization - There is no way (yet) to tell mgetty to use *only* fax mode and - refuse data calls with this option, use the `fax-only true' - statement for that.", $def{'modem-type'}); - $def_f{'modem-type'} = $def{'modem-type'}; - - $settings .= " init-chat"; - $def{'init-chat'} = '"" ATS0=0Q0&D3&C1 OK' if ! $def{'init-chat'}; - $def{'init-chat'} = &ask (" - `init-chat' - Tells mgetty the chat sequence to use for initializing the modem. - *Warning*: the sequence starts with *expect*, which will in most - cases be `\"\"' (nothing). This ordering was chosen because UUCP - does it this way, and I wanted to avoid confusion here. - - Example: - - \"\" \\d\\d\\d+++\\d\\d\\dATQ0E1V1H0 OK ATL0M0S0=0 OK AT&K3 OK - init sequence", $def{'init-chat'}); - - $settings .= " force-init-chat"; - $def{'force-init-chat'} = "" if !$def{'force-init-chat'}; - $def{'force-init-chat'} = &ask (" - `force-init-chat' - In some cases, the modem can get stuck in a mode where it won't - react to a simple `AT' command. Usually this happens because the - modem is set to ignore a DTR drop and still has a data connection - to the other side. If you use a voice modem, it could be stuck in - voice mode. - - In these situations, the normal `init-chat' will time out, because - the modem won't send the proper responses back. - - To get the modem back into a sane state, you can use the - `force-init-chat' chat sequence. The default setup will send the - DLE ETX characters, to get voice modems back to life, and then the - `(pause)+++(pause)ATH0' sequence to get the modem back from data - mode to command mode. - - You could prepend this sequence to `init-chat' (it wouldn't harm), - but especially the pauses around the +++ sequence makes this - undesirable slow.", $def{'force-init-chat'}); - - $settings .= " modem-check-time"; - $def{'modem-check-time'} = 3600 if ! $def{'modem-check-time'}; - $def{'modem-check-time'} = &ask (" - `modem-check-time' - Some modems have the nasty tendency to crash silently. With this - option, you tell `mgetty' to check every SECONDS seconds with a - simple `AT...OK' sequence whether the modem still reacts. If not, - `mgetty' will restart itself and do a full modem reset.", $def{'modem-check-time'}); - - $settings .= " rings"; - $def{'rings'} = 1 if !$def{'rings'}; - $def{'rings'} = &ask (" - `rings' - Sets the number of `RING' messages to wait for, before mgetty - picks up the phone. *Warning:* if your modem auto-answers, for - whatever reason, set this to something *different* than the - value set with `ATS0=mmm', otherwise the modems autoanswer and - mgettys manual answer will collide (most modems hang up if a - command is received during auto-answer)", $def{'rings'}); - - - $settings .= " answer-chat"; - $def{'answer-chat'} = '"" ATA CONNECT \c \r' if !$def{'answer-chat'}; - $def{'answer-chat'} =&ask (" - `answer-chat' - This is the command sequence that is used to answer a phone call. - Usually you can leave it at the default ` \"\" ATA CONNECT \\c \\r ', - but for some modems you need `ATS0=1' in place of `ATA' (ATA not - allowed). The extra `\\r' expect string is needed that the code can - grab the full CONNECT XYZ\\R string. It will work without the \\r, - but then the logging information will be less detailed. *Right now, - \\r won't work at all, it's not implemented yet. Don't use it.* - ", $def{'answer-chat'} ); - - $settings .= " answer-chat-timeout"; - $def{'answer-chat-timeout'} = 80 if !$def{'answer-chat-timeout'}; - $def{'answer-chat-timeout'} = &ask (" - `answer-chat-timeout' - During the ANSWER-CHAT, each \"expect\" string must be seen in the - time specified here. Default is 80 seconds. This time should be at - least some 5 seconds longer than the time set with the `ATS7=...' - modem setup command.", $def{'answer-chat-timeout'}); - - $settings .= " autobauding"; - $def{'autobauding'} = "NO" if !$def{'autobauding'}; - $def{'autobauding'} = &ask (" - `autobauding' - Some modems switch their DTE line speed to the communication line - speed after connecting, e.g., after sending `CONNECT 2400', the - modem switches to 2400 bps. Newer modems usually have a switch to - \"lock\" a DTE baud rate, which is strongly recommended. If your - modem insists on doing this speed switch, setting `autobauding' to - YES will make mgetty behave accordingly.", $def{'autobauding'}); - - $settings .= " ringback"; - $def{'ringback'} = "NO" if !$def{'ringback'} ; - $def{'ringback'} = &ask (" - `ringback' - If you have to put your modem and your telephone on the same phone - line, you can switch on \"ringback\" or \"ring-twice\". This means, - mgetty won't answer the phone on the first call, but remember the - call, and pick up on the second call (if it comes in the time - specified by `ringback-time').", $def{'ringback'} ); - - $settings .= " ringback-time"; - $def{'ringback-time'} = "30" if !$def{'ringback-time'} ; - $def{'ringback-time'} = &ask (" - `ringback-time' - This setting specifies how much time may pass between the first - and the second call if \"ringback\" is active.", $def{'ringback-time'}); - - $settings .= " ignore-carrier"; - $def{'ignore-carrier'} = "false" if !$def{'ignore-carrier'} ; - $def{'ignore-carrier'} = &ask (" - `ignore-carrier' - - If your Modem does not assert the DCD (carrier detect) line, or the - serial port or cable or serial driver is broken, it is possible - that `mgetty' or `login' will block after a successful CONNECT - (that means: everything seems to work, but suddenly nothing is sent - to the port anymore. Depending on the operating system used, this - can be before printing the `/etc/issue' file or not before printing - the `password:' prompt. - - To work around this, you can switch off the carrier detection in - software: set `ignore-carrier true'. Default is `false'. - - *WARNING:* If you use this, your system won't be able to detect - when a caller just hangs up instead of cleanly logging out. This - may result in hanging modems, etc.", $def{'ignore-carrier'}); - - $settings .= " issue-file"; - $def{'issue-file'} = "/etc/issue" if !$def{'issue-file'} ; - $def{'issue-file'} = &ask (" - `issue-file' - This is the file printed before the login prompt.", $def{'issue-file'}); - - $settings .= " prompt-waittime"; - $def{'prompt-waittime'} = "500" if !$def{'prompt-waittime'} ; - $def{'prompt-waittime'} = &ask (" - `prompt-waittime' - This specifies how long `mgetty' will wait for modem and line to - settle down (in ms) before printing issue file and login prompt", - $def{'prompt-waittime'}); - - $settings .= " login-prompt"; - $def{'login-prompt'} = "@!login: " if !$def{'login-prompt'} ; - $def{'login-prompt'} = &ask(" - `login-prompt' - This specifies the login prompt that mgetty will output. Some - special characters in this string (and in the issue file, btw) are - recognized and replaced by something else: - * @ system name - * \\n newline - * \\r carriage return - * \\g bell - * \\b backspace (ascii 010) - * \\f form feed (ascii 013) - * \\t TAB - * \\P (and \\L) port name (e.g. ttyS0) - * \\C date and time, in \"ctime()\" format - * \\I Connection string (e.g. 2400/REL) - * \\N (and \\U) number of users currently logged in - * \\S Port speed (e.g. 38400) - * \\D current date in dd/mm/yy format - * \\T current time in hh:mm:ss format - * \\DIGIT character with the specified octal code - - The maximum lenght of the login prompt is limited to 140 - characters (after expansion).", $def{'login-prompt'}); - - $settings .= " login-time"; - $def{'login-time'} = 240 if !$def{'login-time'}; - $def{'login-time'} = &ask (" - `login-time' - This specifies the maximum time the user can take to log in. If no - login has occured after that time, `mgetty' will hang up.", - $def{'login-time'}); - - $settings .= " fax-server-file"; - $def{'fax-server-file'} = &ask (" - `fax-server-file' - Specifies the fax file(s) that is to be sent if someone else calls - your modem in *fax polling mode*, that is, the caller *receives* a - document. - - Normally, the file given is a text file, containing the list of G3 - files to send to the calling machine, one file per line. Comment - lines (starting with \"#\") are ignored. For backward compatibility, - `mgetty' does check whether the named file is a G3 file itself, in - which case this file is sent directly (but then, you can only send - one page). - - Not all modems support fax poll *server* mode, I know that the - ZyXEL and MultiTech do.", $def{'fax-server-file'}); - - $settings .= " diskspace"; - $def{'diskspace'} = 1024 if !$def{'diskspace'}; - $def{'diskspace'} = &ask (" - `diskspace' - This setting tells mgetty the minimum amount of disk space (in KB) that - has to be available in the fax spool directory for fax reception - to be allowed.", $def{'diskspace'}); - - $settings .= " notify"; - $def{'notify'} = "faxadmin" if !$def{'notify'}; - $def{'notify'} = &ask (" - `notify' - This is the address that will get mails if a fax is received. Not - fully tested.", $def{'notify'}); - - $settings .= " fax-owner"; - $def{'fax-owner'} = "uucp" if !$def{'fax-owner'}; - $def{'fax-owner'} = &ask (" - `fax-owner' - If set, mgetty will `chown' the received files to the given username - (you can specify a string or an integer uid, but the integer must be - valid).", $def{'fax-owner'}); - - $settings .= " fax-group"; - $def{'fax-group'} = "modem" if !$def{'fax-group'}; - $def{'fax-group'} = &ask (" - `fax-group' - If set, mgetty will `chgrp' the received files to this group id - (which can be given as group name, or as integer gid).", $def{'fax-group'}); - - $settings .= " fax-mode"; - $def{'fax-mode'} = "0660" if !$def{'fax-mode'}; - $def{'fax-mode'} = &ask (" - `fax-mode' - Specifies the permissions to `chmod' the received files.", $def{'fax-mode'}); -} -sub inq_f { - $settings = "debug"; - $def_f{'debug'} = 4 if !$def_f{'debug'}; - $def_f{'debug'} = &ask (" - `debug (sendfax)' - controls the amount of information written into the fax log file. - `0' means \"totally silent\" (not even errors are written), `9' - is really noisy. I usually use `3' or `4' in normal use, and `6' - for debugging.", $def_f{'debug'}); - - $settings .= " modem-init"; - $def{'modem-init'} = &ask (" - `modem-init' - Specifies an `AT...' command that is to be sent to the modem right - at the *beginning* of all modem talk (even before setting the modem - into fax mode, so this could be an `ATZ' if you want to reset the - modem).", ""); - - $settings .= " modem-handshake"; - $def_f{'modem-handshake'} = "AT&H3" if !$def_f{'modem-handshake'}; - $def_f{'modem-handshake'} = &ask (" - `modem-handshake' - Specifies an `AT...' command that will be sent to the modem at the - *end* of the modem initialization, right before dialing. *Do not - use ATZ or such here*, since resetting the modem will switch off - fax mode.", $def_f{'modem-handshake'}); - - $settings .= " max-tries"; - $def_f{'max-tries'} = 3 if !$def_f{'max-tries'}; - $def_f{'max-tries'} = &ask (" - `max-tries' - Specify the maximum number of tries per page if the receiving end - reports reception errors. If NNN tries do not suffice to - successfully transmit a page, `sendfax' will give up or simply go - on, depending on the setting of `max-tries-continue' (see below). - If this is set to `0', `sendfax' will ignore retransmission - requests and simply go on.", $def_f{'max-tries'}); - - $settings .= " max-tries-continue"; - $def_f{'max-tries-continue'} = "YES" if !$def_f{'max-tries-continue'}; - $def_f{'max-tries-continue'} = &ask (" - `max-tries-continue' - After the maximum number of tries for one page are reached, - `sendfax' can report an error and abort (`max-tries-continue NO'), - or go on with the next page (YES). - - For \"mission critical\" faxes, I'd set it to NO, but since the page - quality is most often quite good even if reported as \"page bad\", - the default is YES.", $def_f{'max-tries-continue'}); - - $settings .= " speed (fax)"; - $def_f{'speed'} = 38400 if ! $def_f{'speed'}; - $def_f{'speed'} = &ask (" - `speed' - Set the port speed to use for fax send operations. Usually, - `38400' is a good choice, but a few dumb modems (for example, some - based on rockwell chipsets) need `19200' or even `9600'. A few - modems can go higher, but `sendfax' may not support it, and it may - not always work.", $def_f{'speed'}); - - $settings .= " dial-prefix"; - $def_f{'dial-prefix'} = "ATD" if !$def_f{'dial-prefix'}; - $def_f{'dial-prefix'} = &ask (" - `dial-prefix' - This is the command used for dialing out. Usually this will be - something simple, as `ATD' or `ATDP', but if you have an unusual - setup, it could also be something like `ATX0DP0;X4DT' (meaning: - switch off dial-tone detection, pulse-dial `0', back to command - mode, switch on dial-tone detection, and go ahead dialing with - touch tones). The phone number will be sent right after the - `dial-prefix'.", $def_f{'dial-prefix'}); - - $settings .= " poll-dir"; - $def_f{'poll-dir'} = "./" if !$def_f{'poll-dir'}; - $def_f{'poll-dir'} = &ask (" - `poll-dir' - This is used to specify a directory where polled faxes (wheather - maps and such) are to be saved into. Default is the current - directory.", $def_f{'poll-dir'}); - - $settings .= " normal-res"; - $def_f{'normal-res'} = "NO" if !$def_f{'normal-res'}; - $def_f{'normal-res'} = &ask (" - `normal-res' - If set to `yes' or `true' (boolean), `sendfax' won't attempt to - make a fax connection in \"fine resolution\" mode. Normally you - won't need to use that option, since `faxrunq' will set the `-n' - switch if needed.", $def_f{'normal-res'}); - - $settings .= " verbose"; - $def_f{'verbose'} = "NO" if !$def_f{'verbose'}; - $def_f{'verbose'} = &ask (" - `verbose' - If set to `yes' or `true', `sendfax' will output progress reports - on stdout, if set to `no', `sendfax' will only print error and - warning messages.", $def_f{'verbose'}); -} -sub setdef { - local ($p, $l); - $p = shift; - $l = length ($p) + 1; - foreach (keys(%var_m)) { - $def{$_} = substr ($var_m{$_}, $l) if ($var_m{$_} =~ /^$p/); - } - foreach (keys(%var_m)) { - $def{$_} = substr ($var_m{$_}, 1) if (!$def{$_} && $var_m{$_} =~ /^$sep/); - } - foreach (keys(%var_f)) { - $def_f{$_} = substr ($var_f{$_}, $l) if ($var_f{$_} =~ /^$p/); - } - foreach (keys(%var_m)) { - $def_f{$_} = substr ($var_f{$_}, 1) if (!$def_f{$_} && $var_f{$_} =~ /^$sep/); - } -} -sub ask { - ($info, $default, $x) = @_; - print STDERR "\n$info: "; - print STDERR "[$default] " if ($default); - $_ = <STDIN>; - s/^\s*//; - chop; - if ($_ eq "") { - return $default; - } - return $_; -} -sub read_config { - local ($conf, $port, $a, $b); - - $conf = shift; - $port = $sep; - if ( -f $conf) { - open (F, $conf) || die "$!\n"; - while (<F>) { - chop; - s/^\s*//; - next if /^#/; - next if /^$/; - ($a, $b) = split (/[ \t\n]+/, $_, 2); - if ($a eq "port") { - $port = $b; - $var{'ports'} .= "$port "; - } else { - $var{$a} = "$port $b"; - } - } - close F; - } -} - -sub yesno { - print STDERR "$_[0]: "; - print STDERR "[$_[1]] " if ($_[1]); - $_ = <STDIN>; - chop; - $_ = $_[1] if ! $_; - return "y" if /^[Yy].*/; - return "n"; -} diff --git a/comms/mgetty+sendfax/files/patch-CVE-2008-4936 b/comms/mgetty+sendfax/files/patch-CVE-2008-4936 new file mode 100644 index 000000000000..b3ce58f7a054 --- /dev/null +++ b/comms/mgetty+sendfax/files/patch-CVE-2008-4936 @@ -0,0 +1,52 @@ +--- fax/faxspool.in.orig 2008-12-06 22:30:36.000000000 +0300 ++++ fax/faxspool.in 2008-12-06 22:48:40.000000000 +0300 +@@ -653,12 +653,12 @@ + # + # mkdir a directory in $TMP (or /tmp), convert input to G3 in there + # +-spooldir=${TMP:-/tmp}/$new_seq.$$.`date +%S` ++spooldir=`mktemp -d "${TMP:-/tmp}"/"$new_seq.$$".XXXXXXXX` + +-if ( umask 077 ; mkdir $spooldir ) ; then ++if [ $? -eq 0 ]; then + $echo "spooling to $spooldir (->$new_seq)..." + else +- $echo "ERROR: can't create work dir '$spooldir', giving up" >&2 ; exit 6 ++ $echo "ERROR: can't create work dir inside '${TMP:-/tmp}', giving up" >&2 ; exit 6 + fi + + # +@@ -675,9 +675,12 @@ + if [ x$file = x- ] + then + $echo "spooling $file (stdin)..." +- trap "rm /tmp/faxsp.$$" 0 +- cat - >/tmp/faxsp.$$ +- file=/tmp/faxsp.$$ ++ file=`mktemp "$spooldir/faxsp.XXXXXXXX"` ++ if [ -z "$file" ]; then ++ $echo "ERROR: can't create work file, giving up" >&2; exit 6 ++ fi ++ trap "rm -f $file" 0 ++ cat - >"$file" + else + $echo "spooling $file..." + fi +@@ -924,7 +927,7 @@ + then + $echo "\nnothing to do (no cover page, no data)." >&2 + cd $FAX_SPOOL_OUT +- rmdir $spooldir ++ rm -rf $spooldir + exit 52 + fi + +@@ -965,7 +968,7 @@ + # clean up + rm $job.q + cd .. +-rmdir $spooldir ++rm -rf $spooldir + + if [ -z "`find $LAST_RUN -ctime -1 -print 2>/dev/null`" ] + then |